Skip to content

Commit

Permalink
feat(category_theory/opposites): Add is_iso_op (#9319)
Browse files Browse the repository at this point in the history


Co-authored-by: erd1 <the.erd.one@gmail.com>
Co-authored-by: erdOne <36414270+erdOne@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 24, 2021
1 parent 9618d73 commit 9e59e29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/category_theory/opposites.lean
Expand Up @@ -78,6 +78,11 @@ def op_op_equivalence : Cᵒᵖᵒᵖ ≌ C :=

end

/-- If `f` is an isomorphism, so is `f.op` -/
instance is_iso_op {X Y : C} (f : X ⟶ Y) [is_iso f] : is_iso f.op :=
⟨⟨(inv f).op,
⟨quiver.hom.unop_inj (by tidy), quiver.hom.unop_inj (by tidy)⟩⟩⟩

/--
If `f.op` is an isomorphism `f` must be too.
(This cannot be an instance as it would immediately loop!)
Expand All @@ -86,6 +91,9 @@ lemma is_iso_of_op {X Y : C} (f : X ⟶ Y) [is_iso f.op] : is_iso f :=
⟨⟨(inv (f.op)).unop,
⟨quiver.hom.op_inj (by simp), quiver.hom.op_inj (by simp)⟩⟩⟩

@[simp] lemma op_inv {X Y : C} (f : X ⟶ Y) [f_iso : is_iso f] : (inv f).op = inv f.op :=
by { ext, rw [← op_comp, is_iso.inv_hom_id, op_id] }

namespace functor

section
Expand Down

0 comments on commit 9e59e29

Please sign in to comment.