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.
f j := stupidTruncInclusionApp K e j
comm' i' j' hij :=byby_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 _ _
lemmastupidTruncMap_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 _ _