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/PointLattice): state the dual lattice inclusion equivalence

alkor2000612d0f7747a5
diff --git a/src/Lib/Weil/Periods/PointLattice.lean b/src/Lib/Weil/Periods/PointLattice.lean
index e26dc591729..f3103995a5b 100644
--- a/src/Lib/Weil/Periods/PointLattice.lean
+++ b/src/Lib/Weil/Periods/PointLattice.lean
@@ -370,12 +370,21 @@ lemma formFin_star_smul_mem {A : Submodule (Ô E) (ι → 𝔸f E)} (h_le : c
exact (mem_latticePlus_iff_formFin (stringProj_eq_of_mem_latticePlus hz)).1 hz _
(smul_le_iff_forall.1 h_le y hy)
-/-- Let `Λ₁⁻`, `Λ₂⁻` be the intersections with `X^⊥` of the lattices of `x`, `x'`, and `Λ₁⁺`,
-`Λ₂⁺` their projections to `X^⊥`. An inclusion `c Λ₁⁻ ⊆ Λ₂⁻` gives `c̄ Λ₂⁺ ⊆ Λ₁⁺` by duality. -/
-lemma star_smul_latticePlus_le (h_le : c • Y.latticeMinus x ≤ Y.latticeMinus x') :
- star c • Y.latticePlus x' ≤ Y.latticePlus x :=
- smul_le_iff_forall.2 fun _ hz ↦ (mem_latticePlus_iff_formFin
- (stringProj_smul_of_mem_latticePlus hz)).2 (formFin_star_smul_mem h_le hz)
+/-- Multiplication by `c` sends the intersection lattice at `x` into that at `x'` exactly when
+multiplication by `star c` sends the projection lattice at `x'` into that at `x`. -/
+lemma smul_latticeMinus_le_iff :
+ c • Y.latticeMinus x ≤ Y.latticeMinus x' ↔ star c • Y.latticePlus x' ≤ Y.latticePlus x := by
+ constructor
+ · intro h_le
+ exact smul_le_iff_forall.2 fun _ hz ↦ (mem_latticePlus_iff_formFin
+ (stringProj_smul_of_mem_latticePlus hz)).2 (formFin_star_smul_mem h_le hz)
+ · intro h_le
+ refine smul_le_iff_forall.2 fun z hz ↦ (mem_latticeMinus_iff_formFin
+ (stringProj_smul_of_mem_latticePlus (latticeMinus_le_latticePlus hz))).2 ?_
+ intro y hy
+ have hy_star := smul_le_iff_forall.1 h_le y hy
+ have h_int := (mem_latticeMinus_iff_formFin (mem_latticeMinus.1 hz).2).1 hz _ hy_star
+ rwa [← Space.formFin_star_smul, star_star] at h_int
/-- Let `Λ'⁻` and `Λ'⁺` be the intersection with `X^⊥` and the projection to `X^⊥` of the lattice
of `x`. An inclusion `c Λ'⁺ ⊆ Λ'⁻` gives `c̄ Λ'⁺ ⊆ Λ'⁻` by duality. -/
diff --git a/src/New/UpperBound/Seesaw/Sandwich.lean b/src/New/UpperBound/Seesaw/Sandwich.lean
index 4e2844ca202..238ebfce5bc 100644
--- a/src/New/UpperBound/Seesaw/Sandwich.lean
+++ b/src/New/UpperBound/Seesaw/Sandwich.lean
@@ -162,7 +162,7 @@ lemma smul_latticeMinus_le_of_map_latticePlus {Y : Grading V N X s} {Y' : Gradin
h_shift_one_eq.ge (Submodule.smul_mem_pointwise_smul y a.val _ hy)
-- The dual `q̄ ^ k Λ⁺ ⊆ Λ'⁺` of the upper bound puts `q̄ ^ k z` into `Λ'⁺`.
have h_mem : star (q.val ^ k) • z ∈ Y.latticePlus x :=
- smul_le_iff_forall.1 (star_smul_latticePlus_le h_upper) z hz
+ smul_le_iff_forall.1 (smul_latticeMinus_le_iff.1 h_upper) z hz
have h_eq : star q.val ^ (k + 1) • y =
(star q / a).val • Y.stringMapFin Y' (star (q.val ^ k) • z) := by
rw [map_smul, hzy, smul_smul, smul_smul, mul_right_comm, ← Units.val_mul, div_mul_cancel,
@@ -220,7 +220,7 @@ lemma SpansLattice.hasLatticeBounds_or_latticeSplitsAt {Y : Grading V N (X ⊕ U
(h_lower : star q.val ^ k • Y.latticeMinus 1 ≤ Y.latticeMinus x) :
Y.HasLatticeBounds q.val k x ∨ Odd s ∧ ∃ w ∈ P, Y.LatticeSplitsAt w x := by
have h_dual : q.val ^ k • Y.latticePlus x ≤ Y.latticePlus 1 := by
- simpa only [star_pow, star_star] using star_smul_latticePlus_le h_lower
+ simpa only [star_pow, star_star] using smul_latticeMinus_le_iff.1 h_lower
refine or_iff_not_imp_left.2 fun h_fail ↦ ?_
obtain ⟨y, hy, hy_notMem⟩ : ∃ y ∈ Y.latticeMinus x, q.val ^ k • y ∉ Y.latticeMinus 1 := by
by_contra! h_upper