-
Notifications
You must be signed in to change notification settings - Fork 59
revert subtype theory + syntactic sugar for cloning it #691
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
Conversation
|
The standard library has yet to be updated |
fdupress
left a comment
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.
Looks good. Should we have a wiki page about this? Could be just a pointer to tests/subtype-clone-sugar.ec to start with.
Yes. I'll be adding one before merging. |
|
Does this new mechanism fix the unsoundness I found in #275 (comment)? If yes, does it still allow making subtypes parametric? |
Answered in #275. This PR does not prevent you to assume |
The previous Subtype theory forces the definition of the type sT for the subtype carrier, having multiple `sT` types when one has multiple subtype instances. This commits reverts this (i.e. the subtype carrier can be substituted by a user type) but add a command to carefully clone it.
Current
Subtypetheory forces to have a typesTfor the subtype carrier. This PR is to revert this (i.e. the subtype carrier can be substituted by a user type) but add a command to carefully clone it.