Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CategoryTheory/MorphismProperty): If P is stable under retracts, then P respects isomorphisms. #22274

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Mathlib/CategoryTheory/MorphismProperty/Retract.lean
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ lemma retracts_le_iff {P Q : MorphismProperty C} [Q.IsStableUnderRetracts] :
· intro h
exact le_trans (retracts_monotone h) Q.retracts_le

instance {P : MorphismProperty C} [P.IsStableUnderRetracts] :
P.RespectsIso :=
RespectsIso.of_respects_arrow_iso _
(fun _ _ e ↦ of_retract (Retract.ofIso e.symm))

end MorphismProperty

end CategoryTheory
5 changes: 5 additions & 0 deletions Mathlib/CategoryTheory/Retract.lean
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def trans {Z : C} (h' : Retract Y Z) : Retract X Z where
i := h.i ≫ h'.i
r := h'.r ≫ h.r

/-- If `e : X ≅ Y`, then `X` is a retract of `Y`. -/
def ofIso (e : X ≅ Y) : Retract X Y where
i := e.hom
r := e.inv

end Retract

/--
Expand Down
Loading