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:
1 parent
2ef945ae3f
commit
5703657957
3 files changed
+37
No files matched your search
@@ -34,6 +34,18 @@ model-checking/kani#4904), each with `kani::cover!`.
|
||||
| `total_try_is_map_sum` | `total_try` of differences is the sum of the differences; a failing map fails the total | 0..=4 pairs, in-range | 5.3 s |
|
||||
| `total_overflow_is_none` | for two arbitrary `i64`s, `total` is `Some` exactly when the true sum fits; both overflow directions covered | all `i64` pairs | 0.5 s |
|
||||
|
||||
The bookspec law each harness proves (machine-readable for the
|
||||
traceability gate, `crates/ledger-core/tests/bookspec/traceability.rs`):
|
||||
|
||||
| Harness | Law |
|
||||
|---|---|
|
||||
| `total_empty_is_zero` | 4 |
|
||||
| `total_append` | 4 |
|
||||
| `total_is_sound` | 4 |
|
||||
| `total_of_is_map_sum` | 4 |
|
||||
| `total_try_is_map_sum` | 4 |
|
||||
| `total_overflow_is_none` | 4 |
|
||||
|
||||
Times: alone, `cargo kani --exact --harness`, the shared dev machine under
|
||||
`nice -n 10`, 2026-11-08. `total_append` was 115 s at runs of up to 4 and
|
||||
was reduced to up to 3 (the same law; 60 s) to keep `just prove` fast. A
|
||||
|
||||
Reference in new issue
Block a user