Debian Codegraph @

test-suite/bugs/bug_2320.v

raw
1 (* Managing metavariables in the return clause of a match *)
2
3 (* This was working in 8.1 but is failing in 8.2 and 8.3. It works in
4 trunk thanks to the new proof engine. It could probably made to work in
5 8.2 and 8.3 if a return predicate of the form "dummy 0" instead of
6 (or in addition to) a sophisticated predicate of the form
7 "as x in dummy y return match y with 0 => ?P | _ => ID end" *)
8
9 Inductive dummy : nat -> Prop := constr : dummy 0.
10
11 Lemma failure : forall (x : dummy 0), x = constr.
12 Proof.
13 intros x.
14 refine (match x with constr => _ end).
15 Abort.