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/Spanning/RemainingTerms/FrameCount): discharge nonneg side goals in helper

Rohan Arun20f93b3c70e6
diff --git a/src/New/Spanning/RemainingTerms/FrameCount.lean b/src/New/Spanning/RemainingTerms/FrameCount.lean
index 321d0e4925c..42c85c16837 100644
--- a/src/New/Spanning/RemainingTerms/FrameCount.lean
+++ b/src/New/Spanning/RemainingTerms/FrameCount.lean
@@ -281,13 +281,21 @@ private lemma norm_div_basisScale_smul_frameVector_le [S.IsAdmissible] {z : 𝔰
(B : ℝ) (hx : ∀ k : Fin (𝔰.ϱ + 1), ‖x k‖ ≤ B) (a k : Fin (𝔰.ϱ + 1)) :
‖(x k / S.basisScale v (𝔰.besselFrame k)) • frameVector z k‖ ≤
B * (S.b ^ (23 * 𝔰.ϱ) / ‖S.basisScale v (𝔰.besselFrame a)‖) * S.b ^ (37 * 𝔰.n) := by
+ have hb : 0 ≤ S.b := by linarith [S.one_le_b]
+ have hB : 0 ≤ B := (norm_nonneg _).trans (hx a)
have h_scale : ‖S.basisScale v (𝔰.besselFrame k)‖⁻¹ ≤
S.b ^ (23 * 𝔰.ϱ) / ‖S.basisScale v (𝔰.besselFrame a)‖ := by
rw [inv_eq_one_div, div_le_div_iff₀ (norm_pos_iff.2 (S.basisScale_ne_zero v _))
(norm_pos_iff.2 (S.basisScale_ne_zero v _)), one_mul]
exact norm_basisScale_besselFrame_le v a k
have h_frame : ‖frameVector z k‖ ≤ S.b ^ (37 * 𝔰.n) := h_box k
- grw [norm_smul, norm_div, div_eq_mul_inv, hx k, h_scale, h_frame]
+ have h_inv_nonneg : 0 ≤ ‖S.basisScale v (𝔰.besselFrame k)‖⁻¹ := inv_nonneg.2 (norm_nonneg _)
+ have h_frame_nonneg : 0 ≤ ‖frameVector z k‖ := norm_nonneg _
+ grw [norm_smul, norm_div, div_eq_mul_inv, hx k]
+ · grw [h_scale]
+ · grw [h_frame]
+ · positivity
+ · positivity
/-- Let `S` satisfy the standing hypotheses `S.IsAdmissible` on the level and the sizes, and let `v`
be an infinite place of the CM field `E`. Let the frame vectors `z⁻¹ f_k` at `z` have length at most