Skip to content

First 0.3.0

Choose a tag to compare

@akkeshavan akkeshavan released this 01 Dec 02:00
· 18 commits to main since this release

[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 context
  • revert x — move a hypothesis or variable back into the goal (reverse of intro)
  • generalize [h :] e = x — replace an expression with a fresh variable in the goal
  • subst h / subst_vars — substitute a variable equality from a hypothesis everywhere
  • rename_i x — rename an inaccessible (auto-generated) hypothesis
  • replace h : T — replace a hypothesis with a new type

Rewriting control

  • rw [...] at h / rw [...] at * — rewrite inside a hypothesis instead of the goal
  • simp only [h1, h2] — simp restricted to an explicit lemma list
  • simp at h / simp only [...] at h / simp at * — simp targeting specific hypotheses
  • simp_all — simp the goal and all hypotheses simultaneously
  • unfold f — unfold a definition in the goal
  • delta f — delta reduction (explicit unfolding)
  • change T — change the goal to a definitionally equal type
  • conv => { ... } — focused rewriting inside a subterm
  • reduce — normalize the goal by beta/delta/iota reduction

Pattern matching

  • rcases h with (a, b) — deep nested pattern matching on a hypothesis
  • rintro (a, b) — intro with immediate destructuring

Goal management

  • all_goals { t } — apply a tactic to every open goal
  • any_goals { t } — apply a tactic to any goal that accepts it
  • case name => { t } — select a named subgoal
  • done — assert all goals are closed; error if any remain
  • skip — no-op tactic
  • with_reducible { t } — run tactics under reducible transparency

Numeric and cast tactics

  • zify — convert Nat goals to Int
  • push_cast — push coercions inward
  • pull_cast — pull coercions outward
  • mod_cast — simplify goals with modular casts
  • linear_combination e — close a goal with an explicit linear combination certificate
  • fin_cases x — enumerate all cases of a Fin n variable
  • interval_cases x — case-split over a ≤ x ≤ b
  • native_decide — decide via native compiled code
  • norm_fin — normalize Fin n arithmetic
  • bitblast — bit-vector decision procedure

Typeclass and meta

  • infer_instance — close a typeclass/instance goal by synthesis
  • trace "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 tactic declarations 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