refactor(core): the kernel and its proofs become modules, one file per sweep unit
kernel.rs is now kernel/: mod.rs keeps the laws and re-exports entries (the old file, unchanged) plus one file per kernel-sweep unit (U1 fx, U2 round, U3 allocate, U4 total, U5 schedule, U6 ratio, U7 payroll, U8 control). proofs.rs is proofs/: mod.rs holds the original 63 harnesses and each unit gets a file of its own. tests/kernel_bridge.rs is now tests/kernel_bridge/main.rs plus one file per unit; Cargo still builds the single test target named kernel_bridge. `_kani` now scans proofs/mod.rs and proofs/*.rs and passes the fully qualified name each file gives its harness (Kani's --exact matches only a fully qualified name), so a harness resolves wherever it lives. It fails when kani_slow names no harness, or when two harnesses share a name and would make the slow list ambiguous; `just prove-list` prints every harness with its module path and set, showing the slow list resolved without running it. Nothing moves in the books: the same 53 fast Kani harnesses and 118 Lean theorems verify, and the same 1096 tests pass (27 in the bridge). Docs: verification.md gains the kernel-sweep policy (each unit writes docs/proofs/<unit>.md; the integrator folds the notes into verification.md and Audit.lean in one edit per batch), and the file references in AGENTS.md, testing.md, architecture.md, oracle.md and spec/rules.md follow the new paths. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
66d9b7ac54
commit
0cf013b578
36 files changed
+368
-108
No files matched your search
+1
-1
@@ -80,7 +80,7 @@ canonical form's fixed point, and the reader now refuses floats
|
||||
promoted to a named regression test.
|
||||
|
||||
**Layer 4½ — Formal proofs (live now).** The accounting arithmetic lives
|
||||
in one generic kernel (`kernel.rs`). Kani model-checks it exhaustively
|
||||
in one generic kernel (`kernel/`). Kani model-checks it exhaustively
|
||||
within bounds, Lean 4 proves the laws for books of any size (trial
|
||||
balance, accounting equation, reversals, posted-is-forever, frozen closed
|
||||
periods, closing to net income), and a property test bridges the two.
|
||||
|
||||
Reference in new issue
Block a user