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

Question: Motivation behind trigger in LemmaMaxOfConcat #153

Open
dnezam opened this issue Dec 1, 2023 · 0 comments
Open

Question: Motivation behind trigger in LemmaMaxOfConcat #153

dnezam opened this issue Dec 1, 2023 · 0 comments

Comments

@dnezam
Copy link

dnezam commented Dec 1, 2023

Looking through src/Collections/Sequences/Seq.dfy I noted the following postcondition for LemmaMaxOfConcat:

ensures forall i {:trigger i in [Max(xs + ys)]} :: i in xs + ys ==> Max(xs + ys) >= i

In particular, the trigger looks a bit unusual. I would have expected it to be something along the lines {:trigger i in xs + ys}. Is there a specific reason as to why it is the way it is?

I hope this kind of question is fine to ask here as an issue.

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

1 participant