merge: the kernel and its proofs become modules, one file per sweep unit (K-U0; branch t3/kernel-modules-scaffold, 0cf013b5; same 1,096 tests, 27 bridge properties, 53 harnesses, 118 theorems)
Conflicts with X-H0 and S-D0 resolved: both new paths kept (tests/bookspec/, tests/kernel_bridge/, src/proofs/); K-U0's two path fixes in rules.md applied to the claims file the rule moved to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
75c666a7ce
37 files changed
+368
-108
No files matched your search
@@ -0,0 +1,4 @@
|
||||
//! U3 bridge properties: proportional shares (kernel sweep).
|
||||
//!
|
||||
//! Empty in U0: the unit adds its `Decimal`-vs-integer properties here,
|
||||
//! beside `main.rs` and the other units.
|
||||
@@ -0,0 +1,4 @@
|
||||
//! U8 bridge properties: control and aging (kernel sweep).
|
||||
//!
|
||||
//! Empty in U0: the unit adds its `Decimal`-vs-integer properties here,
|
||||
//! beside `main.rs` and the other units.
|
||||
@@ -0,0 +1,4 @@
|
||||
//! U1 bridge properties: foreign-currency conversion (kernel sweep).
|
||||
//!
|
||||
//! Empty in U0: the unit adds its `Decimal`-vs-integer properties here,
|
||||
//! beside `main.rs` and the other units.
|
||||
+11
-1
@@ -1,11 +1,21 @@
|
||||
//! The bridge between the proofs and the engine.
|
||||
//!
|
||||
//! The Kani harnesses (`src/proofs.rs`) prove the accounting kernel on
|
||||
//! The Kani harnesses (`src/proofs/`) prove the accounting kernel on
|
||||
//! `i64` money in the smallest unit; the engine runs the same kernel on
|
||||
//! `Decimal`. These properties check the two instantiations agree, value
|
||||
//! for value, on cents: whatever Kani proved of the `i64` kernel holds of
|
||||
//! the `Decimal` one for the same amounts.
|
||||
|
||||
// One file per kernel-sweep unit; the properties above stay here.
|
||||
mod allocate;
|
||||
mod control;
|
||||
mod fx;
|
||||
mod payroll;
|
||||
mod ratio;
|
||||
mod round;
|
||||
mod schedule;
|
||||
mod total;
|
||||
|
||||
use ledger_core::kernel::{self, Amount, LineError};
|
||||
use ledger_core::{AccountType, Side};
|
||||
use proptest::prelude::*;
|
||||
@@ -0,0 +1,4 @@
|
||||
//! U7 bridge properties: payroll arithmetic (kernel sweep).
|
||||
//!
|
||||
//! Empty in U0: the unit adds its `Decimal`-vs-integer properties here,
|
||||
//! beside `main.rs` and the other units.
|
||||
@@ -0,0 +1,4 @@
|
||||
//! U6 bridge properties: ratios (kernel sweep).
|
||||
//!
|
||||
//! Empty in U0: the unit adds its `Decimal`-vs-integer properties here,
|
||||
//! beside `main.rs` and the other units.
|
||||
@@ -0,0 +1,4 @@
|
||||
//! U2 bridge properties: the rounding primitive (kernel sweep).
|
||||
//!
|
||||
//! Empty in U0: the unit adds its `Decimal`-vs-integer properties here,
|
||||
//! beside `main.rs` and the other units.
|
||||
@@ -0,0 +1,4 @@
|
||||
//! U5 bridge properties: schedule plans (kernel sweep).
|
||||
//!
|
||||
//! Empty in U0: the unit adds its `Decimal`-vs-integer properties here,
|
||||
//! beside `main.rs` and the other units.
|
||||
@@ -0,0 +1,4 @@
|
||||
//! U4 bridge properties: exact totals (kernel sweep).
|
||||
//!
|
||||
//! Empty in U0: the unit adds its `Decimal`-vs-integer properties here,
|
||||
//! beside `main.rs` and the other units.
|
||||
Reference in new issue
Block a user