From 0ef1ef2c22939fa424333516bed4eec98a0f0abd Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 9 Nov 2026 15:48:40 -0700 Subject: [PATCH] build: pin bookspec at 79cb439, the payroll and control laws K-U7 moved payroll's net pay into the kernel and K-U8 moved the control, aging and reconciliation identities there. Their laws were written once, in bookspec's Lean: law 45 (net pay is gross less every deduction, and a payroll plan balances at any number of employees) and law 46 (the control difference, the aging total and the reconciliation total). The checker and the Lean package move to that rev together, so the pin test holds. Proved at this pin: the Kani fast set, 97 harnesses, none failed and every cover reached; Lean, 212 theorems on the standard axioms only. The Kani set was verified in two runs (93, then the 4 the whole-set time cap cut off on a loaded machine), and the Lean half in a shell of its own. Co-Authored-By: Claude --- Cargo.lock | 4 ++-- crates/ledger-core/Cargo.toml | 4 ++-- crates/ledger-package/Cargo.toml | 2 +- verify/lean/lake-manifest.json | 4 ++-- verify/lean/lakefile.toml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 74df481e..21b0ebb5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -788,7 +788,7 @@ dependencies = [ [[package]] name = "bookspec-checker" version = "0.1.0" -source = "git+https://git.swaits.com/swaits/bookspec?rev=ed6e379adf115fc7151170cd6afad9ba75bb79e3#ed6e379adf115fc7151170cd6afad9ba75bb79e3" +source = "git+https://git.swaits.com/swaits/bookspec?rev=79cb439a3798053f71bae2cf8d4b9e882958365c#79cb439a3798053f71bae2cf8d4b9e882958365c" dependencies = [ "chrono", "include_dir", @@ -801,7 +801,7 @@ dependencies = [ [[package]] name = "bookspec-runner" version = "0.1.0" -source = "git+https://git.swaits.com/swaits/bookspec?rev=ed6e379adf115fc7151170cd6afad9ba75bb79e3#ed6e379adf115fc7151170cd6afad9ba75bb79e3" +source = "git+https://git.swaits.com/swaits/bookspec?rev=79cb439a3798053f71bae2cf8d4b9e882958365c#79cb439a3798053f71bae2cf8d4b9e882958365c" dependencies = [ "bookspec-checker", "serde_json", diff --git a/crates/ledger-core/Cargo.toml b/crates/ledger-core/Cargo.toml index 1e0b0bf6..c1e86930 100644 --- a/crates/ledger-core/Cargo.toml +++ b/crates/ledger-core/Cargo.toml @@ -33,8 +33,8 @@ num-rational = "0.4" toml = "1" # The specification lives in its own repository (P13 step 6, D-34, D-65), # pinned to a commit. -bookspec-checker = { git = "https://git.swaits.com/swaits/bookspec", rev = "ed6e379adf115fc7151170cd6afad9ba75bb79e3" } -bookspec-runner = { git = "https://git.swaits.com/swaits/bookspec", rev = "ed6e379adf115fc7151170cd6afad9ba75bb79e3" } +bookspec-checker = { git = "https://git.swaits.com/swaits/bookspec", rev = "79cb439a3798053f71bae2cf8d4b9e882958365c" } +bookspec-runner = { git = "https://git.swaits.com/swaits/bookspec", rev = "79cb439a3798053f71bae2cf8d4b9e882958365c" } ledger-package = { path = "../ledger-package" } ledger-import = { path = "../ledger-import" } ledger-store = { path = "../ledger-store" } diff --git a/crates/ledger-package/Cargo.toml b/crates/ledger-package/Cargo.toml index 60962157..c2656b77 100644 --- a/crates/ledger-package/Cargo.toml +++ b/crates/ledger-package/Cargo.toml @@ -21,7 +21,7 @@ zip = "9.0.1" workspace = true [dev-dependencies] -bookspec-checker = { git = "https://git.swaits.com/swaits/bookspec", rev = "ed6e379adf115fc7151170cd6afad9ba75bb79e3" } +bookspec-checker = { git = "https://git.swaits.com/swaits/bookspec", rev = "79cb439a3798053f71bae2cf8d4b9e882958365c" } proptest = "1" tempfile = "3" toml = "1" diff --git a/verify/lean/lake-manifest.json b/verify/lean/lake-manifest.json index 020977cf..d3d715c3 100644 --- a/verify/lean/lake-manifest.json +++ b/verify/lean/lake-manifest.json @@ -5,10 +5,10 @@ "type": "git", "subDir": "lean", "scope": "", - "rev": "ed6e379adf115fc7151170cd6afad9ba75bb79e3", + "rev": "79cb439a3798053f71bae2cf8d4b9e882958365c", "name": "bookspec", "manifestFile": "lake-manifest.json", - "inputRev": "ed6e379adf115fc7151170cd6afad9ba75bb79e3", + "inputRev": "79cb439a3798053f71bae2cf8d4b9e882958365c", "inherited": false, "configFile": "lakefile.toml"}], "name": "wanderbooks", diff --git a/verify/lean/lakefile.toml b/verify/lean/lakefile.toml index 8a88980b..85472df6 100644 --- a/verify/lean/lakefile.toml +++ b/verify/lean/lakefile.toml @@ -9,7 +9,7 @@ packagesDir = ".lake/packages" [[require]] name = "bookspec" git = "https://git.swaits.com/swaits/bookspec" -rev = "ed6e379adf115fc7151170cd6afad9ba75bb79e3" +rev = "79cb439a3798053f71bae2cf8d4b9e882958365c" subDir = "lean" [[lean_lib]]