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

Window8

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)

 111structure Window8 where
 112  /-- The 8 events in this window -/
 113  events : Fin 8 → LedgerEvent
 114
 115/-- The sum over a window. -/
 116def Window8.sum (w : Window8) : ℤ :=

proof body

Definition body.

 117  (Finset.univ.sum fun i => (w.events i).flow)
 118
 119/-- A window is **neutral** if its sum is zero. -/
 120def Window8.isNeutral (w : Window8) : Prop := w.sum = 0
 121
 122/-- **Construction: A neutral window from 4 paired events.** -/

used by (9)

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

depends on (15)

Lean names referenced from this declaration's body.