Lean source
Lib.Cohomology.Etale.BijectiveComparisons
Its 33 declarations
kerComplexdef, lines 16–18kerComplex_shortExactlemma, lines 20–21exists_acyclic_coverlemma, lines 26–30piAbFunctor.def, lines 34–35lift H.lemma, lines 39–44pi_bijective IsCohomEquiv.lemma, lines 48–49of_bijective isPullback_ifflemma, lines 51–53isPullback_fibreProdlemma, lines 55–56isPullback_cechlemma, lines 58–60Comparison.def, line 70IsBijective isCohomEquiv_iff_isBijectivelemma, lines 74–75H.lemma, lines 79–80push_bijective_of_isIso pointMap_complemma, lines 82–83projective_and_eval_bijectivelemma, lines 85–88pointMap_id_bijective_of_fullyFaithfullemma, lines 90–92Comparison.def, lines 98–99homOfValue Comparison.lemma, lines 106–108IsBijective. trans_iff Comparison.lemma, lines 110–111IsBijective. trans Comparison.lemma, lines 113–115isBijective_iff_of_coeff_iso Comparison.lemma, lines 117–118homOfValue_app Comparison.lemma, lines 126–130isBijective_reprBy_iff Comparison.lemma, lines 134–136isBijective_of_repr Comparison.lemma, lines 141–143IsBijective. precomp_of_bijective Comparison.lemma, lines 148–153bijectiveUpTo_of_cech_pred Comparison.lemma, lines 157–172isBijective_of_fibres Comparison.def, lines 177–178HasUnivPoints Comparison.lemma, lines 182–186HasUnivPoints. isBijective_of_isPullback Comparison.lemma, lines 191–192HasUnivPoints. isBijective Comparison.lemma, lines 196–198HasUnivPoints. isBijective_subfunctor Comparison.lemma, lines 200–203HasUnivPoints. isCohomEquiv_incl_iff Comparison.lemma, lines 205–208isBijective_of_adj Comparison.lemma, lines 212–213bijectiveUpTo_congr Comparison.lemma, lines 215–216isBijective_congr
import Lib.General.Algebra.DisjointUnions/-! Part of: Descent of torsion étale cohomology along v-covers; excision, transfer, limits (knownresult; see Lib.Cohomology.Etale.ContinuityAtlas).This file: Covers by sums of representables; Ext commutes with products of coefficient functors. Apointwise bijection of functors induces isomorphisms on cohomology. Bijectivity criteria forcomparison maps: representables, Čech descent, fibrewise and universal points. -/open CategoryTheory Abelian.Ext Comparison piAbFunctor LongExactSeq Function AddCommGrpCat Limits cech fibreProd Finvariable {C} [Category C] {N I} {F : I → AbFunctor C} {M G : AbFunctor C} (β : M ⟶ G)/-- For a morphism β: M→G of abelian-group-valued functors, the three-term complex ker β → M → G,with the kernel taken objectwise and included into M. -/def kerComplex : ShortComplex (AbFunctor C) := .mk (X₁ := .mk _ fun f ↦ ofHom (((M.map f).hom.domRestrict _).codRestrict _ (by simp_all))) {app c := ofHom (β c).hom.ker.subtype} β (by ext _ ⟨⟩; tauto)lemma kerComplex_shortExact {α : M ⟶ G} (h : ∀ c, Surjective (α c)) : (kerComplex α).ShortExact := (shortExact_of_app (by simp) (by simp [Exact]) h).2/-- Every functor M from C to abelian groups is a quotient of Z[⊔ h_{c_i}] for some objects c_i,with kernel K such that the connecting map Ext^n(K,F) → Ext^{n+1}(M,F) is surjective for allF and n. -/lemma exists_acyclic_cover M : ∃ ι, ∃ (c : ι → C) (g : freeAb (sigma (reprBy <| c ·)) ⟶ M) (h : (kerComplex g).ShortExact), ∀ F n, Surjective ((contravariant h F).δ n) := ⟨Σ _, _, _, (freeAb.homEquiv ..).2 (sigma.desc (pointMap ·.2)), kerComplex_shortExact (⟨.of ⟨⟨·, _⟩, _⟩, (homReprEquiv ..).right_inv ·⟩), fun _ _ _ ↦ (exact_delta_f ..).1 ((H.sigma_bijective ..).1 (by simp [eq_zero_of_projective]))⟩/-- Given natural transformations N→F_i for each index i, the natural transformation from N tothe pointwise product of the functors F_i having these as components. -/def piAbFunctor.lift (f : ∀ i, N ⟶ F i) : N ⟶ piAbFunctor F := ⟨fun A ↦ ofHom (.pi (f · A |>.hom)), by aesop (add simp piAbFunctor)⟩/-- Ext commutes with products in the coefficients: the map Ext^n(N, ∏ F_i) → ∏ Ext^n(N,F_i)induced by the projections is bijective. -/lemma H.pi_bijective n : Bijective fun x i ↦ push N (π F i) n x := by induction n generalizing N; exact (bijective_iff_of_comm_sq (funext <| mk₀_comp_mk₀ · ∘' _) (mk₀_bijective ..) (.piMap (mk₀_bijective _ ∘' F))).1 (Equiv.mk _ lift).bijective choose _ _ _ h s using exists_acyclic_cover N simp_all [← pull_id_eq_push]; apply Hom.bijective_succ_family fun _ ↦ pull_hom_contravariant h h ⟨𝟭 C, _⟩ (𝟙 _) <;> tautovariable {C : _} [Category C] {Y E W V : C ⥤ Type 1} {p : E ⟶ Y} {u : W ⟶ Y} {q : V ⟶ W} {v}lemma IsCohomEquiv.of_bijective {F} (h : AllBijective (p ·)) : IsCohomEquiv F (freeAb.map p) := of_isIso (freeAb.map (isoOfAppBijective p h).1)@[local simp] lemma isPullback_iff : IsPullback v q p u ↔ (∀ B z, p B (v B z) = u B (q B z)) ∧ ∀ B w x, p B x = u B w → ∃! z, q B z = w ∧ v B z = x := by simp [IsPullback.iff_app, Types.isPullback_iff, ConcreteCategory.hom_ext_iff, ExistsUnique]; grindlemma isPullback_fibreProd : IsPullback (snd u p) (fst ..) p u := by simp_all [fibreProd, fst, snd, ExistsUnique]lemma isPullback_cech {m} : IsPullback (proj p _ 0) (Y := cech ..) { app _ := ↾fun e ↦ ⟨(e.1 ·.succ), by grind⟩ } p (proj p m 0 ≫ p) := by simpa [cech, proj, ExistsUnique] using ⟨by tauto, fun _ a _ x _ ↦ ⟨cons x a, by simp_all [funext_iff, forall_fin_succ]⟩⟩open Abelian Functor Subfunctor Ext H IsCohomEquiv ConcreteCategory Arrow BijectiveUpTo sigma IsPointwiseSurjective Isovariable {C : _} {C' C''} [Category C] [Category C'] [Category C''] {F G N : AbFunctor C} {F' G' N' : AbFunctor C'} {F'' N'' : AbFunctor C''} {Y E : C ⥤ Type 1} {Y' E' r φ} (c : Comparison F F') {A B} (u : Y' ⟶ c.φ ⋙ reprBy A)/-- For a comparison (φ,β) from F to F' and α: N' → N∘φ, the property that Ext^n(N,F) →Ext^n(N',F') is bijective for every n. -/def Comparison.IsBijective {N N'} α := ∀ n, Bijective (c.pull (N := N) (N' := N') α n)/-- A map α: N → G of functors from C to abelian groups is an equivalence for F if and only ifthe identity comparison from F to itself is bijective along α in every degree. -/lemma isCohomEquiv_iff_isBijective {α : N ⟶ G} : IsCohomEquiv F α ↔ (Comparison.id F).IsBijective α := by simp [IsCohomEquiv, Comparison.IsBijective]alias ⟨IsCohomEquiv.bij, Comparison.IsBijective.eqv⟩ := isCohomEquiv_iff_isBijectivelemma H.push_bijective_of_isIso {γ : F ⟶ G} (_ : IsIso γ) n : Bijective (push N γ n) := bijective_of_isIso ((extFunctorObj ..).map γ)lemma pointMap_comp y (p : E ⟶ Y) : pointMap y ≫ p = pointMap (p A y) := by ext; apply p.naturality_applylemma projective_and_eval_bijective F {B} z (hz : AllBijective (pointMap z ·)) : Projective (freeAb Y) ∧ Bijective (· B (.of z) : (freeAb Y ⟶ F) → _) := let e := freeAb.mapIso (isoOfAppBijective _ hz).symm Y.map_id_apply B z ▸ ⟨e.retract.projective, (e.homFromEquiv.trans (homReprEquiv ..).1).bijective⟩lemma pointMap_id_bijective_of_fullyFaithful (ψ : C ⥤ C') [ψ.Full] [ψ.Faithful] c : AllBijective (@pointMap _ _ (ψ ⋙ reprBy _) c ⟨𝟙 _⟩ ·) := fun _ ↦ ULift.map_bijective.2 ((homFromEquiv (.refl _)).bijective.comp ⟨by grind, ψ.map_surjective⟩)namespace Comparison/-- For u: Y' → h_A∘φ, the homomorphism F(A) → Hom(Z[Y'],F') sending x to the section taking yin Y'(B) to β_B(F(u(y))x). -/noncomputable def homOfValue := AddMonoidHom.mk' (fun x ↦ freeAbMap u ≫ whiskerLeft _ ((homReprEquiv ..).symm x) ≫ c.coeffHom) (by bound)variable {c} {c' : Comparison F' F''} {α : N' ⟶ _ ⋙ N} {α' : N'' ⟶ _}/-- Let c, c' be comparisons from F to F' and F' to F'', with c' bijective in all degrees alongα'. Then c is bijective along α exactly if the composite comparison is bijective along γ,the composite of α' with α∘φ'. -/lemma IsBijective.trans_iff (h : c'.IsBijective α') {γ} (e : α' ≫ whiskerLeft _ α = γ := by exact freeAb.hom_ext) : (c.trans c').IsBijective γ ↔ c.IsBijective α := by simp [IsBijective, ← (h _).of_comp_iff', comp_def, pull_trans, e]lemma IsBijective.trans (h : c.IsBijective α) (h' : c'.IsBijective α') {γ} (e : α' ≫ whiskerLeft _ α = γ := by exact freeAb.hom_ext) : (c.trans c').IsBijective γ := (h'.trans_iff e).2 hlemma isBijective_iff_of_coeff_iso {β} (γ : F ⟶ G) (γ' : _ ⟶ G') [IsIso γ] [IsIso γ'] (w : whiskerLeft _ γ ≫ β = c.coeffHom ≫ γ') : c.IsBijective α ↔ IsBijective ⟨_, β⟩ α := by simp [IsBijective, bijective_iff_of_comm_sq (c.pull_push _ _ _ w _), push_bijective_of_isIso]lemma homOfValue_app x B y : c.homOfValue u x B (.of y) = c.coeffHom B (F.map (u B y).down x) := add_zero (F.map ..) ▸ rflattribute [instance] subsingleton_of_projectivevariable {u}/-- For u: Y' → h_A∘φ, the comparison H^n(h_A,F) → H^n(Y',F') is bijective for all n if and onlyif the induced map F(A) → Hom(Z[Y'],F') is bijective and H^n(Y',F') = 0 for all n ≥ 1. -/lemma isBijective_reprBy_iff : c.IsBijective (freeAbMap u) ↔ Bijective (c.homOfValue u) ∧ ∀ n, Subsingleton (H (freeAb Y') F' (n + 1)) := Nat.and_forall_add_one.symm.trans (.and (bijective_iff_of_comm_sq (by aesop (add simp [pull, H.map, H.push])) (homEquiv₀.trans _).symm.bijective (mk₀_bijective ..)).symm ⟨(· · |>.2.subsingleton), by simp_all [Bijective, Surjective, nontriviality]⟩)/-- Let u: Y' → h_A∘φ, with Y' represented by z in Y'(B). If the map F(A) → F(φB) → F'(B) givenby u(z) and β is bijective, then the comparison along u is bijective in all degrees. -/lemma isBijective_of_repr z (hz : AllBijective (pointMap z ·)) : Bijective (c.coeffHom B <| F.map (u B z).down ·) → c.IsBijective (freeAbMap u) := let ⟨_, b⟩ := projective_and_eval_bijective F' z hz by simp [isBijective_reprBy_iff, comp_def, ← b.of_comp_iff', subsingleton_iff, homOfValue_app]variable {u : Y' ⟶ _ ⋙ Y} {v : E' ⟶ _ ⋙ E} {p : _} {p'} (w : p' ≫ u = v ≫ whiskerLeft _ p) (e : IsCohomEquiv F (freeAb.map p)) (e' : IsCohomEquiv F' (freeAb.map p'))lemma IsBijective.precomp_of_bijective (h : c.IsBijective (freeAbMap u)) {v} (p' : E' ⟶ _) (w : p' ≫ u = v) : AllBijective (p' ·) → c.IsBijective (freeAbMap v) := w ▸ (h.trans <| bij <| of_bijective ·)/-- Let u lift to v between covers p', p. If the comparison along v is bijective in all degrees andthose on all fibre powers of the covers satisfy `BijectiveUpTo` at level r, the comparison along usatisfies it at level r+1. -/lemma bijectiveUpTo_of_cech_pred (hp : IsCover F p) (hp' : IsCover F' p') (hv : c.IsBijective (freeAbMap v)) (H : ∀ m, BijectiveUpTo (c.pull (freeAbMap (Y := cech p m) (Y' := cech p' m) ((cechFunctor m).map (homMk' v u w.symm))) ·) (r - 1)) : BijectiveUpTo (c.pull (freeAbMap u) ·) r := (congr hp hp' map_pull_eq_pull_map).2 (cech_descent_step leftToRight (c.devissage ((whiskeringLeft ..) (toArrowFunctor (.mk p))) ((whiskeringLeft ..).2 (toArrowFunctor.2 (homMk' v u w.symm)))).1 (forall_bijective_iff_bijectiveUpTo.1 hv r) H)/-- Let v: E' → E∘φ be the pull-back of u: Y' → Y∘φ along t: E → Y. If for all x ∈ E(A) thecomparison is bijective along the fibre of u over t(x): h_A → Y, it is bijective along v. -/lemma isBijective_of_fibres t (s : IsPullback v p' (whiskerLeft _ t) u) (h : ∀ A x, c.IsBijective (freeAbMap (snd u (whiskerLeft _ (pointMap (t A x)))))) : c.IsBijective (freeAbMap v) := forall_bijective_iff_bijectiveUpTo.2 (by induction' · with r ih generalizing Y Y' E E'; tauto let p := desc (ι := E.Elements) (pointMap ·.2) have k A x := (pointMap_comp x t ▸ h A x).precomp_of_bijective _ ((isPullback_fibreProd (p := whiskerLeft _ (pointMap x)).paste_vert s).isoIsPullback_hom_fst _ _ isPullback_fibreProd) (app _ · |>.toEquiv.bijective) let q := desc fun x : E.Elements ↦ fst v (whiskerLeft _ (pointMap x.2)) exact bijectiveUpTo_of_cech_pred (by ext _ ⟨_, ⟨⟩⟩; tauto) (isCover p fun _ y ↦ (⟨⟨⟨y⟩, ⟨𝟙 _⟩⟩, E.map_id_apply ..⟩)) (isCover q (⟨⟨⟨v · ·⟩, ⟨_, ⟨_⟩⟩, (E.map_id_apply ..).symm⟩, rfl⟩)) (fun n ↦ (bijective_iff_of_comm_sq (fun _ ↦ funext fun _ ↦ (map_pull_eq_pull_map ..).symm) (sigma_bijective ..) (sigma_bijective ..)).2 (.piMap (k _ ·.2 n))) (v := desc fun x ↦ snd .. ≫ whiskerLeft _ (ι _ x)) fun _ ↦ ih (p' := proj .. ≫ q) (proj .. ≫ p) (isPullback_iff.2 ⟨fun _ ↦ (·.1 0 |>.2.2.symm), fun _ _ g e ↦ ⟨⟨(⟨_, ⟨_, _⟩, e ▸ g.2 0 ·⟩), by tauto⟩, by tauto, by rintro z ⟨⟨⟩, ⟨⟩⟩; congrm ⟨(⟨_, ⟨$(z.2 · 0), _⟩, _⟩), _⟩⟩⟩) (k · ∘' _))variable (c u) in/-- For all y ∈ Y(A), the pairs (z ∈ Y'(D), f: A → φD) with u(z) = f(y) have a universal member(x, s: A → φB), and β∘F(s): F(A) → F'(B) is bijective. -/def HasUnivPoints := ∀ A (y : Y A), ∃ B x s, u B x = Y.map s y ∧ (∀ D z f, u D z = Y.map f y → ∃! g, Y'.map g x = z ∧ s ≫ c.φ.map g = f) ∧ Bijective fun a ↦ c.coeffHom B (F.map s a)/-- If u: Y' → Y∘φ has universal points (`Comparison.HasUnivPoints`), then for every t: E → Y thecomparison is bijective in all degrees along the pull-back v: E' → E∘φ of u along t. -/lemma HasUnivPoints.isBijective_of_isPullback (h : c.HasUnivPoints u) w t (s : IsPullback v w (whiskerLeft _ t) u) : c.IsBijective (freeAbMap v) := isBijective_of_fibres t s fun _ _ ↦ let ⟨_, x, _, e, H, b⟩ := h .. isBijective_of_repr ⟨(x, _), e⟩ (fun D ↦ .of_existsUnique _ ((Equiv.ulift.existsUnique_congr fun _ ↦ ⟨by bound, fun ⟨a, b⟩ ↦ congr(⟨($a, ⟨$b⟩), _⟩)⟩).2 <| H D _ _ ·.2)) b/-- If for each y ∈ Y(A) the pairs (z ∈ Y'(D), f: A → φD) with u(z) = f(y) have a universalmember (x, s: A → φB) with β∘F(s): F(A) → F'(B) bijective, then H^n(Y,F) → H^n(Y',F') isbijective for all n. -/lemma HasUnivPoints.isBijective (h : c.HasUnivPoints u) : c.IsBijective (freeAbMap u) := h.isBijective_of_isPullback _ (𝟙 _) .of_id_snd/-- If u: Y' → Y∘φ has universal points (`Comparison.HasUnivPoints`), then for every subfunctor U ofY the comparison is bijective in all degrees along the restricted map u⁻¹(U∘φ) → U∘φ. -/lemma HasUnivPoints.isBijective_subfunctor (h : c.HasUnivPoints u) U : c.IsBijective (freeAbMap (Y := toFunctor U) ((U.whisker _).fromPreimage u)) := h.isBijective_of_isPullback _ U.ι (isPullback_iff.2 (by aesop (add simp [ExistsUnique, toFunctor])))lemma HasUnivPoints.isCohomEquiv_incl_iff (h : c.HasUnivPoints u) U {S} (e : S = (whisker U _).preimage u) : IsCohomEquiv F (freeAb.map U.ι) ↔ IsCohomEquiv F' (freeAb.map S.ι) := e ▸ forall_congr' (bijective_iff_of_comm_sq (map_pull_eq_pull_map (n := _)) (h.isBijective _) ∘' h.isBijective_subfunctor U)lemma isBijective_of_adj {U} (a : φ ⊣ U) : IsBijective (F := φ ⋙ F) ⟨U, whiskerRight a.2 F⟩ (freeAbMap (𝟙 (U ⋙ Y'))) := HasUnivPoints.isBijective fun A y ↦ ⟨_, _, a.1 A, rfl, fun _ _ f _ ↦ ((a.homEquiv ..).bijective.existsUnique f).imp (by aesop (add simp a.homEquiv_unit)), by simpa [← map_comp_apply] using! bijective_id⟩include w e e'lemma bijectiveUpTo_congr : BijectiveUpTo (c.pull (freeAbMap u) ·) r ↔ BijectiveUpTo (c.pull (freeAbMap v) ·) r := congr e e' (map_pull_eq_pull_map (freeAb.map_commSq ⟨w⟩).1)lemma isBijective_congr : c.IsBijective (freeAbMap u) ↔ c.IsBijective (freeAbMap v) := by simp_all [IsBijective, forall_bijective_iff_bijectiveUpTo, bijectiveUpTo_congr w]