pith. machine review for the scientific record. sign in
def definition def or abbrev

SimpleLedger

show as:
view Lean formalization →

No prose has been written for this declaration yet. The Lean source and graph data below render without it.

generate prose now

formal statement (Lean)

  16def SimpleLedger : Ledger SimpleStructure := {

proof body

Definition body.

  17  debit := fun _ => 1,
  18  credit := fun _ => 0
  19}
  20
  21/-- The simple structure satisfies conservation on closed chains. -/
  22instance : Conserves SimpleLedger := {
  23  conserve := by
  24    intro ch hclosed
  25    simp [chainFlux, phi]
  26    -- For any closed chain, head = last, so flux = 0
  27    rw [hclosed]
  28    ring
  29}
  30
  31/-- A simple tick schedule alternating between the two vertices. -/

depends on (16)

Lean names referenced from this declaration's body.