D-69 puts the accounting laws in one place: bookspec's Lean, namespace `Bookspec`. L-F1 landed there every file of `verify/lean/Wanderbooks/`. Before deleting the copies, each was checked: comments stripped, namespace normalised, blank lines dropped, and diffed against its bookspec peer -- all ten are identical (Basic, Entry, Statements, Closing, Ledger, Apportion, Parties, Prorate, Deductible, Documents). There is nothing wanderbooks-only left to keep. So `verify/lean/lakefile.toml` now `[[require]]`s bookspec as a git dependency at 77e046334eea29e082b53bbe907017d9ffef5a0a -- the same rev `crates/ledger-core/Cargo.toml` pins the Rust checker to -- with `subDir = "lean"`. The generated `lake-manifest.json` is committed, because Lake builds from it and it must not float. `Wanderbooks.lean` is now a thin local target that imports `Bookspec`: `lake build` builds and checks the whole law set, and the file says where a law is edited and how wanderbooks picks it up (move the pin). The duplicated modules and the `Wanderbooks/` directory are gone. `Audit.lean` imports `Bookspec` and audits all 151 theorems (the 118 headline laws plus the 33 named laws in `Laws.lean` that cite them) -- the whole set bookspec itself audits. `just prove` still checks standard axioms only; its summary now says "theorems", since the set is more than headline ones. The new `tests/bookspec/pin.rs` reads the rev out of the lakefile, the manifest, and both crates' Cargo.toml, and fails unless all four name the same repository at the same commit, and bookspec's `lean/` package. Without it the Lean laws and the Rust checker could silently be different spec versions. Verified: `lake build` from a clean `.lake` (fetches and builds in 7 s); `just prove` 871 s (Kani 53 harnesses, then 151 theorems, standard axioms only); `cargo test -p ledger-core --test bookspec pin`; `cargo fmt --check`; `cargo clippy -p ledger-core --tests -D warnings`. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
17 lines
482 B
JSON
17 lines
482 B
JSON
{"version": "1.2.0",
|
|
"packagesDir": ".lake/packages",
|
|
"packages":
|
|
[{"url": "https://git.swaits.com/swaits/bookspec",
|
|
"type": "git",
|
|
"subDir": "lean",
|
|
"scope": "",
|
|
"rev": "77e046334eea29e082b53bbe907017d9ffef5a0a",
|
|
"name": "bookspec",
|
|
"manifestFile": "lake-manifest.json",
|
|
"inputRev": "77e046334eea29e082b53bbe907017d9ffef5a0a",
|
|
"inherited": false,
|
|
"configFile": "lakefile.toml"}],
|
|
"name": "wanderbooks",
|
|
"lakeDir": ".lake",
|
|
"fixedToolchain": false}
|