-
Notifications
You must be signed in to change notification settings - Fork 297
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
WIP: new datatype compiler #3748
Conversation
@@ -0,0 +1,1655 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in the tactic
or meta
namespace.
@cipher1024 Could you get this PR compiling? I can try applying some fixes directly but I can't even begin to understand the code until everything is working as intended. |
That's a fair point. This version attempts to generate a specialized |
@cipher1024 Have you looked at the error message? I think it's much more basic than that - |
Oh, I must have forgotten to commit that file. Thanks! I didn't look closely at the failure because I knew there were more errors. |
It is highly unlikely that this will happen in Lean 3. Let's revisit after the port. |
The goal of this PR is to enable the specification of
inductive
andcoinductive
data types using syntax such asand have the relevant recursors and corecursors generated appropriately. The current infrastructure does not support nesting but it is a planned extension.