Quelle CM5a.lean
Sprache: Lean
|
|
/-
Copyright (c) 2026 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
module
public import Mathlib.Algebra.Homology.Factorizations.CM5b
import Mathlib.Algebra.Homology.DerivedCategory.TStructure
import Mathlib.Algebra.Homology.HomologicalComplexLimitsEventuallyConstant
import Mathlib.Algebra.Homology.SingleHomology
import Mathlib.CategoryTheory.Category.Factorisation
import Mathlib.CategoryTheory.Functor.OfSequence
/-!
# Factorization lemma
In this file, we show that if `f : K ⟶ L` is a morphism between bounded below
cochain complexes in an abelian category with enough injectives,
there exists a factorization `ι ≫ π = f` with `ι : K ⟶ K'` a monomorphism that is also
a quasimorphism and `π : K' ⟶ L` a morphism which degreewise is an epimorphism with
an injective kernel, while `K'` is also bounded below (with precise bounds depending
on the available bounds for `K` and `L`): this is
`CochainComplex.Plus.modelCategoryQuillen.cm5a`. Using the factorization
obtained in the file `Mathlib/Algebra/Homology/Factorizations/CM5b.lean`,
we may assume `f : K ⇨ L` is a monomorphism (a case which appears as
the lemma `CochainComplex.Plus.modelCategoryQuillen.cm5a_cof`).
In the proof, the key (private) lemma is be
`CochainComplex.Plus.modelCategoryQuillen.cm5a_cof.step` which shows that
if `f` is a monomorphism which is a quasi-isomorphism in degrees `≤ n₀` and
`n₀ + 1 = n₁`, then `f` has a factorisation `ι ≫ π = f`
where `ι` is a monomorphism that is a quasi-isomorphism in degrees `≤ n₁`,
and `π` is an isomorphism in degrees `≤ n₀` that is also a degreewise
epimorphism with an injective kernel. The proof of `step` decomposes
a two separate lemmas `step₁` and `step₂`: we first ensure that `ι`
induces a monomorphism in homology in degree `n₁`, and we proceed further
in `step₂`.
As we assume that both `K` and `L` are bounded below, we may find `n₀ : ℤ`
such that `K` and `L` are strictly `≥ n₀ + 1`: in particular, `f` induces
an isomorphism in degrees `≤ n₀`. Iterating the lemma `step`, we construct
a projective system `ℕᵒᵖ ⥤ CochainComplex C ℤ`
(see `CochainComplex.Plus.modelCategoryQuillen.cm5a_cof.cochainComplexFunctor`).
Degreewise, this projective system is essentially constant, which allows
to take its limit, which shall be the intermediate object in the
lemma `cm5a_cof`.
-/
open CategoryTheory Limits Opposite Abelian HomologicalComplex Pretriangulated
variable {C : Type*} [Category* C] [Abelian C]
namespace CochainComplex.Plus.modelCategoryQuillen
variable {K L : CochainComplex C ℤ} (f : K ⟶ L)
namespace cm5a_cof
/-- Given a morphism `f : K ⟶ L`, this is the property of factorisations
of `f` consisting of a monomorphism followed by a degreewise epimorphism
with injective kernel. -/
def cofFib : ObjectProperty (Factorisation f) :=
fun F ↦ Mono F.ι ∧ degreewiseEpiWithInjectiveKernel F.π
instance (F : (cofFib f).FullSubcategory) : Mono F.obj.ι :=
F.property.1
variable {f} in
/-- The property that the first morphism of a factorisation is
a quasi-isomorphisms in degrees `≤ n`. -/
def quasiIsoLE (n : ℤ) : ObjectProperty (cofFib f).FullSubcategory :=
fun F ↦ ∀ i ≤ n, QuasiIsoAt F.obj.ι i
variable {f} in
/-- The property that the second morphism of a factorisation is
an isomorphism in degrees `≤ n`. -/
def isIsoLE (n : ℤ) : ObjectProperty (cofFib f).FullSubcategory :=
fun F ↦ ∀ i ≤ n, IsIso (F.obj.π.f i)
namespace step₁
variable [EnoughInjectives C]
/-!
This section provides the material in order to prove the lemma `step₁` below.
Given a monomorphism `f : K ⟶ L` in `CochainComplex C ℤ` which is
a quasi-isomorphism in degrees `≤ n₀` (with `n₀ + 1 = n₁`), we construct
a factorization `ι f n₁ ≫ π K L n₁ = f` where the intermediate object
`mid K L n₁` is `S K n₁ ⊞ L`, with `S K n₁` the single complex in degree `n₁`
given by an injective object containing `K.opcycles n₁` (which is a cokernel of
the differential `K.X n₀ ⟶ K.X n₁`).
We obtain that `ι f n₁` is a quasi-isomorphism in degrees `≤ n₀` and
induces a monomorphism in homology in degree `n₀`,
and that `π K L n₁` is an isomorphism in degrees `≤ n₀` that is
also a degreewise epimorphism with an injective kernel. -/
variable (n₀ n₁ : ℤ) (hn₁ : n₀ + 1 = n₁)
variable (K) in
/-- The single complex in degree `n₁` that is given by an injective
object containing `K.opcycles n₁`. -/
noncomputable abbrev S : CochainComplex C ℤ :=
((single C _ n₁).obj (Injective.under (K.opcycles n₁)))
variable (K L) in
/-- The intermediate object in the factorization. -/
noncomputable abbrev mid := S K n₁ ⊞ L
variable (K) in
/-- The morphism `K ⟶ S K n₁` which in degree `n₁` corresponds to
the composition `K.X n₁ ⟶ K.opcycles n₁ ⟶ Injective.under (K.opcycles n₁)`. -/
noncomputable def i : K ⟶ S K n₁ := mkHomToSingle (K.pOpcycles n₁ ≫ Injective.ι _) (by simp)
/-- The first morphism in the factorization. -/
noncomputable abbrev ι : K ⟶ mid K L n₁ := biprod.lift (i K n₁) f
variable (K L) in
/-- The second morphism in the factorization. -/
noncomputable abbrev π : mid K L n₁ ⟶ L := biprod.snd
variable (K L) in
/-- A section of `π K L n₁` -/
noncomputable abbrev σ : L ⟶ mid K L n₁ := biprod.inr
@[reassoc]
lemma ι_π : ι f n₁ ≫ π K L n₁ = f := by simp
instance [Mono f] : Mono (ι f n₁) := mono_of_mono_fac (ι_π f n₁)
variable (K L) in
lemma degreewiseEpiWithInjectiveKernel_π :
degreewiseEpiWithInjectiveKernel (π K L n₁) := by
intro q
rw [Abelian.epiWithInjectiveKernel_iff]
exact ⟨(S K n₁).X q, inferInstance, (biprod.inl : _ ⟶ mid K L n₁).f q, by simp,
⟨{ r := (biprod.fst : mid K L n₁ ⟶ _).f q, s := (biprod.inr : _ ⟶ mid K L n₁).f q }⟩⟩
variable (K L) in
lemma isIso_π_f (i : ℤ) (hi : i ≠ n₁ := by lia) :
IsIso ((π K L n₁).f i) := by
refine ⟨(biprod.inr : _ ⟶ mid K L n₁).f i, ?_, by simp⟩
rw [biprodX_ext_to_iff]
constructor
· apply (isZero_single_obj_X (.up ℤ) _ _ _ hi).eq_of_tgt
· simp
include hn₁ in
variable (K L) in
lemma quasiIsoAt_π (i : ℤ) (hi : i ≤ n₀ := by lia) :
QuasiIsoAt (π K L n₁) i := by
obtain (hi | rfl) := hi.lt_or_eq
· rw [quasiIsoAt_iff' _ (i - 1) i (i + 1) (by simp) (by simp)]
let φ := (shortComplexFunctor' C _ (i - 1) i (i + 1)).map (π K L n₁)
have : IsIso φ.τ₁ := isIso_π_f ..
have : IsIso φ.τ₂ := isIso_π_f ..
have : IsIso φ.τ₃ := isIso_π_f ..
exact ShortComplex.quasiIso_of_epi_of_isIso_of_mono φ
· rw [quasiIsoAt_iff_isIso_homologyMap]
have : homologyMap (biprod.inl : _ ⟶ mid K L n₁) i = 0 :=
(ShortComplex.isZero_homology_of_isZero_X₂ _
(isZero_single_obj_X (.up ℤ) _ _ _ (by lia))).eq_of_src _ _
refine ⟨homologyMap (σ K L n₁) i, ?_, ?_⟩
· simp [← homologyMap_id, ← biprod.total, homologyMap_comp, this]
· simp [← homologyMap_comp, homologyMap_id]
variable (hf : ∀ i ≤ n₀, QuasiIsoAt f i)
include hn₁ hf in
lemma quasiIsoAt_ι (i : ℤ) (hi : i ≤ n₀) :
QuasiIsoAt (ι f n₁) i := by
have := quasiIsoAt_π K L n₀ n₁ hn₁ i hi
rw [← quasiIsoAt_iff_comp_right _ (π K L n₁), ι_π]
exact hf i hi
instance : Mono (homologyMap (ι f n₁) n₁) := by
let n₀ := n₁ - 1
rw [mono_homologyMap_iff_up_to_refinements _ n₀ n₁ (n₁ + 1) (by simp; lia) (by simp)]
intro A x₁ _ y₀ hy₀
obtain ⟨y₀, rfl⟩ : ∃ (z₁ : A ⟶ L.X n₀), z₁ ≫ (σ K L n₁).f n₀ = y₀ := by
refine ⟨y₀ ≫ (π K L n₁).f n₀, Eq.trans ?_ (Category.comp_id _)⟩
have : (biprod.inl : _ ⟶ mid K L n₁).f n₀ = 0 :=
(isZero_single_obj_X (.up ℤ) _ _ _ (by lia)).eq_of_src _ _
simp [this, ← biprod_total_f]
simp only [Category.assoc, Hom.comm, biprodX_ext_to_iff, biprod_lift_fst_f,
biprod_inr_fst_f, comp_zero, biprod_lift_snd_f, biprod_inr_snd_f,
Category.comp_id] at hy₀
obtain ⟨h₁, h₂⟩ := hy₀
replace h₁ : x₁ ≫ K.pOpcycles n₁ = 0 := by
rw [← cancel_mono (Injective.ι _)]
simpa [i, ← cancel_mono (singleObjXSelf (.up ℤ) n₁ _).hom] using h₁
obtain ⟨A₁, π, _, x₀, hx₀⟩ :=
(K.comp_pOpcycles_eq_zero_iff_up_to_refinements x₁ n₀ (by simp; lia)).1 h₁
exact ⟨A₁, π, inferInstance, x₀, hx₀⟩
end step₁
open step₁ in
lemma step₁ [EnoughInjectives C] [Mono f] (n₀ n₁ : ℤ)
(hf : ∀ i ≤ n₀, QuasiIsoAt f i) (hn₁ : n₀ + 1 = n₁ := by lia) :
∃ (F : (cofFib f).FullSubcategory), quasiIsoLE n₀ F ∧ isIsoLE n₀ F ∧
Mono (homologyMap F.obj.ι n₁) :=
⟨.mk { mid := mid K L n₁, ι := ι f n₁, π := π K L n₁ }
⟨inferInstance, degreewiseEpiWithInjectiveKernel_π K L n₁⟩,
fun i hi ↦ quasiIsoAt_ι f n₀ n₁ hn₁ hf i hi,
fun i hi ↦ isIso_π_f K L n₁ i (by lia),
inferInstance⟩
namespace step₂
/-!
This section provides the material in order to prove the lemma `step₂` below.
Given a monomorphism `f : K ⟶ L` that is a quasi-isomorphism in degrees `< n`
and which induces a monomorphism in homology in degree `n`, we construct
a factorisation of `f` as `ι f n ≫ π f n = f` where
`ι f n : K ⟶ mid f n` is a monomorphism which is a quasi-isomorphism
in degrees `≤ n`, `π f n` is a degreewise epimorphism with an injective kernel
which also induces isomorphisms in degrees `≤ n`.
-/
open HomComplex
variable [EnoughInjectives C] (n : ℤ)
/-- Given a morphism `f : K ⟶ L`, this is the single cochain complex in degree `n`
which is given an injective object which contains `((cokernel f).truncGE n).X n`,
i.e. the object in degree `n` of the canonical truncation `≥ n` of `cokernel f`. -/
noncomputable abbrev S :=
(single C (.up ℤ) n).obj (Injective.under (((cokernel f).truncGE n).X n))
/-- The morphism `(cokernel f).truncGE n ⟶ S f n` which in degree `n` is
given by `Injective.ι _`. -/
noncomputable def p : (cokernel f).truncGE n ⟶ S f n :=
mkHomToSingle (Injective.ι _) (fun i hi ↦ by
simp only [ComplexShape.up_Rel] at hi
exact (isZero_of_isStrictlyGE _ n _).eq_of_src _ _)
instance : Mono ((p f n).f n) := by
simp only [p, mkHomToSingle_f, mono_comp_iff_of_mono]
infer_instance
/-- The obvious morphism `L ⟶ S f n`. -/
noncomputable def α : L ⟶ S f n := cokernel.π f ≫ (cokernel f).πTruncGE n ≫ p f n
@[reassoc (attr := simp)]
lemma comp_α : f ≫ α f n = 0 := by simp [α]
@[reassoc (attr := simp)]
lemma comp_α_f (i : ℤ) : f.f i ≫ (α f n).f i = 0 := by simp [← comp_f]
/-- The intermediate object in the factorisation. -/
noncomputable abbrev mid := mappingCocone (α f n)
/-- The first morphism of the factorisation. -/
noncomputable abbrev ι : K ⟶ mid f n := mappingCocone.lift (α f n) f 0 (by simp)
/-- The second morphism of the factorisation. -/
noncomputable abbrev π : mid f n ⟶ L := mappingCocone.fst (α f n)
@[reassoc]
lemma ι_π : ι f n ≫ π f n = f := by simp
instance [Mono f] : Mono (ι f n) := mono_of_mono_fac (ι_π f n)
lemma degreewiseEpiWithInjectiveKernel_π :
degreewiseEpiWithInjectiveKernel (π f n) := by
intro i
rw [epiWithInjectiveKernel_iff]
exact ⟨_, inferInstance, (mappingCocone.inr (α f n)).1.v (i - 1) i (by lia), by simp,
⟨{r := (mappingCocone.snd (α f n)).v _ _ (by lia)
s := (mappingCocone.inl (α f n)).v _ _ (by lia)
id := (add_comm _ _).trans (by simp [mappingCocone.id_X]) }⟩⟩
lemma isIso_π_f (i : ℤ) (hi : i ≤ n) : IsIso ((π f n).f i) := by
refine ⟨(mappingCocone.inl (α f n)).v i i (add_zero i), ?_, by simp⟩
simp [← mappingCocone.id_X (α f n) i (i - 1) (by lia),
(isZero_single_obj_X _ _ _ _ (by lia)).eq_of_src
((mappingCocone.inr (α f n)).1.v (i - 1) i (by lia)) 0]
section
attribute [local instance] HasDerivedCategory.standard
lemma mono_homologyMap_π (q : ℤ) (hq : q ≤ n) : Mono (homologyMap (π f n) q) :=
(CochainComplex.homologyMap_exact₁_of_distTriang _
(DerivedCategory.mappingCocone_triangle_distinguished (α f n)) (q - 1) q (by lia)).mono_g
((ExactAt.isZero_homology (exactAt_single_obj _ _ _ _ (by lia))).eq_of_src _ _)
lemma epi_homologyMap_π (q : ℤ) (hq : q < n) : Epi (homologyMap (π f n) q) :=
(CochainComplex.homologyMap_exact₂_of_distTriang _
(DerivedCategory.mappingCocone_triangle_distinguished (α f n)) q).epi_f
((ExactAt.isZero_homology (exactAt_single_obj _ _ _ _ (by lia))).eq_of_tgt _ _)
end
lemma quasiIsoAt_π (q : ℤ) (hq : q < n) : QuasiIsoAt (π f n) q := by
have := mono_homologyMap_π f n q (by lia)
have := epi_homologyMap_π f n q hq
rw [quasiIsoAt_iff_isIso_homologyMap]
apply Balanced.isIso_of_mono_of_epi
/-- The (exact) short complex `K.homology n ⟶ L.homology n ⟶ (S f n).homology n`. -/
@[simps]
noncomputable def homologyShortComplex : ShortComplex C :=
ShortComplex.mk (homologyMap f n) (homologyMap (α f n) n) (by
rw [← homologyMap_comp, comp_α, homologyMap_zero])
instance [Mono (homologyMap f n)] :
Mono (homologyShortComplex f n).f := by
assumption
instance : Mono (homologyMap (p f n) n) := by
have := (S f n).isIso_homologyπ (n - 1) n (by simp) (by simp)
have : Mono ((truncGE (cokernel f) n).homologyπ n ≫ homologyMap (p f n) n) := by
rw [homologyπ_naturality (p f n) n]
infer_instance
have := (truncGE (cokernel f) n).isIso_homologyπ (n - 1) n (by simp)
((isZero_of_isStrictlyGE _ n _ (by lia)).eq_of_src _ _)
rw [← IsIso.inv_hom_id_assoc ((truncGE (cokernel f) n).homologyπ n) (homologyMap (p f n) n)]
infer_instance
omit [EnoughInjectives C] in
lemma shortExact [Mono f] : (ShortComplex.mk _ _ (cokernel.condition f)).ShortExact where
exact := ShortComplex.exact_of_g_is_cokernel _ (cokernelIsCokernel f)
set_option backward.defeqAttrib.useBackward true in
lemma exact_homologyShortComplex [Mono f] :
(homologyShortComplex f n).Exact := by
let T := ShortComplex.mk (homologyMap f n) (homologyMap (cokernel.π f) n)
(by rw [← homologyMap_comp, cokernel.condition, homologyMap_zero])
let φ : T ⟶ homologyShortComplex f n :=
{ τ₁ := _
τ₂ := _
τ₃ := homologyMap ((cokernel f).πTruncGE n ≫ p f n) n
comm₂₃ := by
dsimp
rw [Category.id_comp, ← homologyMap_comp, α] }
obtain ⟨_, _, _⟩ : Mono φ.τ₃ ∧ IsIso φ.τ₂ ∧ Epi φ.τ₁ := by
dsimp [φ]
rw [homologyMap_comp]
exact ⟨inferInstance, inferInstance, inferInstance⟩
rw [← ShortComplex.exact_iff_of_epi_of_isIso_of_mono φ]
exact (shortExact f).homology_exact₂ n
variable (hf : ∀ i < n, QuasiIsoAt f i)
include hf
omit [EnoughInjectives C] in
lemma isGE_cokernel [Mono f] [Mono (homologyMap f n)] : (cokernel f).IsGE n := by
rw [isGE_iff]
intro i hi
rw [exactAt_iff_isZero_homology]
refine ((shortExact f).homology_exact₃ i (i + 1) (by simp)).isZero_X₂ ?_ ?_
· have := hf i hi
rw [← ((shortExact f).homology_exact₂ i).epi_f_iff]
infer_instance
· rw [← ((shortExact f).homology_exact₁ i (i + 1) (by simp)).mono_g_iff]
by_cases hi' : i + 1 < n
· have := hf (i + 1) (by lia)
infer_instance
· obtain rfl : n = i + 1 := by lia
infer_instance
omit [EnoughInjectives C] in
lemma quasiIso_truncGEπ [Mono f] [Mono (homologyMap f n)] :
QuasiIso ((cokernel f).πTruncGE n) := by
rw [quasiIso_πTruncGE_iff]
exact isGE_cokernel f n hf
set_option backward.isDefEq.respectTransparency.types false in
set_option backward.defeqAttrib.useBackward true in
attribute [local instance] HasDerivedCategory.standard in
lemma quasiIsoAt_ι [Mono f] [Mono (homologyMap f n)] (q : ℤ) (hq : q ≤ n) :
QuasiIsoAt (ι f n) q := by
obtain hq | rfl := hq.lt_or_eq'
· have := quasiIsoAt_π f n q hq
rw [← quasiIsoAt_iff_comp_right _ (π f n), mappingCocone.lift_fst]
exact hf q hq
· have := mono_homologyMap_π f n n (by lia)
have : Mono (homologyMap (mappingCocone.triangle (α f n)).mor₁ n) := by
dsimp; infer_instance
have h₁ := (exact_homologyShortComplex f n).fIsKernel
have h₂ := (CochainComplex.homologyMap_exact₂_of_distTriang _
(DerivedCategory.mappingCocone_triangle_distinguished (α f n)) n).fIsKernel
have : homologyMap (ι f n) n = (IsLimit.conePointUniqueUpToIso h₁ h₂).hom := by
simp [← cancel_mono (homologyMap (π f n) n),
dsimp% IsLimit.conePointUniqueUpToIso_hom_comp h₁ h₂ .zero,
← homologyMap_comp, mappingCocone.lift_fst]
rw [quasiIsoAt_iff_isIso_homologyMap, this]
infer_instance
end step₂
open step₂ in
lemma step₂ [EnoughInjectives C] [Mono f] (n₀ n₁ : ℤ)
(hf : ∀ i ≤ n₀, QuasiIsoAt f i) [Mono (homologyMap f n₁)] (hn₁ : n₀ + 1 = n₁ := by lia) :
∃ (F : (cofFib f).FullSubcategory), quasiIsoLE n₁ F ∧ isIsoLE n₁ F :=
⟨.mk { mid := mid f n₁, ι := ι f n₁, π := π f n₁}
⟨inferInstance, degreewiseEpiWithInjectiveKernel_π f n₁⟩,
fun i hi ↦ quasiIsoAt_ι f n₁ (fun j hj ↦ hf j (by lia)) _ hi,
isIso_π_f f n₁⟩
lemma step [EnoughInjectives C] [Mono f] (n₀ n₁ : ℤ)
(hf : ∀ i ≤ n₀, QuasiIsoAt f i) (hn₁ : n₀ + 1 = n₁ := by lia) :
∃ (F : (cofFib f).FullSubcategory), quasiIsoLE n₁ F ∧ isIsoLE n₀ F := by
obtain ⟨F₁, h₁, h₂, _⟩ := step₁ f n₀ n₁ hf
obtain ⟨F₂, h₃, h₄⟩ := step₂ F₁.obj.ι n₀ n₁ h₁
refine ⟨.mk { mid := F₂.obj.mid, ι := F₂.obj.ι, π := F₂.obj.π ≫ F₁.obj.π }
⟨by dsimp; infer_instance, MorphismProperty.comp_mem _ _ _ F₂.property.2 F₁.property.2⟩,
⟨h₃, fun i hi ↦ ?_⟩⟩
have := h₂ i hi
have := h₄ i (by lia)
dsimp
infer_instance
/-- The category of factorisations of `f` as a monomorphism that is a quasi-isomorphism
in degrees `≤ n` followed by a degreewise epimorphism with an injective kernel. -/
abbrev CofFibFactorizationQuasiIsoLE (n : ℤ) := (quasiIsoLE (f := f) n).FullSubcategory
variable [EnoughInjectives C]
namespace CofFibFactorizationQuasiIsoLE
/-- When `K` and `L` are both strictly `≥ n + 1`, this is the factorization `f ≫ L = f`
of a monomorphism `f : K ⟶ L` as a monomorphism that is a quasi-isomorphism in degrees `≤ n`
followed by a degreewise epimorphism with an injective kernel. -/
def zero [Mono f] (n : ℤ) [K.IsStrictlyGE (n + 1)] [L.IsStrictlyGE (n + 1)] :
CofFibFactorizationQuasiIsoLE f (n + (0 : ℕ)) :=
.mk (.mk { mid := L, ι := f, π := L }
⟨by assumption, fun i ↦ epiWithInjectiveKernel_of_iso ( (L.X i))⟩)
(fun i hi ↦ by
dsimp
rw [quasiIsoAt_iff_isIso_homologyMap]
apply IsZero.isIso
all_goals
· rw [← exactAt_iff_isZero_homology]
exact exactAt_of_isGE _ (n + 1) i)
variable {f} in
lemma exists_next {n₀ : ℤ} (F : CofFibFactorizationQuasiIsoLE f n₀)
(n₁ : ℤ) (hn₁ : n₀ + 1 = n₁) :
∃ (F' : CofFibFactorizationQuasiIsoLE f n₁) (g : F'.obj ⟶ F.obj),
∀ (i : ℤ) (_ : i ≤ n₀), IsIso (g.hom.h.f i) := by
obtain ⟨F₁₂, h₁, h₂⟩ := step F.obj.obj.ι n₀ n₁ F.property
exact ⟨.mk (.mk { mid := F₁₂.obj.mid, ι := F₁₂.obj.ι, π := F₁₂.obj.π ≫ F.obj.obj.π }
⟨by dsimp; infer_instance,
MorphismProperty.comp_mem _ _ _ F₁₂.property.2 F.obj.property.2⟩) h₁,
ObjectProperty.homMk { h := F₁₂.obj.π }, h₂⟩
variable {f} in
/-- Given `F : CofFibFactorizationQuasiIsoLE f n₀`, this is term in
`CofFibFactorizationQuasiIsoLE f n₁` with `n₀ + 1 = n₁` that is given
by the lemma `exists_next`. -/
noncomputable def next {n₀ : ℤ} (F : CofFibFactorizationQuasiIsoLE f n₀)
(n₁ : ℤ) (hn₁ : n₀ + 1 = n₁) :
CofFibFactorizationQuasiIsoLE f n₁ :=
(F.exists_next n₁ hn₁).choose
variable {f} in
/-- Given `F : CofFibFactorizationQuasiIsoLE f n₀`, this is the morphism which relates
the intermediate objects in the factorisations `F.next n₁ _` and `F`. -/
noncomputable def fromNext {n₀ : ℤ} (F : CofFibFactorizationQuasiIsoLE f n₀)
(n₁ : ℤ) (hn₁ : n₀ + 1 = n₁) :
(F.next n₁ hn₁).obj ⟶ F.obj :=
(F.exists_next n₁ hn₁).choose_spec.choose
variable {f} in
lemma isIso_fromNext_hom_h_f {n₀ : ℤ} (F : CofFibFactorizationQuasiIsoLE f n₀)
(n₁ : ℤ) (hn₁ : n₀ + 1 = n₁) (i : ℤ) (hi : i ≤ n₀) :
IsIso ((F.fromNext n₁ hn₁).hom.h.f i) :=
(F.exists_next n₁ hn₁).choose_spec.choose_spec i hi
/-- Assuming `f : K ⟶ L` is a monomorphism between complexes that are strictly `≥ n₀ + 1`,
this is a dependent sequence of terms in `CofFibFactorizationQuasiIsoLE f (n₀ + q)`
for all `q : ℕ`. -/
noncomputable def sequence
[Mono f] (n₀ : ℤ) [K.IsStrictlyGE (n₀ + 1)] [L.IsStrictlyGE (n₀ + 1)] :
∀ (q : ℕ), CofFibFactorizationQuasiIsoLE f (n₀ + q)
| 0 => zero f n₀
| q + 1 => (sequence n₀ q).next _ (by lia)
variable [Mono f] (n₀ : ℤ) [K.IsStrictlyGE (n₀ + 1)] [L.IsStrictlyGE (n₀ + 1)]
/-- The morphism `(sequence f n₀ (q + 1)).obj ⟶ (sequence f n₀ q).obj` given by `fromNext`. -/
noncomputable def toSequenceNext (q : ℕ) :
(sequence f n₀ (q + 1)).obj ⟶ (sequence f n₀ q).obj :=
(sequence f n₀ q).fromNext _ (by lia)
end CofFibFactorizationQuasiIsoLE
variable [Mono f] (n₀ : ℤ) [K.IsStrictlyGE (n₀ + 1)] [L.IsStrictlyGE (n₀ + 1)]
/-- Given a monomorphism `f : K ⟶ L` between complexes that are strictly `≥ n₀ + 1`,
this is a projective system in `(cofFib f).FullSubcategory` given by the
sequence of morphisms `CofFibFactorizationQuasiIsoLE.toSequenceNext`. -/
noncomputable def functor : ℕᵒᵖ ⥤ (cofFib f).FullSubcategory :=
(Functor.ofSequence (fun q ↦ (CofFibFactorizationQuasiIsoLE.toSequenceNext f n₀ q).op)).leftOp
lemma isIso_functor_map_hom_h_f {q₁ q₂ : ℕ} (hq : q₁ ≤ q₂) (i : ℤ) (hi : i ≤ n₀ + q₁) :
IsIso (((functor f n₀).map (homOfLE hq).op).hom.h.f i) := by
wlog hq' : q₁ + 1 = q₂ generalizing q₁ q₂
· clear hq'
obtain ⟨k, hk⟩ := Nat.le.dest hq
induction k generalizing q₁ q₂ with
| zero =>
obtain rfl : q₁ = q₂ := by simpa using hk
simp only [homOfLE_refl, op_id, CategoryTheory.Functor.map_id,
ObjectProperty.FullSubcategory.id_hom, Factorisation.id_h, id_f]
infer_instance
| succ k h =>
rw [← homOfLE_comp (show q₁ ≤ q₁ + k by lia) (show q₁ + k ≤ q₂ by lia),
op_comp, Functor.map_comp]
exact IsIso.comp_isIso' (this _ (by lia) (by lia)) (h _ (by lia) rfl)
subst hq'
dsimp [functor]
rw [Functor.ofSequence_map_homOfLE_succ]
exact CofFibFactorizationQuasiIsoLE.isIso_fromNext_hom_h_f _ _ _ _ hi
/-- Given a monomorphism `f : K ⟶ L` between complexes that are strictly `≥ n₀ + 1`,
this is a projective system in `CochainComplex C ℤ`, whose limit shall give
the intermediate object in the factorization lemma `cm5a_cof`. -/
noncomputable abbrev cochainComplexFunctor : ℕᵒᵖ ⥤ CochainComplex C ℤ :=
functor f n₀ ⋙ ObjectProperty.ι _ ⋙ Factorisation.forget
lemma isEventuallyConstantTo (i : ℤ) (q : ℕ) (h : i ≤ n₀ + q := by lia) :
(cochainComplexFunctor f n₀ ⋙ eval _ _ i).IsEventuallyConstantTo (op q) :=
fun _ _ ↦ isIso_functor_map_hom_h_f _ _ _ _ (by lia)
instance (i : ℤ) : HasLimit (cochainComplexFunctor f n₀ ⋙ eval _ _ i) :=
(isEventuallyConstantTo f n₀ i (n₀ - i).natAbs).hasLimit
/-- Given a monomorphism `f : K ⟶ L` between complexes that are strictly `≥ n₀ + 1`,
this is the limit of the projective system
`cochainComplexFunctor f n₀ : Nᵒᵖ ⥤ CochainComplex C ℤ`: this is the
intermediate object in the factorization lemma `cm5a_cof`. -/
noncomputable abbrev mid : CochainComplex C ℤ := limit (cochainComplexFunctor f n₀)
/-- The projections from `mid f n₀`. -/
noncomputable def midπ (q : ℕ) : mid f n₀ ⟶ ((functor f n₀).obj (op q)).obj.mid :=
limit.π _ (op q)
@[reassoc (attr := simp)]
lemma midπ_w (q₁ q₂ : ℕ) (hq : q₁ ≤ q₂) :
midπ f n₀ q₂ ≫ ((functor f n₀).map (homOfLE hq).op).hom.h =
midπ f n₀ q₁ :=
limit.w _ _
@[reassoc (attr := simp)]
lemma midπ_w_f (q₁ q₂ : ℕ) (hq : q₁ ≤ q₂) (i : ℤ) :
(midπ f n₀ q₂).f i ≫ ((functor f n₀).map (homOfLE hq).op).hom.h.f i =
(midπ f n₀ q₁).f i := by
rw [← midπ_w f n₀ q₁ q₂ hq]
dsimp
lemma isIso_midπ_f (q : ℕ) (i : ℤ) (h : i ≤ n₀ + q := by lia) :
IsIso ((midπ f n₀ q).f i) :=
isIso_π_f_of_isLimit_of_isEventuallyConstantTo _ (limit.isLimit _) _ _
(isEventuallyConstantTo f n₀ _ _)
lemma quasiIsoAt_midπ (q : ℕ) (i : ℤ) (h : i + 1 ≤ n₀ + q) :
QuasiIsoAt (midπ f n₀ q) i :=
quasiIsoAt_π_of_isLimit_of_isEventuallyConstantTo _ (limit.isLimit _)
(i - 1) i (i + 1) (by simp) (by simp) _
(isEventuallyConstantTo f n₀ _ _)
(isEventuallyConstantTo f n₀ _ _)
(isEventuallyConstantTo f n₀ _ _)
set_option backward.defeqAttrib.useBackward true in
/-- The first morphism `ι f n₀ : K ⟶ mid f n₀` of the factorization lemma `cm5a_cof`. -/
noncomputable def ι : K ⟶ mid f n₀ :=
limit.lift _ (Cone.mk _ { app q := ((functor f n₀).obj q).obj.ι })
set_option backward.isDefEq.respectTransparency false in
@[reassoc (attr := simp)]
lemma ι_midπ (q : ℕ) : ι f n₀ ≫ midπ f n₀ q = ((functor f n₀).obj (op q)).obj.ι := by
simp [ι, midπ]
@[reassoc (attr := simp)]
lemma ι_midπ_f (q : ℕ) (i : ℤ) : (ι f n₀).f i ≫ (midπ f n₀ q).f i =
((functor f n₀).obj (op q)).obj.ι.f i := by
rw [← ι_midπ]
dsimp
/-- The second morphism `π f n₀ : mid f n₀ ⟶ L` of the factorization lemma `cm5a_cof`. -/
noncomputable def π : mid f n₀ ⟶ L := midπ f n₀ 0 ≫ ((functor f n₀).obj (op 0)).obj.π
@[reassoc (attr := simp)]
lemma ι_π : ι f n₀ ≫ π f n₀ = f := by
simp [π]
@[reassoc (attr := simp)]
lemma midπ_π (q : ℕ) : midπ f n₀ q ≫ ((functor f n₀).obj (op q)).obj.π = π f n₀ := by
simp [π, ← midπ_w_assoc f n₀ 0 q (by lia)]
@[reassoc (attr := simp)]
lemma midπ_π_f (q : ℕ) (i : ℤ) :
(midπ f n₀ q).f i ≫ ((functor f n₀).obj (op q)).obj.π.f i = (π f n₀).f i := by
rw [← midπ_π f n₀ q]
dsimp
set_option backward.isDefEq.respectTransparency false in
instance : (mid f n₀).IsStrictlyGE (n₀ + 1) := by
rw [isStrictlyGE_iff]
intro i hi
have := isIso_midπ_f f n₀ 0 i
exact (L.isZero_of_isStrictlyGE (n₀ + 1) i).of_iso (asIso ((midπ f n₀ 0).f i))
instance : Mono (ι f n₀) :=
HomologicalComplex.mono_of_mono_f _ (fun i ↦ by
obtain ⟨q, _⟩ : ∃ (q : ℕ), IsIso ((midπ f n₀ q).f i) :=
⟨(i - n₀).natAbs, isIso_midπ_f f n₀ _ i⟩
exact mono_of_mono_fac (ι_midπ_f f n₀ q i))
instance : QuasiIso (ι f n₀) where
quasiIsoAt i := by
obtain ⟨q, hq⟩ : ∃ (q : ℕ), i + 1 ≤ n₀ + q := ⟨(i + 1 - n₀).natAbs, by lia⟩
have := quasiIsoAt_midπ f n₀ q i hq
rw [← quasiIsoAt_iff_comp_right _ (midπ f n₀ q), ι_midπ]
exact (CofFibFactorizationQuasiIsoLE.sequence f n₀ q).property i (by lia)
lemma degreewiseEpiWithInjectiveKernel_π : degreewiseEpiWithInjectiveKernel (π f n₀) := by
intro i
obtain ⟨q, hq⟩ : ∃ (q : ℕ), i ≤ n₀ + q := ⟨(i - n₀).natAbs, by lia⟩
rw [← midπ_π_f f n₀ q]
have := isIso_midπ_f f n₀ q i
exact MorphismProperty.comp_mem _ _ _
(epiWithInjectiveKernel_of_iso _)
((CofFibFactorizationQuasiIsoLE.sequence f n₀ q).obj.property.2 i)
end cm5a_cof
variable [EnoughInjectives C]
open cm5a_cof in
public lemma cm5a_cof (n : ℤ) [K.IsStrictlyGE n] [L.IsStrictlyGE n] [Mono f] :
∃ (K' : CochainComplex C ℤ) (_hK' : K'.IsStrictlyGE n) (ι : K ⟶ K') (π : K' ⟶ L),
Mono ι ∧ QuasiIso ι ∧ degreewiseEpiWithInjectiveKernel π ∧ ι ≫ π = f := by
obtain ⟨n, rfl⟩ : ∃ (q : ℤ), n = q + 1 := ⟨n - 1, by simp⟩
exact ⟨mid f n, inferInstance, ι f n, π f n, inferInstance,
inferInstance, degreewiseEpiWithInjectiveKernel_π f n, ι_π f n⟩
public lemma cm5a (n : ℤ) [K.IsStrictlyGE (n + 1)] [L.IsStrictlyGE n] :
∃ (K' : CochainComplex C ℤ) (_hK' : K'.IsStrictlyGE n) (ι : K ⟶ K') (π : K' ⟶ L),
Mono ι ∧ QuasiIso ι ∧ degreewiseEpiWithInjectiveKernel π ∧ ι ≫ π = f := by
have : K.IsStrictlyGE n := K.isStrictlyGE_of_ge n (n + 1) (by lia)
obtain ⟨L', _, i, p, _, hp, _, rfl⟩ := cm5b f n
obtain ⟨K', _, ι, π, _, _, hπ, rfl⟩ := cm5a_cof i n
exact ⟨K', inferInstance, ι, π ≫ p, inferInstance, inferInstance,
MorphismProperty.comp_mem _ _ _ hπ hp, by simp⟩
open ZeroObject
variable (K)
public lemma exists_mono_quasiIso_injective (n₀ n₁ : ℤ) (h : n₀ + 1 = n₁ := by lia)
[K.IsStrictlyGE n₁] :
∃ (L : CochainComplex C ℤ) (i : K ⟶ L) (_hi : Mono i) (_hi' : QuasiIso i)
(_ : ∀ (n : ℤ), Injective (L.X n)), L.IsStrictlyGE n₀ := by
have : K.IsStrictlyGE (n₀ + 1) := by rw [h]; infer_instance
obtain ⟨L, hL, i, p, hi, hi', hp, _⟩ := cm5a (0 : K ⟶ 0) n₀
exact ⟨L, i, hi, hi', (degreewiseEpiWithInjectiveKernel_iff_of_isZero p
(Limits.isZero_zero _)).1 hp, hL⟩
public lemma exists_quasiIso_injective (n : ℤ) [K.IsStrictlyGE n] :
∃ (L : CochainComplex C ℤ) (i : K ⟶ L) (_hi' : QuasiIso i)
(_hL : ∀ (n : ℤ), Injective (L.X n)), L.IsStrictlyGE n := by
/- The proof proceeds by first applying `exists_mono_quasiIso_injective` in order to
obtain a monomorphism `K ⟶ L` that is also a quasi-isomorphism
with `L` consisting of injective objects and `L` lying in degrees `≥ n - 1`.
Then, as it is quasi-isomorphic to `K`, the cochain complex `L` is cohomologically
in degrees `≥ n`, so that the composition `K ⟶ L ⟶ L.truncGE n` is a quasi-isomorphism.
In order to conclude, one needs to show that `(L.truncGE n).X n` is injective,
i.e. that `L.opcycles n` is injective. -/
have : HasDerivedCategory C := MorphismProperty.HasLocalization.standard _
obtain ⟨L, i, _, _, hL, _⟩ := exists_mono_quasiIso_injective K (n - 1) n (by simp)
have : L.IsGE n := by
have hK : K.IsGE n := inferInstance
rw [← DerivedCategory.isGE_Q_obj_iff] at hK ⊢
exact DerivedCategory.TStructure.t.isGE_of_iso (asIso (DerivedCategory.Q.map i)) n
have : QuasiIso (L.πTruncGE n) := (L.quasiIso_πTruncGE_iff n).mpr inferInstance
have : Injective (L.opcycles n) :=
L.injective_opcycles (n - 1) n (L.exactAt_of_isGE n (n - 1))
-- note: this `i ≫ L.πTruncGE n` is a mono in degrees > n, but it may not be in degree n
refine ⟨L.truncGE n, i ≫ L.πTruncGE n, inferInstance, fun q ↦ ?_, inferInstance⟩
obtain h | rfl | h := lt_trichotomy q n
· exact (isZero_of_isStrictlyGE _ n _ h).injective
· exact Injective.of_iso (L.truncGEXIsoOpcycles q).symm inferInstance
· exact Injective.of_iso (L.truncGEXIso n q h).symm (hL q)
end CochainComplex.Plus.modelCategoryQuillen
¤ Dauer der Verarbeitung: 0.7 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|