Debian Codegraph @

test-suite/bugs/bug_2139.v

raw
1 (* Call of apply on <-> failed because of evars in elimination predicate *)
2 Generalizable Variables patch.
3
4 Class Patch (patch : Type) := {
5 commute : patch -> patch -> Prop
6 }.
7
8 Parameter flip : forall `{patchInstance : Patch patch}
9 {a b : patch},
10 commute a b <-> commute b a.
11
12 Lemma Foo : forall `{patchInstance : Patch patch}
13 {a b : patch},
14 (commute a b)
15 -> True.
16 Proof.
17 intros.
18 apply flip in H.
19
20 (* failed in well-formed arity check because elimination predicate of
21 iff in (@flip _ _ _ _) had normalized evars while the ones in the
22 type of (@flip _ _ _ _) itself had non-normalized evars *)
23
24 (* By the way, is the check necessary ? *)
25 Abort.