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

[Merged by Bors] - feat(category_theory/opposites): iso.unop #7400

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
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
20 changes: 20 additions & 0 deletions src/category_theory/opposites.lean
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,26 @@ protected def op (α : X ≅ Y) : op Y ≅ op X :=
hom_inv_id' := quiver.hom.unop_inj α.inv_hom_id,
inv_hom_id' := quiver.hom.unop_inj α.hom_inv_id }

/-- The isomorphism obtained from an isomorphism in the opposite category. -/
@[simps] def iso.unop {X Y : Cᵒᵖ} (f : X ≅ Y) : (Y.unop ≅ X.unop) :=
jcommelin marked this conversation as resolved.
Show resolved Hide resolved
{ hom := f.hom.unop,
inv := f.inv.unop,
hom_inv_id' := by simp only [← unop_comp, f.inv_hom_id, unop_id],
inv_hom_id' := by simp only [← unop_comp, f.hom_inv_id, unop_id] }

/-- The isomorphism obtained from an isomorphism in the opposite category. -/
@[simps] def iso.remove_op {X Y : C} (f : (op X) ≅ (op Y)) : Y ≅ X :=
{ hom := f.hom.unop,
inv := f.inv.unop,
hom_inv_id' := by simp only [← unop_comp, f.inv_hom_id, unop_id_op],
inv_hom_id' := by simp only [← unop_comp, f.hom_inv_id, unop_id_op] }
jcommelin marked this conversation as resolved.
Show resolved Hide resolved

@[simp] lemma iso.unop_op {X Y : Cᵒᵖ} (f : X ≅ Y) : f.unop.op = f :=
by ext; refl

@[simp] lemma iso.op_unop {X Y : C} (f : X ≅ Y) : f.op.unop = f :=
by ext; refl

end iso

namespace nat_iso
Expand Down