-
Notifications
You must be signed in to change notification settings - Fork 16
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
Record inheritance #42
Comments
We need to implement aya-prover/aya-prover-proto#150 (which, I guess, is related to aya-prover/aya-prover-proto#128) first |
So we should implement in this order:
|
... and built-in definitions. |
I mean pragmas that make definitions interact with built-in features |
No, in this order:
|
In Arend, they have this: class Functor F
| bleh
class Monad F extends Functor
| blah
instance ok : Functor Bla
| bleh
instance ko : Monad Bla
| Functor => ok
| bleh => *&^%$#$%^& |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to do this? In Lean, if
structure a extends b
, then we can builda
by either{ to_b := some_b_instance, <fields of a> }
or{ <fields of b>, <fields of a> }
. When accessing someb
field in ana
instance, we can either usea.field
ora.to_b.field
.The text was updated successfully, but these errors were encountered: