Appendix G: Machine Validation Record
This appendix records what machines have checked in this book, which
text each check read, and what it found. It is not part of the
manuscript. It is compiled from the records kept in the book’s
repository (formal/, ledger/ and
.build/verify/), and it states what has not been checked as
plainly as what has. Appendix F gives the epistemic status the author
assigns to each formal claim; this appendix gives the mechanical
evidence that bears on some of them.
Status as of the v1.31 web edition, 2 December 2026.
G.1 The checks at a glance
| Check | Tool | Text checked | Run | Result |
|---|---|---|---|---|
| Formal proof | Lean 4.32.2 with Mathlib (rev 905b958) | the claims marked Proved, and the V₄ claims of §8.4 and §8.10b | 8 November 2026, v1.25 | 18 items: 14 proved, 1 definition formalized, 3 not formalized; 0
sorry; 88 declarations audited, all on Lean’s standard
axioms |
| Symbolic algebra | MATLAB R2026a, Symbolic Math Toolbox | closed-form algebra, derivations and worked-example arithmetic of v1.24 | 8 November 2026 | 525 checks: 455 PASS, 70 FAIL (and 33 notes); 68 of the FAILs were errors in the book, corrected in v1.25 |
| Claim ledger | pe_lint (PE-CLS-1.0) |
the 247 claims of ledger/claims/ |
1 December 2026 | conforming at level L2; at L3, 0 new errors and the 4 acknowledged ones of G.4 |
| Formulas of this edition | KaTeX 0.16.11 | every formula on every page | each build | 2,055 formulas parsed, 0 failures |
| Links and cross-references | site_check.py |
every page, link, image and in-text reference | each build | 51 pages, 166 internal links, 921 cross-references; 0 defects |
| Reference implementation | pytest; Lean | the V₄ structure and the semantic gates in erisml-lib
(erisml.ethics.hohfeld) |
tests on each push to erisml-lib; Lean separately | tests pass in CI; formal/HohfeldV4.lean is
machine-checked, outside CI |
G.2 Formal proof in Lean
The Lean project in formal/lean/ states each claim in
Lean 4 and proves it from Mathlib. A proof that Lean accepts with no
sorry (an unproved placeholder) and no axiom beyond the
three standard ones (propext,
Classical.choice, Quot.sound) is a
machine-checked proof of the statement as formalized. The build of 8
November 2026 completed 8,660 jobs with no errors. The axiom audit
printed all 88 declarations, and every one rests on a subset of those
three axioms.
The statements are about the tensor algebra at a single point, which is all the book’s proofs use: the tangent space is \mathbb{R}^n and a change of coordinates is an invertible matrix.
| Book item | Lean | Status |
|---|---|---|
| Prop. 6.1, Invariance of Satisfaction | Tensor.satisfaction_invariant |
proved |
| Prop. 6.2, Decomposition of Disagreement | Tensor.disagreement_decomposition and four lemmas |
proved |
| Prop. 6.3, Metric Dependence of the Gradient | Tensor.gradient_unique,
gradients_differ_iff |
proved for a symmetric invertible metric; the sufficient condition in the v1.24 proof was false, and a counterexample is machine-checked |
| Prop. 10.3, Geodesic Deviation Equation | none | not formalized: Mathlib has no Riemann curvature tensor or Jacobi fields |
| Prop. 11.2, Consistency from Metric Compatibility | Search.geodesic_heuristic_consistent |
proved, over any metric space |
| Prop. 11.3, Satisfaction as Directional Derivative | Tensor.satisfaction_directional_derivative |
proved; the satisfaction scalar is the negative of the directional derivative, and the step needs a symmetric metric |
| Prop. 11.4, A* Optimality on Stratified Spaces | Search.consistent_implies_admissible (one supporting
lemma) |
not formalized: A* and its optimality proof are not in Mathlib |
| Prop. 15.1, Inevitability of Residue | Tensor.residue_mem_ker and three lemmas |
proved in the corrected form; the v1.24 statement was false, with a counterexample checked |
| Prop. 15.3, Non-Commutativity of Contraction | Tensor.C₁_le_C₂ and three lemmas |
proved for positive weights; the v1.24 “if and only if” was false without a sign condition |
| Lemma A.2, Aut(C₄) ≅ D₄ | Hohfeld.autC4MulEquivD4 and four lemmas |
proved |
| Lemma A.3, compact connected 1-D Lie group ≅ U(1) | none | not formalized: Mathlib has no classification of Lie groups |
| Prop. 8.3, V₄ structure of Hohfeldian transitions | Hohfeld.V4MulEquivKlein and nine lemmas |
proved |
| Thm. 12.2, restated for V₄ | Hohfeld.gauge_group_V4 |
proved |
| Prop. A.2, restated for V₄ | Hohfeld.total_invariant and two lemmas |
proved |
| Lemma 9.1, restated for V₄ | Hohfeld.invariant_component_constant,
degrees_of_freedom_eliminated |
proved |
| Def. 8.14, Executable stratification | Strata.ExecStrat with two consistency lemmas |
definition formalized |
| Thm. 8.6, Containment | Strata.containment |
proved, for gates of any kind |
| Thm. 8.7, Absorption | Strata.absorption |
proved, for gates of any kind |
Formalizing the statements found four places where the v1.24 text was
wrong: the sufficient condition in the proof of Proposition 6.3, the
statement of Proposition 15.1, the “if and only if” of Proposition 15.3,
and the sign in Proposition 11.3. Each was corrected in v1.25, and the
corrected form is the one proved. The full table, the findings and the
rebuild procedure are in formal/README.md. The build record
is formal/lean/RESULTS-2026-11-08.txt.
G.3 Symbolic algebra in MATLAB
The checks in formal/matlab/ recompute the book’s
closed-form algebra, derivations and worked-example arithmetic with the
MATLAB Symbolic Math Toolbox. Worked-example inputs are exact rationals,
and a rounded value in the book passes if it lies within half a unit of
its last printed digit. Identities are checked on generic symbolic
tensors, metrics or functions. A FAIL is a finding about the book; no
check was changed to make it pass.
The run of 8 November 2026 read the v1.24 text: 525 checks, 455 PASS
and 70 FAIL, with 33 notes that are observations rather than checks.
Every FAIL was then read in context. Sixty-eight were errors in the book
and were corrected in v1.25. Two were errors in the check itself.
Appendix D.1 and D.5 were rebuilt from their stated rules rather than
patched. The correction made for each FAIL is recorded, one entry per
FAIL, in formal/matlab/dispositions/.
The MATLAB checks have not been rerun on v1.25 or any later edition. Editions v1.26 to v1.31 changed no statement marked Proved, as each edition’s change list records.
G.4 The claim ledger
Each formal claim in the book has a record in
ledger/claims/, kept to the claim-ledger specification
PE-CLS-1.0. A record gives the claim’s class, its evidence, the claims
it depends on, and its history. The 247 records are classed as follows:
201 exploratory, 24 definitions, 17 proved, 4 refuted and 1 withdrawn.
The class records the kind of support a claim has, not how strongly it
is believed: proved requires a complete written proof and an
independent line-by-line verification.
The linter pe_lint checks that the ledger is coherent:
every dependency resolves, the dependency graph has no cycles, and no
claim is classed above the weakest claim it relies on. On 1 December
2026 the ledger conformed at level L2. At level L3 it reported no new
error and the four acknowledged in
ledger/CONFORMANCE-BASELINE.json. Those four are claims
marked Proved that rely on exploratory claims: Proposition 6.2 (on
Definition 6.4), Proposition 11.3 (on Definition 6.1 and Proposition
11.1) and Proposition 11.4 (on Definition 11.2). For each, the author
must decide whether the proof uses the exploratory construct or only
mentions it.
G.5 This web edition
The pages are built from the manuscript by
.build/build_ethics.py. Two checks run on the built
pages.
Formulas. Each formula is rendered in the reader’s
browser by KaTeX, which shows a formula it cannot parse as red error
text and raises no error at build time.
.build/verify/katex_all.py parses every formula with the
same version of KaTeX the site uses. For this edition it parsed 2,055
formulas with no failure. Until this rebuild, three formulas in Chapters
4 and 5 failed: pandoc writes the thin space of Word’s equation editor
as \mkern6mu, which KaTeX does not implement, and the
build now rewrites it as the equivalent \mkern6mu.
Links and references.
.build/verify/site_check.py checks that every internal link
and image resolves, that every page is listed on the contents page, and
that every in-text reference to a chapter, part, appendix, section,
figure or table points at something that exists. For this edition it
found 51 pages, 166 internal links and 13 images, all resolving, every
page listed, and 921 cross-references, none dangling.
G.6 What has not been machine-checked
- Three of the claims marked Proved have no Lean proof: Propositions 10.3 and 11.4 and Lemma A.3 (G.2). Their status rests on the written proofs.
- The 201 exploratory claims are not machine-checked, and most of them are not the kind of claim a machine could check: they are modeling claims and empirical conjectures.
- The empirical results of Chapter 17 are evidence of a different kind. They are reported with their sources and limitations in that chapter, and nothing here re-runs them.
- The MATLAB checks read v1.24 and have not been rerun since (G.3).
- A content update for §8.8 is drafted in
source/updates/sec8_8_crossing_maps.texfor the conversion to LaTeX. Its two new propositions (8.8, transport into an absorbing stratum, and 8.9, holonomy across strata) have written proofs, but no independent verification yet, and they are classed exploratory. They are not in this edition’s text.
G.7 How to rerun the checks
From the repository root of
ahb-sjsu/geometric-ethics:
- Lean: copy
formal/lean/to a machine with Mathlib v4.32.2 and runlake exe cache get && lake build, thenlake env lean Axioms.leanfor the axiom audit (formal/README.mdhas the details). - MATLAB: run every
formal/matlab/*.mheadless,matlab -batch "run_all". - Ledger:
python philosophy-engineering/tools/pe_lint.py --ledger . --level L2, and--level L3 --baseline ledger/CONFORMANCE-BASELINE.json. - Web edition:
python .build/build_ethics.py, thenpython .build/verify/katex_all.py(withkatex@0.16.11installed for node) andpython .build/verify/site_check.py.