-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define adjunctions #57
Comments
nice! adjunctions were one on those things I felt were really missing |
Hi, I started to work on it. I do not remember why I did not finish it. If you do not have anything yet, I can have a look again. |
@mstn We now have this: https://github.com/statebox/idris-ct/blob/master/idris2/Basic/Adjunction.idr This compiles in Idris-2, but this definition throws the Idris-1 compiler in an infinite loop, and similarly other definitions were either looping or just incredibly slow, so I gave up. So it would be interesting to see what you have! |
I'll open a throw-away PR in next days. My definition is "less compact" and should be from Burstall's book. If I remember, I had some compilation problems as well. What I did is to unfold the natural transformation (not so elegant maybe). Btw, what is the state of idris 2? |
Inelegant code is better than code that doesn't compile! Idris 2 is still very much in flux, and is missing a lot of features still, but it is actually working very well for idris-ct code. So it is useful for experimenting when Idris 1 is uncooperative. |
No description provided.
The text was updated successfully, but these errors were encountered: