Take a
For two distinct rows, group the coordinates by whether their binary words agree. In either group with any coordinates, the ternary words agree at exactly one third of the coordinates. A group of three coordinates therefore contains one ternary match. Each group has size divisible by three, so the binary Hamming distance is
Two distinct projected binary words have distance at least
The archived lemma OAI.HadamardSix.rowRatio_cubeFiber_sum_zero gives zero sum for the complex row ratios in each binary group. All ratios in a group have the same cube. Combined with the unit modulus of the ratios, this makes their squares and fourth powers sum to zero as well. Summing
Run these commands from this directory with Git, curl, Elan and sha256sum available. The configuration pins Lean 4.34.1 and Mathlib d13f23b723b8a846827a245b89c10fc7d3f11612.
curl -fLsS \
https://raw.githubusercontent.com/HuggingMath/TheoremOS/84e40d87325052a6489f9e9225b666c622f2c405/data/proofs/openai_hadamard_cube_fiber/Submission.lean \
-o ArchivedHadamardCubeFiber.lean
sha256sum -c - <<'EOF'
d818e4c8217e53057b254f92285bb22930f2b47504ed68d7e8def9d2547fa3a1 ArchivedHadamardCubeFiber.lean
EOF
lake update --keep-toolchain
lake exe cache get
lake build ArchivedHadamardCubeFiber
lake env lean SixPhaseCode.leanThe ternary match count, binary distance restriction and one-error uniqueness statement all passed Lean. Each depends on propext, Classical.choice, and Quot.sound. Lean example