structure
definition
def or abbrev
Ledger
show as:
view Lean formalization →
formal statement (Lean)
73structure Ledger where
74 /-- The entries. -/
75 entries : List LedgerEntry
76 /-- Double-entry balance: charges sum to zero. -/
77 balanced : (entries.map LedgerEntry.charge).sum = 0
78
79/-! ## C Symmetry: Charge Conjugation from J(x) = J(1/x) -/
80
81/-- Apply charge conjugation to a ledger entry. -/