|
|
|
|
SSL Braided.lean
Sprache: Lean
|
|
/-
Copyright (c) 2024 Gareth Ma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gareth Ma
-/
module
public import Mathlib.CategoryTheory.Monoidal.Braided.Basic
public import Mathlib.CategoryTheory.Monoidal.Rigid.Basic
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Deriving `RigidCategory` instance for braided and left/right rigid categories.
-/
@[ expose] public section
open CategoryTheory Category BraidedCategory MonoidalCategory
variable {C : Type*} [Category* C] [MonoidalCategory C] [BraidedCategory C] {X Y : C}
namespace CategoryTheory.BraidedCategory
/-- `coevaluation_evaluation'` field of `ExactPairing Y X` in a braided category -/
private theorem coevaluation_evaluation_braided' [inst : ExactPairing X Y] :
X ◁ (η_ X Y ≫ (β_ Y X).inv) ≫ (α_ X Y X).inv ≫ ((β_ X Y).hom ≫ ε_ X Y) ▷ X
= (ρ_ X).hom ≫ (λ_ X).inv := by
/- Rearrange into _ = _ -/
rw [Iso.eq_comp_inv, ← Iso.inv_comp_eq_id]
/- Whitney trick transcribed: https://mathoverflow.net/a/162729/493261 -/
calc
_ = X ⊗≫ X ◁ η_ X Y ⊗≫ (X ◁ (β_ Y X).inv ⊗≫ (β_ X Y).hom ▷ X) ⊗≫ ε_ X Y ▷ X ⊗≫ X := by
monoidal
_ = X ⊗≫ X ◁ η_ X Y ⊗≫ ( (X ⊗ X ⊗ Y) ⊗≫ (β_ X X).hom ▷ Y ⊗≫ X ◁ (β_ X Y).hom
⊗≫ (β_ Y X).inv ▷ X ⊗≫ Y ◁ (β_ X X).inv ⊗≫ ((Y ⊗ X) ⊗ X)) ⊗≫ ε_ X Y ▷ X ⊗≫ X := by
congr 3
simp only [monoidalComp, MonoidalCoherence.assoc'_iso, MonoidalCoherence.whiskerRigh t_iso,
MonoidalCoherence.refl_iso, whiskerRightIso_refl, Iso.refl_trans, Iso.symm_hom,
MonoidalCoherence.assoc_iso, Iso.trans_refl, comp_id, id_comp]
rw [← IsIso.eq_inv_comp]
repeat rw [← assoc]
iterate 5 rw [← IsIso.comp_inv_eq]
simpa using yang_baxter X Y X
_ = X ⊗≫ (X ◁ η_ X Y ≫ (β_ X (X ⊗ Y)).hom) ⊗≫ ((β_ (Y ⊗ X) X).inv ≫ ε_ X Y ▷ X) ⊗≫ X := by
simp [monoidalComp, braiding_tensor_right_hom, braiding_tensor_left_inv]
_ = _ := by
rw [braiding_naturality_right, ← braiding_inv_naturality_right]
simp [monoidalComp]
/-- `evaluation_coevaluation'` field of `ExactPairing Y X` in a braided category -/
private theorem evaluation_coevaluation_braided' [inst : ExactPairing X Y] :
(η_ X Y ≫ (β_ Y X).inv) ▷ Y ≫ (α_ Y X Y).hom ≫ Y ◁ ((β_ X Y).hom ≫ ε_ X Y) =
(λ_ Y).hom ≫ (ρ_ Y).inv := by
rw [Iso.eq_comp_inv, ← Iso.inv_comp_eq_id]
calc
_ = Y ⊗≫ η_ X Y ▷ Y ⊗≫ ((β_ Y X).inv ▷ Y ⊗≫ Y ◁ (β_ X Y).hom) ≫ Y ◁ ε_ X Y ⊗≫ Y := by
monoidal
_ = Y ⊗≫ η_ X Y ▷ Y ⊗≫ ( ((X ⊗ Y) ⊗ Y) ⊗≫ X ◁ (β_ Y Y).hom ⊗≫ (β_ X Y).hom ▷ Y
⊗≫ Y ◁ (β_ Y X).inv ⊗≫ (β_ Y Y).inv ▷ X ⊗≫ (Y ⊗ Y ⊗ X)) ⊗≫ Y ◁ ε_ X Y ⊗≫ Y := by
congr 3
on_goal 2 => simp [monoidalComp]
simp only [monoidalComp, MonoidalCoherence.assoc_iso, MonoidalCoherence.whiskerRight_iso,
MonoidalCoherence.refl_iso, whiskerRightIso_refl, Iso.trans_refl,
MonoidalCoherence.assoc'_iso, Iso.refl_trans, Iso.symm_hom, comp_id, id_comp]
iterate 2 rw [← IsIso.eq_inv_comp]
repeat rw [← assoc]
iterate 4 rw [← IsIso.comp_inv_eq]
simpa using (yang_baxter Y X Y).symm
_ = Y ⊗≫ (η_ X Y ▷ Y ≫ (β_ (X ⊗ Y) Y).hom) ⊗≫ ((β_ Y (Y ⊗ X)).inv ≫ Y ◁ ε_ X Y) ⊗≫ Y := by
simp [monoidalComp, braiding_tensor_left_hom, braiding_tensor_right_inv]
_ = _ := by
rw [braiding_naturality_left, ← braiding_inv_naturality_left]
simp [monoidalComp]
/-- If `X` and `Y` forms an exact pairing in a braided category, then so does `Y` and `X`
by composing the coevaluation and evaluation morphisms with associators. -/
@[instance_reducible]
def exactPairing_swap (X Y : C) [ExactPairing X Y] : ExactPairing Y X where
coevaluation' := η_ X Y ≫ (β_ Y X).inv
evaluation' := (β_ X Y).hom ≫ ε_ X Y
coevaluation_evaluation' := private coevaluation_evaluation_braided'
evaluation_coevaluation' := private evaluation_coevaluation_braided'
/-- If `X` has a right dual in a braided category, then it has a left dual. -/
@[instance_reducible]
def hasLeftDualOfHasRightDual [HasRightDual X] : HasLeftDual X where
leftDual := Xᘁ
exact := exactPairing_swap X Xᘁ
/-- If `X` has a left dual in a braided category, then it has a right dual. -/
@[instance_reducible]
def hasRightDualOfHasLeftDual [HasLeftDual X] : HasRightDual X where
rightDual := ᘁX
exact := exactPairing_swap ᘁX X
/-- If a braided category is right-rigid, then it is left-rigid.
Not registered as an instance as this is not canonical enough. -/
@[instance_reducible]
def leftRigidCategoryOfRightRigidCategory [RightRigidCategory C] : LeftRigidCategory C where
leftDual X := hasLeftDualOfHasRightDual (X := X)
/-- If a braided category is left-rigid, then it is right-rigid.
Not registered as an instance as this is not canonical enough. -/
@[instance_reducible]
def rightRigidCategoryOfLeftRigidCategory [LeftRigidCategory C] : RightRigidCategory C where
rightDual X := hasRightDualOfHasLeftDual (X := X)
/-- If `C` is a braided and right rigid category, then it is a rigid category.
Not registered as an instance as this is not canonical enough. -/
@[instance_reducible]
def rigidCategoryOfRightRigidCategory [RightRigidCategory C] : RigidCategory C where
rightDual := inferInstance
leftDual X := hasLeftDualOfHasRightDual (X := X)
/-- If `C` is a braided and left rigid category, then it is a rigid category.
Not registered as an instance as this is not canonical enough. -/
@[instance_reducible]
def rigidCategoryOfLeftRigidCategory [LeftRigidCategory C] : RigidCategory C where
rightDual X := hasRightDualOfHasLeftDual (X := X)
leftDual := inferInstance
end CategoryTheory.BraidedCategory
¤ Dauer der Verarbeitung: 0.6 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|