From 96a4c4a3b4133e80c60e96386877056b18fb8e63 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Sun, 8 Nov 2026 06:13:26 -0700 Subject: [PATCH] docs: the deductible share's percent may carry decimals; measured times The kernel function's doc now says a percent is a deductible percentage in 0..=100 and that an override may carry decimals (33.33 is exact), the fact the tax API allows. docs/verification.md's harness table records the new harness at 992 s alone and 1,207 s inside the 2026-11-08 prove-slow run, both under the 1,800 s cap. Co-Authored-By: DeepSeek V4.1 Flash --- crates/ledger-core/src/kernel.rs | 2 ++ docs/verification.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ledger-core/src/kernel.rs b/crates/ledger-core/src/kernel.rs index 4456fcc2..4516aa59 100644 --- a/crates/ledger-core/src/kernel.rs +++ b/crates/ledger-core/src/kernel.rs @@ -429,6 +429,8 @@ pub fn line_amount(quantity: T, unit_price: T) -> Option { /// A tax category's deductible amount from its accounts' `(book, /// percent)` pairs: every account's exact share `book × percent ÷ 100` /// added first, then the one rounding to the cent, half away from zero. +/// A percent is the account's deductible percentage, 0 to 100; an +/// override may carry decimals (33.33 is 33.33%, exactly). /// /// ```text /// GOAL: a category's deductible amount is its exact shares added and diff --git a/docs/verification.md b/docs/verification.md index 2681a6dd..96a0782d 100644 --- a/docs/verification.md +++ b/docs/verification.md @@ -925,7 +925,7 @@ each harness's whole run, its compile of about 50 s included): | `bounds_check_matches_definition` | 34 | prove | (not in the 2026-10-22 run; P4b S1, 2026-10-24) | | `bounds_kept_is_the_definition_on_books_in_bounds` | 34 | prove | (as above) | | `settle_is_exact` | 36 | prove | 1 | -| `deductible_amount_rounds_once` | 39 | prove-slow | 992 (2026-11-08) | +| `deductible_amount_rounds_once` | 39 | prove-slow | 992 alone; 1,207 in the 2026-11-08 prove-slow | | `deductible_amount_refuses_overflow` | 39 | prove | 0 | | `kani_symbolic_copy_canary` | (the checker: "Trusting the checker") | prove | 3 |