Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

refactor(New/Derivatives/Vacuum/ShortVectors): prove the prime-factor step of exists_cyclotomic_different_factor by grind

sangxshdf1ad815565a
diff --git a/src/New/Derivatives/Vacuum/ShortVectors.lean b/src/New/Derivatives/Vacuum/ShortVectors.lean
index 4dffbd6a184..715c20fa776 100644
--- a/src/New/Derivatives/Vacuum/ShortVectors.lean
+++ b/src/New/Derivatives/Vacuum/ShortVectors.lean
@@ -140,19 +140,7 @@ lemma exists_cyclotomic_different_factor {R : Type*} [CommRing R] [IsDomain R] [
_ = r := hr_eq.symm
_ ≤ N := hr_lt.le
have hM_primes : ∀ p ∈ N.primeFactors, p ∣ M ↔ p ≠ l := by
- intro p hp
- obtain ⟨hp_prime, hp_dvd, -⟩ := Nat.mem_primeFactors.1 hp
- constructor
- · rintro hpM rfl
- exact hl_ndvd_M hpM
- · intro hp_ne
- have hp_r : p ∣ r := by
- rw [hN_eq] at hp_dvd
- exact (hp_prime.dvd_mul.1 hp_dvd).resolve_left
- fun h ↦ hp_ne ((Nat.prime_dvd_prime_iff_eq hp_prime hl_prime).1 h)
- rw [hr_eq] at hp_r
- exact (hp_prime.dvd_mul.1 hp_r).resolve_left fun h ↦
- hp_ne ((Nat.prime_dvd_prime_iff_eq hp_prime hl_prime).1 (hp_prime.dvd_of_dvd_pow h))
+ grind [Nat.Prime.dvd_mul, Nat.prime_eq_prime_of_dvd_pow, Nat.prime_dvd_prime_iff_eq]
-- Differentiate `X ^ N - 1 = (X ^ r - 1) * Φ_N(X) * q(X)` at `ζ` and multiply by `ζ`.
have h_root : (cyclotomic N R).eval ζ = 0 := hζ.isRoot_cyclotomic hN_pos
have h_deriv_N :