Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
chore: drop unused order hypotheses from exists_kernel_form
Ved Joshi8d4eee14de10
diff --git a/src/Lib/Adelic/AutomorphicForms/RealConvolution.lean b/src/Lib/Adelic/AutomorphicForms/RealConvolution.leanindex e6575d0fbba..d2a6e4c083a 100644--- a/src/Lib/Adelic/AutomorphicForms/RealConvolution.lean+++ b/src/Lib/Adelic/AutomorphicForms/RealConvolution.lean@@ -707,12 +707,12 @@ theorem exists_kernel_form_of_bump {E n : Type} [Field E] [CMType E] [Fintype n]end New.Space-/-- Let `e` be a cusp kernel of order `B > 8 n ^ 2` on the real group of a space `V` and `K` a-level, that is, an open subgroup of the standard compact subgroup of `G_f`. For fixed `x` there is a-form of type `e` (a bounded automorphic function fixed by `e`) of level `K` whose conjugate is the-kernel `g ↦ ∑_γ (e ⊗ 1_K)(x γ g)`, the sum over the rational points. -/+/-- Let `e` be a cusp kernel on the real group of a space `V` and `K` a level, that is, an open+subgroup of the standard compact subgroup of `G_f`. For fixed `x` there is a form of type `e` (a+bounded automorphic function fixed by `e`) of level `K` whose conjugate is the kernel+`g ↦ ∑_γ (e ⊗ 1_K)(x γ g)`, the sum over the rational points. -/theorem New.Space.exists_kernel_form {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n]- [Nonempty n] {s : n → ℤˣ} (V : Space E n s) {e : GInf E s → ℂ} {B : ℕ} (hB : 8 * card n ^ 2 < B)+ [Nonempty n] {s : n → ℤˣ} (V : Space E n s) {e : GInf E s → ℂ} {B : ℕ}(he : IsCuspKernel B e) (x : G E s) (K : Subgroup (Gf E n)) [hK : IsLevel K] :∃ k : levelSpace (V.formRep e) K, ∀ g : G E s, starRingEnd ℂ (k.val g) =∑' γ : V.Γ, e (x * γ * g).1 * Set.indicator K 1 (x * γ * g).2 :=diff --git a/src/Lib/Adelic/TraceFormula/OrbitalUnfolding.lean b/src/Lib/Adelic/TraceFormula/OrbitalUnfolding.leanindex 4616f770980..2c8c99e7d1f 100644--- a/src/Lib/Adelic/TraceFormula/OrbitalUnfolding.lean+++ b/src/Lib/Adelic/TraceFormula/OrbitalUnfolding.lean@@ -235,11 +235,11 @@ lemma inner_kernel_form {K : Subgroup (Gf E n)} [hK : IsLevel K] (he : IsCuspKer_ = volume.real (K : Set (Gf E n)) * v.val.val g := byrw [v.val.property.realConv_eq he.integrable, hχ, mul_comm]-/-- The kernel for the characteristic function of the level: if `e` is a cusp kernel of order-`B ≥ 13 n ^ 3`, `K` a level and `b` an orthonormal basis of the forms of type `e` and level `K`,-then `∑_γ (e ⊗ 1_K)(g⁻¹ γ g') = vol K ∑_i b_i(g) conj(b_i(g'))`. -/+/-- The kernel for the characteristic function of the level: if `e` is a cusp kernel, `K` a level+and `b` an orthonormal basis of the forms of type `e` and level `K`, then+`∑_γ (e ⊗ 1_K)(g⁻¹ γ g') = vol K ∑_i b_i(g) conj(b_i(g'))`. -/theorem tsum_kernel_eq_sum {K : Subgroup (Gf E n)} [hK : IsLevel K] [Nonempty n]- (hB : 13 * card n ^ 3 ≤ B) (he : IsCuspKernel B e) {ι : Type*} [Fintype ι]+ (he : IsCuspKernel B e) {ι : Type*} [Fintype ι](b : OrthonormalBasis ι ℂ (levelSpace (V.formRep e) K)) (g g' : G E s) :∑' γ : V.Γ, e (g⁻¹ * γ * g').1 * Set.indicator K 1 (g⁻¹ * γ * g').2 =volume.real (K : Set (Gf E n)) *@@ -247,7 +247,7 @@ theorem tsum_kernel_eq_sum {K : Subgroup (Gf E n)} [hK : IsLevel K] [Nonempty n]-- The conjugate of the left side is a form `F` in `g'`; expand it in the basis.obtain ⟨F, hF⟩ : ∃ F : levelSpace (V.formRep e) K, ∀ g' : G E s, starRingEnd ℂ (F.val.val g') =∑' γ : V.Γ, e (g⁻¹ * γ * g').1 * Set.indicator K 1 (g⁻¹ * γ * g').2 :=- V.exists_kernel_form (eight_mul_sq_lt_of_thirteen_mul_cube_le card_pos hB) he g⁻¹ K+ V.exists_kernel_form he g⁻¹ Klet ev : levelSpace (V.formRep e) K →ₗ[ℂ] ℂ :={ toFun v := v.val.val g', map_add' _ _ := rfl, map_smul' _ _ := rfl }have h_expand : ev F = ∑ i : ι, ⟪b i, F⟫_ℂ * ev (b i) := by@@ -279,7 +279,7 @@ theorem partialKernel_convIndicator_eq_sum {K : Subgroup (Gf E n)} [hK : IsLevel| of h =>change V.partialKernel e (convIndicator hK.isOpen hK.isCompact _) .univ g g' = _simp only [MonoidAlgebra.of_apply, Representation.asAlgebraHom_single_one, formRep_apply]- rw [← V.tsum_kernel_eq_sum hB he b (g * (1, h)) g']+ rw [← V.tsum_kernel_eq_sum he b (g * (1, h)) g']let i : U V.J ≃ V.Γ := (MonoidHom.ofInjective V.ratEmbed_injective).toEquivhave hi (γ : U V.J) : (i γ : G E s) = V.ratEmbed γ := rflrw [← i.tsum_eq]diff --git a/src/New/Determinant/AuxiliaryForms/DeepLevelVanishing.lean b/src/New/Determinant/AuxiliaryForms/DeepLevelVanishing.leanindex d9230ac4ab5..0f816bc16f0 100644--- a/src/New/Determinant/AuxiliaryForms/DeepLevelVanishing.lean+++ b/src/New/Determinant/AuxiliaryForms/DeepLevelVanishing.lean@@ -360,14 +360,13 @@ lemma New.Exchange.norm_le_half_of_firstMinimum_lt {l : NumberField.InfinitePlacomit [Nonempty n] in/-- Let `y` be a function on the group of `V` whose Petersson product with `x ↦ φ ((x ⊕ 1) ω)` iszero for all forms `φ` on `Z = V ⊕ ⟨1⟩` of type `l'` and level `K`, where the parameters `l' w` have-large gaps for `2 A` and `8 (card n + 1)² < A`. Fix a real point `α` and put `c g = ∏ w, conj ((l'-w).dsCoeff ((α w)⁻¹ * g w * ω w))`, the translated coefficient for `l'`. Then the Poincaré series-over the rational points `γ` of `Z` of `c` times the indicator of `K` at the finite part-(`poincareKernel`), centred at `x ⊕ 1`, has zero period against `y` over the quotient of the group-of `V` by its rational points (`quotMeasure`). -/+large gaps for `2 A`. Fix a real point `α` and put `c g = ∏ w, conj ((l' w).dsCoeff ((α w)⁻¹ * g w *+ω w))`, the translated coefficient for `l'`. Then the Poincaré series over the rational points `γ`+of `Z` of `c` times the indicator of `K` at the finite part (`poincareKernel`), centred at `x ⊕ 1`,+has zero period against `y` over the quotient of the group of `V` by its rational points+(`quotMeasure`). -/lemma New.Exchange.poincare_period_translatedCoeff_eq_zero{l' : NumberField.InfinitePlace D.E → HCParam (s ⊕ᵥ (1 : Unit → ℤˣ))}- (hA : 8 * (card n + 1) ^ 2 < A)(h_gap' : ∀ w : NumberField.InfinitePlace D.E, (l' w).HasLargeGap (2 * A)){ω : GInf D.E (s ⊕ᵥ (1 : Unit → ℤˣ))} {y : G D.E s → ℂ}{K : Subgroup (Gf D.E (n ⊕ Unit))} [IsLevel K]@@ -386,12 +385,11 @@ lemma New.Exchange.poincare_period_translatedCoeff_eq_zeropoincareKernel (translatedCoeff l' α ω) K ((G.inlLine D.E s x)⁻¹ * γ.val * G.inlLine D.E s h)let deg : ℂ := ∏ w, (l' w).formalDegreehave deg_ne : deg ≠ 0 := by simp [deg, prod_ne_zero_iff, (formalDegree_pos (h_gap' _)).ne']- have h_order : 8 * card (n ⊕ Unit) ^ 2 < 2 * A := by grind [card_sum, card_unit]let centreInv : G D.E (s ⊕ᵥ 1) := (G.sum (x, 1) * (α, 1))⁻¹obtain ⟨Q, hQ⟩ : ∃ Q : levelSpace (Z.formRep (typeKernel l' (s ⊕ᵥ 1))) K,∀ g : G D.E (s ⊕ᵥ 1), conj (Q.val g) = ∑' γ : Z.Γ,typeKernel l' (s ⊕ᵥ 1) (centreInv * γ * g).1 * Set.indicator K 1 (centreInv * γ * g).2 :=- Z.exists_kernel_form h_order (isCuspKernel_typeKernel h_gap') centreInv K+ Z.exists_kernel_form (isCuspKernel_typeKernel h_gap') centreInv Khave conj_Q (h : G D.E s) :conj (Q.val (G.sum (h, 1) * (ω, 1))) = deg * ∑' γ : Z.Γ, term γ h := byrw [hQ, ← tsum_mul_left]@@ -438,7 +436,7 @@ lemma New.Exchange.norm_realConv_translatedCoeff_lelet slice (r : GInf D.E s) : ℂ := translatedCoeff l' α ω (inl s 1 ∘ r)have key : Integrable slice ∧‖0 - vol • realConv slice y x‖ ≤ vol * sliceConst A α ω * S * (10 / m) := by- rw [← poincare_period_translatedCoeff_eq_zero h_size.rank_sq_lt h_gap' h_orth x α]+ rw [← poincare_period_translatedCoeff_eq_zero h_gap' h_orth x α]exact norm_poincare_period_sub_le hy hS Fact.out hy_level h_size.pow_le_norm_gridLevelGenh_size.dim_leh_size.rank_sq_lt h_gap' (by positivity) x h_large (h_size.places_le.trans h_size.beta_le_m)