Optimal Equivariant Matchings on the 6-Cube: With an Application to the King Wen Sequence
Alejandro Radisic
TL;DR
This work analyzes $K_4$-equivariant perfect matchings on the Boolean hypercube and proves that for $n=6$ there is a unique optimal matching among those using only $comp$ or $rev$, realized by a simple reverse-priority rule and incurring total Hamming distance $120$. It further shows that the King Wen sequence of the I Ching is isomorphic to this matching, establishing a deep combinatorial connection. While allowing the cheaper $comp\circ rev$ pairings can reduce the global cost to $96$, such a construction requires per-orbit analysis and lacks the uniform simplicity of the proposed rule. All results are formally verified in Lean 4 with Mathlib, lending rigorous validation to the structural claims about orbits, distances, and the King Wen correspondence.
Abstract
We characterize perfect matchings on the Boolean hypercube {0,1}^n that are equivariant under the Klein four-group K_4 generated by bitwise complement and reversal. For n = 6, we prove there exists a unique K_4-equivariant matching minimizing total Hamming cost among matchings using only comp or rev pairings, achieving cost 120 versus 192 for the complement-only matching. The optimal matching is determined by a simple "reverse-priority rule": pair each element with its reversal unless it is a palindrome, in which case pair with its complement. We verify that the historically significant King Wen sequence of the I Ching is isomorphic to this optimal matching. Notably, allowing comp(rev) pairings yields lower cost (96), but the King Wen sequence follows the structurally simpler rule. All results are formally verified in Lean 4 with the Mathlib library.
