Skip to content
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

Request: ordered maps #107

Open
robin-aws opened this issue Mar 7, 2023 · 1 comment
Open

Request: ordered maps #107

robin-aws opened this issue Mar 7, 2023 · 1 comment

Comments

@robin-aws
Copy link
Member

We already kind of have ordered sets because of definitions like https://github.com/dafny-lang/libraries/blob/master/src/Collections/Sequences/Seq.dfy#L182. In both cases it would be very nice to provide subset types for these concepts.

@robin-aws robin-aws mentioned this issue Mar 7, 2023
@stefan-aws
Copy link
Contributor

Can you specify what you mean by an ordered map? Are you saying both domain and codomain have a partial order, and if x <= y, then m[x] <= m[y]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants