Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

fix(Lib/Weil/Periods/LatticeBounds): keep Y explicit on finite_image_latticeMinus

Rohan Arun61ac22107cfc
diff --git a/src/Lib/Weil/Periods/LatticeBounds.lean b/src/Lib/Weil/Periods/LatticeBounds.lean
index a80229258ab..936aa78bbea 100644
--- a/src/Lib/Weil/Periods/LatticeBounds.lean
+++ b/src/Lib/Weil/Periods/LatticeBounds.lean
@@ -115,7 +115,8 @@ namespace Grading
/-- 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 {Y : Grading V N X s}
+variable (Y) in
+private lemma latticeMinus_recover_of_hasLatticeBounds
(q : (𝔸f E)ˣ) (k : ℕ)
(U : Submodule (Ô E) (ι → 𝔸f E))
(h_inter : U ⊓ (Y.stringProj.range.restrictScalars (Ô E)) ≤