File size: 5,684 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | /-
Copyright 2026 The Formal Conjectures Authors.
Released under Apache 2.0 license as described in the file LICENSE.
This file has been modified.
-/
import Mathlib.Algebra.Homology.ModelCategory.Injective
import Mathlib.Algebra.Homology.Embedding.ExtendHomology
import Mathlib.Algebra.Homology.HomotopyCategory.Plus
/-! # Lift To Injective -/
namespace OAI.Algebra.Homology.LiftToInjective.CochainComplex
noncomputable section
open _root_.CochainComplex
/-!
# Lifting along a monic quasi-isomorphism into a termwise-injective complex
In an abelian category with enough injectives, a map from a bounded-below complex into a
bounded-below termwise-injective complex extends along a monic quasi-isomorphism.
-/
open _root_.CategoryTheory Limits HomotopicalAlgebra
open scoped _root_.CochainComplex.Plus.modelCategoryQuillen
universe v u
section
variable {C : Type u} [Category.{v} C] [Abelian C] [EnoughInjectives C]
variable {A S I : CochainComplex C ℤ}
[A.IsStrictlyGE 0] [S.IsStrictlyGE 0] [I.IsStrictlyGE 0]
(a : A ⟶ S) [Mono a] [QuasiIso a]
(r : A ⟶ I)
/-- In an abelian category with enough injectives, let `a: A → S` be a monomorphism and
quasi-isomorphism of integer-indexed complexes that are zero in negative degrees. Let `I` also
be zero in negative degrees and have injective terms. For a complex map `r: A → I`, this
chooses a complex map `l: S → I` with `l ∘ a = r`. -/
def liftToInjective (hI : ∀ n : ℤ, Injective (I.X n)) : S ⟶ I :=
let A' : Plus C := ⟨A, 0, inferInstance⟩
let S' : Plus C := ⟨S, 0, inferInstance⟩
let I' : Plus C := ⟨I, 0, inferInstance⟩
let a' : A' ⟶ S' := ObjectProperty.homMk a
let r' : A' ⟶ I' := ObjectProperty.homMk r
let Z' := ⊤_ Plus C
let p : I' ⟶ Z' := terminal.from I'
let b : S' ⟶ Z' := terminal.from S'
let sq : CommSq r' a' p b := CommSq.mk (Subsingleton.elim _ _)
let : Mono a' := (Plus.mono_iff a').2 (inferInstance : Mono a)
let : WeakEquivalence a' :=
(Plus.modelCategoryQuillen.weakEquivalence_iff a').2 (inferInstance : QuasiIso a)
let : IsFibrant I' :=
(Plus.modelCategoryQuillen.isFibrant_iff I').2 hI
sq.lift.hom
end
section
variable {C : Type u} [Category.{v} C] [Abelian C] [EnoughInjectives C]
variable {A S I : CochainComplex C ℤ}
[A.IsStrictlyGE 0] [S.IsStrictlyGE 0] [I.IsStrictlyGE 0]
(a : A ⟶ S) [Mono a] [QuasiIso a]
(r : A ⟶ I)
set_option backward.isDefEq.respectTransparency false in
omit [EnoughInjectives C] in
/-- The injective lift strictly extends the prescribed map. -/
lemma comp_liftToInjective (hI : ∀ n : ℤ, Injective (I.X n)) :
a ≫ liftToInjective a r hI = r := by
let A' : Plus C := ⟨A, 0, inferInstance⟩
let S' : Plus C := ⟨S, 0, inferInstance⟩
let I' : Plus C := ⟨I, 0, inferInstance⟩
let a' : A' ⟶ S' := ObjectProperty.homMk a
let r' : A' ⟶ I' := ObjectProperty.homMk r
let Z' := ⊤_ Plus C
let p : I' ⟶ Z' := terminal.from I'
let b : S' ⟶ Z' := terminal.from S'
let sq : CommSq r' a' p b := CommSq.mk (Subsingleton.elim _ _)
let : Mono a' := (Plus.mono_iff a').2 (inferInstance : Mono a)
let : WeakEquivalence a' :=
(Plus.modelCategoryQuillen.weakEquivalence_iff a').2 (inferInstance : QuasiIso a)
let : IsFibrant I' :=
(Plus.modelCategoryQuillen.isFibrant_iff I').2 hI
exact congrArg (fun f ↦ f.hom) sq.fac_left
end
variable {C : Type*} [Category* C] [Abelian C] [EnoughInjectives C]
omit [EnoughInjectives C] in
lemma injective_extend_nat (I : CochainComplex C ℕ) (hI : ∀ n, Injective (I.X n))
(q : ℤ) : Injective ((I.extend ComplexShape.embeddingUpNat).X q) := by
by_cases hq : ∃ n : ℕ, (n : ℤ) = q
· obtain ⟨n, rfl⟩ := hq
exact Injective.of_iso (I.extendXIso ComplexShape.embeddingUpNat (i := n) rfl).symm (hI n)
· exact (I.isZero_extend_X ComplexShape.embeddingUpNat q (fun n hn => hq ⟨n, hn⟩)).injective
omit [EnoughInjectives C] in
lemma mono_extendMap_nat {K L : CochainComplex C ℕ} (a : K ⟶ L) [Mono a] :
Mono (HomologicalComplex.extendMap a ComplexShape.embeddingUpNat) := by
apply HomologicalComplex.mono_of_mono_f
intro q
by_cases hq : ∃ n : ℕ, (n : ℤ) = q
· obtain ⟨n, rfl⟩ := hq
rw [HomologicalComplex.extendMap_f a ComplexShape.embeddingUpNat
(i := n) (i' := (n : ℤ)) rfl]
infer_instance
· exact (K.isZero_extend_X ComplexShape.embeddingUpNat q (fun n hn => hq ⟨n, hn⟩)).mono _
variable {A K I : CochainComplex C ℕ} (a : A ⟶ K) [Mono a] [QuasiIso a]
(r : A ⟶ I) (hI : ∀ n, Injective (I.X n))
/-- In an abelian category with enough injectives, let `a: A → K` be a monomorphism and
quasi-isomorphism of nonnegative cochain complexes, and let every term of `I` be injective. For
a map `r: A → I`, this chooses a map `l: K → I` satisfying `l ∘ a = r` as an equality of
complex maps. -/
def liftToInjectiveNat : K ⟶ I :=
letI := mono_extendMap_nat a
letI : CochainComplex.IsStrictlyGE (A.extend ComplexShape.embeddingUpNat) 0 := inferInstance
letI : CochainComplex.IsStrictlyGE (K.extend ComplexShape.embeddingUpNat) 0 := inferInstance
letI : CochainComplex.IsStrictlyGE (I.extend ComplexShape.embeddingUpNat) 0 := inferInstance
let f := liftToInjective
(A := A.extend ComplexShape.embeddingUpNat)
(S := K.extend ComplexShape.embeddingUpNat)
(I := I.extend ComplexShape.embeddingUpNat)
(HomologicalComplex.extendMap a ComplexShape.embeddingUpNat)
(HomologicalComplex.extendMap r ComplexShape.embeddingUpNat)
(injective_extend_nat I hI)
(ComplexShape.embeddingUpNat.extendFunctor C).preimage f
end
end OAI.Algebra.Homology.LiftToInjective.CochainComplex
|