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
+2
-2
@@ -1487,7 +1487,7 @@ non-negative, in cents, at most one quadrillion) and its replay pairs
|
||||
`asset_basis`); `ledger-mcp` `books.set_asset_tax_basis` and
|
||||
`books.register_asset` (a contribution's fair market value is required,
|
||||
never assumed). **Checked:** `ledger-core` `tests/spec_asset_basis.rs`,
|
||||
`tests/kernel_bridge.rs` (`basis_figures_agree`), `tests/properties.rs`
|
||||
`tests/kernel_bridge/` (`basis_figures_agree`), `tests/properties.rs`
|
||||
(`prop_basis_figures_laws`); `ledger-store` `tests/asset_tags.rs`;
|
||||
`ledger-cli` `tests/spec_assets.rs`.
|
||||
|
||||
@@ -3445,7 +3445,7 @@ check_discount}`, `arap::{Application, Fee, SettleParams, SettlementRow}`,
|
||||
`discount_on_an_asset_bill_is_refused_with_the_remedy`,
|
||||
`a_fee_posts_gross_to_receivables_and_net_to_the_bank`,
|
||||
`a_settlement_names_its_lines_and_refuses_a_document_twice`),
|
||||
`tests/kernel_bridge.rs::settle_agrees`; Kani `settle_is_exact`;
|
||||
`tests/kernel_bridge/main.rs::settle_agrees`; Kani `settle_is_exact`;
|
||||
`ledger-store` `tests/arap_standing.rs`
|
||||
(`a_settlement_names_its_lines_and_replays`, `settlement_waits_for_documents_v2`,
|
||||
`legacy_payment_events_keep_the_positional_rule`), `tests/arap_props.rs`;
|
||||
|
||||
Reference in new issue
Block a user