Opposite-Sign Swap Homometry in $\mathbb{Z}/n\mathbb{Z}$
Exact labeled background count $2^{(n+h)/2 - 1 - KL}(2^L + 2)^K$, CRT unit-lift normalization, finite rigidity table, and complete composite $n \ge 12$ iff classification.
Contribution status
Claim-by-claim literature review not yet recorded. Lean verification, where shown, applies to the exact formal statements. External publication status is not recorded.
How results are classifiedGives a complete exact characterization of opposite-sign single-swap homometry in cyclic groups $\mathbb{Z}/n\mathbb{Z}$: proves the exact labeled background count $2^{(n+h)/2 - 1 - KL}(2^L + 2)^K$, reduces arbitrary swaps to $q = \gcd(n, d)$ via CRT unit lifts, closes all six finite rigid cases structurally (zero brute force), and proves a nontrivial swap exists iff $n \ge 12$ is composite.
- A. L. Patterson (1944) & J. Rosenblatt, P. D. Seymour (1982): Foundations of homometry and autocorrelation equivalence of binary/sign sequences over cyclic groups $\mathbb{Z}/n\mathbb{Z}$.
⊢ Mathematical Constructions & Proof Explorer
Select any definition, structure, or theorem on the left to inspect its formal statement, proof dependencies, and isolated Lean 4 code.
Mathematical Overview & Verification Notes
Complete, zero-sorry, zero-native_decide Lean 4 formalization of the written theorems in:
single-swap-homometry.md(exact labeled background count for any fixed opposite-sign swap inZMod n), andswap-displacements.md(complete(q, L)existence classification of nontrivial opposite-sign swap homometry and the compositen ≥ 12corollary).
Environment & Compilation
Built with Lean v4.33.0-rc2 reusing the prebuilt Mathlib cache in /Users/arthurcolle/math_rip/new-results/collatz-coalescence. Each file is completely self-contained and compiles standalone with zero errors and zero warnings:
cd /Users/arthurcolle/math_rip/new-results/collatz-coalescence
lake env lean /Users/arthurcolle/math_rip/new-results/swap-homometry-lean/BackgroundCount.lean
lake env lean /Users/arthurcolle/math_rip/new-results/swap-homometry-lean/Normalization.lean
lake env lean /Users/arthurcolle/math_rip/new-results/swap-homometry-lean/RigidityAndTable.lean
lake env lean /Users/arthurcolle/math_rip/new-results/swap-homometry-lean/UniversalConstructions.lean
Summary of Proved Theorems
All theorems live in namespace SwapHomometry, using consistent definitions of:
SignWord (x : ZMod n → ℤ)(∀ i, x i = 1 ∨ x i = -1),corr (x : ZMod n → ℤ) (k : ZMod n) : ℤ := ∑ i : ZMod n, x i * x (i + k),swapAt (d : ZMod n) (x : ZMod n → ℤ),DihedralEquiv (x y : ZMod n → ℤ)(all rotations, reflections, global negation, and compositions),HasNontrivialSwap (n d : ℕ).
1. BackgroundCount.lean
swap_iff_periodic_defect: Exact periodic-defect criterion at any lengthn:(∀ k, corr (f + swapSpike d) k = corr (f - swapSpike d) k) ↔ (∀ i, f (i + d) - f (d - (i + d)) = f i - f (d - i)).swapAt_iff_periodic_defect: Specialization to opposite-sign words withx 0 = 1,x d = -1,d ≠ 0.periodic_iff_const_on_gcd_fibers: Equivalence betweend-periodicity onZMod nand constancy on fibers ofZMod n →+* ZMod (Nat.gcd n d)via Bézout's identity.background_countandbackground_ncard: Forn ≥ 2,0 < d < n,q = Nat.gcd n d,L = n / q,h = #{i : ZMod n | 2 * i = d},K = (q - Nat.gcd q 2) / 2:(validSignWordsFinset n d).card = 2 ^ ((n + h) / 2 - 1 - K * L) * (2 ^ L + 2) ^ K (validSignWords n d).ncard = 2 ^ ((n + h) / 2 - 1 - K * L) * (2 ^ L + 2) ^ K
2. Normalization.lean
exists_unit_mul_gcd_eq: CRT unit-lift lemma — for anyn ≥ 1andd : ℕ, there existsu : (ZMod n)ˣsuch that(u : ZMod n) * (Nat.gcd n d : ZMod n) = (d : ZMod n).corr_pullback,corr_eq_pullback_iff: Pullback along multiplication byu : (ZMod n)ˣpermutes lags byk ↦ u * kand preserves full periodic autocorrelation equality.dihedralEquiv_pullback_iff: Pullback alonguconjugates dihedral+complement symmetries to dihedral+complement symmetries.hasNontrivialSwap_iff_gcd:HasNontrivialSwap n d ↔ HasNontrivialSwap n (Nat.gcd n d).
3. RigidityAndTable.lean
rigid_reflection_of_gcd_le_two,rigid_reflection_q1_q2,not_hasNontrivialSwap_of_gcd_le_two: For0 < d < nwithNat.gcd n d ∈ {1, 2}, every autocorrelation-preserving opposite-sign swap at(0, d)is identified by reflectioni ↦ d - i(in particulari ↦ q - ifor normalizedd = q ∈ {1, 2}).rigid_3_2,rigid_3_3,rigid_3_4,rigid_3_5,rigid_4_2,rigid_5_2, combined inrigid_six_finite_cases: Pure structural proofs (no brute-force enumeration, nonative_decide) showing every autocorrelation-preserving opposite-sign swap at(0, q)inZMod (q * L)for(q, L) ∈ {(3,2), (3,3), (3,4), (3,5), (4,2), (5,2)}admits an explicit dihedral+complement symmetry.
4. UniversalConstructions.lean
corr_eq_of_template: Unified periodic-defect proof of exact autocorrelation equality for all three infinite witness families (A = {0} ∪ C ∪ TwithC = {i | π i = 1}andR-invariantT).witness_even_q: Evenq ≥ 4with(q = 4 ∧ 3 ≤ L) ∨ (6 ≤ q ∧ 2 ≤ L)(T = {q / 2}), excluding all translations, reflections, and complements.witness_odd_q: Oddq ≥ 5with(q = 5 ∧ 3 ≤ L) ∨ (7 ≤ q ∧ 2 ≤ L)(T = {(q - 1) / 2, (q + 1) / 2}), excluding all translations, reflections, and complements.witness_q3:q = 3, 6 ≤ L(T = {6, -3}), excluding all translations, reflections, and complements (including theL = 6(n = 18) boundary case via kerneldecideonFin 18).hasNontrivialSwap_iff_admissible: Full(q, L)iff classification theorem:HasNontrivialSwap n d ↔ (q = 3 ∧ 6 ≤ L) ∨ ((q = 4 ∨ q = 5) ∧ 3 ≤ L) ∨ (6 ≤ q ∧ 2 ≤ L)exists_nontrivial_swap_iff: Compositen ≥ 12corollary:(∃ d : ℕ, 0 < d ∧ d < n ∧ HasNontrivialSwap n d) ↔ ¬ n.Prime ∧ 12 ≤ n
Axiom Audit
Every theorem in every file depends only on Lean's standard foundational axioms (propext, Classical.choice, Quot.sound), with zero sorry, zero custom axioms, and zero native_decide:
| File | Theorem | Axioms |
|---|---|---|
BackgroundCount.lean | swap_iff_periodic_defect | [propext, Classical.choice, Quot.sound] |
BackgroundCount.lean | background_count | [propext, Classical.choice, Quot.sound] |
BackgroundCount.lean | background_ncard | [propext, Classical.choice, Quot.sound] |
Normalization.lean | exists_unit_mul_gcd_eq | [propext, Classical.choice, Quot.sound] |
Normalization.lean | corr_eq_pullback_iff | [propext, Classical.choice, Quot.sound] |
Normalization.lean | dihedralEquiv_pullback_iff | [propext, Quot.sound] |
Normalization.lean | hasNontrivialSwap_iff_gcd | [propext, Classical.choice, Quot.sound] |
RigidityAndTable.lean | rigid_reflection_of_gcd_le_two | [propext, Classical.choice, Quot.sound] |
RigidityAndTable.lean | rigid_reflection_q1_q2 | [propext, Classical.choice, Quot.sound] |
RigidityAndTable.lean | not_hasNontrivialSwap_of_gcd_le_two | [propext, Classical.choice, Quot.sound] |
RigidityAndTable.lean | rigid_six_finite_cases | [propext, Classical.choice, Quot.sound] |
UniversalConstructions.lean | witness_even_q | [propext, Classical.choice, Quot.sound] |
UniversalConstructions.lean | witness_odd_q | [propext, Classical.choice, Quot.sound] |
UniversalConstructions.lean | witness_q3 | [propext, Classical.choice, Quot.sound] |
UniversalConstructions.lean | hasNontrivialSwap_iff_admissible | [propext, Classical.choice, Quot.sound] |
UniversalConstructions.lean | exists_nontrivial_swap_iff | [propext, Classical.choice, Quot.sound] |