docs: law 39 names its Lean theorems
Law 39 said no Lean theorem was needed because the Books model has no tax categories. That reasoning was wrong: the law is pure kernel arithmetic, like Prorate's roundUnit laws, and needs no Books model. verify/lean/Wanderbooks/Deductible.lean now proves it at any size. verification.md law 39 lists the Lean theorems in the usual format and states the split plainly: Lean proves the law on integers over a common denominator (one rounding, Prorate.roundUnit on the magnitude, signed after); Kani proves the code on i64; the bridge and exact-reference properties carry it to Decimal; overflow stays outside the model. rules.md B-32's Checked line and plan/STATUS.md name the Lean file. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2d345d02bc
commit
aa1331c8bd
3 files changed
+37
-11
No files matched your search
+4
-1
@@ -2272,7 +2272,10 @@ their first `settings.set` naming the key, B-27); `ledger-mcp` `books.add_accoun
|
||||
`tests/tax.rs` (the rounding: `a_category_rounds_its_deductible_amount_once_not_per_account`,
|
||||
`a_category_rounds_once_across_different_percents`); Kani
|
||||
`deductible_amount_rounds_once`, `deductible_amount_refuses_overflow`;
|
||||
bridge `deductible_amount_agrees`; `ledger-store` `tests/store.rs`
|
||||
bridge `deductible_amount_agrees`; Lean `verify/lean/Wanderbooks/Deductible.lean`
|
||||
(`Deductible.near`, `tie_away_pos`, `tie_away_neg`, `sign`, `neg`, `of_sum`,
|
||||
`per_account_differs`, `scale_books`, `scale_percents`: the one rounding, at any
|
||||
number of accounts and any sizes); `ledger-store` `tests/store.rs`
|
||||
(`prop_tax_policy_refuses_exactly`, `a_journaled_clear_replays_under_refuse`);
|
||||
`ledger-cli` `tests/spec_tax_policy.rs`; `ledger-gui` `tests/view_model.rs`
|
||||
(`needs_attention_flags_every_uncategorized_pl_account_defect_8`);
|
||||
|
||||
Reference in new issue
Block a user