Merge branch 'main' into t3/payroll-net-pay-kernel
This commit is contained in:
commit
90d34585fd
27 files changed
+578
-151
No files matched your search
@@ -332,7 +332,17 @@ appendix: the file line by line and its changes, derived by hand);
|
||||
(`iif_declares_accounts_by_role_and_balances_every_transaction`,
|
||||
`iif_without_as_of_is_as_of_today_and_ties_to_the_trial_balance`),
|
||||
`mcp_journeys.rs` (`mcp_import_export`,
|
||||
`the_default_period_never_shortens_the_iif_or_the_package`).
|
||||
`the_default_period_never_shortens_the_iif_or_the_package`); bookspec
|
||||
examples `format-cr-lf-on-an-lf-platform` and
|
||||
`format-platform-line-ending-on-an-lf-platform` (BS-format-4),
|
||||
`format-docnum-is-the-entry-id` and `format-docnum-is-the-files-place`
|
||||
(BS-format-5), `format-everything-through-as-of-spans-years` and
|
||||
`format-one-fiscal-year-holds-its-year` (BS-format-6),
|
||||
`format-closes-left-out` and `format-closes-written` (BS-format-8) and
|
||||
`format-no-customer-or-vendor-name` (BS-format-9), run by
|
||||
`every_bookspec_example_holds` and
|
||||
`the_runner_reports_every_claimed_rule_green`; the line ending is asked by
|
||||
the iif_line_ending query (the adapter's answer_iif), which reads the file's own bytes: cr-lf when every line break is CR LF, lf when every one is a bare LF, mixed when it is neither. The engine has no notion of a host, so the adapter does not use an example's host_line_ending setup.
|
||||
|
||||
### Product rules
|
||||
|
||||
|
||||
@@ -191,12 +191,15 @@ None.
|
||||
`check_assign_role`, `Ledger::check_renumber_account` (an assigned role
|
||||
frees its code); the control guard and `Ledger::control_check` (B-38).
|
||||
**Checked:** `ledger-core` `tests/spec_roles.rs`, `tests/spec_documents.rs`;
|
||||
`ledger-store` replay of `role.assigned`; bookspec example
|
||||
`ledger-store` replay of `role.assigned`; bookspec examples
|
||||
`ledger-a-role-on-a-header-or-wrong-typed-account-is-refused` (BS-ledger-19,
|
||||
the option picked: the receivables role on a header account and the payables
|
||||
role on a postable revenue account are refused through `Store::assign_role`
|
||||
and `Ledger::check_assign_role`'s `ControlAccountMismatch`, and the chart is
|
||||
as it was), run by
|
||||
as it was) and `ledger-a-role-assignment-is-a-fact-in-the-books`
|
||||
(BS-ledger-18, the option picked: the receivables role assigned to 1300 is
|
||||
journaled by `Store::assign_role`, read back by the `role_account` query
|
||||
from the books alone, and found again by the store's replay), run by
|
||||
`every_bookspec_example_holds` and
|
||||
`the_runner_reports_every_claimed_rule_green`.
|
||||
|
||||
@@ -235,7 +238,12 @@ per check, 2,000 by hand, with posts between records and every record
|
||||
checked to change no figure or entry;
|
||||
`the_fiscal_year_stays_under_closed_periods`); `ledger-cli`
|
||||
`tests/spec_kept.rs`; Lean `Step.record_changes_no_figure`,
|
||||
`Reachable.records`; fuzz `fuzz_settings_replay`.
|
||||
`Reachable.records`; fuzz `fuzz_settings_replay`; bookspec example
|
||||
`ledger-a-setting-is-a-fact-in-the-books` (the option picked: the owner's
|
||||
fiscal-year change is journaled by `Store::change_settings` with who decided
|
||||
it and when, read back by the setting query, and the trial balance before
|
||||
and after is the same), run by `every_bookspec_example_holds` and
|
||||
`the_runner_reports_every_claimed_rule_green`.
|
||||
|
||||
### Product rules
|
||||
|
||||
@@ -317,14 +325,22 @@ bookspec `examples/rename-changes-no-amount.toml`.
|
||||
**Pick:** warn versus refuse: CHOICE (Pub. 583: "the law does not require any specific kind of records"; the owner, 2026-10-20: warn by default, header accounts exempt, the first company set to refuse at the P3 cutover). A category's deductible amount rounds once, on the category total: CHOICE (the owner, 2026-11-07, D-67). The arithmetic is `kernel::deductible_amount`, so Kani proves the one rounding and the bridge carries it to `Decimal`.
|
||||
|
||||
**Enforced:** `kernel::deductible_amount` (`tax::tax_summary`'s one
|
||||
rounding). **Checked:** `ledger-core`
|
||||
rounding; the bookspec `tax_summary` query answers its lines by category).
|
||||
**Checked:** `ledger-core`
|
||||
`tests/tax.rs` (the rounding: `a_category_rounds_its_deductible_amount_once_not_per_account`,
|
||||
`a_category_rounds_once_across_different_percents`); Kani
|
||||
`deductible_amount_rounds_once`, `deductible_amount_refuses_overflow`;
|
||||
bridge `deductible_amount_agrees`; Lean `bookspec/lean/Bookspec/Deductible.lean`
|
||||
(`Deductible.near`, `Deductible.tie_away_pos`, `Deductible.tie_away_neg`, `Deductible.sign`, `Deductible.neg`, `Deductible.of_sum`,
|
||||
`Deductible.per_account_differs`, `Deductible.scale_books`, `Deductible.scale_percents`: the one rounding, at any
|
||||
number of accounts and any sizes); bookspec `examples/tax-category-required.toml`.
|
||||
number of accounts and any sizes); bookspec `examples/tax-category-required.toml`
|
||||
and the two BS-ledger-21 examples
|
||||
`ledger-a-categorys-deductible-amount-rounds-once` (the option picked:
|
||||
two accounts of 1.01 at 50% give 1.01, the exact sum rounded once) and
|
||||
`ledger-a-categorys-deductible-amount-rounds-per-account` (the other option:
|
||||
0.51 + 0.51 = 1.02), whose `tax_summary` query is `tax::tax_summary`, run by
|
||||
`every_bookspec_example_holds` and
|
||||
`the_runner_reports_every_claimed_rule_green`.
|
||||
|
||||
### Product rules
|
||||
|
||||
|
||||
@@ -38,7 +38,19 @@ Rules: B-16.
|
||||
`daily_plans_pin_month_end_clamping`,
|
||||
`prop_daily_plan_sums_exactly_and_lands_on_month_ends`,
|
||||
`prop_monthly_even_plan_is_unchanged`; `ledger-cli`
|
||||
`mcp_daily_schedule`.
|
||||
`mcp_daily_schedule`; bookspec examples
|
||||
`schedule-daily-deferred-revenue`,
|
||||
`schedule-daily-small-first-and-last-month`,
|
||||
`schedule-equal-months-give-each-month-the-same-share` (each names no
|
||||
convention, so it takes the pick, and starts mid-month where daily and
|
||||
equal months differ; the equal-months one also names BS-prepaid-3's
|
||||
start-on-any-day), `schedule-equal-months-start-on-the-first`,
|
||||
`prepaid-a-new-yen-schedule-rounds-to-whole-yen` (BS-prepaid-4's minor
|
||||
unit: 333, 333 and 334 yen) and
|
||||
`prepaid-a-yen-schedule-under-the-cent-rule-keeps-cents` (the other
|
||||
option: 333.33, 333.33 and 333.34), run by
|
||||
`every_bookspec_example_holds` and
|
||||
`the_runner_reports_every_claimed_rule_green`.
|
||||
|
||||
### Product rules
|
||||
|
||||
|
||||
@@ -39,13 +39,13 @@ assets and liabilities-plus-equity at every date.
|
||||
|
||||
**Pick (BS-statement-7):** `constructive`, the owner, 2026-10-20, D-42
|
||||
|
||||
**Claims:** partly (bookspec's record states rules 1-12; the picks and the product surface are below)
|
||||
**Claims:** partly (bookspec's record has 18 statements; the picks and the product surface are below)
|
||||
|
||||
**Pick:** the direct method; an entry's cash allocated to its sections in the order operating, investing, financing (CONVENTION, the ASC silent, disclosed); within a section, the cash split among its kinds in the order the rest of the section's kinds, interest received, interest paid (CONVENTION, as the engine splits it); what a member or a lender pays or receives for the company presented as constructive cash, borrowed (or contributed) and spent (the owner, D-42, 2026-10-20, revising D-35's first point); a payment shared between a government and others split by their resolved shares, the government's part rounded half to even to the base currency's places and the rest exact (CONVENTION); payroll entries keep their (d) class whoever they name (CONVENTION).
|
||||
|
||||
**Enforced:** `profit_and_loss_for_period`; `cashflow::cash_flow` (with
|
||||
`kernel::entry_flows`, `apply_cash`, `constructive`, `exchanged`),
|
||||
`role_problems`, `foot`; `Ledger::reversal_chain` (rule 6's chains);
|
||||
`role_problems`, `foot`; `Ledger::reversal_chain` (BS-statement-3 statement 11's chains);
|
||||
`ledger_package::cash_flow_for` (the server, the
|
||||
package and the viewer). **Checked:** Lean `statements_add_up`,
|
||||
`cashflow_sections_sum_to_cash_change`, `entry_flows_sum`,
|
||||
@@ -57,13 +57,13 @@ package and the viewer). **Checked:** Lean `statements_add_up`,
|
||||
`apply_cash_mirrors`, `apply_cash_spends_exactly`,
|
||||
`exchanged_is_bounded`, `constructive_nets_to_zero`,
|
||||
`constructive_mirrors`; `prop_period_pnl_partitions`,
|
||||
`prop_cash_flow_laws` (5,000 cases, reversals of reversals, rule 11's
|
||||
`prop_cash_flow_laws` (5,000 cases, reversals of reversals, BS-statement-3 statement 16's
|
||||
shapes), `prop_pure_entries_sections_are_movements`; regressions
|
||||
`defect1_reversed_contributions_foot_regression`,
|
||||
`defect1_two_member_llc_first_year_regression`,
|
||||
`defect1_two_member_llc_as_of_march_18_regression` (and bookspec
|
||||
`cash-flow.*`, `cash-flow.paid-on-the-companys-behalf` for rule 11,
|
||||
`cash-flow.government-fees` for rule 5's governments);
|
||||
`cash-flow.*`, `cash-flow.paid-on-the-companys-behalf` for BS-statement-3 statement 16,
|
||||
`cash-flow.government-fees` for BS-statement-3 statement 8's governments);
|
||||
`disposal_proceeds_all_investing`,
|
||||
`an_expense_a_member_paid_is_borrowed_and_spent`,
|
||||
`reimbursing_a_member_is_a_repayment_of_borrowing`,
|
||||
@@ -137,7 +137,7 @@ as payroll.
|
||||
`a_bill_payment_carries_its_bills_split`,
|
||||
`a_government_selling_services_is_a_supplier`.
|
||||
|
||||
**WB-statement-3** Rule 11's wanderbooks limits, from what the books
|
||||
**WB-statement-3** BS-statement-3 statement 16's wanderbooks limits, from what the books
|
||||
cannot tell: a lender's or member's own charge credited to what the
|
||||
company owes them, other than interest and guaranteed payments (a card's
|
||||
annual fee, rent a member charges), reads as paid for the company, so
|
||||
|
||||
@@ -77,21 +77,21 @@ Quotes are short; the rest is paraphrase.
|
||||
- **230-10-45-4** (EY p. 5): the statement explains the change in the
|
||||
total of cash, cash equivalents and restricted cash. ASU 2016-18 struck
|
||||
its old sentence on the totals at the beginning and end of the period
|
||||
(gone from the current text). → rule 1: the cash accounts are all of
|
||||
(gone from the current text). → BS-statement-3 statement 2: the cash accounts are all of
|
||||
them. (50-7 and 50-8, EY pp. 5-6, 30: the nature of restrictions, and
|
||||
the balance-sheet lines that hold the total when there are several.)
|
||||
- **230-10-45-5** (EY p. 5): purchases and sales of cash equivalents are
|
||||
cash management, and transfers among cash, cash equivalents and
|
||||
restricted cash "are not reported as cash flow activities". → rule 1: a
|
||||
restricted cash "are not reported as cash flow activities". → BS-statement-3 statement 2: a
|
||||
transfer between two cash accounts is no flow.
|
||||
- **230-10-45-12(c)** (EY p. 41; ASU 2016-15 p. 25): investing inflows
|
||||
include "Receipts from sales of property, plant, and equipment and other
|
||||
productive assets". → rule 4.
|
||||
productive assets". → BS-statement-3 statement 5.
|
||||
- **230-10-45-13(c)** (EY p. 41; ASU 2016-15 p. 12): investing outflows
|
||||
include payments "at the time of purchase or soon before or after
|
||||
purchase" for PP&E; generally only those are investing, and incurring
|
||||
debt directly to the seller is a financing transaction whose later
|
||||
principal payments are financing. → rule 12 (the bill split), and the
|
||||
principal payments are financing. → BS-statement-3 statement 17 (the bill split), and the
|
||||
limit BS-statement-3 records.
|
||||
- **230-10-45-14(a)** (EY p. 42): financing inflows include "Proceeds from
|
||||
issuing equity instruments". **45-15(a)**: financing outflows include
|
||||
@@ -101,8 +101,8 @@ Quotes are short; the rest is paraphrase.
|
||||
- **230-10-45-16(a), (b)** (EY p. 43): operating inflows include "Cash
|
||||
receipts from sales of goods or services", including collections of
|
||||
receivables from customers arising from those sales; and interest and
|
||||
dividends received. 45-16(c): all other operating receipts. → rule 5,
|
||||
rule 4's exception.
|
||||
dividends received. 45-16(c): all other operating receipts. → BS-statement-3 statement 7,
|
||||
statement 5's exception.
|
||||
- **230-10-45-17** (EY pp. 43-44): operating outflows: payments for goods
|
||||
for resale (a), "Cash payments to other suppliers and employees for
|
||||
other goods or services" (b), "Cash payments to governments for taxes,
|
||||
@@ -111,7 +111,7 @@ Quotes are short; the rest is paraphrase.
|
||||
under (c); 45-25 names them a class.) Quotes (b) and (c) checked
|
||||
2026-10-22 against EY's guide as retrieved that day (SHA-256
|
||||
`de9224a9e3ec7ef771e7ee076f99471ee727308c3dedb2df20ea1ee4e285fbdb`,
|
||||
page 43). → rule 5: a payment to a government, decided by its payee or
|
||||
page 43). → BS-statement-3 statement 8: a payment to a government, decided by its payee or
|
||||
a taxes-and-licenses account, is (g), not (d).
|
||||
- **230-10-45-22, 45-22A** (EY pp. 44-45, the same copy): a receipt or
|
||||
payment with "aspects of more than one class of cash flows" is
|
||||
@@ -121,7 +121,7 @@ Quotes are short; the rest is paraphrase.
|
||||
basis of the nature of the underlying cash flows" and classify each
|
||||
"in financing, investing, or operating activities"; only what "cannot
|
||||
be separated by source or use" goes by the predominant source or use
|
||||
(45-22A). → rule 5: a payment shared between a government and a
|
||||
(45-22A). → BS-statement-3 statement 8: a payment shared between a government and a
|
||||
supplier is split by the parties' resolved shares, each part classed
|
||||
by its payee (the paragraph names the three activities; reading it for
|
||||
45-25's classes too is a CONVENTION).
|
||||
@@ -130,46 +130,46 @@ Quotes are short; the rest is paraphrase.
|
||||
"three months or less"; amounts due on demand count) may be reported
|
||||
net, and even then need not be. **230-10-45-26** (EY p. 13): otherwise
|
||||
investing and financing inflows and outflows are reported separately,
|
||||
"proceeds of borrowings ... separately from repayments of debt". → rule
|
||||
5: gross lines, members' advances and their repayments apart.
|
||||
"proceeds of borrowings ... separately from repayments of debt". → BS-statement-3
|
||||
statements 6-10: gross lines, members' advances and their repayments apart.
|
||||
- **230-10-45-24** (EY p. 15; ASU 2016-18 pp. 4-5): the statement reports
|
||||
net cash from operating, investing and financing activities and "the
|
||||
net effect of those flows" on cash, "in a manner that reconciles
|
||||
beginning and ending totals". → rule 9, the footing.
|
||||
beginning and ending totals". → BS-statement-3 statement 14, the footing.
|
||||
- **230-10-45-25** (EY p. 8; ASU 2016-15 p. 10): entities "are encouraged
|
||||
to report major classes of gross cash receipts and gross cash payments";
|
||||
those that do "shall, at a minimum, separately report" (a) cash
|
||||
collected from customers, (b) interest and dividends received, (c) other
|
||||
operating cash receipts, (d) cash paid to employees and other suppliers,
|
||||
(e) interest paid, (f) income taxes paid, (g) other operating cash
|
||||
payments. → rule 5, the operating classes; the direct method is a
|
||||
payments. → BS-statement-3 statement 7, the operating classes; the direct method is a
|
||||
choice the standard encourages, not one it requires.
|
||||
- **230-10-45-28** (EY p. 10; DART 3.1): the indirect method adjusts net
|
||||
income to remove (a) deferrals and accruals of operating receipts and
|
||||
payments, such as changes in receivables and payables, and (b) items
|
||||
with no operating cash effect, including those "whose cash effects are
|
||||
related to investing or financing cash flows, such as gains or losses on
|
||||
sales of property, plant, and equipment". → rule 8's G and W.
|
||||
sales of property, plant, and equipment". → BS-statement-3 statement 13's G and W.
|
||||
- **230-10-45-29** (EY p. 7; DART 3.1): the reconciliation of net income
|
||||
to operating cash is required with either method; it "shall separately
|
||||
report all major classes of reconciling items", at a minimum the
|
||||
changes in operating receivables, inventory and payables.
|
||||
- **230-10-45-30** (EY p. 8; DART 3.1): with the direct method, that
|
||||
reconciliation "shall be provided in a separate schedule." → rule 8.
|
||||
reconciliation "shall be provided in a separate schedule." → BS-statement-3 statement 13.
|
||||
- **230-10-50-3** (EY p. 47): investing and financing activities that
|
||||
"affect recognized assets or liabilities but that do not result in cash
|
||||
receipts or cash payments in the period shall be disclosed", narrative
|
||||
or in a schedule. → rule 7.
|
||||
or in a schedule. → BS-statement-3 statement 12.
|
||||
- **230-10-50-4** (EY p. 47): its examples, among them: "converting debt to equity";
|
||||
acquiring assets by assuming directly related liabilities; obtaining a
|
||||
right-of-use asset for a lease liability (the old "capital lease"
|
||||
wording, replaced); receiving a gift of an asset; exchanging noncash
|
||||
assets or liabilities for others (also a beneficial interest obtained
|
||||
in a securitization, not listed here). → rule 7's exchange inside one
|
||||
in a securitization, not listed here). → BS-statement-3 statement 12's exchange inside one
|
||||
section.
|
||||
- **230-10-50-5** (EY p. 47): "Some transactions are part cash and part
|
||||
noncash; only the cash portion shall be reported in the statement of
|
||||
cash flows." → rule 3.
|
||||
cash flows." → BS-statement-3 statement 4.
|
||||
- **230-10-50-6** (EY p. 47): with only a few noncash transactions, they
|
||||
may be on the same page as the statement; otherwise elsewhere, clearly
|
||||
referenced to it. → the printed statement's noncash schedule.
|
||||
@@ -184,9 +184,9 @@ Quotes are short; the rest is paraphrase.
|
||||
not specify, an entity first considers principles for similar
|
||||
transactions "and then consider[s] nonauthoritative guidance from other
|
||||
sources"; practices not in the Codification are nonauthoritative
|
||||
(sources include accounting textbooks, handbooks and articles). → rule
|
||||
11: the Codification does not address payments made on the entity's
|
||||
behalf (below), so this is where firm guidance comes in; rule 11
|
||||
(sources include accounting textbooks, handbooks and articles). → BS-statement-3 statement
|
||||
16: the Codification does not address payments made on the entity's
|
||||
behalf (below), so this is where firm guidance comes in; BS-statement-3 statement 16
|
||||
follows it (D-42), a choice the standard leaves open, not a requirement
|
||||
of any paragraph.
|
||||
|
||||
@@ -196,9 +196,9 @@ Also read there, for the design (not authoritative, 105-10-05-3):
|
||||
after purchase are investing, "soon" read by the SEC staff as three
|
||||
months or less; the change in payables in the reconciliation leaves
|
||||
out payables for investing; the noncash disclosure is the liability
|
||||
that remains unpaid at the period's end). → rule 12.
|
||||
that remains unpaid at the period's end). → BS-statement-3 statement 17.
|
||||
- Payments a third party makes, or cash it receives, on the entity's
|
||||
behalf (rule 11, D-42). No ASC paragraph addresses them: PwC Viewpoint,
|
||||
behalf (BS-statement-3 statement 16, D-42). No ASC paragraph addresses them: PwC Viewpoint,
|
||||
Financial statement presentation 6.9.3 ("ASC 230 does not address these
|
||||
situations"); KPMG Handbook, Statement of cash flows (March 2026)
|
||||
Q8.3.10 ("Topic 230 does not directly address"); BDO Blueprint,
|
||||
@@ -249,7 +249,7 @@ Also read there, for the design (not authoritative, 105-10-05-3):
|
||||
- **KPMG Q8.3.10** accepts a noncash presentation (citing 50-3) for
|
||||
property and equipment a lender pays for.
|
||||
|
||||
→ rule 11 (D-42): constructive receipt and disbursement for what a
|
||||
→ BS-statement-3 statement 16 (D-42): constructive receipt and disbursement for what a
|
||||
member (through the members' financing account, or capital for an
|
||||
expense) or a lender pays or receives for the company; noncash for
|
||||
property a member already owned (50-4) and for the seller's own credit
|
||||
|
||||
+12
-12
@@ -943,7 +943,7 @@ doesn't count them.
|
||||
## P3: cash flow (defect 1, 2026-10-20)
|
||||
|
||||
The statement of cash flows was rebuilt by the direct method (BS-statement-3, D-35), and what a member or a lender pays for the company shown as
|
||||
cash borrowed and spent (D-42, rule 11). Built, reviewed twice, `just
|
||||
cash borrowed and spent (D-42, BS-statement-3 statement 16). Built, reviewed twice, `just
|
||||
check` and `just prove`; no mutation run (D-33): what P12 must cover is at
|
||||
the end.
|
||||
|
||||
@@ -964,13 +964,13 @@ the end.
|
||||
its paragraph in the test's doc comment): disposals at a gain, a loss
|
||||
and before any depreciation (`disposal_proceeds_all_investing`); a sale
|
||||
on an IOU (disclosed, flagged, with the fix); property contributed;
|
||||
what a member or lender pays or receives for the company (D-42, rule
|
||||
11): an expense through Due to Members, equipment a bank paid for, an
|
||||
what a member or lender pays or receives for the company (D-42,
|
||||
BS-statement-3 statement 16): an expense through Due to Members, equipment a bank paid for, an
|
||||
expense paid into capital, a financing card, part cash and part a
|
||||
member's, a refund to a member, a customer paying a member, a payment
|
||||
made for the company and its reversal (in the period and alone, a
|
||||
prepaid and equipment too), the reimbursement, the uses' order (rule
|
||||
11's convention); and what stays noncash: property a member owned (with
|
||||
prepaid and equipment too), the reimbursement, the uses' order (BS-statement-3 statement
|
||||
16's convention); and what stays noncash: property a member owned (with
|
||||
members configured and without), the seller's credit (flagged), interest
|
||||
and guaranteed payments charged to a creditor, a fee withheld on a
|
||||
contra-liability. From the second review: odd shapes (two cash accounts
|
||||
@@ -992,11 +992,11 @@ the end.
|
||||
(`operating_cash_is_classed_kind_by_kind`) and kept operating in a
|
||||
disposal; a loss on disposal on a revenue-typed or an expense-typed
|
||||
account; an investment sold at a gain; a reversal three levels down;
|
||||
and both of rule 3's conventions pinned (the sections' order, the kinds'
|
||||
and both of BS-statement-3 statement 4's conventions pinned (the sections' order, the kinds'
|
||||
order).
|
||||
- **Properties, 5,000 cases each** (`CF_CASES`, default 5,000, about 16 s):
|
||||
`prop_cash_flow_laws` over random books of 33 templates (every shape
|
||||
the rule names, rule 11's included) and reversals of any earlier entry,
|
||||
the statement names, BS-statement-3 statement 16's included) and reversals of any earlier entry,
|
||||
reversals included: the sections are the change in cash and the
|
||||
model's; each section is its lines and kinds; the reconciliation is
|
||||
operating; an entry's lines are its cash, what was handled for it
|
||||
@@ -1007,11 +1007,11 @@ the end.
|
||||
`prop_pure_entries_sections_are_movements`: for pure entries, each
|
||||
section is minus its accounts' movement over the entries that touch
|
||||
cash or that a member or lender settled whole for the company (the
|
||||
plan's wording, with rule 11 modelled apart from the engine; review
|
||||
plan's wording, with BS-statement-3 statement 16 modelled apart from the engine; review
|
||||
item 7's definition of pure). The older properties in `spec_reports.rs`
|
||||
are kept with new oracles (financing is the cash part of equity and
|
||||
designated debt plus what the loan or capital paid or received for the
|
||||
company, by an independent model of rules 3 and 11).
|
||||
company, by an independent model of BS-statement-3 statements 4 and 16).
|
||||
- **Bridge:** `entry_flows_agree`, `apply_cash_and_exchanged_agree`,
|
||||
`constructive_agrees`.
|
||||
- **Proofs:** Kani `entry_flows_sum_to_cash`,
|
||||
@@ -1030,17 +1030,17 @@ the end.
|
||||
(docs/verification.md, law 10).
|
||||
- **Sensitivity (P3 review, by hand, no mutation run):** 18 deliberate
|
||||
breaks to `cashflow.rs` and `kernel/` (a dropped reversal
|
||||
flip, no netting, financing read as operating, no rule 4, no exchange
|
||||
flip, no netting, financing read as operating, no BS-statement-3 statement 5's disposal rule, no exchange
|
||||
disclosure, no interest class, no warnings, the bill's payments
|
||||
ignored, the label's depth parity, repeated codes allowed, depreciation
|
||||
disclosed, the sections' or kinds' order reversed, the customer party
|
||||
ignored, accumulated depreciation in the exchange, the interest
|
||||
exception dropped, rule 4 for investing accounts): 17 fail a test (4
|
||||
exception dropped, BS-statement-3 statement 5 for investing accounts): 17 fail a test (4
|
||||
of them only since the review's tests); one is equivalent today
|
||||
(`mirrors` ignoring amounts: every reversal mirrors its original until
|
||||
P4's drafts).
|
||||
- **Sensitivity, second round (after D-42, by hand, no mutation run):**
|
||||
17 breaks to rule 11 and the kernel's `constructive` (no lender pass, no
|
||||
17 breaks to BS-statement-3 statement 16 and the kernel's `constructive` (no lender pass, no
|
||||
member pass, no receipts for the company, a reversal not mirrored, a
|
||||
lender paying for no investing, capital paying for property, receipts
|
||||
for property, receivables not received, guaranteed payments or
|
||||
|
||||
@@ -122,7 +122,7 @@ Each law, and what proves it. Kani harnesses are in
|
||||
1): each entry's cash is applied to the sections moving against it,
|
||||
operating, investing, financing, each up to its own movement; what a
|
||||
member or a lender paid or received for the entry, with no cash
|
||||
account moving (rule 11, D-42), is added as a constructive receipt
|
||||
account moving (BS-statement-3 statement 16, D-42), is added as a constructive receipt
|
||||
and disbursement that nets to zero within the entry; so each entry's
|
||||
flows sum to its cash and what neither settled sums to zero, and
|
||||
operating + investing + financing is exactly the change in the cash
|
||||
@@ -1173,7 +1173,7 @@ Be precise about the claims:
|
||||
- **The cash flow model tags lines per entry with any function** meeting
|
||||
the engine's guarantees (the cash tag follows the account; revenue and
|
||||
expense lines are operating or investing; a reversal takes its
|
||||
original's tags); which tag the engine picks for a line (rule 4's
|
||||
original's tags); which tag the engine picks for a line (BS-statement-3 statement 5's
|
||||
disposals, the bill split, the chain root) is checked by the property
|
||||
and example tests, not proved. A line the engine splits between two
|
||||
sections is two lines in the model, the entry's net unchanged.
|
||||
|
||||
Reference in new issue
Block a user