Skip to content

Commit

Permalink
feat: port CategoryTheory.Opposites (#2195)
Browse files Browse the repository at this point in the history
- [x] depends on: #1287
~~- [x] depends on tactic tidy?~~


Co-authored-by: Henrik Böving <hargonix@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Matthew Ballard <matt@mrb.email>
Co-authored-by: thorimur <68410468+thorimur@users.noreply.github.com>
  • Loading branch information
5 people committed Feb 11, 2023
1 parent f805dd1 commit 5a92eb0
Show file tree
Hide file tree
Showing 3 changed files with 670 additions and 0 deletions.
1 change: 1 addition & 0 deletions Mathlib.lean
Expand Up @@ -231,6 +231,7 @@ import Mathlib.CategoryTheory.Functor.Functorial
import Mathlib.CategoryTheory.Iso
import Mathlib.CategoryTheory.NatIso
import Mathlib.CategoryTheory.NatTrans
import Mathlib.CategoryTheory.Opposites
import Mathlib.CategoryTheory.Sigma.Basic
import Mathlib.CategoryTheory.Thin
import Mathlib.CategoryTheory.Whiskering
Expand Down
2 changes: 2 additions & 0 deletions Mathlib/CategoryTheory/Iso.lean
Expand Up @@ -140,6 +140,8 @@ def refl (X : C) : X ≅ X where

instance : Inhabited (X ≅ X) := ⟨Iso.refl X⟩

theorem nonempty_iso_refl (X : C) : Nonempty (X ≅ X) := ⟨default⟩

@[simp]
theorem refl_symm (X : C) : (Iso.refl X).symm = Iso.refl X := rfl
#align category_theory.iso.refl_symm CategoryTheory.Iso.refl_symm
Expand Down

0 comments on commit 5a92eb0

Please sign in to comment.