Equality #128
Closed
utaal
started this conversation in
Language design
Equality
#128
Replies: 1 comment
-
We don't have a separate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recording the conclusion of offline discussion with @Chris-Hawblitzel:
SpecEq
impliesEq
and means that==
is smt equal in a spec context;Structural
impliesEq
and means that exec==
is smt equal,Structural
also implies SpecEq.Structural
is restricted to types with only exec fields.SpecEq
is auto-derived (a-la Send) for #[spec] and #[proof] types, and can be manually derived for #[exec] type as long as the type doesn’t implement Eq (because of the coherence rules, we’re guaranteed that the Eq implementation, if any, is in the same compilation unit as the type).Beta Was this translation helpful? Give feedback.
All reactions