Debian Codegraph @

test-suite/output/rewrite_2172.v

raw
1 (* This checks an error message as reported in bug #2172 *)
2
3 Axiom axiom : forall (E F : nat), E = F.
4 Lemma test : forall (E F : nat), E = F.
5 Proof.
6 intros.
7 (* This used to raise the following non understandable error message:
8
9 Error: Unable to find an instance for the variable x
10
11 The reason this error was that rewrite generated the proof
12
13 "eq_ind ?A ?x ?P ? ?y (axiom ?E ?F)"
14
15 and the equation ?x=?E was solved in the way ?E:=?x leaving ?x
16 unresolved. A stupid hack for solve this consisted in ordering
17 meta=meta equations the other way round (with most recent evars
18 instantiated first - since they are assumed to come first from the
19 user in rewrite/induction/destruct calls).
20 *)
21 Fail rewrite <- axiom.
22 Abort.