Skip to content
Merged
Changes from all commits
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
47 changes: 47 additions & 0 deletions theories/WildCat/Monoidal.v
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,53 @@ Class IsSymmetricMonoidal (A : Type) `{HasEquivs A}
cat_symm_tensor_hexagon :: HexagonIdentity cat_tensor;
}.

(** *** Theory about [Associator] *)

Section Associator.
Context {A : Type} {F : A -> A -> A} `{assoc : Associator A F, !HasEquivs A}.

Local Definition associator_nat {x x' y y' z z'}
(f : x $-> x') (g : y $-> y') (h : z $-> z')
: associator x' y' z' $o fmap11 F f (fmap11 F g h)
$== fmap11 F (fmap11 F f g) h $o associator x y z.
Proof.
nrefine (_ $@ is1natural_associator_uncurried (x, y, z) (x', y', z') (f, g, h)).
refine (_ $@L ((_ $@R _) $@ cat_assoc _ _ _ $@ (_ $@L _^$))).
1,2: rapply fmap_comp.
Defined.

Local Definition associator_nat_l {x x' : A} (f : x $-> x') (y z : A)
: associator x' y z $o fmap10 F f (F y z)
$== fmap10 F (fmap10 F f y) z $o associator x y z.
Proof.
refine ((_ $@L _^$) $@ _ $@ (_ $@R _)).
2: rapply (associator_nat f (Id _) (Id _)).
- exact (fmap12 _ _ (fmap11_id _ _ _) $@ fmap10_is_fmap11 _ _ _).
- exact (fmap21 _ (fmap10_is_fmap11 _ _ _) _ $@ fmap10_is_fmap11 _ _ _).
Defined.

Local Definition associator_nat_m (x : A) {y y' : A} (g : y $-> y') (z : A)
: associator x y' z $o fmap01 F x (fmap10 F g z)
$== fmap10 F (fmap01 F x g) z $o associator x y z.
Proof.
refine ((_ $@L _^$) $@ _ $@ (_ $@R _)).
2: nrapply (associator_nat (Id _) g (Id _)).
- exact (fmap12 _ _ (fmap10_is_fmap11 _ _ _) $@ fmap01_is_fmap11 _ _ _).
- exact (fmap21 _ (fmap01_is_fmap11 _ _ _) _ $@ fmap10_is_fmap11 _ _ _).
Defined.

Local Definition associator_nat_r (x y : A) {z z' : A} (h : z $-> z')
: associator x y z' $o fmap01 F x (fmap01 F y h)
$== fmap01 F (F x y) h $o associator x y z.
Proof.
refine ((_ $@L _^$) $@ _ $@ (_ $@R _)).
2: nrapply (associator_nat (Id _) (Id _) h).
- exact (fmap12 _ _ (fmap01_is_fmap11 _ _ _) $@ fmap01_is_fmap11 _ _ _).
- exact (fmap21 _ (fmap11_id _ _ _) _ $@ fmap01_is_fmap11 F _ _).
Defined.

End Associator.

(** ** Theory about [SymmetricBraid] *)

Section SymmetricBraid.
Expand Down