Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(New/Spanning/Bessel/SobolevBound): extract cube norm bound helper
Rohan Arunff86fd51ebc2
diff --git a/src/New/Spanning/Bessel/SobolevBound.lean b/src/New/Spanning/Bessel/SobolevBound.leanindex 14c198677ba..1fa8c48f5c3 100644--- a/src/New/Spanning/Bessel/SobolevBound.lean+++ b/src/New/Spanning/Bessel/SobolevBound.lean@@ -434,6 +434,22 @@ lemma New.RealPlace.sobolev_const_mul_le_pow {P N Λ : ℝ} (hP : 8 ≤ P) (h_no`x ↦ Z + e x` on the complex matrices of size `ϱ + 1`, preserving Lebesgue measure, in which thecoordinate vectors have operator norm at most `P ^ 2 / 4` and the cube of the `x` with allcoordinates in `[0, P⁻⁸]` lies within `P⁻⁶` of `Z`. -/+/-- Bound the norm of `e x` by `(P ^ 6)⁻¹` for `x` in the cube `[0, (P ^ 8)⁻¹] ^ FrameCoord`+when `e x` has norm at most `P ^ 2 * ‖x‖ / 8` and `0 < P`. -/+private lemma norm_apply_le_inv_pow_six_of_mem_cube {𝔰 : Shape} {P : ℝ} (hP : 0 < P)+ {e : (𝔰.FrameCoord → ℝ) ≃L[ℝ] 𝔰.FrameMatrix}+ (he : ∀ x : 𝔰.FrameCoord → ℝ, ‖e x‖ ≤ P ^ 2 * ‖x‖ / 8)+ {x : 𝔰.FrameCoord → ℝ}+ (hx : x ∈ Set.Icc (0 : 𝔰.FrameCoord → ℝ) fun _ ↦ (P ^ 8)⁻¹) :+ ‖e x‖ ≤ (P ^ 6)⁻¹ := by+ have norm_x_le : ‖x‖ ≤ (P ^ 8)⁻¹ := by+ simpa [abs_of_pos hP] using dist_le_of_mem_pi_Icc hx (Set.left_mem_Icc.2 (hx.1.trans hx.2))+ calc ‖e x‖ ≤ P ^ 2 * (P ^ 8)⁻¹ / 8 := by grw [he x, norm_x_le]+ _ = (P ^ 6)⁻¹ / 8 := by+ rw [show P ^ 8 = P ^ 2 * P ^ 6 by ring, mul_inv, ← mul_assoc,+ mul_inv_cancel₀ (pow_ne_zero 2 hP.ne'), one_mul]+ _ ≤ (P ^ 6)⁻¹ := by linarith [show (0 : ℝ) < (P ^ 6)⁻¹ by positivity]+lemma New.RealPlace.exists_real_coordinates_mapsTo_ball {𝔰 : Shape} {P : ℝ} (hP : 8 * 𝔰.r ≤ P)(Z : 𝔰.FrameMatrix) :∃ e : (𝔰.FrameCoord → ℝ) ≃L[ℝ] 𝔰.FrameMatrix,