There is a newer version of the record available.

Published January 11, 2026 | Version v1
Preprint Open

Optimal Equivariant Matchings on the 6-Cube: With an Application to the King Wen Sequence

Description

We characterize perfect matchings on the Boolean hypercube {0, 1} n that are equivariant under the Klein four-group K4 = ⟨comp,rev⟩ generated by bitwise complement and reversal. For n = 6, we prove there exists a unique K4-equivariant matching minimizing total Hamming cost, 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. All results are formally verified in Lean 4 with the Mathlib library.

Files

leanproofs.zip

Files (301.4 kB)

Name Size Download all
md5:f844bfe358da6873f62c107741b0c4dc
7.1 kB Preview Download
md5:1288e22422d62023dfa5548789828a40
280.0 kB Preview Download
md5:9b7b6f6e4e77cec0e2ef0e7b871f319e
14.3 kB Download

Additional details

Software

Repository URL
https://github.com/alerad/iching_
Programming language
Lean
Development Status
Active