pith. machine review for the scientific record. sign in
structure

LedgerAlgebra

definition
show as:
view math explainer →
module
IndisputableMonolith.RRF.Foundation.Ledger
domain
RRF
line
201 · github
papers citing
none yet

open explainer

Generate a durable explainer page for this declaration.

open lean source

IndisputableMonolith.RRF.Foundation.Ledger on GitHub at line 201.

browse module

All declarations in this module, on Recognition.

explainer page

Tracked in the explainer inventory; generation is lazy so crawlers do not trigger LLM jobs.

open explainer

depends on

used by

formal source

 198/-! ## Ledger Algebra Summary -/
 199
 200/-- The complete ledger algebra bundle. -/
 201structure LedgerAlgebra where
 202  /-- The transaction type. -/
 203  transaction : Type := Transaction
 204  /-- The ledger type. -/
 205  ledger : Type := Ledger
 206  /-- Transactions are balanced. -/
 207  transactions_balanced : ∀ t : Transaction, t.debit + t.credit = 0 := fun t => t.balanced
 208  /-- Ledgers are balanced. -/
 209  ledgers_balanced : ∀ L : Ledger, L.net = 0 := fun L => L.global_balance
 210  /-- Double-entry holds. -/
 211  double_entry : DoubleEntry := double_entry_exists
 212
 213/-- The ledger algebra is consistent. -/
 214theorem ledger_algebra_consistent : Nonempty LedgerAlgebra := ⟨{}⟩
 215
 216end RRF.Foundation
 217end IndisputableMonolith