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/UpperBound/Divisibility/MarkOperator): pass h_logX₁ into helper

Rohan Arune878b3c6ecd6
diff --git a/src/New/UpperBound/Divisibility/MarkOperator.lean b/src/New/UpperBound/Divisibility/MarkOperator.lean
index 66bfea8c00f..3cfebe94aca 100644
--- a/src/New/UpperBound/Divisibility/MarkOperator.lean
+++ b/src/New/UpperBound/Divisibility/MarkOperator.lean
@@ -56,12 +56,12 @@ namespace New.Data
open Finset ZMod Nat Columns Parameters RingHom Module Real IsLocalization AtPrime NumberField
/-- Bound `(D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p)` by `√D.b` when
-`T.frobExp ≤ D.ceilLogLifts T.p`. -/
+`T.frobExp ≤ D.ceilLogLifts T.p` and `0 < D.logX₁`. -/
private lemma pow_frobExp_mul_ceilLogLifts_le_sqrt_b {P : Parameters} (D : Data P)
{N : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O]
- (T : FrobeniusCycle N W O) (hfrobExp_le : T.frobExp ≤ D.ceilLogLifts T.p) :
+ (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 h_logX₁ : 0 < D.logX₁ := HasLogBound.pos D
have h_exp : T.frobExp * (3 * D.ceilLogLifts T.p) ≤ 3 * l₀ D.towerExp ^ 2 := by
grw [hfrobExp_le, (ceilLogLifts_le_l₀ : D.ceilLogLifts T.p ≤ l₀ D.towerExp), sq,
mul_left_comm]
@@ -115,7 +115,7 @@ theorem isLargeDegree_of_le_card {P : Parameters} (D : Data P) {N : ℕ} {W O :
exact h_logX₁.le
exact (log_le_iff_le_exp (by positivity)).2 hp.le
have h_pow : (D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p) ≤ √D.b :=
- D.pow_frobExp_mul_ceilLogLifts_le_sqrt_b T hfrobExp_le
+ D.pow_frobExp_mul_ceilLogLifts_le_sqrt_b T hfrobExp_le h_logX₁
calc ((N : ℝ) * D.k * Real.log T.q / (1 / (D.m ^ 2 * D.f))) ^ 5 *
(T.P : ℝ) ^ (3 * D.ceilLogLifts T.p)
≤ ((N : ℝ) * D.k * (T.frobExp * N * D.logX₁) / (1 / (D.m ^ 2 * D.f))) ^ 5 * √D.b := by