Lean source
Lib.Adelic.CuspForms.LevelForms
Its 36 declarations
LevelPlacesstructure, lines 23–27maxCompactAt_le_levelOflemma, lines 29–31fockLettersdef, lines 35–36letterPolydef, line 40stdClassSumabbrev, line 48LevelPlaces.instance, lines 58–59isConjApart_chosenPlace LevelPlaces.abbrev, line 62placeAt LevelPlaces.abbrev, line 65places LevelPlaces.def, lines 74–75LevelForm (instance)instance, line 77LevelPlaces.lemma, lines 83–84LevelForm. algFormRep_eq_self_of_mem LevelPlaces.lemma, lines 86–87LevelForm. mem_sphericalAt evalFormdef, line 90apply_eq_evalFormlemma, line 92LevelPlaces.def, lines 96–97LevelForm. toSmoothForm LevelPlaces.def, lines 101–104LevelForm. innerAt LevelPlaces.lemma, lines 108–114LevelForm. innerAt_eq_stdClassSum LevelPlaces.lemma, lines 116–117LevelForm. conj_innerAt LevelPlaces.lemma, lines 122–125LevelForm. eq_zero_of_innerAt_self (instance)instance, lines 127–130(instance)instance, line 132(instance)instance, line 134LevelPlaces.lemma, lines 138–139isOfFinOrder_level_char (instance)instance, lines 143–145LevelPlaces.lemma, lines 150–156map_inner_self_eq LevelPlaces.def, line 164LevelForm. normSqAt LevelPlaces.lemma, lines 168–173LevelForm. norm_map_inner_le gramForm_mem_embValRinglemma, lines 177–182LevelPlaces.def, lines 186–188LevelForm. integralForms LevelPlaces.lemma, lines 192–195LevelForm. norm_inner_le_one LevelPlaces.def, lines 201–202LevelForm. pairingMatrix LevelPlaces.def, line 206LevelForm. covolumeSq LevelPlaces.lemma, lines 211–215LevelForm. posSemidef_pairingMatrix LevelPlaces.lemma, lines 219–223LevelForm. norm_map_det_gram_le LevelPlaces.lemma, lines 229–233LevelForm. covolumeSq_le LevelPlaces.lemma, lines 237–239LevelForm. covolumeSq_elim_le
import Lib.GLn.Dual.ClassSumimport Lib.Adelic.CuspForms.ClassRepsimport Lib.Adelic.CuspForms.SmoothFormPairingimport Lib.Weil.Unramified.UniformiserScalarimport Lib.DiscreteSeries.Holomorphic.HolomorphicChamber/-! Part of: Cusp forms: rapid decay, finite dimension, Poincaré series; algebraic modular forms(known result; see Lib.Adelic.CuspForms.Petersson).This file: Algebraic modular forms on definite unitary groups: inner product, conjugate norms,integral lattice. -/noncomputable sectionopen Matrix NumberField MvPolynomial ComplexConjugate ComplexOrder Subgroup Real PolyRep Finsetsectionvariable {E r n : Type} [Field E] [NumberField E] [IsCMField E] [Fintype r] [Fintype n]variable (E) in/-- The chosen places (`chosenPlace`) and the places over the primes of a twist (`twistPlace`). -/structure LevelPlaces where (ChosenIndex TwistIndex) [fintypeChosen : Fintype ChosenIndex] [fintypeTwist : Fintype TwistIndex] chosenPlace : ChosenIndex → _ twistPlace : TwistIndex → FinPlace E apart : IsConjApart (chosenPlace ⊕ᵥ twistPlace)lemma maxCompactAt_le_levelOf {ι} {u : ι → FinPlace E} {w H} (h : w ∉ (Set.range u).conjClosure) : maxCompactAt n w ≤ levelOf u H := .trans (by simp_all [LE.le]; grind [star_star]) inf_trivialOn_le_levelOf/-- The algebra map sending the variable (τ, i, h) to the sum of the variables (τ, i, a) overthe indices a with sign s(a) = c and ord(a) = h. -/def fockLetters {Φ} (s : r → ℤˣ) (ord : r → ℕ) (c : ℤˣ) : MatrixPoly (Σ _ : Φ, n) ℂ →ₐ[ℂ] MvPolynomial (Φ × n × r) ℂ := aeval fun x ↦ ∑ a with s a = c ∧ ord a = x.2, X (x.1.1, x.1.2, a)/-- The linear map sending ξ of weight κ to its polynomial `toPoly` ξ, with each variable(τ, i, h) replaced by ∑ X(τ, i, a) over s(a) = c, ord(a) = h. -/def letterPoly {Φ} [Fintype Φ] s ord c κ := (@fockLetters r n _ Φ s ord c).toLinearMap ∘ₗ toPoly _ κendvariable {E n : Type} [Field E] [CMType E] [Fintype n] (P : LevelPlaces E)/-- The class sum `classSum` for the rational points of the standard definite space I_n, asa function of the level K and the summand. -/abbrev stdClassSum {X} [AddCommMonoid X] [Module ℚ X] := classSum (W := X) (stdSpace E n).Γfnamespace LevelPlacesattribute [instance] fintypeChosen fintypeTwist apartsectionvariable {E : Type} [Field E] [NumberField E] [IsCMField E] (P : LevelPlaces E)instance isConjApart_chosenPlace : IsConjApart P.chosenPlace := ⟨P.apart.1.comp Sum.inl_injective, fun _ _ ↦ P.apart.2 (.inl _) (.inl _)⟩/-- All places of P: those of `chosenPlace` and of `twistPlace`, indexed by the disjoint union. -/abbrev placeAt := P.chosenPlace ⊕ᵥ P.twistPlace/-- The set of finite places that occur in the families `chosenPlace` or `twistPlace` of P. -/abbrev places := Set.range P.placeAtendvariable (S : LevelPlaces E) (H : Subgroup (∀ i, GL n (ResField (S.placeAt i)))) (χ : H →* ℂ) (κ : NumberField.InfinitePlace E → ℕ → ℕ) (e : NumberField.InfinitePlace E → ℤ)/-- The space of algebraic forms of weight (κ, e) on I_n on which the level cut out by H at theplaces of S acts through the character χ. -/def LevelForm : Type := levelSpace (algFormRep κ e) _ (χ.comp (levelOf.reduction ..)) deriving AddCommGroup, Module ℂ, Module ℚinstance : CoeFun (S.LevelForm H χ κ e) fun _ ↦ Gf E n → WeylIndex n κ → ℂ := ⟨(·.1.1)⟩attribute [local simp] map_classSum mul_classSum mul_sum Rat.smul_def mul_nonneg gramForm_apply toLinearMapₛₗ₂'_apply dotProduct mulVecvariable {S H χ κ e} (σ : ℂ ≃+* ℂ) (φ φ' : S.LevelForm H χ κ e)lemma LevelForm.algFormRep_eq_self_of_mem {k} (hk : k ∈ levelOf S.placeAt ⊥) : algFormRep κ e k φ.1 = φ.1 := by simp [levelSpace_levelOf_apply φ.2 _ 1 (mem_levelOf.1 hk).2]lemma LevelForm.mem_sphericalAt {w} (hS : w ∉ S.places.conjClosure) : φ.1 ∈ sphericalAt (algFormRep ..) w := by simp [↓algFormRep_eq_self_of_mem, maxCompactAt_le_levelOf hS _]/-- Evaluation at g, as a complex-linear map on the level forms `S.LevelForm H χ κ e`. -/def _root_.evalForm g := (⟨⟨(· g), by tauto⟩, by tauto⟩ : S.LevelForm H χ κ e →ₗ[ℂ] _)lemma _root_.apply_eq_evalForm g : φ g = evalForm g φ := rfl/-- An algebraic form φ on I_n of level H, viewed as a smooth form: it is fixed by a subgroup offinite index in K₀. -/def LevelForm.toSmoothForm : S.LevelForm H χ κ e →ₗ[ℂ] (stdSpace E n).forms (κ, e) := Submodule.subtype _/-- For σ ∈ Aut ℂ, the index of the level in K₀ times the pairing `smoothPairing` of smooth formsfor the Gram form with σ⁻¹ ∘ conj ∘ σ as conjugation. -/@[irreducible] def LevelForm.innerAt := ((stdLevelIndex (levelOf _ H) : ℂ) • smoothPairing (toLinearMapₛₗ₂' ℂ (.comp ↑σ⁻¹ ((starRingEnd ℂ).comp σ)) _ (weylGramOver (κ := κ))) (σ.injective <| by simpa [Int.cast_comm] using gramForm_map_weightRep σ · · ·)).compl₂ (toSmoothForm (χ := χ)) ∘ₛₗ toSmoothForm (χ := χ) (e := e)/-- The pairing `LevelPlaces.LevelForm.innerAt` σ of φ and φ′ is σ⁻¹ of the class sum, over thelevel, of conj(σφ(g))ᵀ G σφ′(g), with G the integral Gram matrix of weight κ. -/lemma LevelForm.innerAt_eq_stdClassSum : innerAt σ φ φ' = σ⁻¹ (stdClassSum (levelOf _ H) fun g ↦ gramForm (σ ∘ φ g) (σ ∘ φ' g)) := by unfold innerAt; generalize_proofs; dsimp [smoothPairing] rw [classIntegral_eq_of_le (pairing_mem_smoothInvariants ‹_› ..).1 (fun k hk g ↦ σ.injective (by simp [← mul_assoc, RCLike.mul_conj, ← map_pow, @Complex.norm_eq_one_of_pow_eq_one _ (.card H), ne_of_gt, fun φ : LevelForm .. ↦ (congr($(φ.2 ⟨_, hk⟩).1 g) : φ.toSmoothForm.1 _ = χ _ • φ.toSmoothForm.1 g)])) (levelOf_le_Kf (H := H))]; simp [mul_comm]; rfllemma LevelForm.conj_innerAt : σ⁻¹ (conj (σ (φ'.innerAt σ φ))) = φ.innerAt σ φ' := by simp [innerAt_eq_stdClassSum, starRingEnd_apply, star_form weylGram_posDef.1, -dotProduct]/-- Definiteness of the σ-conjugate pairing: if an algebraic form φ of weight (κ, e), level Hand character χ has `LevelPlaces.LevelForm.innerAt` σ of φ with itself equal to 0, for anautomorphism σ of ℂ, then φ = 0. -/lemma LevelForm.eq_zero_of_innerAt_self (h : φ.innerAt σ φ = 0) : φ = 0 := eq_of_eq_on_class_reps Quot.out_eq (funext fun _ ↦ by_contra fun H ↦ (classSum_pos (fun _ ↦ weylGram_posDef.posSemidef.dotProduct_mulVec_nonneg _) (weylGram_posDef.dotProduct_mulVec_pos (by simpa [funext_iff] using! H))).ne' ((map_eq_zero _).1 (innerAt_eq_stdClassSum σ φ φ ▸ h :)))instance : NormedAddCommGroup (S.LevelForm H χ κ e) := InnerProductSpace.Core.toNormedAddCommGroup (cd := ⟨⟨⟨(·.innerAt 1)⟩, LevelForm.conj_innerAt 1, by simp [LevelForm.innerAt_eq_stdClassSum, classSum, sum_nonneg, ← weylNormSq.eq_1, -dotProduct], by simp, by simp⟩, LevelForm.eq_zero_of_innerAt_self 1⟩)instance : InnerProductSpace ℂ (S.LevelForm H χ κ e) := .ofCore _instance : FiniteDimensional ℂ (S.LevelForm H χ κ e) := finite_levelSpace_smoothFormRepattribute [local simp] LevelForm.innerAt_eq_stdClassSumlemma isOfFinOrder_level_char k : IsOfFinOrder (χ.comp (levelOf.reduction ..) k) := χ.isOfFinOrder (isMulTorsion_of_finite _)variable {E n : Type} [Field E] [NumberField E] [IsCMField E] [Fintype n] {S : LevelPlaces E} {H : Subgroup (∀ i, GL n (ResField (S.placeAt i)))} {χ : H →* ℂ} ininstance : Fact (χ.comp (levelOf.reduction _ H) =ᶠ[nhds 1] 1) := ⟨.mono ((isOpen_levelOf (w := S.placeAt) (H := ⊥)).preimage continuous_subtype_val |>.mem_nhds (by simp)) fun k h ↦ by simp [show levelOf.reduction _ _ k = 1 from Subtype.ext (mem_levelOf.1 h).2]⟩/-- Let φ, B be forms, σ ∈ Aut ℂ, p a permutation of the infinite places carrying the weight of φ tothat of B. If always σ(φ(g)_i) = c·a(g)·B(g)_{p i}, conj σ(conj φ(g)_i) = c'·a'(g)·B(g)_{p i},a(g)·conj a'(g) = 1, then σ⟨φ,φ⟩ = conj(c')·c·⟨B,B⟩. -/lemma map_inner_self_eq {χ' l p c c'} {B : S.LevelForm H χ' _ l} {a a' : _ → ℂ} (h : ∀ g i, σ (φ g i) = c * a g * B g (Equiv.piCongrLeft' _ p i)) (h' : ∀ g i, star (σ (star (φ g i))) = c' * a' g * B g (p.piCongrLeft' _ i)) (hc : ∀ g, a g * star (a' g) = 1) : σ (inner ℂ φ φ) = star c' * c * inner ℂ B B := by set f := p.piCongrLeft' _ simp_all [inner, ↓star_involutive.eq_iff, reindex_equiv f, weylGram_eq_submatrix κ p] grindnamespace LevelFormvariable (σ : ℂ ≃+* ℂ) {l : ℕ} [Fact l.Prime] (j : PadicPlace l)/-- For σ ∈ Aut ℂ, the number ‖φ‖²_σ: the class sum of the squared Gram norms of the vectorsσ(φ(g)). -/def normSqAt := classSum stdRatPoints (levelOf _ H) fun g ↦ weylNormSq (σ ∘ φ g)/-- Cauchy–Schwarz for conjugates: for algebraic forms x, y and σ ∈ Aut ℂ, |σ⟨y, x⟩| ≤‖x‖_σ·‖y‖_{σ′}, where σ′ is σ conjugated by complex conjugation. -/lemma norm_map_inner_le : ‖σ (inner ℂ φ' φ)‖ ≤ √(φ.normSqAt σ) * √(φ'.normSqAt ((starRingAut.trans σ).trans starRingAut)) := by simp_rw [inner, innerAt_eq_stdClassSum, normSqAt, classSum, finsum_eq_sum_of_fintype, map_sum] grw [norm_sum_le, ← sum_sqrt_mul_sqrt_le]; gcongr grw [← sqrt_mul, smul_mul_smul, weylNormSq, weylNormSq, ← posDef_cauchy_schwarz weylGram_posDef] repeat simp [-mul_sum]/-- If u has gauge at most 1 for Weyl's lattice at g under j∘conj, and v has gauge at most 1under j, then the Gram pairing u*Gv is integral with respect to j: ℂ → ℂ_l. -/lemma _root_.gramForm_mem_embValRing {g u v} (hu : weylGauge (ι := ⟨j.ιₚ.comp conj⟩) κ e g u ≤ 1) (hv : weylGauge (ι := j) κ e g v ≤ 1) : gramForm (n := n) u v ∈ embValRing (ι := j) := let ⟨γ, h, _⟩ := exists_mul_mem_integralAbove l g 1 by erw [← @weylGauge_embFin (γ := γ), @weylGauge_le_one_iff (hk := h), ← gramForm_map_weightRep 1] at * exact sum_mem fun _ _ ↦ mul_mem (hu _) (sum_mem fun _ _ ↦ mul_mem (by simp) (hv _))/-- The module, over the valuation ring of j: ℂ → ℂ_l, of forms φ with every value φ(g) of gaugeat most 1 for Weyl's lattice at g under j. -/def integralForms : Submodule embValRing (S.LevelForm H χ κ e) := .copy ((integralFormsAt ⊤ 1).comap (toSmoothForm.restrictScalars _)) {φ | ∀ g, weylGauge κ e g (φ g) ≤ 1} (by unfold integralFormsAt GaugeLe; aesop (add simp top_inf_eq))/-- If x is integral at j∘conj, y is integral at j, and A is divisible by the orders of allstabilisers at the level, then |j(A·⟨x, y⟩)| ≤ 1. -/lemma norm_inner_le_one {A} (hA : ∀ g, Nat.card (classAut stdRatPoints (levelOf _ H) g) ∣ A) (a : φ ∈ integralForms ⟨j.ιₚ.comp conj⟩) (b : φ' ∈ integralForms j) : ‖j.ιₚ (A • inner ℂ φ φ')‖ ≤ 1 := by simpa only [inner, innerAt_eq_stdClassSum] using! smul_classSum_mem _ hA (gramForm_mem_embValRing j (a _) <| b ·)variable {J : Type} [Fintype J] (y : J → S.LevelForm H χ κ e) {V β : ℝ}/-- For automorphisms σ_i of ℂ, the matrix whose (i, l) entry is the class sum over g of theGram pairing of σ_i(y_i(g)) with σ_l(y_l(g)), conjugate linear in the first. -/def pairingMatrix (σ : J → ℂ ≃+* ℂ) := of fun i l ↦ stdClassSum (levelOf _ H) fun g ↦ gramForm (σ i ∘ y i g) (σ l ∘ y l g)/-- The squared covolume of the family y at σ: the absolute value of the determinant of thematrix of products ⟨y_i, y_l⟩_σ of the σ-conjugated values. -/def covolumeSq σ := ‖(pairingMatrix y fun _ ↦ σ).det‖variable {y} {σ} {k : ℕ} {z : Fin k → S.LevelForm H χ κ e} (hz : ∀ a, (z a).normSqAt σ ≤ exp β)open MatrixOrder inlemma posSemidef_pairingMatrix {σ} : (pairingMatrix y σ).PosSemidef := Eq.subst (a := stdClassSum (levelOf _ H) fun g ↦ let T := of fun a i ↦ σ i (y i g a); Tᴴ * weylGramOver * T) (by simp [pairingMatrix, classSum, Matrix.mul_assoc, Matrix.sum_apply, entrywise]) (finsum_nonneg fun _ ↦ ((weylGram_posDef.posSemidef.conjTranspose_mul_mul_same _).smul (by simp)).nonneg).posSemidef/-- If the squared covolume of y is at most e^V at every automorphism of ℂ, then |σ(det G)| ≤e^V for the Gram matrix G of y. -/lemma norm_map_det_gram_le (h : ∀ σ, covolumeSq y σ ≤ exp V) : ‖σ (Matrix.gram ℂ y).det‖ ≤ exp V := by simpa [σ.map_det, pairingMatrix, inner, toBlocks₁₂, Matrix.map] using le_of_sq_le_sq ((norm_det_sq_le_of_posSemidef ((fromBlocks_toBlocks (pairingMatrix (y ⊕ᵥ y) (cond ·.isLeft ((starRingAut.trans σ).trans starRingAut) σ))).substr posSemidef_pairingMatrix)).trans (by rw [sq]; gcongr <;> apply h)) V.exp_nonneginclude hz/-- Hadamard's inequality: k forms of squared norm at most e^β at σ have squared covolume atmost e^(kβ) at σ. -/lemma covolumeSq_le : covolumeSq z σ ≤ exp (k * β) := by grw [covolumeSq, hadamard_det_inequality posSemidef_pairingMatrix, exp_nat_mul, ← Fin.prod_const]; gcongr simpa [↓← Complex.re_eq_norm.2 posSemidef_pairingMatrix.diag_nonneg, pairingMatrix, normSqAt, weylNormSq, ← Complex.reLm_coe] using hz _/-- Adjoining k forms of squared norm at most e^β at σ to a family of squared covolume at moste^V gives squared covolume at most e^(V + kβ). -/lemma covolumeSq_elim_le (h : covolumeSq y σ ≤ exp V) : covolumeSq (y ⊕ᵥ z) σ ≤ exp (V + k * β) := by grw [exp_add, ← h, ← covolumeSq_le hz]; exacts [fischer_det_inequality posSemidef_pairingMatrix, norm_nonneg _]