def
definition
last
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Recognition on GitHub at line 45.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
chainFlux -
Conserves -
last -
T3_continuity -
reverse_involution -
neutralityScore_shift1_of_periodic8 -
riemann_tensor -
phi_hierarchy_exponential_growth -
phantom_completes_to_balanced -
integral_Ioi_radial_skew_identity -
integral_radial_skew_identity_from -
ContinuousPhaseData -
CompositionRHCertificate -
apsidalAngle -
brgc_oneBit_step -
brgcPath_injective -
oneBitDiff_snocBit_flip -
oneBitDiff_snocBit_same -
snocBit_last -
brgc_oneBit_step -
brgcPath -
brgc_wrap_oneBitDiff -
chainFlux -
chainFlux_zero_of_loop -
Conserves -
SimpleLedger -
ricci_tensor -
christoffel_torsion_free -
riemann_lowered_pair_exchange -
riemann_trace
formal source
42def head : M.U := by
43 have hpos : 0 < ch.n + 1 := Nat.succ_pos _
44 exact ch.f ⟨0, hpos⟩
45def last : M.U := by
46 have hlt : ch.n < ch.n + 1 := Nat.lt_succ_self _
47 exact ch.f ⟨ch.n, hlt⟩
48end Chain
49
50structure Ledger (M : RecognitionStructure) where
51 debit : M.U → ℤ
52 credit : M.U → ℤ
53
54@[simp] def Ledger.Carrier {M : RecognitionStructure} (_ : Ledger M) : Type :=
55 M.U
56
57def phi {M} (L : Ledger M) : M.U → ℤ := fun u => L.debit u - L.credit u
58
59def chainFlux {M} (L : Ledger M) (ch : Chain M) : ℤ :=
60 phi L (Chain.last ch) - phi L (Chain.head ch)
61
62class Conserves {M} (L : Ledger M) : Prop where
63 conserve : ∀ ch : Chain M, ch.head = ch.last → chainFlux L ch = 0
64
65lemma chainFlux_zero_of_loop {M} (L : Ledger M) [Conserves L] (ch : Chain M) (h : ch.head = ch.last) :
66 chainFlux L ch = 0 := Conserves.conserve (L:=L) ch h
67
68lemma phi_zero_of_balanced {M} (L : Ledger M) (hbal : ∀ u, L.debit u = L.credit u) :
69 ∀ u, phi L u = 0 := by
70 intro u; simp [phi, hbal u, sub_self]
71
72lemma chainFlux_zero_of_balanced {M} (L : Ledger M) (ch : Chain M)
73 (hbal : ∀ u, L.debit u = L.credit u) :
74 chainFlux L ch = 0 := by
75 simp [chainFlux, phi_zero_of_balanced (M:=M) L hbal]