cfahlgren1/math / lean /OAI /Algebra /Homology /StupidTruncation.lean
cfahlgren1's picture
download
raw
4.52 kB

The component of the inclusion from a stupid truncation. It is the canonical isomorphism in the image of the embedding and the zero morphism outside that image.

50
def stupidTruncInclusionApp (j : J) : (K.stupidTrunc e).X j ⟶ K.X j :=
body · 3 lines
  if h : ∃ i, e.f i = j then
    (K.stupidTruncXIso e h.choose_spec).hom
  else 0
55
lemma stupidTruncInclusionApp_eq {i : I} {j : J} (h : e.f i = j) :
    stupidTruncInclusionApp K e j = (K.stupidTruncXIso e h).hom := by
proof · 3 lines
  have hj : ∃ k, e.f k = j := ⟨i, h⟩
  have hchoice : hj.choose = i := e.injective_f (hj.choose_spec.trans h.symm)
  grind [stupidTruncInclusionApp]
62
lemma stupidTrunc_d_comp_XIso {i j : I} :
    (K.stupidTrunc e).d (e.f i) (e.f j) ≫
        (K.stupidTruncXIso e (i := j) rfl).hom =
      (K.stupidTruncXIso e (i := i) rfl).hom ≫ K.d (e.f i) (e.f j) := by
proof · 1 line
  simp [stupidTruncXIso, stupidTrunc, extend_d_eq (K.restriction e) e rfl rfl]

The canonical inclusion of a stupid truncation whose retained degrees are closed under the next differential.

70
def stupidTruncInclusion : K.stupidTrunc e ⟶ K where
body · 9 lines
  f j := stupidTruncInclusionApp K e j
  comm' i' j' hij := by
    by_cases hi : ∃ i, e.f i = i'
    · obtain ⟨i, hi⟩ := hi
      obtain ⟨j, hj⟩ := e.mem_next (hi ▸ hij)
      rw [stupidTruncInclusionApp_eq K e hi, stupidTruncInclusionApp_eq K e hj]
      subst i' j'
      exact (stupidTrunc_d_comp_XIso K e).symm
    · exact (K.isZero_stupidTrunc_X e i' (by simpa using hi)).eq_of_src _ _
81
@[simp] lemma stupidTruncInclusion_f {i : I} {j : J} (h : e.f i = j) :
    (stupidTruncInclusion K e).f j = (K.stupidTruncXIso e h).hom :=
proof · 1 line
  stupidTruncInclusionApp_eq K e h

The inclusion of the stupid truncation is an isomorphism when the original complex is already strictly supported on the retained degrees.

87
noncomputable instance stupidTruncInclusion_isIso [K.IsStrictlySupported e] :
    IsIso (stupidTruncInclusion K e) := by
body · 9 lines
  let componentIsIso (j : J) : IsIso ((stupidTruncInclusion K e).f j) := by
    by_cases hj : ∃ i, e.f i = j
    · obtain ⟨i, hi⟩ := hj
      rw [stupidTruncInclusion_f K e hi]
      infer_instance
    · exact IsZero.isIso (K.isZero_stupidTrunc_X e j (by simpa using hj))
        (K.isZero_X_of_isStrictlySupported e j (by simpa using hj)) _
  exact @Hom.isIso_of_components J C _ _ c' _ _
    (stupidTruncInclusion K e) componentIsIso
101
lemma stupidTruncMap_comp_stupidTruncInclusion (f : K ⟶ L) :
    stupidTruncMap f e ≫ stupidTruncInclusion L e =
      stupidTruncInclusion K e ≫ f := by
proof · 7 lines
  ext j
  by_cases hj : ∃ i, e.f i = j
  · obtain ⟨i, hi⟩ := hj
    rw [HomologicalComplex.comp_f, HomologicalComplex.comp_f,
      stupidTruncInclusion_f L e hi, stupidTruncInclusion_f K e hi,
      stupidTruncMap_stupidTruncXIso_hom f e hi]
  · exact (K.isZero_stupidTrunc_X e j (by simpa using hj)).eq_of_src _ _

Xet Storage Details

Size:
4.52 kB
·
Xet hash:
2cb9777dabf938e32e4d82df42add1bd54b98befe6437ab3a72af3e87845cb08

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.