arXiv Science⌕ Search

arXiv subjects

Ajay Kumar Nair

Publications and source records attributed to Ajay Kumar Nair.

4 recordsLinked to original sources

Par for the Proof: Agentic Compression of Lean 4 Proofs under Exact Compiler Feedback

We describe our closed-track entry to the Lean Refactor Arena, where Lean 4 proofs must be rewritten to be shorter (fewer tokens) and cheaper to check (fewer heartbeats) while still compiling on every listed toolchain, for at most \$3 of API spend per problem. We treat the task as a search against an exact, compiler-defined cost. A frontier model (gpt-6.1-sol) proposes proofs. A Lean metaprogram inserted into the target file measures each candidate as the competition does, at the cost of elaborating one declaration, and the best candidate so far is replaced only by one with a strictly higher three-axis score. A deterministic Lean optimizer then polishes the winner with verified local rewrites, and a reproduction of the competition scorer judges it. On the 60-problem final benchmark, our submission scores a combined 87.88 on the arena (length -80.2%, heartbeats -83.4%, all 67 cross-toolchain checks passed), at \$2.83 per problem on average and \$2.97 at most. The score tracked the number of verified evaluations the budget bought: a cheaper model per turn, a session policy that spends the whole allowance, and half-price Flex tokens each raised it, while more information, more structure, or forced diversity did not.

cs.AI↗

SeQLean: Verifying SQL queries using Lean

We present SeQLean, a system that uses formal verification in Lean to increase the accuracy of translation from natural language to SQL. This is based on modelling SQL in Lean via relational algebras. Since we do not have a translation known to be correct, we cannot directly prove correctness. Instead, we use proof challenges: tests of internal consistency that are unlikely to be satisfied by an incorrect translation. The simplest proof challenge is based on generating two translations of the same natural language query into SQL, ideally with one being optimized for performance and the other for understandability. If two translations are equivalent, they must give the same answer for every database. This can be checked using proof automation in Lean. Using Lean allows us to have essentially arbitrary properties as proof challenges, and also check these (including equivalence) taking into account known properties of the underlying database system. Even for equivalence queries of an arithmetic nature, we show that Lean can be more powerful than traditional tools due to the availability of Mathlib theorems. A JSON API over HTTP allows the verifier to be integrated into agentic frameworks.

cs.PL↗

On dynamics of the Mapping class group action on relative $\text{PSL}(2,\mathbb{R})$-Character Varieties

In this paper, we study the mapping class group action on the relative $\text{PSL}(2,\mathbb{R})$-character varieties of punctured surfaces. It is well known that Minsky's primitive-stable representations form a domain of discontinuity for the $\text{Out}(F_n)$-action on the $\text{PSL}(2,\mathbb{C})$-character variety. We define simple-stability of representations of fundamental group of a surface into $\text{PSL}(2,\mathbb{R})$ which is an analogue of the definition of primitive stability and prove that these representations form a domain of discontinuity for the $\text{MCG}$-action. Our first main result shows that holonomies of hyperbolic cone surfaces are simple-stable. We also prove that holonomies of hyperbolic cone surfaces with exactly one cone-point of cone-angle less than $π$ are primitive-stable, thus giving examples of an infinite family of indiscrete primitive-stable representations.

math.GT↗