-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port CategoryTheory.Monoidal.Types.Symmetric (#4662)
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/- | ||
Copyright (c) 2018 Michael Jendrusch. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Michael Jendrusch, Scott Morrison | ||
! This file was ported from Lean 3 source module category_theory.monoidal.types.symmetric | ||
! leanprover-community/mathlib commit 95a87616d63b3cb49d3fe678d416fbe9c4217bf4 | ||
! Please do not edit these lines, except to modify the commit id | ||
! if you have ported upstream changes. | ||
-/ | ||
import Mathlib.CategoryTheory.Monoidal.OfChosenFiniteProducts.Symmetric | ||
import Mathlib.CategoryTheory.Monoidal.Types.Basic | ||
|
||
/-! | ||
# The category of types is a symmetric monoidal category | ||
-/ | ||
|
||
|
||
open CategoryTheory Limits | ||
|
||
universe v u | ||
|
||
namespace CategoryTheory | ||
|
||
instance typesSymmetric : SymmetricCategory.{u} (Type u) := | ||
symmetricOfChosenFiniteProducts Types.terminalLimitCone Types.binaryProductLimitCone | ||
#align category_theory.types_symmetric CategoryTheory.typesSymmetric | ||
|
||
@[simp] | ||
theorem braiding_hom_apply {X Y : Type u} {x : X} {y : Y} : | ||
((β_ X Y).hom : X ⊗ Y → Y ⊗ X) (x, y) = (y, x) := | ||
rfl | ||
#align category_theory.braiding_hom_apply CategoryTheory.braiding_hom_apply | ||
|
||
@[simp] | ||
theorem braiding_inv_apply {X Y : Type u} {x : X} {y : Y} : | ||
((β_ X Y).inv : Y ⊗ X → X ⊗ Y) (y, x) = (x, y) := | ||
rfl | ||
#align category_theory.braiding_inv_apply CategoryTheory.braiding_inv_apply | ||
|
||
end CategoryTheory |