docs: the Lean laws, and their paths, are bookspec's
The laws are proved once in bookspec (D-69), so the documents that said "put the new theorem in `verify/lean`" or cited `verify/lean/Wanderbooks/<File>.lean` now say otherwise: - AGENTS.md's formal-methods bar: a new law is written in bookspec's `lean/Bookspec/`; wanderbooks requires it and moves its pin (the lakefile, the manifest, and the crates' Cargo.toml together; the pin test fails if they drift). `Audit.lean` lists every theorem. - docs/verification.md: the model and every cited Lean file are `bookspec/lean/Bookspec/<File>.lean`; "Running it" says the dependency is fetched and that all 151 theorems are audited. - docs/testing.md and docs/spec/rules.md: the same paths, and the apportion row records where its law moved. - README's repo map and the two test comments that named the Lean peer. No accounting behavior changes; only where the proofs and their names live. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
e431791bbc
commit
4d9c73deef
7 files changed
+34
-22
No files matched your search
@@ -111,10 +111,17 @@ So the bar, for every agent, every change:
|
||||
2. **Every kernel function gets a Kani harness** in `src/proofs.rs`, 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.rs`, so what Kani proved on `i64` holds on
|
||||
`Decimal`.
|
||||
|
||||
Reference in new issue
Block a user