def
definition
last
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Chain on GitHub at line 24.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
-
chainFlux -
Conserves -
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 -
last -
SimpleLedger -
ricci_tensor -
christoffel_torsion_free -
riemann_lowered_pair_exchange -
riemann_trace
formal source
21 have hpos : 0 < ch.n + 1 := Nat.succ_pos _
22 exact ch.f ⟨0, hpos⟩
23
24def last : M.U := by
25 have hlt : ch.n < ch.n + 1 := Nat.lt_succ_self _
26 exact ch.f ⟨ch.n, hlt⟩
27
28end Chain
29
30class AtomicTick (M : RecognitionStructure) where
31 postedAt : Nat → M.U → Prop
32 unique_post : ∀ t : Nat, ∃! u : M.U, postedAt t u
33
34structure Ledger (M : RecognitionStructure) where
35 debit : M.U → ℤ
36 credit : M.U → ℤ
37
38def phi {M} (L : Ledger M) : M.U → ℤ := fun u => L.debit u - L.credit u
39
40def chainFlux {M} (L : Ledger M) (ch : Chain M) : ℤ :=
41 phi L (ch.last) - phi L (ch.head)
42
43class Conserves {M} (L : Ledger M) : Prop where
44 conserve : ∀ ch : Chain M, ch.head = ch.last → chainFlux L ch = 0
45
46/-- ## T2 (Atomicity): unique posting per tick implies no collision at a tick. -/
47theorem T2_atomicity {M} [AtomicTick M] :
48 ∀ t u v, AtomicTick.postedAt (M:=M) t u → AtomicTick.postedAt (M:=M) t v → u = v := by
49 intro t u v hu hv
50 rcases (AtomicTick.unique_post (M:=M) t) with ⟨w, hw, huniq⟩
51 have hu' : u = w := huniq u hu
52 have hv' : v = w := huniq v hv
53 exact hu'.trans hv'.symm
54