Repository navigation
First 0.3.0
[0.3.0] — 2026-12-01
Highlights
0.3.0 closes the tactic gap with Lean 4. The proof system now has 68 built-in tactics — up from 30 in v0.2.0 — covering all of Lean 4's P1, P2, and P3 tactic categories. Every tactic is available in First source files today; interactive search tactics (exact?, apply?, simp?) are deferred to a future release.
Proof system — new tactics (38 additions)
Hypothesis management
clear h— remove a hypothesis from the proof contextrevert x— move a hypothesis or variable back into the goal (reverse ofintro)generalize [h :] e = x— replace an expression with a fresh variable in the goalsubst h/subst_vars— substitute a variable equality from a hypothesis everywhererename_i x— rename an inaccessible (auto-generated) hypothesisreplace h : T— replace a hypothesis with a new type
Rewriting control
rw [...] at h/rw [...] at *— rewrite inside a hypothesis instead of the goalsimp only [h1, h2]—simprestricted to an explicit lemma listsimp at h/simp only [...] at h/simp at *—simptargeting specific hypothesessimp_all—simpthe goal and all hypotheses simultaneouslyunfold f— unfold a definition in the goaldelta f— delta reduction (explicit unfolding)change T— change the goal to a definitionally equal typeconv => { ... }— focused rewriting inside a subtermreduce— normalize the goal by beta/delta/iota reduction
Pattern matching
rcases h with (a, b)— deep nested pattern matching on a hypothesisrintro (a, b)—introwith immediate destructuring
Goal management
all_goals { t }— apply a tactic to every open goalany_goals { t }— apply a tactic to any goal that accepts itcase name => { t }— select a named subgoaldone— assert all goals are closed; error if any remainskip— no-op tacticwith_reducible { t }— run tactics under reducible transparency
Numeric and cast tactics
zify— convert Nat goals to Intpush_cast— push coercions inwardpull_cast— pull coercions outwardmod_cast— simplify goals with modular castslinear_combination e— close a goal with an explicit linear combination certificatefin_cases x— enumerate all cases of aFin nvariableinterval_cases x— case-split overa ≤ x ≤ bnative_decide—decidevia native compiled codenorm_fin— normalizeFin narithmeticbitblast— bit-vector decision procedure
Typeclass and meta
infer_instance— close a typeclass/instance goal by synthesistrace "msg"— emit a debug message during proof checking; leaves goal open
push_neg upgraded
Full De Morgan laws, iterated to fixpoint:
¬(A∧B) → ¬A∨¬B, ¬(A∨B) → ¬A∧¬B, ¬(P→Q) → P∧¬Q, ¬¬P → P
Developer experience
- All 38 new tactics available in user-defined
tacticdeclarations in First source files - Full pretty-printer support for all new tactics (LSP hover, error messages)
- Parser supports
simp only,simp at,rw at,rcases with (...),case name =>,conv =>syntax