structure
definition
LedgerState
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Foundation.VariationalDynamics on GitHub at line 77.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
-
of -
tick -
tick -
of -
Configuration -
is -
of -
Configuration -
is -
of -
is -
LedgerState -
of -
LedgerState -
LedgerState -
is -
LedgerState
used by
-
diagonalHamiltonian -
H_ThermodynamicsVerified -
ledger_identity -
LedgerState -
totalInfoCost -
total_info_cost_nonneg -
admissible -
eight_tick_dissipation_limit -
landauer_bound_holds -
ledger_entropy -
LedgerState -
reciprocity_skew -
RecognitionCost -
RecognitionOperator -
total_dissipation_bound -
ledgerJlogCost -
ledgerJlogCost_nonneg -
ledgerJlogCost_post -
ledgerL1Cost -
ledgerL1Cost_eq_zero_iff -
ledgerL1Cost_post -
LedgerState -
LegalAtomicTick -
legalAtomicTick_implies_PostingStep -
legalAtomicTick_of_post -
legalAtomicTick_oneBitDiff -
minCost_monotoneStep_implies_postingStep -
minJlogCost_monotoneStep_implies_postingStep -
MonotoneLedger -
parity -
parity_oneBitDiff_of_post -
phiVec -
phiVec_coordAtomicStep_of_post -
phiVec_post_credit -
phiVec_post_debit -
post -
PostingStep -
postingStep_iff_legalAtomicTick -
postingStep_implies_legalAtomicTick -
postingStep_of_monotone_and_ledgerJlogCost_le_Jlog1
formal source
74/-! ## Ledger State with Conservation Law -/
75
76/-- A ledger state: N entries with positive real ratios, indexed by tick. -/
77structure LedgerState (N : ℕ) where
78 config : Configuration N
79 tick : ℕ
80
81/-- Total log-ratio of a configuration: the conserved quantity.
82 This is the "charge" of the ledger — preserved under evolution. -/
83noncomputable def log_charge {N : ℕ} (c : Configuration N) : ℝ :=
84 ∑ i : Fin N, Real.log (c.entries i)
85
86/-- The feasible set: configurations reachable in one tick.
87 A configuration c' is feasible from c if:
88 1. All entries remain positive
89 2. Total log-charge is conserved -/
90def Feasible {N : ℕ} (c : Configuration N) : Set (Configuration N) :=
91 { c' : Configuration N | log_charge c' = log_charge c }
92
93/-- The current configuration is always feasible (reflexivity). -/
94theorem self_feasible {N : ℕ} (c : Configuration N) :
95 c ∈ Feasible c := rfl
96
97/-- The feasible set is nonempty (contains the current state). -/
98theorem feasible_nonempty {N : ℕ} (c : Configuration N) :
99 Set.Nonempty (Feasible c) := ⟨c, self_feasible c⟩
100
101/-! ## The Variational Update Rule -/
102
103/-- **Definition (Update Rule)**: The next state is the configuration
104 that minimizes total defect subject to conservation of log-charge.
105
106 This is the "equation of motion" for the ledger. -/
107def IsVariationalSuccessor {N : ℕ} (current next : Configuration N) : Prop :=