merge: verify/lean requires bookspec's Lean; the laws live once (L-F2; branch t3/lean-laws-bookspec-dependency, 4d9c73de)
check / check (push) Canceled after 0s
portable-macos / portable (macos-latest) (push) Canceled after 0s
portable-windows / portable (windows-latest) (push) Canceled after 0s
two-user / two-user (push) Canceled after 0s

The ten Lean files were code-identical to bookspec's (checked per file);
wanderbooks keeps a thin Wanderbooks.lean importing Bookspec and audits
the same 151 theorems. The Lean pin moves to 62c0bf26 at the merge,
the rev the Rust checker was pinned to after S-B (the new pin test
caught the difference), and lake-manifest.json is regenerated. Conflicts
with K-U0 and S-D0 resolved: the proofs/ path and the bookspec Lean path
both kept, L-F2's Deductible path fix applied to the claims file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-11-08 11:37:48 -07:00
commit 05702b5a34
25 files changed
+265 -3837

No files matched your search

+11 -4
View File
@@ -111,10 +111,17 @@ So the bar, for every agent, every change:
2. **Every kernel function gets a Kani harness** in `src/proofs/`, on
fixed arrays (no symbolic-length `Vec` growth, no `copy_from_slice`),
with a `kani::cover!` showing the interesting case is reached.
3. **Every new law gets a Lean theorem** in `verify/lean`. Laws about
the books over time are theorems about `Reachable` states. A new
`Ledger` command is a new `Step` constructor, with its preservation
proof. No `sorry`, ever; `Audit.lean` lists every headline theorem.
3. **Every new law gets a Lean theorem**, and the laws live once: in
bookspec's Lean (`bookspec/lean/Bookspec/`, namespace `Bookspec`, D-69).
The theorem is written there, in bookspec's own repository, not in
`verify/lean` — wanderbooks requires that package and holds no copy of
it. Laws about the books over time are theorems about `Reachable`
states. A new `Ledger` command is a new `Step` constructor, with its
preservation proof. No `sorry`, ever; `Audit.lean` lists every theorem.
After landing a law in bookspec, move wanderbooks' pin to that rev in
`verify/lean/lakefile.toml` and `lake-manifest.json` **and** in the
crates' `Cargo.toml` (the checker and the Lean must be the same spec
version; `tests/bookspec/pin.rs` fails when they drift).
4. **Every kernel instantiation gets a bridge property** in
`tests/kernel_bridge/`, so what Kani proved on `i64` holds on
`Decimal`.