Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
fix(New/UpperBound/Divisibility/MarkOperator): drop unused args and keep h_logX₁ in scope
Rohan Arun76cab309c555
diff --git a/src/New/UpperBound/Divisibility/MarkOperator.lean b/src/New/UpperBound/Divisibility/MarkOperator.leanindex 66249e02d14..66bfea8c00f 100644--- a/src/New/UpperBound/Divisibility/MarkOperator.lean+++ b/src/New/UpperBound/Divisibility/MarkOperator.lean@@ -55,14 +55,12 @@ namespace New.Dataopen 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.p < D.x₁`,-`0 < T.frobExp ≤ D.ceilLogLifts T.p`, and `T.p` is prime. -/+/-- Bound `(D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p)` by `√D.b` when+`T.frobExp ≤ D.ceilLogLifts T.p`. -/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) (hp : T.p < D.x₁) (hfrobExp_pos : 0 < T.frobExp)- (hfrobExp_le : T.frobExp ≤ D.ceilLogLifts T.p) :+ (T : FrobeniusCycle N W O) (hfrobExp_le : T.frobExp ≤ D.ceilLogLifts T.p) :(D.x₁ ^ T.frobExp) ^ (3 * D.ceilLogLifts T.p) ≤ √D.b := by- have : Fact T.p.Prime := ⟨T.prime⟩have h_logX₁ : 0 < D.logX₁ := HasLogBound.pos Dhave 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,@@ -72,7 +70,6 @@ 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@@ -89,6 +86,7 @@ theorem isLargeDegree_of_le_card {P : Parameters} (D : Data P) {N : ℕ} {W O :T.IsLargeDegree D.k D.a (D.ceilLogLifts T.p) (1 / (D.m ^ 2 * D.f)) := byhave : Fact T.p.Prime := ⟨T.prime⟩have hq : T.q = T.p ^ (T.frobExp * N) := (pow_mul _ _ _).symm+ have h_logX₁ : 0 < D.logX₁ := HasLogBound.pos Drefine{ block_pos := hfrobExp_pos.trans_le hfrobExp_letwo_mul_block_le := D.nat_le_of_hasLogBound@@ -114,10 +112,10 @@ 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- have h_logX₁ : 0 < D.logX₁ := HasLogBound.pos D+ 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 hp hfrobExp_pos hfrobExp_le+ D.pow_frobExp_mul_ceilLogLifts_le_sqrt_b T hfrobExp_lecalc ((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