-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use more standard categorical operators
Actually I don't use that much _categorical operators_, as I couldn't get proper categorical instances to work. That is, Setoid categorical laws are functions in the category of (Agda) function and types. However I couldn't figure out the Level of Set that I should set to `Felix.Instance.Function` in order to use those operators in laws definitions. So I settled for next best thing and used standard library provided functions. And oh boy, did I got surprised by the results. Taking for example the `▵≈` law from the `Cartesian`. It holds by `<_,_>` (which is the definition of _▵_ in category of functions and types)! This has completely stunned me. Law for the categorical operator holds by the definition of this operator in different category! I find it amazing! The same holds for `curry` in the `CartesianClosed`, *but* I couldn't figure it out for `∘≈` in the `Category`. I wonder why? I wonder if this has something to do with the fact that there is trivial homomorphism from the category of `Setoid`s to category of function and types via `⟦_⟧ = Func.to`? In order to make `CartesianClosed` simplification to work I needed to make argument to `Setoid` of setoid functions explicit. Unfortunately in the upcoming PR it is implicit.
- Loading branch information
Showing
3 changed files
with
24 additions
and
18 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
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