-
Notifications
You must be signed in to change notification settings - Fork 55
Add lemmas for list count and perm_eq #824
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
Conversation
|
|
|
Can you check if |
|
Can you check if But as soon as there is a generic notion of order and generic lemmas about it, it makes sense to instantiate it with |
|
|
|
You can also do that: lemma le_in_count ['a] (p1 p2 : 'a -> bool) (s : 'a list) :
(forall x, x \in s => p1 x => p2 x) =>
count p1 s <= count p2 s.
proof. elim: s => //#. qed. |
|
To be clear, this is the kind of goals where SMT provers are stable. |
strub
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Squash, and we are good to go.
1495c08 to
0c4ef81
Compare
|
@strub done |
I needed these simple lemmas and they look like they might belong to the standard library.