The per-step crossing-parity decomposition #
The chord-crossing count of a boundary pairing changes, across the
transposition of pathMatch_repair_swap, exactly by the
mutual-crossing change of the two re-paired chords: all third-chord
contributions cancel mod 2. The count is a sum of ordered-pair
crossing indicators; splitting the index square by membership in the
four touched ends leaves an untouched block (termwise equal), a
mixed block (per-third-chord parity transfer, third_chord_reparity)
and the four-end block (evaluated to the mutual-crossing indicator).
Symmetrized crossing of two chords given by (unordered) label pairs: each chord is normalized low-to-high and the two normalized chords interleave, in either order.
Equations
- RS.chordPairCrossSym p q = (RS.ChordPairCross (min p.1 p.2) (max p.1 p.2) (min q.1 q.2) (max q.1 q.2) ∨ RS.ChordPairCross (min q.1 q.2) (max q.1 q.2) (min p.1 p.2) (max p.1 p.2))
Instances For
The symmetrization is redundant: ChordPairCross of normalized
chords is itself symmetric (its two disjuncts swap).
The per-step crossing-parity decomposition: across a pairing transposition (two ends of distinct chords re-pair, the far ends re-pair with each other, everything else is preserved), the crossing count changes mod 2 exactly by the mutual-crossing change of the two re-paired chords.