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(Lib/Weil/Periods/LatticeBounds): keep Y explicit on finite_image_latticeMinus

Rohan Arunfa3bfeea1edb
diff --git a/src/Lib/Weil/Periods/LatticeBounds.lean b/src/Lib/Weil/Periods/LatticeBounds.lean
index b3b44afc423..a80229258ab 100644
--- a/src/Lib/Weil/Periods/LatticeBounds.lean
+++ b/src/Lib/Weil/Periods/LatticeBounds.lean
@@ -112,13 +112,10 @@ end Space
namespace Grading
-variable {Y : Grading V N X s}
-
-variable (Y) in
/-- For `x` satisfying `Y.HasLatticeBounds q.val k x` with `q` invertible, intersecting
the preimage of `(Y.latticeMinus x).map U.mkQ` under `U.mkQ` with `Y.stringProj.range`
recovers `Y.latticeMinus x` by the modular law. -/
-private lemma latticeMinus_recover_of_hasLatticeBounds
+private lemma latticeMinus_recover_of_hasLatticeBounds {Y : Grading V N X s}
(q : (𝔸f E)ˣ) (k : ℕ)
(U : Submodule (Ô E) (ι → 𝔸f E))
(h_inter : U ⊓ (Y.stringProj.range.restrictScalars (Ô E)) ≤
@@ -130,6 +127,7 @@ private lemma latticeMinus_recover_of_hasLatticeBounds
rw [Submodule.comap_map_mkQ, sup_comm, sup_inf_assoc_of_le U h_le,
sup_eq_left.2 (h_inter.trans hx.lower)]
+variable (Y) in
/-- For an invertible finite adele `q`, the points `x` of the finite adelic unitary group with the
bounds `q̄ ^ k Λ⁻ ⊆ Λ'⁻`, `q ^ k Λ'⁻ ⊆ Λ⁻` give only finitely many intersections `Λ'⁻` of their
lattice with `X^⊥`. Here `Λ⁻` is the intersection for `x = 1`. -/