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

Transaction

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)

  29structure Transaction where
  30  /-- The debit amount (positive = outflow). -/
  31  debit : ℤ
  32  /-- The credit amount (positive = inflow). -/
  33  credit : ℤ
  34  /-- The balance constraint: debit + credit = 0. -/
  35  balanced : debit + credit = 0
  36
  37namespace Transaction
  38
  39/-- Create a balanced transaction from a single amount. -/

used by (9)

From the project-wide theorem graph. These declarations reference this one in their body.

depends on (2)

Lean names referenced from this declaration's body.