Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(New/UpperBound/Divisibility/MarkOperator): restore Prime instance and fix gcongr
Rohan Arun0006fb6932c9
diff --git a/src/New/UpperBound/Divisibility/MarkOperator.lean b/src/New/UpperBound/Divisibility/MarkOperator.leanindex 3cfebe94aca..e6730634668 100644--- a/src/New/UpperBound/Divisibility/MarkOperator.lean+++ b/src/New/UpperBound/Divisibility/MarkOperator.lean@@ -62,6 +62,7 @@ private lemma pow_frobExp_mul_ceilLogLifts_le_sqrt_b {P : Parameters} (D : Data(T : FrobeniusCycle N W O) (hfrobExp_le : T.frobExp ≤ D.ceilLogLifts T.p)(h_logX₁ : 0 < D.logX₁) :(D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p) ≤ √D.b := by+ have : Fact T.p.Prime := ⟨T.prime⟩have h_exp : T.frobExp * (3 * D.ceilLogLifts T.p) ≤ 3 * l₀ D.towerExp ^ 2 := bygrw [hfrobExp_le, (ceilLogLifts_le_l₀ : D.ceilLogLifts T.p ≤ l₀ D.towerExp), sq,mul_left_comm]@@ -70,6 +71,7 @@ private lemma pow_frobExp_mul_ceilLogLifts_le_sqrt_b {P : Parameters} (D : Data(pow_mul _ _ _).symm_ ≤ D.x₁ ^ (3 * l₀ D.towerExp ^ 2) := pow_le_pow_right₀ (one_le_exp h_logX₁.le) h_exp_ ≤ √D.b := D.x₁_pow_le_sqrt_b+/-- Let `T` be a Frobenius cycle with `N` letters: a cycle of `N` ring maps from a local ring `W`,each congruent modulo the prime `p = T.p` to the `P`-th power of the one before, with`P = p ^ T.frobExp`; put `q = P ^ N`, the size of the residue field. Let `13 ≤ p < D.x₁`, let@@ -112,7 +114,6 @@ theorem isLargeDegree_of_le_card {P : Parameters} (D : Data P) {N : ℕ} {W O :have h_log : Real.log T.q ≤ T.frobExp * N * D.logX₁ := byrw [hq, Nat.cast_pow, Real.log_pow, Nat.cast_mul]gcongr- exact h_logX₁.leexact (log_le_iff_le_exp (by positivity)).2 hp.lehave h_pow : (D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p) ≤ √D.b :=D.pow_frobExp_mul_ceilLogLifts_le_sqrt_b T hfrobExp_le h_logX₁