⊢mathematics.distributed.systems
Proof Tree / Topology & Geometry / Homometry & Discrete Geometry / swap-homometry-lean
KERNEL VERIFIED · 0 WARNINGS Topology & Geometry · Homometry & Discrete Geometry Initiated by Arthur Collé 4/4 verified files · ⊢ 73 theorems

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 classified
⊢ TL;DR & Key Verified Results
Field Context (Homometry & Discrete Geometry): Reconstructing sets from their pairwise difference spectrum, spherical moment bodies, and discrete harmonic rigidity.

Gives 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.

Exact count of autocorrelation-preserving opposite-sign backgrounds: $|\mathrm{validSignWords}(n, d)| = 2^{(n+h)/2 - 1 - KL}(2^L + 2)^K$.
Full $(q, L)$ classification ($q = \gcd(n, d)$, $L = n/q$): nontrivial swap exists iff $(q=3 \land L \ge 6) \lor (q \in \{4,5\} \land L \ge 3) \lor (q \ge 6 \land L \ge 2)$.
A nontrivial autocorrelation-preserving opposite-sign swap exists in $\mathbb{Z}/n\mathbb{Z}$ if and only if $n \ge 12$ is composite.
Prior Art, Upstream Literature & Scholarly Attribution SOURCE CONTEXT
Local Proof Scope (Priority Not Established): Exact labeled background formula $2^{(n+h)/2 - 1 - KL}(2^L + 2)^K$, CRT unit-lift reduction to $q = \gcd(n, d)$, structural proofs of all six finite rigid cases, and complete composite $n \ge 12$ iff classification.

⊢ Mathematical Constructions & Proof Explorer

Raw .lean
—

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 in ZMod n), and
  • swap-displacements.md (complete (q, L) existence classification of nontrivial opposite-sign swap homometry and the composite n ≥ 12 corollary).

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 length n:
    (∀ 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 with x 0 = 1, x d = -1, d ≠ 0.
  • periodic_iff_const_on_gcd_fibers: Equivalence between d-periodicity on ZMod n and constancy on fibers of ZMod n →+* ZMod (Nat.gcd n d) via Bézout's identity.
  • background_count and background_ncard: For n ≥ 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 any n ≥ 1 and d : ℕ, there exists u : (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 by u : (ZMod n)ˣ permutes lags by k ↦ u * k and preserves full periodic autocorrelation equality.
  • dihedralEquiv_pullback_iff: Pullback along u conjugates 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: For 0 < d < n with Nat.gcd n d ∈ {1, 2}, every autocorrelation-preserving opposite-sign swap at (0, d) is identified by reflection i ↦ d - i (in particular i ↦ q - i for normalized d = q ∈ {1, 2}).
  • rigid_3_2, rigid_3_3, rigid_3_4, rigid_3_5, rigid_4_2, rigid_5_2, combined in rigid_six_finite_cases: Pure structural proofs (no brute-force enumeration, no native_decide) showing every autocorrelation-preserving opposite-sign swap at (0, q) in ZMod (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 ∪ T with C = {i | π i = 1} and R-invariant T).
  • witness_even_q: Even q ≥ 4 with (q = 4 ∧ 3 ≤ L) ∨ (6 ≤ q ∧ 2 ≤ L) (T = {q / 2}), excluding all translations, reflections, and complements.
  • witness_odd_q: Odd q ≥ 5 with (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 the L = 6 (n = 18) boundary case via kernel decide on Fin 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: Composite n ≥ 12 corollary:
      (∃ 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:

FileTheoremAxioms
BackgroundCount.leanswap_iff_periodic_defect[propext, Classical.choice, Quot.sound]
BackgroundCount.leanbackground_count[propext, Classical.choice, Quot.sound]
BackgroundCount.leanbackground_ncard[propext, Classical.choice, Quot.sound]
Normalization.leanexists_unit_mul_gcd_eq[propext, Classical.choice, Quot.sound]
Normalization.leancorr_eq_pullback_iff[propext, Classical.choice, Quot.sound]
Normalization.leandihedralEquiv_pullback_iff[propext, Quot.sound]
Normalization.leanhasNontrivialSwap_iff_gcd[propext, Classical.choice, Quot.sound]
RigidityAndTable.leanrigid_reflection_of_gcd_le_two[propext, Classical.choice, Quot.sound]
RigidityAndTable.leanrigid_reflection_q1_q2[propext, Classical.choice, Quot.sound]
RigidityAndTable.leannot_hasNontrivialSwap_of_gcd_le_two[propext, Classical.choice, Quot.sound]
RigidityAndTable.leanrigid_six_finite_cases[propext, Classical.choice, Quot.sound]
UniversalConstructions.leanwitness_even_q[propext, Classical.choice, Quot.sound]
UniversalConstructions.leanwitness_odd_q[propext, Classical.choice, Quot.sound]
UniversalConstructions.leanwitness_q3[propext, Classical.choice, Quot.sound]
UniversalConstructions.leanhasNontrivialSwap_iff_admissible[propext, Classical.choice, Quot.sound]
UniversalConstructions.leanexists_nontrivial_swap_iff[propext, Classical.choice, Quot.sound]
ZITADEL IDENTITY · auth.distributed.systems

Researcher Identity & AI Attribution

Loading account state...