Lean source
Lib.Cohomology.Kunneth.LerayHirschBasis
Its 6 declarations
IdealFamily.def, lines 18–20ofMaximalIdeal lerayHirsch_bijective_of_fieldslemma, lines 27–47exists_lerayHirsch_basislemma, lines 54–77TestOver.instance, lines 79–83hasCoveringPoints isAffinelyCovered_projLinePowlemma, lines 85–88isDetectedAtPoints_projLinelemma, lines 90–94
import Lib.Cohomology.ProperBaseChange.PointwiseTests/-! Known result: The Künneth formula over a field for mod-ℓ étale cohomology, in Leray–Hirsch form.Here it is stated only over the special fibre of an absolutely integrally closed local domain. Abasis of the cohomology over the residue field, containing a given non-zero class, stays a basisover every test ring of the special fibre. Source: SGA 4; Milne, Étale Cohomology, Ch. VI.This file: Künneth in Leray–Hirsch form over the special fibre, passed from geometric points totests. -/seal CategoryTheory.Abelian.Ext CategoryTheory.Abelian.Ext.instAddCommGroup CategoryTheory.Abelian.Ext.comp CategoryTheory.Abelian.Ext.mk₀ CategoryTheory.Abelian.Ext.homEquiv CategoryTheory.Abelian.Ext.mapExactFunctoropen CategoryTheory Classical CommAlgCat Finsupp IsLocalRing TotalH ObjectProperty/-- For a local ring A, the compatible family of ideals on tests over A that assigns to B theideal generated by the maximal ideal of A. -/noncomputable def IdealFamily.ofMaximalIdeal {A} [CommRing A] [IsLocalRing A] : IdealFamily (ringOf (𝟭 (TestOver A))) := ⟨fun c ↦ (maximalIdeal A).map (algebraMap A c.1), (·.1.1.comp_algebraMap ▸ Ideal.map_map ..)⟩variable {ℓ A} [CommRing A] [InvertsPrime A ℓ] {D} [Category D] {g : D ⥤ TestOver A}/-- Let F satisfy `IsDetectedAtPoints` and θ_i ∈ Ext^{d_i}(L∘g, F), L the locally constantℤ/ℓ-valued functions on tests. If the Leray–Hirsch map of θ is bijective at ℤ[h_k] for everyfield k under the test c, it is bijective at ℤ[h_c]. -/lemma lerayHirsch_bijective_of_fields {F I} {d : I → ℕ} (hP : IsDetectedAtPoints g F) {θ : ∀ i, H (restrictAlong g (locConstAlong (𝟭 _))) F (d i)} {c} (h : ∀ k, (c ⟶ k) → IsField k.1 → IsLerayHirschBasis θ (freeAb (reprBy k))) : IsLerayHirschBasis θ (freeAb (reprBy c)) := let s d : (I →₀ ULift (LocallyConstant ..)) ≃+ _ := mapRange.addEquiv (sectionEquiv (locConstAlong ..) d) let E P := Equiv.ofBijective _ (((h _ (residueTest _ P).hom (Field.toIsField P.1.ResidueField)).comp (s _).bijective).comp (mapRange_bijective _ rfl (@bijective_const_of_isDomain _ _ (Ideal.Quotient.isDomain _)))) ((s c).bijective_comp _).1 (.of_existsUnique _ fun y ↦ have z m P := (AddMonoidHom.sub_mem_ker_iff _ (x := y).trans (((lerayHirsch_mapRange_comp θ (map_homClass (f := freeAb.map (reprMap (residueTest _ P).hom))) (s c m)).symm.trans (congrArg _ (ext fun _ ↦ (homClass_comp ..).symm.trans (congrArg _ ((homReprEquiv ..).eq_symm_apply.2 ((add_zero _).trans congr(⟨⟨$(funext (congrArg _ <| P.residueField_comap.le ⟨·, rfl⟩)), _⟩⟩)))))) : _ = E P (mapRange (·.1 P) rfl m)).congr_right.trans ((E P).symm_apply_eq.symm.trans Finsupp.ext_iff))).symm.trans (congr($comp_homClass_eq _).congr_left.trans DFinsupp.ext_iff) have l := (IsLocallyConstant.iff_eventually_eq _).2 fun P ↦ .mono ((DFinsupp.finite_support _).eventually_all.2 fun n _ ↦ (hP.1 ..).1.mem_nhds ((z (mapRange (⟨.const _ ·⟩) rfl _) _).1 (by tauto) n)) fun _ e ↦ ext ((z ..).2 (byCases (congrArg (H.map ..) · |>.trans (by simp)) <| e ·)) ⟨.onFinset (l.range_finite.toFinset.sup support) (fun i ↦ ⟨_, l.comp (· i)⟩) fun _ ↦ not_imp_comm.1 (by aesop), (sub_eq_zero.1 (DFinsupp.ext fun n ↦ (hP.1 ..).2 (top_unique fun _ _ ↦ (z ..).1 (by tauto) _))).symm, by intros; ext; erw [(z ..).2] <;> bound⟩)/-- Let M satisfy `IsDetectedAtPoints`, with the locus 𝔪_A = 0 dense. Some set b of homogeneousclasses in Ext(L∘g, M), L the locally constant ℤ/ℓ-valued functions, has bijectiveLeray–Hirsch map at ℤ[h_c] for every test c killing 𝔪_A, and contains j if j(1) ≠ 0.Known result: Künneth formula over a field for mod-ℓ étale cohomology (Leray–Hirsch form). -/lemma exists_lerayHirsch_basis (M : TorsionCoeff g) (hl : IsDetectedAtPoints g M.F) (d : IsCohomDense M.F (IdealFamily.ofMaximalIdeal.botLocus.whisker g)) (j : Σ n, H (restrictAlong g (locConstAlong (𝟭 _))) M.F n) : ∃ b : Set _, (pullbackAlong oneLocConst j.2.toTotalH ≠ 0 → j ∈ b) ∧ ∀ c, ⟨⟩ ∈ IdealFamily.ofMaximalIdeal.botLocus c → IsLerayHirschBasis (fun i : b ↦ i.1.2) (freeAb (reprBy c)) := by have {N} := AddCommGroup.zmodModule (M.nsmul_totalH_eq_zero (N := N)) let u (i : Sigma (H (locConstAlong g) M.F)) := i.2.toTotalH.pullbackAlong oneLocConst obtain ⟨b, -, o, q, l⟩ := exists_linearIndepOn_extension (by by_cases u j = 0 <;> simp_all : LinearIndepOn (ZMod ℓ) u ({j} ∩ u.support)) le_top let f {c : TestOver A} h : ⟨of A (ResidueField A), isTest_of_preValuationRing⟩ ⟶ c := ⟨ofHom (Ideal.Quotient.liftₐ _ structureMap.1 ((Ideal.map_eq_bot_iff_le_ker _).1 h))⟩ use b, by tauto, fun c h ↦ lerayHirsch_bijective_of_fields hl fun k φ hk ↦ (Comparison.bijective_iff_of_comm_sq (fun w ↦ ?_) (mapRange.addEquiv (.trans ⟨.ofBijective _ (@bijective_const_of_isDomain _ _ hk.isDomain), by tauto⟩ (sectionEquiv (locConstAlong ..) k))).bijective ((hl.2 _ _ (f (IdealFamily.ofMaximalIdeal.botLocus.map φ h)) (Field.toIsField _) hk).comp_iff.2 (d.isCohomEquiv_of_fromPreimage (u := toUnit _) (.of_bijective fun a ↦ ⟨fun _ _ _ ↦ congr(⟨⟨⟨ofHom $(Ideal.Quotient.algHom_ext _ (by ext))⟩⟩, _⟩), fun ⟨_, x⟩ ↦ ⟨⟨⟨f x⟩, x⟩, rfl⟩⟩ ))).bijective_totalH).1 ⟨l, M.comp_oneLocConst_surjective.forall.2 ((range_linearCombination _).ge <| ·.induction_on (by simp) (b.image_eq_range u ▸ q ⟨⟨·, ·⟩, ⟨⟩, rfl⟩) (by clear * -; aesop))⟩ simp [lerayHirsch, mapThenComp, sum_mapRange_index, linearCombination, map_finsuppSum] refine sum_congr fun i _ ↦ (w i).natCast_zmod_val ▸ ?_ simp [← nsmul_one, -nsmul_eq_mul, u, homClass_comp_homClass_comp] congr 3; exact map_homClass.trans (congrArg _ (freeAb.hom_ext (Y := g ⋙ reprBy k)))instance TestOver.hasCoveringPoints : HasCoveringPoints (ι _ : TestOver A ⥤ _) := .mk fun B _ _ ↦ have ⟨E, η, t, s⟩ := Envelope.exists_functorial_test ![_] let := ((η ⟨B⟩).1.comp (algebraMap A B)).toAlgebra ⟨⟨_, t _⟩, ⟨ofHom ⟨(η ⟨B⟩).1, by tauto⟩⟩, fun c φ ↦ (s 0 ⟨_, c.2⟩ ((forget₂ ..).map φ.1)).elim fun ψ e ↦ ⟨⟨⟨CommAlg.homOfRingHom _ (φ.1.1.2 · ▸ congr($e _))⟩⟩, congr(⟨ofHom ⟨$(e).1, _⟩⟩)⟩⟩lemma isAffinelyCovered_projLinePow {J} : IsAffinelyCovered (ι _ : TestOver A ⥤ _) (forget₂ .. ⋙ projLinePow J) := ⟨⟨fun _ ↦ ((isProperOver_projLinePow J).1 _ · · |>.imp (by aesop))⟩, of A (MvPolynomial ..), fun i ↦ ⟨⟦(.X (Sum.inl i), .X (.inr i))⟧⟩, fun _ _ ↦ ⟨⟨ofHom (MvPolynomial.aeval (·.rec _ _))⟩, congr(fun _ ↦ ⟨$(.trans (by aesop) (Quot.out_eq _))⟩)⟩⟩lemma isDetectedAtPoints_projLine : IsDetectedAtPoints (testOfPoint A _) (locConstAlong (testOfPoint A projLine)) := have h := isProperOver_projLinePow Unit IdealFamily.isDetectedAtPoints_of_proper ⟨⊥, by simp⟩ (h.of_isPullback h (.of_vert_isIso (snd := (NatIso.ofComponents fun _ ↦ (Equiv.piUnique _).toIso).2) (f := 𝟙 _) ⟨rfl⟩) h (𝟙 _) rfl) (𝟙 _) (fun _ _ ↦ Function.bijective_id) .of_top_le