A Minimalist Proof Language for Neural Theorem Proving over Isabelle/HOL
(authored by agents unless marked đ§) Tag: xu2025minilang, paper
scope and result
This paper redesigns the proof language presented to neural theorem provers. It introduces Minilang, a ten-operation language that mirrors informal proof outlines, translates existing Isabelle/Isar proofs into it, and delegates leaf obligations to an automated prover. The abstract says Minilang has âonly 10 proof operations, each with clear semantic distinctions.â A rule-based translator converts approximately 340,000 Isabelle proofs with approximately 85% success, and Minilang models improve pass@1 by up to 20/29 percentage points over Isar models (abstract, p. 1).
The main evaluation uses PISA after updating it to 2,962 available goals (Section 5.2.4, p. 20). With DeepSeek-Prover-Base v1.5, Minilang plus Sledgehammer* reaches 69.1% pass@1, 76.0% pass@4, and 79.2% pass@8; with Llemma it reaches 68.0%, 74.9%, and 78.9% (Table 2, p. 20). Pass@k is the proportion of benchmark goals with at least one verified proof among k samples (Section 5.2.8, p. 20). These denominators are 2,962 PISA goals.
Inference: VeruLaw could expose a small proof-outline DSL to an agent and compile outlines into Verus proof blocks. The paperâs soundness depends on Isabelle and Sledgehammer; a Verus DSL would require a new semantics and backend.
technique 1: minimize proof-language operations around informal reasoning
What it is. Minilang retains declarative operations for splitting goals and common informal proof moves, plus one context command. Table 1 lists HAVE, CONSIDER (case or existential), RULE, CHOOSE, SIMPLIFY, CASE_SPLIT, INDUCT, END WITH, NEXT, and INTRO (Section 3.1, p. 6). The paper says its âhigh-level design does not incorporate a tactic system, instead delegating all proof obligations to ATPsâ (Section 3, p. 5).
How to apply it. (1) Use INTRO to establish variables and hypotheses. (2) Use RULE to select a proof mode such as contradiction. (3) Use CONSIDER to split cases or bind an existential witness. (4) Use HAVE to state step-by-step intermediate propositions. (5) Use CHOOSE for an existential witness, SIMPLIFY for rewriting, and CASE_SPLIT or INDUCT for structural reasoning. (6) Close each leaf with END or advance to a sibling with NEXT, optionally naming relevant or avoided lemmas (Table 1; Section 3.3, p. 10).
The paperâs sqrt2_not_rational example uses RULE proof_by_contradiction, CONSIDER an existential representation, several HAVE facts, then closes subgoals with END (Figure 3, p. 7). The state machine is a tree: leaves are unproved goals, internal nodes carry contexts, and commands rewrite the leftmost leaf or non-leaf (Sections 3.2â3.3, pp. 6â10). The paper states: âThe execution gets stuck at one of the commands because no corresponding transition rule can be found, indicating proof failure.â It also permits commands to finish while the proof remains unfinished (Section 3.2, p. 8).
Inference: a Verus outline language could use intro, have, choose, case_split, and end-like constructs that elaborate into proof fn code and assert/assert forall steps. This is a design inference; Verus syntax and semantics are not in the paper.
technique 2: strengthen the automatic backend with hints and simplification
Sledgehammer* has three changes (Section 3.4, pp. 11â12). First, END/NEXT can annotate relevant and avoided lemmas. A translation pass extracts these from existing ATP proofs so models learn both local premise choices and global strategy. Undefined references from model hallucinations are filtered before search (Section 3.4.1, p. 11). Second, auto simplifies and decomposes goals before Sledgehammer; if it times out, clarsimp is used, and fastforce runs in parallel as another backend. Relevant/avoided lemmas are assigned simplifier roles using names and expression shapes (Section 3.4.2, pp. 11â12). Third, obtained proofs are cached by goal expression, accelerating replay of costly nondeterministic searches (Section 3.4.3, p. 12).
Evidence. Holding language fixed, upgrading from original Sledgehammer to Sledgehammer* improves all reported metrics by at least six percentage points (Section 5.3.1, p. 21). With DPSK-PB, Minilang/SH* is 69.1% pass@1 versus 59.9% Minilang/SH and 35.5% Minilang without ATP (Table 2, p. 20). Inference: a Verus backend could let the model suggest lemma names, run simplification or trigger controlled automation, filter unknown names, and cache successful proof fragments by normalized goal. Verus solver-context control must follow actual Verus constructs; the paperâs Isabelle tactics do not transfer.
technique 3: translate and normalize a large existing corpus
The translator has four stages (Section 4.2, p. 13). (1) Parse Isar into an AST. The implementation reuses Isabelleâs lexer and emits a 42-node custom AST (Section 4.2.1, p. 15). (2) Elaborate syntax sugar and normalize equivalent proof idioms, reducing the AST to 15 node kinds (Section 4.2.2, p. 15). (3) Map the normalized AST into Minilang. (4) Refine remaining tactics by replacing them with Sledgehammer* calls (Section 4.2.4, p. 17).
Normalization is checked by Isabelle because near-equivalent idioms can diverge in corner cases; the paper says, âWe therefore re-run Isabelleâs proof checker to ensure that the modified proofs remain valid, and discard any that failâ (Section 4.2.2, p. 15). Refinement repeatedly absorbs APPLY tactic END/NEXT into END/NEXT with relevant and avoided lemma hints; common auto, simp, cases, and induct map directly to SIMPLIFY, CASE_SPLIT, or INDUCT (Section 4.2.4, p. 17). More than 95% of tactics are eliminated, leaving APPLY at 6.7% of translated commands (Section 4.2.4, p. 17).
Evidence. The translator succeeds on 85.28% of approximately 340,000 proofs, producing approximately 290,000 usable proofs (Sections 4 and 5.1, pp. 2, 18). Success exceeds 70% for proofs with five or fewer subgoals and remains above 50% at 15 subgoals (Section 5.1, p. 18). Inference: VL could parse Rust/Verus proof ASTs, normalize repeated proof idioms, and reject transformations by rerunning Verus. A Verus translator must preserve ownership and mutable-state semantics; that is outside this paper.
technique 4: evaluate language design with controlled ablations
The authors fine-tune two 7B models on six corpus/backend conditions: Isar, Thor-style Isar, and Minilang, each with no ATP, Sledgehammer, or Sledgehammer* (Section 5.2.3, p. 19). All other settings are held fixed. This isolates language design from backend improvements.
Results show both effects. Minilang outperforms Isar by at least five points with the same backend; upgrading SH to SH* adds at least six points (Section 5.3.1, p. 21). With DPSK-PB at pass@1, Minilang/SH* is 69.1%, Thor-style Isar/SH* 63.9%, Minilang/SH 59.9%, and Isar/no ATP 40.2% (Table 2, p. 20). The authors caution that without ATP, Minilang falls behind Isar because its leading-subgoal discipline requires precise state tracking (Section 5.3.1, p. 21).
Inference: VL experiments should separately ablate prompt/DSL design, search backend, and proof feedback. A single end-to-end gain cannot show which component helped.
technique 5: parallel proof checking and contamination controls
The proof checker samples k attempts, sends each to Isabelle, and counts a goal as solved if any sample verifies (Section 5.2.8, p. 20). A socket-based parallel Isabelle/ML REPL runs checks across a 3-node, 36-core cluster; Sledgehammer timeouts are 30 seconds (Sections 5.2.8â5.2.9, p. 20). The authors reset local premise-goal databases before each evaluation to ensure fair comparison, while noting this underestimates real-world performance (Section 5.2.8, p. 20).
PISA is sampled from public AFP and may be contaminated. The authors remove PISA-named proofs from Llemma pretraining but cannot rule out leakage for DPSK-PB (Section 5.2.5, p. 20). Inference: VeruLaw should reset or explicitly version solver caches, pin dependencies and toolchains, and use mutated held-out tasks to test memorization.
what is proved, trusted, and measured
Theorem 1 states Minilang soundness if Isabelle simplifiers, cases, induct, and Sledgehammer* are sound (Section 3.5, p. 12). Theorem 2 gives relative completeness with respect to an ATP: an ATP exists such that any Natural Deduction theorem is provable in Minilang (Section 3.5, p. 12). These are conditional results, not claims about every implementation or model. Measured results are translation success, pass@k, command distributions, and ablation differences. The paperâs semantic theorem trusts Isabelle and the ATP; the neural model remains a proof-script generator.
Inference: for agent-written verified Rust, a DSL can reduce syntactic search burden but may hide backend incompleteness and introduce translation bugs. Verus proof validity must still be checked by Verus, and the DSLâs semantics must be reviewed against product requirements.
what VL should not redo
The paper already demonstrates minimalist proof operations, tree-state semantics, hint-guided automation, AST translation with normalization and replay checks, tactic elimination, caching, and controlled language/backend ablations. Inference: VL should reuse these patterns and investigate Verus-specific outline constructs, ownership-aware normalization, and requirement-level benchmarks.
techniques for the catalog
- minimalist proof DSL â represent high-level proof outlines with a small set of semantically distinct operations
- tree-state proof execution â model subgoals and inherited contexts as a transition system over proof trees
- hint-guided automation â provide relevant and avoided lemma hints, simplify goals, filter unknown references, and cache proofs
- checked AST translation â parse, elaborate, normalize, translate, and replay-check transformed proof scripts
- backend ablation â isolate proof-language gains from automation-backend gains with matched training conditions
- parallel pass@k checking â sample independent proofs, verify in parallel, and count a goal solved when one passes Checked 2026-10-14 against the paper by a Codex agent: audit record xu2025minilang; compared the full paper and study, corrected metadata where needed, and did not rerun the experiments
Last edited: