⚜ PRINCIPIA ORTHOGONA · Book XIX · Ch 2 ← Ch 1 · Book XIX contents · Ch 3 →
Book XIX · Chapter 2 · 2026-09-27 · Census
MATHEMATICS · FORMAL VERIFICATION

The Idioms AXLE Reinvented

Which verbs a proof opens with, here and in the textbook
Warrantbook19/ch02-verify.py, 0 FAIL
SourceAvigad & Massot, Mathematics in Lean, v4.19.0 (214 pp)
Claima census; no new mathematics
A tactic is the verb of a Lean proof. Count which verbs open each line, here and in the book Lean's own authors wrote for newcomers, and the two vocabularies overlap less than you might expect. The corpus has its own dialect, and most of it developed without anyone reading the textbook.
1 · The census

2,482 lines against 1,329

The script reads the 110 tracked .lean files in this repository, with comments stripped. It also reads the code in Avigad & Massot, Mathematics in Lean, v4.19.0 (214 pp). Then it counts every line that opens with a tactic name. COMPUTED

tacticcorpusshareMILshare
have61224.7%1259.4%
rw35514.3%14510.9%
simp25410.2%644.8%
unfold1355.4%00.0%
nlinarith652.6%00.0%
omega522.1%20.2%
refine763.1%20.2%
apply210.8%876.5%
rfl10.0%624.7%
use10.0%584.4%
ext110.4%413.1%
sorry50.2%26820.2%

Three rows stand out.

2 · The gaps

What each side never says

MIL opens at least five lines with contrapose and convert; the corpus never does. The corpus opens at least five lines with funext, nlinarith, push_cast, subst and unfold; MIL never does. COMPUTED

Decision procedures (norm_num, linarith, nlinarith, omega, decide, positivity, simp) open 21.3% of the corpus's lines and 7.4% of MIL's. A decision procedure answers a question without showing its reasoning. That is legitimate, and in Lean the answer is still kernel-checked. But it means the corpus's proofs carry the reader less far than MIL's do. COMPUTED

The idioms, reinvented The corpus's unfold f; simp; nlinarith is a local reinvention of MIL's simp [f]; nlinarith, and MIL Ch. 2 teaches that pattern. The long have ladders do by hand what MIL's calc blocks (Ch. 2) lay out as a readable chain. The corpus uses calc only 20 times. MODEL
3 · The placeholders

sorry: 268 in the textbook, 5 here

MIL opens 268 lines with sorry, 20.2% of its code. These are the reader's exercises; each sorry is a blank for the reader to fill in. The corpus's five sit in four files:

The same word does different jobs in the two sources. Chapter 1 covers what sorry admits. Chapter 3 covers which layer sees it. COMPUTED

What this chapter does not showA difference in shares is not a defect. MIL is a teaching text and this corpus is research code. The census counts verbs; it does not judge proofs. OPEN A proof-by-proof reading against MIL's chapter structure remains to be done.
  1. Avigad & Massot, Mathematics in Lean, v4.19.0 (214 pp). Held; hash in docs/floor-texts.tsv.