docs(proofs): number each kernel-sweep harness's law

The kernel sweep's proof notes described each harness's law in prose. The
traceability gate needs the number to check it against a row of
bookspec's spec/laws.md, so each note now carries a machine-readable
Harness | Law table: fx_booked's harnesses law 41, round_step's law 40,
and total's law 4 (the engine-bound law whose Lean row says why it has no
theorem). The prose tables and times stay as they were.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
swaitsandDeepSeek V4.1 Flash committed 2026-11-08 21:20:45 -07:00
1 parent 2ef945ae3f
commit 5703657957
3 files changed
+37

No files matched your search

+10
View File
@@ -88,6 +88,16 @@ carries the same laws to every `Decimal` step, and Lean to any step.
| `fx_booked_positive_for_positive` | positive inputs book non-negative, positive once the product reaches half a unit | 3.2 s (2 covers) |
| `fx_booked_refuses_overflow` | an overflowing product and a non-positive rate are `None`, never a panic | 2.6 s (2 covers) |
The bookspec law each harness proves (machine-readable for the
traceability gate, `crates/ledger-core/tests/bookspec/traceability.rs`):
| Harness | Law |
|---|---|
| `fx_booked_is_whole_unit` | 41 |
| `fx_booked_within_half_unit` | 41 |
| `fx_booked_positive_for_positive` | 41 |
| `fx_booked_refuses_overflow` | 41 |
What the harnesses do and do not prove, stated plainly:
- `fx_booked_refuses_overflow` proves **two concrete overflow cases**