Files
wanderbooks/docs/spec/rules.md
T
swaitsandDeepSeek V4.1 Flash 4d9c73deef docs: the Lean laws, and their paths, are bookspec's
The laws are proved once in bookspec (D-69), so the documents that said
"put the new theorem in `verify/lean`" or cited
`verify/lean/Wanderbooks/<File>.lean` now say otherwise:

- AGENTS.md's formal-methods bar: a new law is written in bookspec's
  `lean/Bookspec/`; wanderbooks requires it and moves its pin (the lakefile,
  the manifest, and the crates' Cargo.toml together; the pin test fails if
  they drift). `Audit.lean` lists every theorem.
- docs/verification.md: the model and every cited Lean file are
  `bookspec/lean/Bookspec/<File>.lean`; "Running it" says the dependency is
  fetched and that all 151 theorems are audited.
- docs/testing.md and docs/spec/rules.md: the same paths, and the apportion
  row records where its law moved.
- README's repo map and the two test comments that named the Lean peer.

No accounting behavior changes; only where the proofs and their names live.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
2026-11-08 11:36:00 -07:00

7.3 KiB

Rule catalog

Every rule the engine enforces, the authority for it, and what checks it. Status is AUTHORITY (a source states the rule), CONVENTION (common practice no authority states; the best reference is given), or CHOICE (a human chose, and when; bookspec's CHOICE: the specification names the options, an engine declares its pick). Vendored sources are in sources/; FASB and OpenStax are quoted briefly under their copyright and license (see README.md). Quotes from FASB's Codification were read in Deloitte's DART roadmaps, which reproduce it ("FASB Accounting Standards Codification: Copyright © 2005 - 2026 by Financial Accounting Foundation").

Spec blocks in the code cite these as SOURCE: rules.md B-n. Every rule also has a bookspec identifier, **bookspec:** BS-<area>-<n>: the table from B-1 to B-45 is spec/rules-index.md in the bookspec repository, https://git.swaits.com/swaits/bookspec (P13, D-34).


Index

Every rule's claims live in claims/, one file per bookspec area (P14 unit S-D0). This file is the index until unit S-E rewrites the rules.md B-n references to bookspec ids; the rule text itself is in the claims files.

B bookspec id area file
B-1 BS-entry-1 entry claims/entry.md
B-2 BS-entry-2 entry claims/entry.md
B-3 BS-ledger-1 ledger claims/ledger.md
B-4 BS-ledger-2 ledger claims/ledger.md
B-5 BS-ledger-3 ledger claims/ledger.md
B-6 BS-statement-1 statement claims/statement.md
B-7 BS-statement-2 statement claims/statement.md
B-8 BS-ledger-4 ledger claims/ledger.md
B-9 BS-ledger-5 ledger claims/ledger.md
B-10 BS-ledger-6 ledger claims/ledger.md
B-11 BS-period-1 period claims/period.md
B-12 BS-period-2 period claims/period.md
B-13 BS-partner-1 partner claims/partner.md
B-14 BS-statement-3 statement claims/statement.md
B-15 BS-asset-1 asset claims/asset.md
B-16 BS-prepaid-1 prepaid claims/prepaid.md
B-17 BS-revenue-1 revenue claims/revenue.md
B-18 BS-arap-1 arap claims/arap.md
B-19 BS-1099-1 1099 claims/1099.md
B-20 BS-ledger-7 ledger claims/ledger.md
B-21 BS-entry-3 entry claims/entry.md
B-22 BS-asset-2 asset claims/asset.md
B-23 BS-ledger-8 ledger claims/ledger.md
B-24 BS-asset-3 asset claims/asset.md
B-25 BS-asset-4 asset claims/asset.md
B-26 BS-partner-2 partner claims/partner.md
B-27 BS-format-1 format claims/format.md
B-28 BS-entry-4 entry claims/entry.md
B-29 BS-ledger-9 ledger claims/ledger.md
B-30 BS-period-3 period claims/period.md
B-31 BS-ledger-10 ledger claims/ledger.md
B-32 BS-ledger-11 ledger claims/ledger.md
B-33 BS-statement-4 statement claims/statement.md
B-34 BS-format-2 format claims/format.md
B-35 BS-partner-3 partner claims/partner.md
B-36 BS-partner-4 partner claims/partner.md
B-37 BS-statement-5 statement claims/statement.md
B-38 BS-arap-2 arap claims/arap.md
B-39 BS-arap-3 arap claims/arap.md
B-40 BS-arap-4 arap claims/arap.md
B-41 BS-arap-5 arap claims/arap.md
B-42 BS-arap-6 arap claims/arap.md
B-43 BS-entry-5 entry claims/entry.md
B-44 BS-ledger-12 ledger claims/ledger.md
B-45 BS-ledger-13 ledger claims/ledger.md