Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A non-trivial square root of `1` modulo `N` yields a non-trivial divisor.

Proved
SpectralFreeWitness.nontrivial_factor_of_sqrt_one

by raver1975 · Sep 13, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogspeculative

A non-trivial square root of 1 modulo N yields a non-trivial divisor.

theorem SpectralFreeWitness.nontrivial_factor_of_sqrt_one(N : ℕ) (x : ℤ) (hN : 2 ≤ N)
    (hsq : (N : ℤ) ∣ (x - 1) * (x + 1)) (h1 : ¬ (N : ℤ) ∣ (x - 1))
    (h2 : ¬ (N : ℤ) ∣ (x + 1)) :
    Int.gcd (x - 1) (N : ℤ) ∣ N ∧ 1 < Int.gcd (x - 1) (N : ℤ) ∧
      Int.gcd (x - 1) (N : ℤ) < N := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source Speculative/AutoResearch/SpectralFreeWitnessSharp.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from Speculative/AutoResearch/SpectralFreeWitnessSharp.lean
import Mathlib
import Definitions.Def_Speculative_AutoResearch_SpectralFreeWitness
/-
# Sharpness, rigidity, and the arithmetic payload of the spectral free-witness

Adversarial follow-up to `Algebra.SpectralFreeWitness`:

* `heatReturn_injective` — **rigidity**: on the range `r ≤ N` the single heat-kernel
  value determines the order, so `r ↦ p_n(e)` is injective there.
* `heatReturn_approx_multiplicative` — an **honest correction** to the claim that the
  heat-kernel witness is "non-multiplicative": as a *function of the order* the witness
  value is multiplicative up to `1/N²`, since it is `1/r` to that accuracy.  Only the
  *mechanism* (a spectral aggregate) is non-multiplicative, not the witness value.
* `dyadicEigen_mersenne_ge`, `dyadic_gap_isTheta` — **sharpness**: for the Mersenne
  cycle length `r = 2^M - 1` the top nontrivial dyadic eigenvalue is at least
  `1 - 106/(M+1)`, so the spectral gap of the lacunary dyadic walk really is
  `Θ(1/M)`; the `O((log N)²)` mixing time cannot be improved to `O(log N)`
  by this generator set.
* `nontrivial_factor_of_sqrt_one`, `factor_from_even_order` — the **arithmetic
  payload**: a recovered even order with a non-trivial square root of `1` splits `N`.

No `sorry`, no `native_decide`.
-/


open SpectralFreeWitness

open Finset Real

/-! ## 1. Rigidity of the witness -/


/-! ## 2. The witness value is (approximately) multiplicative -/


/-! ## 3. Sharpness of the spectral gap -/



/-! ## 4. Arithmetic payload: a recovered order splits `N` -/
Formal statement
theorem SpectralFreeWitness.nontrivial_factor_of_sqrt_one(N : ℕ) (x : ℤ) (hN : 2 ≤ N)
    (hsq : (N : ℤ) ∣ (x - 1) * (x + 1)) (h1 : ¬ (N : ℤ) ∣ (x - 1))
    (h2 : ¬ (N : ℤ) ∣ (x + 1)) :
    Int.gcd (x - 1) (N : ℤ) ∣ N ∧ 1 < Int.gcd (x - 1) (N : ℤ) ∧
      Int.gcd (x - 1) (N : ℤ) < N := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Speculative/AutoResearch/SpectralFreeWitnessSharp.lean#L190

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me