Created
March 10, 2020 05:02
-
-
Save masaeedu/9c25b89594a2417f6668d2dd00fbcbba to your computer and use it in GitHub Desktop.
Applicative right unit via natural isomorphism
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
zipr = tabulate . zipf . bimap index index | |
huskr = tabulate . huskf | |
Right unit law | |
--- | |
map2 huskr > zipr > map runit_fwd | |
= {definitions} | |
map2 (tabulate < huskf) > (tabulate < zipf < bimap index index) > map runit_fwd | |
= {syntax} | |
map2 (huskf > tabulate) > bimap index index > zipf > tabulate > map runit_fwd | |
= {functor2} | |
map2 huskf > map2 tabulate > bimap index index > zipf > tabulate > map runit_fwd | |
= {naturality} | |
map2 huskf > map2 tabulate > map2 index > map1 index > zipf > tabulate > map runit_fwd | |
= {functor2} | |
map2 huskf > map2 (tabulate > index) > map1 index > zipf > tabulate > map runit_fwd | |
= {repiso} | |
map2 huskf > map2 id > map1 index > zipf > tabulate > map runit_fwd | |
= {functor1} | |
map2 huskf > id > map1 index > zipf > tabulate > map runit_fwd | |
= {category1} | |
map2 huskf > map1 index > zipf > tabulate > map runit_fwd | |
= {naturality} | |
map1 index > map2 huskf > zipf > tabulate > map runit_fwd | |
= {naturality} | |
map1 index > map2 huskf > zipf > map runit_fwd > tabulate | |
= {applicative3} | |
map1 index > runit_bwd > tabulate | |
= {idk what this is but it feels ok} | |
runit_bwd > index > tabulate | |
= {repiso} | |
runit_bwd > id | |
= {category1} | |
runit_bwd | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment