docs(proofs): the kernel sweep's notes folded into verification.md
Fold the six proof notes of plan P14's kernel sweep into the one place the proofs are described. verification.md gains: - the harness table's thirty-four new rows, each with its note's law number and measured time (all run in `prove`; none is in `kani_slow`); - four new law sections in the existing house style: law 40 rounding to a step (K-U2), law 41 FX booking at the transaction-date rate (K-U1), law 42 shares by weights (K-U3), and law 43 equal monthly parts (K-U5); - law 4's collection-total harnesses (K-U4), law 23's Direction::of and law 27's part_weight harnesses (the entries note), with their bridges and the Lean theorems each cites; - the sweep's Kani bounds (fixed steps, rates, month counts, weights totals, the `unwind(4)` and MAX_CORRECTION_STEPS bounds) and the symbolic-divisor note that carries them to Lean and the bridge; - "What the proofs found" and "What is and isn't proved": K-U1's double rounding and D-75 precondition with its open 96-bit edge, K-U4's checked_add dust at Decimal::MAX, K-U3's quotient-crossing-a-step and non-terminating correction loop, the pinned tie ranking, the preserved printed scale, and K-U10's MAX and scale-28 edges, each with the test that pins it; - the overview table's scope, the sweep's bridge reference, and the harness/audit counts (97 harnesses, 87 in `prove`; 188 Lean theorems). Each unit note now opens with the section it was folded into; the notes stay as the units' records. No code changed. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
d59eca0c1a
commit
0e049d9188
7 files changed
+384
-22
No files matched your search
@@ -1,5 +1,8 @@
|
||||
# Entries: the party direction and a part's weight
|
||||
|
||||
_Folded into `docs/verification.md`, sections "Parties" (law 23) and
|
||||
"Proration by days, catching up, truing up" (law 27)._
|
||||
|
||||
Status: landed 2026-11-08 with the traceability gate's review fixes. Two
|
||||
kernel functions that had no proof of their own now have one; both were on
|
||||
the exception list before.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# K-U1: FX conversion, `fx_booked`
|
||||
|
||||
_Folded into `docs/verification.md`, section "A foreign amount booked at
|
||||
the transaction-date rate (BS-ledger-1, D-75)"._
|
||||
|
||||
Status: landed 2026-11-08; review fixes and D-75 the same day. The kernel sweep's U1
|
||||
(`plan/kernel-sweep-audit.md` section 3): the one foreign-currency
|
||||
conversion that books money (`Ledger::add_line_fx`) moves into the
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# K-U2: one rounding primitive, `round_step`
|
||||
|
||||
_Folded into `docs/verification.md`, section "Rounding to a step
|
||||
(BS-ledger-1, BS-entry-3)"._
|
||||
|
||||
Status: landed 2026-11-08. The kernel sweep's U2
|
||||
(`plan/kernel-sweep-audit.md` section 3): every money `round_dp*`/`rescale`
|
||||
in `ledger-core` goes through one kernel primitive, the law is proved once
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# K-U3: proportional shares and weighted splits
|
||||
|
||||
_Folded into `docs/verification.md`, section "Shares by weights
|
||||
(BS-partner-1, BS-ledger-1)"._
|
||||
|
||||
Status: landed 2026-11-09. The kernel sweep's U3
|
||||
(`plan/kernel-sweep-audit.md` section 3): the six local copies of
|
||||
"share = whole × weight ÷ total, round, hand out the leftover" call one
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# K-U4: collection totals (`kernel/total.rs`)
|
||||
|
||||
_Folded into `docs/verification.md`, section "Entries" (law 4), the
|
||||
sweep's bounds, and "What the proofs found"._
|
||||
|
||||
Kernel sweep unit U4 (`plan/kernel-sweep-audit.md` sections 2 and 3). The
|
||||
authority is BS-entry-3 (amounts are exact; rounding only on returns) and
|
||||
BS-entry-4 (no input may reach a panic), bookspec `BS-entry-3` and `BS-entry-4`.
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# K-U5: equal monthly parts (`kernel/schedule.rs`) and the versioned rounding rule
|
||||
|
||||
_Folded into `docs/verification.md`, section "Equal monthly parts
|
||||
(BS-prepaid-1, BS-prepaid-2, BS-prepaid-4, BS-ledger-1)"._
|
||||
|
||||
Kernel sweep unit U5 (`plan/kernel-sweep-audit.md` section 3), with the
|
||||
owner's decision D-72 (2026-11-08, "Version the rule"): **new monthly-even
|
||||
schedules round to the currency's minor unit (it was two places for every
|
||||
|
||||
Reference in new issue
Block a user