-
Notifications
You must be signed in to change notification settings - Fork 50
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
Mapping
creation and indexing
#1296
Mapping
creation and indexing
#1296
Conversation
Indexing: LGTM. Creation of an arbitrary mapping: why cannot we use In general, I think a function like your |
Because the type of values of that mapping is a generic type
I'll add it then! We can think about an epsilon function later, but yes it is something that I wanted occasionally. |
Btw what is our position on uninhabited types? |
596d5b1
to
b49120d
Compare
Smt solvers and why3 don't support uninhabited types, they assume that all types are inhabited. It is rather heavy to encode uninhabited types in these tools, so I prefer not supporting them either. This is the main reason why we don't encode type invariants as subset types. |
Why waiting for epsilon ? I don't expect it to be much more difficult than |
b49120d
to
85cf12c
Compare
85cf12c
to
0b2ccdd
Compare
I'm not a fan of the naming of
unknown
, but I don't really have a better idea.Also this implies that logic code may create values ex nihilo. I assumed this was what we wanted ; but should we rather have a function
?