module import Mathlib.Data.Rat.Cast.OfScientific public import Lib.GaloisRep.TaylorWiles public import New.Congruences.GaloisRepresentations.RowsAndColumnsFromLabels import New.Congruences.GaloisRepresentations.AttachedRepresentations import New.OneLift.FalseLifts.BottomOfTower /-! # Base data whose forms contain those with given labels in a lift setting Let `O` be a descent pair (`New.DescentPair`): hermitian spaces `W` and `V` with bases `r` and `n`, with chosen places, twist places, weights and a character. Let `c` be a tuple of labels (polynomials over the residue fields) at the chosen places, forming a lift setting with a twist `ϑ` (`New.Selmer.IsLiftSetting`); `typeProjection O c` is the idempotent on forms that cuts out the labels `c`. * `New.Selmer.IsFormOfType`, `New.Selmer.IsFormOfType.isRepOfType_normalizedRep`: the eigenforms of type `c` with the level and character of `O` off a set of places, and their normalised representations as representations of a type. * `New.Selmer.exists_baseLevel`: base data (`New.Patching.BaseLevel`) whose forms contain the image of the idempotent and whose eigensystems have normalised representations that are representations of a type with a quadratic relation on inertia, when the modulus of `ϑ` is auxiliary; also, `New.Data.chosenGroupOrder` times the idempotent keeps integral forms. Notions from other files: * `New.levelSpace`: the vectors `v` of a representation `π` with `π k v = χ k • v` for all `k` in the subgroup `K`. * `New.Gf.componentOn`: keeps the components of an element at the places of `S` and their conjugates, and replaces the others by 1. * `New.DescentPair.columnCount`: the weight datum `(τ, i) ↦ k⁺(τ, i) + k⁻(τ, n − i)` of forms on the definite space of rank `n`, with `k⁺`, `k⁻` the two weights of the pair. * `New.DescentPair.FormV`: the algebraic forms on the definite space of rank `n` with the weight `(O.columnCount, O.detExp)`, the level group and the level character `O.levelChar` of the pair `O`. * `New.DescentPair.chosenGLRep`: the action of `∏ GL_r(k_w)`, over the chosen places `w`, on the vectors of `π` with the level and character of `O`, twisted by `∏ ψ_w (det g_w)`, where `ψ_w` is the character `O.tamePart w` of the residue field `k_w`. * `New.levelOf`, `New.descentResidueLevel`, `New.DescentPair.levelChar`: the level of `O` is the group of integral elements whose reductions at its places lie in `descentResidueLevel`; `levelChar` is its character. * `New.Data.chosenGroupOrder`: the order of a product of groups `GL` over the residue fields of the chosen places of `D`; `New.Patching.BaseLevel.ellIntegralForms`: the forms whose values at the points integral above `ℓ` are sent to `ℓ`-adic integers by `ιℓ : ℂ ≃ ℚ̄_ℓ`. * `New.HasProductLabel`: a label of a form at a place, made from a polynomial and characters of blocks of given sizes; `New.faithfulChar`: the faithful character by which it is formed. * `New.Selmer.IsRepOfType`: a conjugate self-dual representation of given jumps and level on which inertia at the chosen places acts through the roots of the labels; `New.Selmer.normalizedRep`: the twist of a representation by `normalizingAvatar O`; `ϑ.invAvatar`: the `ℓ`-adic avatar of `ϑ⁻¹` over `D.E`. -/ @[expose] public section namespace New.Selmer open Patching Subgroup Representation MonoidAlgebra Gf stdLevel Set Matrix Polynomial Space variable {ℓ : ℕ} [ThePrime ℓ] [PadicIso ℓ] {P : Parameters} {D : Data P} {r n : Type} [Fintype r] [DecidableEq r] [Fintype n] section variable {O : DescentPair D.E r n} [DecidableEq n] open scoped Classical in /-- Placing an integral local matrix `k` at a split chosen place `O.chosenPlace i` whose reduction preserves the span of `O.incl` and acts on it by `g` yields an element `c` of `stdLevel D.E n` whose reduction at every chosen place `j` acts on the columns `O.incl` by `Pi.mulSingle i g j`. -/ private lemma reduceAt_mul_inclMatrix_ofSplitPlace {i : O.ChosenIndex} {hw : (O.chosenPlace i).IsSplit} {k : intGL n (Valued.v.integer : Subring (LocField (O.chosenPlace i)))} {g : GL r (ResField (O.chosenPlace i))} (h_parab : reduceGL k ∈ parabolic (fun a : n ↦ if a ∈ Set.range O.incl then (0 : Fin 2) else 1)) (h_block : (reduceGL k).val.submatrix O.incl O.incl = g.val) (j : O.ChosenIndex) : let c : stdLevel D.E n := ⟨ofSplitPlace hw k.val, (ofSplitPlace_mem_stdLevel hw k.val).2 k.prop⟩ (stdLevel.reduceAt (O.chosenPlace j) c).val * inclMatrix (ResField (O.chosenPlace j)) O.incl = inclMatrix (ResField (O.chosenPlace j)) O.incl * (Pi.mulSingle (M := fun l ↦ GL r (ResField (O.chosenPlace l))) i g j).val := by intro c obtain ⟨h_red_same, h_red_ne⟩ : stdLevel.reduceAt (O.chosenPlace i) c = reduceGL k ∧ ∀ l : O.ChosenIndex ⊕ O.TwistIndex, l ≠ .inl i → stdLevel.reduceAt (O.placeAt l) c = 1 := Function.eq_update_iff.mp (reduceFamily_ofSplitPlace (w := O.placeAt) (.inl i) k) obtain rfl | hj := eq_or_ne j i · rw [h_red_same, Pi.mulSingle_eq_same, ← h_block, mul_inclMatrix] -- The columns of `reduceGL k` in `O.incl` vanish outside the block `g`, by `h_parab`. exact (eq_inclMatrix_mul_iff _).2 fun a ha b ↦ h_parab (by simp only [mem_range, EmbeddingLike.apply_eq_iff_eq, exists_eq, ↓reduceIte, Fin.isValue, id_eq, ha, zero_lt_one]) · have hne : (Sum.inl j : O.ChosenIndex ⊕ O.TwistIndex) ≠ .inl i := by simp only [ne_eq, Sum.inl.injEq, hj, not_false_eq_true] have h_red : stdLevel.reduceAt (O.chosenPlace j) c = 1 := h_red_ne (.inl j) hne rw [h_red, Pi.mulSingle_eq_of_ne hj] simp only [Units.val_one, Matrix.one_mul, Matrix.mul_one] omit [DecidableEq n] in open scoped Classical in /-- Taking `Pi.mulSingle i g` on the chosen places and `1` on the twist places, the product of `(O.tamePart _)⁻¹ (det _)` over all places of `O` reduces to the single factor at `i`. -/ private lemma prod_tamePart_inv_det_sum_mulSingle (i : O.ChosenIndex) (g : GL r (ResField (O.chosenPlace i))) : let s : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, GL r (ResField (O.placeAt j)) | .inl j => Pi.mulSingle (M := fun l ↦ GL r (ResField (O.chosenPlace l))) i g j | .inr _ => 1 (∏ j : O.ChosenIndex ⊕ O.TwistIndex, (O.tamePart (O.placeAt j))⁻¹ (s j).val.det) = (O.tamePart (O.chosenPlace i))⁻¹ g.val.det := by intro s rw [Fintype.prod_sum_type] have h_l : (∏ j : O.ChosenIndex, (O.tamePart (O.chosenPlace j))⁻¹ (Pi.mulSingle (M := fun l ↦ GL r (ResField (O.chosenPlace l))) i g j).val.det) = (O.tamePart (O.chosenPlace i))⁻¹ g.val.det := by rw [Fintype.prod_eq_single i] · rw [Pi.mulSingle_eq_same] · intro j hj rw [Pi.mulSingle_eq_of_ne hj, Units.val_one, Matrix.det_one, map_one] have h_r : (∏ j : O.TwistIndex, (O.tamePart (O.twistPlace j))⁻¹ (1 : GL r (ResField (O.twistPlace j))).val.det) = 1 := Finset.prod_eq_one fun j _ ↦ by rw [Units.val_one, Matrix.det_one, map_one] exact (congrArg₂ (· * ·) h_l h_r).trans (mul_one _) open scoped Classical in /-- For any representation `π` of `Gf D.E n` and a vector `u` of the level and character of `O`, an integral local matrix `k` at a split chosen place `O.chosenPlace i` whose reduction preserves the span of `O.incl` and acts on it by `g` acts on `u` as `(O.tamePart (O.chosenPlace i))⁻¹ (det g)` times `O.chosenGLRep π (Pi.mulSingle i g) u`. -/ private lemma smul_chosenGLRep_mulSingle_eq_apply_ofSplitPlace {W : Type*} [AddCommGroup W] [Module ℂ W] {π : Representation ℂ (Gf D.E n) W} (u : levelSpace π (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar) {i : O.ChosenIndex} {hw : (O.chosenPlace i).IsSplit} {k : intGL n (Valued.v.integer : Subring (LocField (O.chosenPlace i)))} {g : GL r (ResField (O.chosenPlace i))} (h_parab : reduceGL k ∈ parabolic (fun a : n ↦ if a ∈ Set.range O.incl then (0 : Fin 2) else 1)) (h_block : (reduceGL k).val.submatrix O.incl O.incl = g.val) : (O.tamePart (O.chosenPlace i))⁻¹ g.val.det • (O.chosenGLRep π (Pi.mulSingle i g) u).val = π (ofSplitPlace hw k.val) u.val := by let c : stdLevel D.E n := ⟨ofSplitPlace hw k.val, (ofSplitPlace_mem_stdLevel hw k.val).2 k.prop⟩ have h_red_ne : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, j ≠ .inl i → stdLevel.reduceAt (O.placeAt j) c = 1 := (Function.eq_update_iff.mp (reduceFamily_ofSplitPlace (w := O.placeAt) (.inl i) k)).2 let s : ∀ j : O.ChosenIndex ⊕ O.TwistIndex, GL r (ResField (O.placeAt j)) | .inl j => Pi.mulSingle (M := fun l ↦ GL r (ResField (O.chosenPlace l))) i g j | .inr _ => 1 have h_lower (j : O.TwistIndex) : (stdLevel.reduceAt (O.placeAt (.inr j)) c).valᵀ * inclMatrix (ResField (O.placeAt (.inr j))) O.incl = inclMatrix (ResField (O.placeAt (.inr j))) O.incl * (s (.inr j)).valᵀ := by have hne : (Sum.inr j : O.ChosenIndex ⊕ O.TwistIndex) ≠ .inl i := by simp only [ne_eq, reduceCtorEq, not_false_eq_true] have hs : s (.inr j) = 1 := rfl rw [h_red_ne (.inr j) hne, hs] simp only [Units.val_one, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] have h_tri := O.smul_chosenGLRep_eq_apply_of_triangular u c s (reduceAt_mul_inclMatrix_ofSplitPlace h_parab h_block) h_lower rwa [prod_tamePart_inv_det_sum_mulSingle i g] at h_tri open scoped Classical in /-- Let `w = O.chosenPlace i` be a chosen place of the pair `O`, assumed split (`hw`), and write `ψ_w` for the character `O.tamePart w` of its residue field `k_w`. The map `ofSplitPlace hw` places `GL_n(E_w)` in the finite adelic group. Let `π` be a representation of that group on a space `S` of functions, and `u` a vector of the level and character of `O`. Suppose that `π k u` is the right translate of `f` by `k` for all `k` in `GL_n(E_w)`. Then `f` has a parahoric type at `w`: an integral `k` whose reduction keeps the span of the indices `O.incl` and acts on it by `g` sends `f` to `ψ_w⁻¹(det g)` times the image of `u` under `g`, placed at `i`, in the representation `O.chosenGLRep π`; the one other block (`s := 1`) carries the trivial character. -/ theorem hasParahoricType_chosenGLRep {S : Submodule ℂ (Gf D.E n → WeylIndex n O.columnCount → ℂ)} {π : Representation ℂ (Gf D.E n) S} {u : levelSpace π (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar} {i : O.ChosenIndex} {hw : (O.chosenPlace i).IsSplit} {f : Gf D.E n → WeylIndex n O.columnCount → ℂ} (h_loc : ∀ k : GL n (LocField (O.chosenPlace i)), (π (ofSplitPlace hw k) u.val).val = fun x : Gf D.E n ↦ f (x * ofSplitPlace hw k)) : HasParahoricType f hw O.incl (fun a : n ↦ if a ∈ Set.range O.incl then 0 else 1) (O.tamePart (O.chosenPlace i))⁻¹ (s := 1) 1 fun g : GL r (ResField (O.chosenPlace i)) ↦ (O.chosenGLRep π (Pi.mulSingle i g) u).val.val := by refine ⟨by simp, fun k g h_parab h_block ↦ ?_⟩ have h_act := smul_chosenGLRep_mulSingle_eq_apply_ofSplitPlace (hw := hw) u h_parab h_block refine (h_loc k).symm.trans ((congrArg Subtype.val h_act).symm.trans ?_) simp only [SetLike.val_smul, Finset.univ_unique, Fin.default_eq_zero, Fin.isValue, Pi.one_apply, Nat.reduceAdd, GeneralLinearGroup.val_det_apply, isUnit_iff_ne_zero, ne_eq, GeneralLinearGroup.det_ne_zero, not_false_eq_true, MulChar.one_apply, Finset.prod_const_one, one_smul] /-- Let `v` have the level and character of the pair `O` under `π`, and let `ψ_i = O.tamePart (O.chosenPlace i)`, a character of the residue field of the `i`-th chosen place. The element `a` of the group algebra of `O.ChosenGL r = ∏ i, GL_r` of these residue fields acts on `v` through `O.chosenGLRep π` as the sum over `g` of `a g` times `∏ i, ψ_i (det (g i))` times `π` of the chosen lift of `diag (g, 1)`. -/ lemma coe_asAlgebraHom_chosenGLRep_apply {W : Type*} [AddCommGroup W] [Module ℂ W] (π : Representation ℂ (Gf D.E n) W) (a : MonoidAlgebra ℂ (O.ChosenGL r)) (v : levelSpace π (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar) : ((O.chosenGLRep π).asAlgebraHom a v).val = ∑ g ∈ a.coeff.support, a.coeff g • (∏ i : O.ChosenIndex, O.tamePart (O.chosenPlace i) (g i).val.det) • π (liftResidue (firstBlockHom O.toLevelPlaces O.incl g)) v := by simp only [DescentPair.chosenGLRep, levelRep, MonoidHom.coe_mk, OneHom.coe_mk, asAlgebraHom_def, lift_apply, Finsupp.sum, LinearMap.coe_sum, LinearMap.coe_smul, Finset.sum_apply, Pi.smul_apply, AddSubmonoidClass.coe_finsetSum, SetLike.val_smul, LinearMap.coe_restrict_apply] open scoped Classical in /-- Let `π` be right translation (`formTranslation`) of forms of weight `(O.columnCount, O.detExp)` by the components at the places of `O` and their conjugates (`componentOn`, which puts `1` at all other places). A form `y` of `O` (`O.FormV`: a form of this weight with the level group and character of `O`), regarded as a form of that weight (`y.toSmoothForm`), has this level and character also under `π`. The reason is that taking components does not change the reductions at the places of `O`, on which alone the level group and its character depend. -/ lemma toSmoothForm_mem_levelSpace_componentOn (y : O.FormV) : y.toSmoothForm ∈ levelSpace (((stdSpace D.E n).formTranslation (O.columnCount, O.detExp)).comp (componentOn n O.places.toFinset)) (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar := by intro k let k₀ : stdLevel D.E n := ⟨componentOn n O.places.toFinset k, componentOn_mem_stdLevel (levelOf_le_stdLevel k.property)⟩ -- It suffices that `k₀` and `k` have the same reduction at each place `O.placeAt j`. refine levelSpace_levelOf_apply y.property k₀ _ (funext fun j ↦ ?_) have h_eq : atPlace (O.placeAt j) (k₀ : Gf D.E n) = atPlace (O.placeAt j) (k : Gf D.E n) := by -- Splitting the range of `O.placeAt` would hide that `O.placeAt j` lies in it. simp only [toFinset_range, Finset.coe_image, Finset.coe_univ, image_univ, atPlace_componentOn, mem_union, mem_range, exists_apply_eq_apply, star_preimage, mem_star, Sum.exists, Sum.elim_inl, Sum.elim_inr, true_or, ↓reduceIte, k₀] exact (stdLevel.reduceAt _).div_mem_ker_iff.1 (reduceAt_eq_one_of_atPlace (by simp only [SubgroupClass.coe_div, Subgroup.coe_inclusion, _root_.map_div, h_eq, div_self'])) open scoped Classical in /-- Let `ψ_i = O.tamePart (O.chosenPlace i)`, a character of the residue field of the `i`-th chosen place. For a form `y` of `O`, the projection `typeProjection O c y` is the sum over `g` of the coefficient at `g` of the idempotent `tupleIdem r c` of the labels `c`, times `∏ i, ψ_i (det (g i))`, times the right translate of `y` by the components at the places of `O` of the chosen lift of `diag (g, 1)`. -/ lemma toSmoothForm_typeProjection (c : (i : O.ChosenIndex) → (ResField (O.chosenPlace i))[X]) (y : O.FormV) : (typeProjection O c y).toSmoothForm = ∑ g ∈ (tupleIdem r c).coeff.support, (tupleIdem r c).coeff g • (∏ i : O.ChosenIndex, O.tamePart (O.chosenPlace i) (g i).val.det) • (stdSpace D.E n).formTranslation (O.columnCount, O.detExp) (componentOn n O.places.toFinset (liftResidue (firstBlockHom O.toLevelPlaces O.incl g))) y.toSmoothForm := by -- The action of a single `g` on forms, by the definition of `O.formAction`. have h_action (g : O.ChosenGL r) : (O.formAction g y).toSmoothForm = (∏ i : O.ChosenIndex, O.tamePart (O.chosenPlace i) (g i).val.det) • (stdSpace D.E n).formTranslation (O.columnCount, O.detExp) (liftResidue (firstBlockHom O.toLevelPlaces O.incl g)) y.toSmoothForm := rfl -- The chosen lift is supported at the places of `O`, so it equals its components there. simp only [Set.coe_toFinset, Gf.componentOn_eq_self, liftResidue_mem_supportedOn, ← h_action] simp only [typeProjection, DescentPair.groupAlgAction, asAlgebraHom_def, lift_apply, Finsupp.sum, LinearMap.coe_sum, LinearMap.coe_smul, Finset.sum_apply, Pi.smul_apply, map_sum, map_smul] /-- Let the labels `c` at the chosen places of `O` form a lift setting with the twist `ϑ`. Let the form `y` of `O` be integral above `ℓ`: `ιℓ` sends its values at the points integral above `ℓ` to `ℓ`-adic integers. Then so is `D.chosenGroupOrder` times the projection `typeProjection O c y` of `y` by the idempotent of `c`. -/ lemma chosenGroupOrder_nsmul_typeProjection_mem_ellIntegralForms {ϑ : D.Twist} {c : (i : O.ChosenIndex) → (ResField (O.chosenPlace i))[X]} (h_lift : IsLiftSetting O c ϑ) (y : O.FormV) (hy : y.toSmoothForm ∈ BaseLevel.ellIntegralForms) : D.chosenGroupOrder • (typeProjection O c y).toSmoothForm ∈ BaseLevel.ellIntegralForms := by classical -- `D.chosenGroupOrder` clears the denominator `Nat.card (O.ChosenGL r)` of the idempotent. Each -- remaining term is a natural number times an algebraic integer, a root of unity and a value of -- `y` at a point that is integral above `ℓ`. intro x hx i obtain ⟨t, ht⟩ : Nat.card (O.ChosenGL r) ∣ D.chosenGroupOrder := by rw [h_lift.toLevelPlaces_eq] exact D.card_GL_dvd_chosenGroupOrder (h_lift.rank_le.left.trans D.nat_le_of_hasLogBound) have h_coef (g : O.ChosenGL r) : ‖ιℓ (Nat.card (O.ChosenGL r) * (tupleIdem r c).coeff g)‖ ≤ 1 := norm_le_one_of_isIntegral ιℓ.toRingHom ((isCentralProj_tupleIdem c).isChar_card_mul_coeff.isIntegral g) have h_root (g : O.ChosenGL r) : ‖ιℓ (∏ j, O.tamePart (O.chosenPlace j) (g j).val.det)‖ ≤ 1 := (ιℓ.toRingHom.isOfFinOrder (O.isOfFinOrder_prod_tamePart_det g)).norm_eq_one.le -- `val g` is the value at `x`, `i` of the translate of `y` by the components of `g`. let val (g : stdLevel D.E n) : ℂ := ((stdSpace D.E n).formTranslation (O.columnCount, O.detExp) (componentOn n O.places.toFinset g) y.toSmoothForm).val x i have h_val (g : stdLevel D.E n) : ‖ιℓ (val g)‖ ≤ 1 := hy _ (mul_mem hx (stdLevel_le_localLevel (componentOn_mem_stdLevel g.property))) i have h_sum : ιℓ ((D.chosenGroupOrder • (typeProjection O c y).toSmoothForm).val x i) = ∑ g ∈ (tupleIdem r c).coeff.support, t * (ιℓ (Nat.card (O.ChosenGL r) * (tupleIdem r c).coeff g) * (ιℓ (∏ j : O.ChosenIndex, O.tamePart (O.chosenPlace j) (g j).val.det) * ιℓ (val (liftResidue (firstBlockHom O.toLevelPlaces O.incl g))))) := by simp only [ht, toSmoothForm_typeProjection, Sum.elim_range, toFinset_union, toFinset_range, Finset.coe_union, Finset.coe_image, Finset.coe_univ, image_univ, SetLike.val_smul_of_tower, AddSubmonoidClass.coe_finsetSum, formTranslation_apply_apply_coe, Pi.smul_apply, Finset.sum_apply, rightRegular_apply_apply, smul_eq_mul, nsmul_eq_mul, Nat.cast_mul, Finset.mul_sum, mul_assoc, mul_left_comm _ (t : ℂ), map_sum, map_mul, map_natCast, map_prod, val] rw [h_sum] exact NormedField.valuation.integer.sum_mem fun g _ ↦ mul_mem (natCast_mem _ t) (mul_mem (h_coef g) (mul_mem (h_root g) (h_val _))) omit [DecidableEq n] [PadicIso ℓ] in /-- Let the labels `c` form a lift setting for `O` and `ϑ`. Let `ϑ.Q` be auxiliary: its places have prime norm, neither they nor their conjugates are bad, and the conjugates are not in `ϑ.Q`. Let `U` be a family of places that are not bad. Suppose that neither `v` nor its conjugate is a chosen place. Suppose also that `v` lies above `ℓ` or in `placesAboveM D`, or that neither `v` nor its conjugate is in `ϑ.Q` or `range U`. Then `v` and its conjugate avoid `range U` and the places of `O`. -/ lemma notMem_and_star_notMem_range_union_places {ϑ : D.Twist} {c : (i : O.ChosenIndex) → (ResField (O.chosenPlace i))[X]} (h_lift : IsLiftSetting O c ϑ) (hQ : IsAuxiliary (badPlaces D ℓ) ϑ.Q) {K : Type} {U : K → FinPlace D.E} (hU : ∀ k : K, U k ∉ badPlaces D ℓ) {v : FinPlace D.E} (h_exc : v ∉ ((ϑ.Q : Set (FinPlace D.E)).conjClosure ∪ (range U).conjClosure) \ (placesDividing D.E ℓ ∪ placesAboveM D)) (h_chosen : v ∉ (range O.chosenPlace).conjClosure) : v ∉ range U ∪ O.places ∧ star v ∉ range U ∪ O.places := by have h_range : range O.twistPlace = ϑ.Q := by rw [h_lift.toLevelPlaces_eq] exact Subtype.range_coe have h_places : O.places = range O.chosenPlace ∪ range O.twistPlace := Sum.elim_range .. -- `ϑ.Q` and `range U` avoid the bad places, so `v` and its conjugate avoid both. have h_off : v ∉ (ϑ.Q : Set (FinPlace D.E)).conjClosure ∪ (range U).conjClosure := by intro h_mem -- The places above `ℓ` or a level prime are bad, and they are stable under conjugation. have h_above : v ∈ placesDividing D.E ℓ ∪ placesAboveM D := by by_contra h_not exact h_exc ⟨h_mem, h_not⟩ have hv_bad : v ∈ badPlaces D ℓ := placesDividing_union_subset_badPlaces D ℓ h_above have h_star_bad : star v ∈ badPlaces D ℓ := placesDividing_union_subset_badPlaces D ℓ (h_above.imp star_mem_placesDividing.2 star_mem_placesAboveM.2) obtain (hv_mem | h_star_mem) | ⟨k, rfl⟩ | ⟨k, hk⟩ := h_mem · exact (hQ v hv_mem).left hv_bad · exact (hQ (star v) h_star_mem).left h_star_bad · exact hU k hv_bad · exact hU k (by rwa [hk]) simp only [h_places, h_range, mem_union, mem_preimage, not_or] at h_off h_chosen ⊢ exact ⟨⟨h_off.2.1, h_chosen.1, h_off.1.1⟩, h_off.2.2, h_chosen.2, h_off.1.2⟩ /-- The jumps of a normalised representation (`normalizedRep`) attached to a form of weight `(O.columnCount, O.detExp)`: the jumps of the weight minus the infinity type of the algebraic Hecke character whose `ℓ`-adic avatar is `normalizingAvatar O`. -/ noncomputable def normalizedJumps (O : DescentPair D.E r n) (σ : D.E →+* ℂ) : Multiset ℤ := (jumps (O.columnCount, O.detExp) (Fintype.card n) σ).map fun u : ℤ ↦ u + -((AutChar.HasWeight.inv (μ := O.charW)).toAlgebraic (-Fintype.card r) 0).val.2.toAdd σ /-- Let the labels `c` form a lift setting for `O` and `ϑ`, and let `R` be attached to an eigenform `f` of weight `(O.columnCount, O.detExp)`. Suppose that at the chosen places `f` has the labels `scaledTypePoly O c i`, completed by the trivial character on further blocks of sizes `t` (`HasProductLabel`). Suppose also that `f` is spherical at the places that are off `S`, above `ℓ` or in `placesAboveM D` (above `p₀` or `p₁`), except the chosen places and their conjugates. Then `normalizedRep O R`, the twist of `R` by `normalizingAvatar O`, satisfies `IsRepOfType`: it has the jumps `normalizedJumps O` and the properties of a conjugate self-dual representation of level `S`, and inertia at the chosen places acts through the roots of `scaledTypePoly O c i * (X - 1) ^ t'`, with `t' = O.rankDiff = card n - card r`. -/ lemma isRepOfType_normalizedRep {ϑ : D.Twist} {c : (i : O.ChosenIndex) → (ResField (O.chosenPlace i))[X]} (h_lift : IsLiftSetting O c ϑ) {f : (stdSpace D.E n).forms (O.columnCount, O.detExp)} {H : FinPlace D.E → ℂ[X]} {R : GalRep ℓ D.E n} (h_eig : IsEigenform f.val H) (h_att : GaloisRep.Attached H R) {S : Set (FinPlace D.E)} (h_sph : ∀ v ∉ S \ (placesDividing D.E ℓ ∪ placesAboveM D), v ∉ (range O.chosenPlace).conjClosure → f.val ∈ sphericalAt (rightRegular ℂ (Gf D.E n) (WeylIndex n O.columnCount → ℂ)) v) {s : ℕ} {t : Fin s → ℕ} (h_lab : ∀ i : O.ChosenIndex, HasProductLabel f.val (O.isConjApart_chosenPlace.star_ne i i) (faithfulChar (ResField (O.chosenPlace i))) (Fintype.card r) (scaledTypePoly O c i) 1 t) : IsRepOfType O O.rankDiff (normalizedJumps O) (fun i : O.ChosenIndex ↦ scaledTypePoly O c i * (X - 1) ^ O.rankDiff) S (normalizedRep O R) := by have : Nonempty n := Fintype.card_pos_iff.mp (Nat.zero_lt_of_lt O.rank_lt) have h_type_R : IsRepOfType O (Fintype.card n) (jumps (O.columnCount, O.detExp) (Fintype.card n)) (fun i : O.ChosenIndex ↦ scaledTypePoly O c i * (X - 1) ^ O.rankDiff) S R := isRepOfType_of_hasProductLabel h_lift f.property h_eig h_att h_sph h_lab -- `O.rankDiff` is `card n - card r`, and `card r < card n`. have h_rank : ((O.rankDiff - 1 : ℕ) : ℤ) + (2 * 0 - -Fintype.card r) = (Fintype.card n - 1 : ℕ) := by have := O.rank_lt dsimp only [DescentPair.rankDiff] omega -- The tame part of the twist is trivial, so the roots of the labels are not scaled. unfold normalizedJumps normalizedRep normalizingAvatar simpa only [inv_one, Pi.one_apply, map_one, Units.val_one, scaleRoots_one] using h_type_R.twist_avatar (.inv (μ := O.charW)) (-Fintype.card r) 0 h_rank h_lift (by simp) end variable {O : DescentPair D.E r n} [DecidableEq n] /-- If `π` agrees with the translation of forms on the elements supported at the places of `O`, then it does so on the local group at each such place. -/ lemma apply_ofSplitPlace_eq_formTranslation {π : Representation ℂ (Gf D.E n) ((stdSpace D.E n).forms (O.columnCount, O.detExp))} (hπ : ∀ k ∈ supportedOn n O.places, π k = (stdSpace D.E n).formTranslation (O.columnCount, O.detExp) k) (j : O.ChosenIndex ⊕ O.TwistIndex) (k : GL n (LocField (O.placeAt j))) : π (ofSplitPlace (O.apart.star_ne j j) k) = (stdSpace D.E n).formTranslation (O.columnCount, O.detExp) (ofSplitPlace (O.apart.star_ne j j) k) := hπ _ (supportedOn_mono (by simp only [singleton_subset_iff, mem_range, exists_apply_eq_apply]) (ofSplitPlace_mem_supportedOn _ k)) open scoped Classical in /-- Let the labels `c` form a lift setting for `O` and `ϑ`. Let `π` be a representation on forms of weight `(O.columnCount, O.detExp)` that agrees with right translation (`formTranslation`) on the elements supported at the places of `O`, and let `u` have the level and character of `O` under `π`. Suppose that the idempotent `tupleIdem r c` of the labels does not kill `u`. Then at each chosen place `w = O.chosenPlace i`, which is not its own conjugate, the form `u` has a label with two blocks. The first block has size `card r` and carries the class function of `scaledTypePoly O c i`, formed with the injective character `faithfulChar k_w` of the algebraic closure of the residue field `k_w`. The second block carries the trivial character `1`; its size, the last argument, is the number of indices outside `range O.incl`. -/ lemma hasProductLabel_of_tupleIdem_apply_ne_zero {π : Representation ℂ (Gf D.E n) ((stdSpace D.E n).forms (O.columnCount, O.detExp))} {ϑ : D.Twist} {c : (i : O.ChosenIndex) → (ResField (O.chosenPlace i))[X]} (h_lift : IsLiftSetting O c ϑ) (hπ : ∀ k ∈ supportedOn n O.places, π k = (stdSpace D.E n).formTranslation (O.columnCount, O.detExp) k) {u : levelSpace π (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar} (hu : (O.chosenGLRep π).asAlgebraHom (tupleIdem r c) u ≠ 0) (i : O.ChosenIndex) : HasProductLabel u.val.val (O.isConjApart_chosenPlace.star_ne i i) (faithfulChar (ResField (O.chosenPlace i))) (Fintype.card r) (scaledTypePoly O c i) 1 fun l : Fin 1 ↦ Fintype.card {a : n // (if a ∈ range O.incl then 0 else 1 : Fin 2) = l.succ} := by have hw : (O.placeAt (.inl i)).IsSplit := O.apart.star_ne (.inl i) (.inl i) have h_loc (k : GL n (LocField (O.chosenPlace i))) : (π (ofSplitPlace hw k) u.val).val = rightRegular ℂ (Gf D.E n) (WeylIndex n O.columnCount → ℂ) (ofSplitPlace hw k) u.val.val := congrArg Subtype.val (LinearMap.congr_fun (apply_ofSplitPlace_eq_formTranslation hπ (.inl i) k) u.val) -- If the factor at `i` of the idempotent killed `u`, so would the whole idempotent. refine HasParahoricType.hasProductLabel ((forms _ _).subtype.domRestrict _) (by simp) (fun h_zero ↦ hu (piTensorElem_apply_eq_zero i h_zero)) (hasParahoricType_chosenGLRep h_loc) (Function.injective_of_subsingleton _) fun _ ↦ ?_ -- `charName` sends the trivial character to `1`, which is not a root of the scaled type -- polynomial. simpa only [map_inv, Units.val_inv_eq_inv_val, Pi.one_apply, map_one, Units.val_one, IsRoot.def, scaledTypePoly] using h_lift.not_isRoot_scaledTypePoly i /-- Let `π` be a representation on forms of weight `(O.columnCount, O.detExp)` that agrees with right translation on the elements supported at the places of `O`, and let `u` have the level and character of `O` under `π`. Let `w = O.twistPlace i` be one of the twist places of the pair, and `ψ_w = O.tamePart w`, a character of its residue field. Then `u` satisfies `New.Selmer.HasTwistParahoricType` at `i`: an integral matrix at `w` whose reduction keeps the span of the indices outside `range O.incl` multiplies `u` by `ψ_w⁻¹` of the determinant of the block of that reduction on `range O.incl`. -/ lemma hasTwistParahoricType_levelSpace {π : Representation ℂ (Gf D.E n) ((stdSpace D.E n).forms (O.columnCount, O.detExp))} (hπ : ∀ k ∈ supportedOn n O.places, π k = (stdSpace D.E n).formTranslation (O.columnCount, O.detExp) k) (u : levelSpace π (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar) (i : O.TwistIndex) : HasTwistParahoricType O u.val.val i := by classical have hw : (O.placeAt (.inr i)).IsSplit := O.apart.star_ne (.inr i) (.inr i) let β : n → Fin 3 := fun a ↦ if a ∈ range O.incl then 2 else 1 -- The twist place is `O.placeAt (.inr i)`. change HasParahoricType u.val.val hw (ρ := Empty) .ofIsEmpty β 1 ![1, (O.tamePart (O.placeAt (.inr i)))⁻¹] fun _ : GL Empty (ResField (O.placeAt (.inr i))) ↦ u.val.val refine ⟨by simp only [Nat.reduceAdd, mem_range, Fin.isValue, ite_eq_iff, Fin.reduceEq, and_false, not_exists, one_ne_zero, or_self, false_iff, IsEmpty.forall_iff, implies_true, β], fun k _ hk _ ↦ ?_⟩ -- The reduction of `k` lies in `descentResidueLevel`, so `k` acts by the value of -- `O.residueLevelChar`. have hk_mem : Pi.mulSingle (.inr i) (reduceGL k) ∈ descentResidueLevel O.toLevelPlaces O.incl := (mulSingle_mem_pi ..).2 fun _ ↦ (mem_rangeParabolic_iff _).2 fun a b hb ↦ hk (by simp only [β, hb, Set.mem_range_self, ↓reduceIte, Fin.reduceLT]) -- Only the place `i` contributes to the product that defines `O.residueLevelChar`. have h_char : O.residueLevelChar ⟨Pi.mulSingle (.inr i) (reduceGL k), hk_mem⟩ = (O.tamePart (O.placeAt (.inr i)))⁻¹ ((reduceGL k).val.submatrix O.incl O.incl).det := by refine (Fintype.prod_eq_single i fun j hj ↦ ?_).trans (by simp only [Pi.inv_apply, Pi.mulSingle_eq_same]) simp only [Pi.inv_apply, Pi.mulSingle_eq_of_ne (Sum.inr_injective.ne hj), Units.val_one, submatrix_one_embedding, det_one, map_one] have h_act : π (ofSplitPlace hw k.val) u.val = O.residueLevelChar ⟨Pi.mulSingle (.inr i) (reduceGL k), hk_mem⟩ • u.val := levelSpace_levelOf_apply u.property _ ⟨_, hk_mem⟩ (reduceFamily_ofSplitPlace (w := O.placeAt) (.inr i) k) rw [apply_ofSplitPlace_eq_formTranslation hπ, h_char] at h_act refine (congrArg Subtype.val h_act).trans ?_ -- Block `2` of `reduceGL k` is the block on the range of `O.incl`, up to a renumbering. have h_det : ((reduceGL k).val.submatrix O.incl O.incl).det = (blockHom β 2 ⟨reduceGL k, hk⟩).val.det := det_submatrix_equiv_self (O.incl.toEquivRange.trans (.subtypeEquivProp (by simp only [mem_range, Fin.isValue, ite_eq_left_iff, not_exists, Fin.reduceEq, imp_false, not_forall, Decidable.not_not, β]))) (blockHom β 2 ⟨reduceGL k, hk⟩).val simp only [h_det, Fin.isValue, SetLike.val_smul, Nat.reduceAdd, GeneralLinearGroup.val_det_apply, Fin.prod_univ_two, cons_val_zero, Fin.succ_zero_eq_one, isUnit_iff_ne_zero, ne_eq, GeneralLinearGroup.det_ne_zero, not_false_eq_true, MulChar.one_apply, cons_val_one, cons_val_fin_one, Fin.succ_one_eq_two, one_mul, coe_det_isEmpty, Function.const_apply, one_ne_zero, one_smul] open scoped Classical in /-- Let `B` be base data at the places of `O`. The maximal level (`levelOf` of the empty family), acting through its components off these places and their conjugates (`B.repOff`), fixes every form of `O`. -/ lemma toSmoothForm_mem_levelSpace_repOff {m : ℕ} (B : BaseLevel (stdSpace D.E n) (O.columnCount, O.detExp) m) (hB : B.places = O.places.toFinset) (y : O.FormV) : y.toSmoothForm ∈ levelSpace B.repOff (levelOf (![] : Fin 0 → FinPlace D.E) ⊥) 1 := by intro k -- These components lie in the maximal level and are trivial at the places of `O`. have h_triv : componentOn n (Set.conjClosure B.places)ᶜ k ∈ trivialOn n (range O.placeAt) := by refine mem_trivialOn.2 fun w hw ↦ ?_ rw [atPlace_componentOn] split_ifs with hw' · exfalso have hw_places : w ∈ O.places := hw simp only [hB, Set.conjClosure, Set.mem_union, Set.mem_compl_iff, Set.mem_preimage, Finset.mem_coe, Set.mem_toFinset, not_or, star_star] at hw' rcases hw' with h | h · exact h.1 hw_places · exact h.2 hw_places · rfl rw [MonoidHom.one_apply, one_smul] exact y.algFormRep_eq_self_of_mem (inf_trivialOn_le_levelOf ⟨componentOn_mem_stdLevel (levelOf_le_stdLevel k.property), h_triv⟩) /-- Let `T` commute with `π k` for all `k` in the maximal level. Then `T` keeps the vectors with the level and character of `O` under `π`, and commutes there with the action of each element `a` of the group algebra of `O.ChosenGL r`. -/ lemma exists_mem_levelSpace_chosenGLRep_map_eq {W : Type*} [AddCommGroup W] [Module ℂ W] {π : Representation ℂ (Gf D.E n) W} {T : Module.End ℂ W} (hT : ∀ k : stdLevel D.E n, Commute (π k) T) (a : MonoidAlgebra ℂ (O.ChosenGL r)) (v : levelSpace π (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar) : ∃ hTv : T v ∈ levelSpace π (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar, ((O.chosenGLRep π).asAlgebraHom a ⟨T v, hTv⟩).val = T ((O.chosenGLRep π).asAlgebraHom a v) := by refine ⟨map_mem_levelSpace_of_commute v.property fun k ↦ hT ⟨k, levelOf_le_stdLevel k.property⟩, ?_⟩ have h_comm (k : stdLevel D.E n) : π k (T v) = T (π k v) := LinearMap.congr_fun (hT k).eq v simp only [coe_asAlgebraHom_chosenGLRep_apply, h_comm, map_sum, map_smul] open scoped Classical in variable (O) in /-- Right translation of forms of weight `(O.columnCount, O.detExp)` by the components of an element at the places of `O` and their conjugates (`componentOn`, which puts `1` at all other places). -/ noncomputable abbrev translationAtPlaces : Representation ℂ (Gf D.E n) ((stdSpace D.E n).forms (O.columnCount, O.detExp)) := ((stdSpace D.E n).formTranslation (O.columnCount, O.detExp)).comp (componentOn n O.places.toFinset) open scoped Classical in /-- Translation at the chosen places agrees with full translation on elements supported there. -/ lemma translationAtPlaces_apply_of_mem_supportedOn (k : Gf D.E n) (hk : k ∈ supportedOn n O.places) : translationAtPlaces O k = (stdSpace D.E n).formTranslation (O.columnCount, O.detExp) k := by simp only [translationAtPlaces, MonoidHom.comp_apply, Set.coe_toFinset, Gf.componentOn_eq_self hk] open scoped Classical in variable (O) in /-- A `(c, S)`-form, for labels `c` at the chosen places of the descent pair `O` and a set `S` of places: an eigenform `f` on the larger space of `O`, of the weight `(O.columnCount, O.detExp)` of the pair and of type `c`, with the level and character of the forms of `O` off `S` and its conjugate, and with any level there. The level of `O` is maximal off the places of `O` and their conjugates; `S` is meant to avoid these. `H` gives the Hecke polynomials of `f`. -/ structure IsFormOfType (c : (i : O.ChosenIndex) → (ResField (O.chosenPlace i))[X]) (S : Set (FinPlace D.E)) (f : (stdSpace D.E n).forms (O.columnCount, O.detExp)) (H : FinPlace D.E → ℂ[X]) : Prop where /-- The form `f` is a nonzero eigenform with Hecke polynomials `H` (`IsEigenform`). -/ isEigenform : IsEigenform f.val H /-- At the places of `O`, the form `f` has the level and character of `O`. -/ mem_levelSpace : f ∈ levelSpace (translationAtPlaces O) (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar /-- The form `f` is of type `c`: the idempotent `tupleIdem r c` of the labels fixes it, for the action `O.chosenGLRep` of `∏ GL_r(k_w)` over the chosen places `w`. -/ tupleIdem_apply : (O.chosenGLRep (translationAtPlaces O)).asAlgebraHom (tupleIdem r c) ⟨f, mem_levelSpace⟩ = ⟨f, mem_levelSpace⟩ /-- The form `f` has maximal level at each place `v` such that `v` and its conjugate avoid `S` and the places of `O`. -/ mem_sphericalAt (v : FinPlace D.E) (hv : v ∉ S ∪ O.places) (hv_star : star v ∉ S ∪ O.places) : f.val ∈ sphericalAt (rightRegular ℂ (Gf D.E n) (WeylIndex n O.columnCount → ℂ)) v /-- Let the labels `c` form a lift setting for `O` and the twist `ϑ` (`IsLiftSetting`), let the modulus `ϑ.Q` be auxiliary (`IsAuxiliary`), and let `S` be a set of places outside `badPlaces D ℓ`, the places dividing `ℓ p₀ p₁ N`. Let `f` be a `(c, S)`-form (`IsFormOfType`) and `R` attached to its Hecke polynomials. Then the normalised representation `normalizedRep O R` is a representation of a type (`IsRepOfType`): it is conjugate self-dual with jumps `normalizedJumps O` and level `ϑ.Q`, `S` and their conjugates, and inertia at the chosen places acts through the roots of `scaledTypePoly O c i * (X - 1) ^ O.rankDiff`. -/ theorem IsFormOfType.isRepOfType_normalizedRep {ϑ : D.Twist} {c : (i : O.ChosenIndex) → (ResField (O.chosenPlace i))[X]} {S : Set (FinPlace D.E)} {f : (stdSpace D.E n).forms (O.columnCount, O.detExp)} {H : FinPlace D.E → ℂ[X]} (hf : IsFormOfType O c S f H) (h_lift : IsLiftSetting O c ϑ) (hQ : IsAuxiliary (badPlaces D ℓ) ϑ.Q) (hS : ∀ v ∈ S, v ∉ badPlaces D ℓ) {R : GalRep ℓ D.E n} (h_att : GaloisRep.Attached H R) : IsRepOfType O O.rankDiff (normalizedJumps O) (fun i : O.ChosenIndex ↦ scaledTypePoly O c i * (X - 1) ^ O.rankDiff) (Set.conjClosure ϑ.Q ∪ S.conjClosure) (normalizedRep O R) := by classical -- The idempotent fixes `f ≠ 0`, so it does not kill `f`, and `f` has the labels made from `c`. have h_ne : (O.chosenGLRep (translationAtPlaces O)).asAlgebraHom (tupleIdem r c) ⟨f, hf.mem_levelSpace⟩ ≠ 0 := by simpa only [hf.tupleIdem_apply, ne_eq, Submodule.mk_eq_zero, ZeroMemClass.coe_eq_zero] using hf.isEigenform.left refine Selmer.isRepOfType_normalizedRep h_lift hf.isEigenform h_att (fun v h_exc h_chosen ↦ ?_) (hasProductLabel_of_tupleIdem_apply_ne_zero h_lift translationAtPlaces_apply_of_mem_supportedOn h_ne) -- A place neither chosen nor exceptional avoids `S` and `O.places`, as does its conjugate. obtain ⟨hv, hv_star⟩ : v ∉ S ∪ O.places ∧ star v ∉ S ∪ O.places := by simpa only [Subtype.range_coe] using notMem_and_star_notMem_range_union_places h_lift hQ (U := (Subtype.val : S → FinPlace D.E)) (fun k ↦ hS k k.property) (by rwa [Subtype.range_coe]) h_chosen exact hf.mem_sphericalAt v hv hv_star /-- Fix a prime `ℓ` with an isomorphism `ιℓ : ℂ ≃ ℚ̄_ℓ`, data `D` (among them a CM field `D.E`, two primes `p₀`, `p₁` given by `D.levelPrime`, and a level `N = D.N`), and a descent pair `O`: hermitian spaces with bases `r` and `n`, `card r < card n`, with chosen and twist places, weights and a character. The weight `(O.columnCount, O.detExp)` of its forms on the larger space is given by column numbers and a power of the determinant. Let `c` be labels at the chosen places that form a lift setting with the twist `ϑ`. Let `ϑ.Q` be auxiliary: its places have prime norm, neither they nor their conjugates divide `ℓ p₀ p₁ N` (`badPlaces D ℓ`), and the conjugates are not in `ϑ.Q`. Then there are jumps `J` and base data `B` of that weight with three properties. * (a) The projections `typeProjection O c y` of forms `y` of `O` by the idempotent of the labels `c` are forms of `B` with no extra level. * (b) If `y` is integral above `ℓ`, so is `D.chosenGroupOrder • typeProjection O c y`. * (c) Let `u` be a finite family of places outside `badPlaces D ℓ`, let `x` be an eigensystem of `B` of level `u`, and `R = normalizedRep O x.galRep` its representation twisted by `normalizingAvatar O`, the avatar of the inverse of the character of `O` with weight `-card r`. Then `R` satisfies `IsRepOfType` with jumps `J`, the level being `ϑ.Q`, `range u` and their conjugates: it is conjugate self-dual up to twist, has the local properties of `IsConjSelfDualOfLevel` off the level, and inertia at the chosen places acts through the roots of `scaledTypePoly O c i` (`c i` with roots scaled according to `(O.tamePart _)⁻¹`) times `(X - 1) ^ O.rankDiff`. Each `g` in the inertia above `ϑ.Q` and its conjugate satisfies `(R g - ϑ.invAvatar g) (R g - 1) = 0`. -/ lemma exists_baseLevel {ϑ : D.Twist} {c : (i : O.ChosenIndex) → (ResField (O.chosenPlace i))[X]} (h_lift : IsLiftSetting O c ϑ) (hQ : IsAuxiliary (badPlaces D ℓ) ϑ.Q) : ∃ J : (D.E →+* ℂ) → Multiset ℤ, ∃ B : BaseLevel (stdSpace D.E n) (O.columnCount, O.detExp) D.chosenGroupOrder, -- (a) (∀ y ∈ (typeProjection O c).range, y.toSmoothForm ∈ B.formsOfLevel (![] : Fin 0 → FinPlace D.E)) ∧ -- (b) (∀ y : O.FormV, y.toSmoothForm ∈ BaseLevel.ellIntegralForms → D.chosenGroupOrder • (typeProjection O c y).toSmoothForm ∈ BaseLevel.ellIntegralForms) ∧ -- (c) ∀ (K : Type) [Finite K] (u : K → FinPlace D.E), (∀ k : K, u k ∉ badPlaces D ℓ) → ∀ x ∈ B.Eigensystem u, let R : GalRep ℓ D.E n := normalizedRep O x.galRep -- `R` is a representation of a type for the scaled type polynomials of `c`, IsRepOfType O O.rankDiff J (fun i : O.ChosenIndex ↦ scaledTypePoly O c i * (X - 1) ^ O.rankDiff) (Set.conjClosure ϑ.Q ∪ (range u).conjClosure) R ∧ -- and inertia at the auxiliary places satisfies a quadratic relation ∀ g ∈ inertiaAbove (Set.conjClosure ϑ.Q), ((R g).val - ϑ.invAvatar g • 1) * ((R g).val - 1) = 0 := by classical have : Nonempty n := Fintype.card_pos_iff.mp (Nat.zero_lt_of_lt O.rank_lt) -- Let `π` act on forms through the components at the places `O.places` only. The space `Y` -- consists of the forms with the level and character of `O` under `π` that the idempotent `ρ` of -- the labels `c` fixes. let F : Submodule ℂ (Gf D.E n → WeylIndex n O.columnCount → ℂ) := (stdSpace D.E n).forms (O.columnCount, O.detExp) let π := translationAtPlaces O let V : Submodule ℂ F := levelSpace π (levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl)) O.levelChar let ρ : Module.End ℂ V := (O.chosenGLRep π).asAlgebraHom (tupleIdem r c) let Y : Submodule ℂ F := (ρ.eqLocus 1).map V.subtype -- An operator that commutes with `π` on the maximal level commutes with `ρ`, so it keeps `Y`. have hY (T : Module.End ℂ F) (hT : ∀ k : stdLevel D.E n, Commute (π k) T) : Y ≤ Y.comap T := by rintro _ ⟨u, h_fixed : ρ u = u, rfl⟩ obtain ⟨hTu, h_comm⟩ : ∃ hTu : T u.val ∈ V, (ρ ⟨T u.val, hTu⟩).val = T (ρ u).val := exists_mem_levelSpace_chosenGLRep_map_eq hT (tupleIdem r c) u rw [h_fixed] at h_comm exact ⟨⟨T u.val, hTu⟩, Subtype.ext h_comm, rfl⟩ let B : BaseLevel (stdSpace D.E n) (O.columnCount, O.detExp) D.chosenGroupOrder := { places := O.places.toFinset, forms := Y, map_mem_forms := hY exists_level := ⟨levelOf O.placeAt (descentResidueLevel O.toLevelPlaces O.incl), O.levelChar, isOpen_levelOf, V.map_subtype_le (ρ.eqLocus 1)⟩ card_aut_dvd := D.card_classAut_dvd_chosenGroupOrder h_lift.card_le le_rfl } refine ⟨normalizedJumps O, B, fun y hy ↦ ?_, chosenGroupOrder_nsmul_typeProjection_mem_ellIntegralForms h_lift, ?_⟩ · -- On the form of `y`, the idempotent `ρ` acts as `typeProjection O c`, which fixes `y`. let u : V := ⟨y.toSmoothForm, toSmoothForm_mem_levelSpace_componentOn y⟩ have h_proj : (ρ u).val = (typeProjection O c y).toSmoothForm := by rw [coe_asAlgebraHom_chosenGLRep_apply, toSmoothForm_typeProjection] simp only [π, translationAtPlaces, u, MonoidHom.comp_apply] rw [IsLiftSetting.typeProjection_eq_self_of_mem_range hy] at h_proj exact ⟨⟨u, Subtype.ext h_proj, rfl⟩, toSmoothForm_mem_levelSpace_repOff B rfl y⟩ · -- The system `x` contains a nonzero form `u` in `Y`, an eigenform to which `x.galRep` is -- attached. rintro K _ U hU x ⟨f, ⟨hx, hf⟩, hf_ne⟩ obtain ⟨u, hu, rfl⟩ : ∃ u : V, ρ u = u ∧ u.val = f := hf.left have h_eig : IsEigenform u.val.val x.heckePolyAt := x.isEigenform hx hf_ne have h_att : GaloisRep.Attached x.heckePolyAt x.galRep := x.attached_galRep hx hf_ne -- Off `range U`, the places of `O` and their conjugates, `u` has maximal level. have h_form : IsFormOfType O c (range U) u.val x.heckePolyAt := by refine ⟨h_eig, u.property, hu, fun v hv hv_star g ↦ ?_⟩ have h_off (w : FinPlace D.E) (hw : w ∉ range U ∪ O.places) : w ∉ (Set.finite_range U).toFinset ∪ B.places := by simpa [B] using hw exact congrArg Subtype.val (levelSpace_le_sphericalAt (h_off v hv) (h_off (star v) hv_star) (BaseLevel.formsOfLevel_le_levelSpace hf) g) exact ⟨h_form.isRepOfType_normalizedRep h_lift hQ (forall_mem_range.2 hU) h_att, normalizedRep_quadratic_on_inertia h_lift hQ h_eig h_att (hasTwistParahoricType_levelSpace translationAtPlaces_apply_of_mem_supportedOn u)⟩ end New.Selmer