/HellsMonoid.hs Secret
Created
October 31, 2021 09:14
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
instance | |
=> MonoidalAction ob_m hom_m π» π§ ob_c hom_c βοΈ | |
=> MonoidalAction ob_m hom_m π» π§ ob_d hom_d π | |
=> ob_c πΉ | |
=> ob_d π₯ | |
=> Tambara ob_c hom_c | |
ob_d hom_d | |
ob_m hom_m π» π§ | |
βοΈ | |
π | |
(Optic ob_c hom_c | |
ob_d hom_d | |
ob_m hom_m π» π§ | |
βοΈ π πΉ π₯) | |
where | |
tambara (Optic l r) | |
= Optic | |
(comp @ob_c @hom_c | |
(multiplicator @ob_m @hom_m @π» @π§ | |
@ob_c @hom_c | |
@βοΈ) | |
(bimap @ob_m @hom_m | |
@ob_c @hom_c | |
@ob_c @hom_c | |
(unit @ob_m @hom_m) | |
l)) | |
(comp @ob_d @hom_d | |
(bimap @ob_m @hom_m | |
@ob_d @hom_d | |
@ob_d @hom_d | |
(unit @ob_m @hom_m) | |
r) | |
(multiplicatorinv @ob_m @hom_m @π» @π§ | |
@ob_d @hom_d | |
@π)) | |
-- ^ A Tambara module defined over the category of hell. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment