Skip to content

Commit 177a992

Browse files
kim-emclaude
andcommitted
fix: provide explicit map_add proof for triangleFunctor.Additive
The `@[simps]` change skips `@[defeq]` for non-exposed definitions, which means `cat_disch` can no longer discharge this goal automatically. Provide an explicit proof using `ext` and `simp`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c092468 commit 177a992

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Mathlib/CategoryTheory/Triangulated/TStructure/TruncLTGE.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,15 @@ lemma triangleFunctorNatTransOfLE_refl (a : ℤ) :
210210
exact triangle_map_ext t (triangleFunctor_obj_distinguished _ _ _)
211211
(triangleFunctor_obj_distinguished _ _ _) (a - 1) a inferInstance inferInstance (by simp)
212212

213+
#adaptation_note /-- https://github.com/leanprover-community/mathlib4/pull/32989
214+
After this PR, `@[simps]` no longer generates `@[defeq]` lemmas for non-exposed definitions,
215+
so `cat_disch` can no longer close this goal automatically.
216+
Making `triangleFunctor` public would require making more of `TruncAux` public. -/
213217
instance : (triangleFunctor t n).Additive where
218+
map_add {_ _ f g} := by
219+
dsimp [triangleFunctor]
220+
ext
221+
simp [triangleMap_hom₂]
214222

215223
end TruncAux
216224

0 commit comments

Comments
 (0)