The two-path separated move #
A repair square is non-localized when its two re-paired edges lie on genuinely distinct boundary chains. This file establishes the chain geometry of such a square and the count invariance it gives:
EdgeSubset.not_periodic_of_onBoundaryChain— flags on a boundary chain are not periodic;EdgeSubset.onBoundaryChain_disjoint— genuinely distinct boundary chains share no flag (chain rigidity);EdgeSubset.square_hit— a chain carrying one matched edge of the square crosses it exactly once, by a pairing argument;EdgeSubset.openCircuitCount_repair_of_not_localized— count invariance: a non-localized square leaves the open circuit count unchanged, the repaired components being still boundary chains, soperiodicFlagsand the periodic walk permutation are untouched.
The transform factor the move contributes to the summand is pinned
in TransposeLedger.lean, on top of this count invariance.
Chain membership excludes periodicity #
A flag on a boundary chain is not periodic.
Distinct chains share no flag #
Chain disjointness: two genuinely distinct boundary chains (the second end not among the first chain's two ends) share no flag, on either side of an edge.
The square hit on a chain #
A chain carrying one matched edge X ↔ Y of the square meets it
as a pairing argument: at some step s < k the argument is X or
Y, and the next walk flag is the other.
Repaired chains through the square #
The repaired chain from β reaches the first square argument:
if the arguments before step s avoid the square, the argument at
step s lies on the repaired chain of β.
The walk-side square flag on a chain is not periodic in the repaired system: the repaired walk from it follows the old chain tail to the boundary.
One chain side of a two-chain square: its two square flags are
non-periodic in the repaired system. Stated for a matched pair
X ↔ Y on the chain of β, with the other two square flags on the
genuinely distinct chain of βo; hperm identifies the four square
flags with {X, Y, Z₁, Z₂}.
Periodicity transfer across a repair whose four flags are non-periodic on both sides.
Count invariance for two-chain squares: a non-localized square leaves the open circuit count unchanged — both repaired components are still boundary-terminated chains, so the periodic flags and the periodic walk permutation are untouched.