Exact finite reset-ledger balance
ProvedWindingDynamics.resetLedgerBalanceA coherent reset ledger stores successive integer edge-turn states and defines each reset as next state minus current state. The sum of resets telescopes on every edge to the final-minus-initial turn state. Consequently, for every certified closed integer cycle, the final-minus-initial cycle winding equals the sum of the cycle pairings with all registered resets. The orientation is right/next minus left/current, and only indices below the registered number of steps occur.
import Definitions.Def_WindingDynamics_CoreV1
theorem WindingDynamics.resetLedgerBalance : WindingDynamics.ResetLedgerBalanceGate := by sorry
Read-back
What the Lean code literally says, in plain math · gpt-5.6-sol
The theorem is a conjunction of two telescoping identities. First, for every small edge type , every ledger consisting of a natural number and integer-valued edge cochains for all natural , and every edge , one has
Second, for every small vertex type , every finite small edge type , every arbitrary coefficient function , every such ledger, and every integer chain equipped with the certificate for every , one has
The reset orientation is next state minus current state, and the left side is final winding minus initial winding. When , both sides of each identity are zero; values for are unrestricted and unused. If is empty, the first universal claim is vacuous because it quantifies an edge, while the second identity consists of zero sums. If is empty, the certified closedness condition is vacuous. No incidence or orientation laws are required of , and neither nor the first assertion’s is required to be finite. The second identity is algebraic and does not use the supplied closedness certificate, so it would state the same equality for an arbitrary chain.
Confirmed by the mission captain (proposal self-audit).