-
Notifications
You must be signed in to change notification settings - Fork 119
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
Lean: Implement type abbreviations and introduce kid->id renaming #833
base: sail2
Are you sure you want to change the base?
Conversation
Very nice. Can you add a comment why the constraint |
@tobiasgrosser My idea would be to ignore the constraints like the Coq exporter does, but use them to derive useful lemmas that would accompany the generated (potentially partial) functions. I think that fits the usage paradigm of Lean pretty well, for example |
That's fine with me. However, it might be useful to add this as a comment into the source code (or test cases). |
@tobiasgrosser Good idea to have that while we're working on the translation. Added a definition docstring containing the information for now. Once we're actually using all that information, I'd opt for removing that docstring though, it will really clutter the output otherwise... |
08bff1f
to
c77ac4e
Compare
#829 takes priority
This translates
to
(Yes, the type abbreviation and the context things are largely orthogonal)