Debian Codegraph @

test-suite/bugs/bug_4415.v

raw
1 Goal exists x, x = true.
2 Proof.
3 evar (a : bool).
4 exists a.
5 (* Up to 8.5, this used to leave a constraint causing later tactics to fail *)
6 (* From 8.5, it failed with an unsolvable constraint *)
7 refine (unit_rec (fun s => unit_rec _ _ s = _) _ tt).
8 reflexivity.
9 Qed.
10
11 Goal forall y : sumbool True True, exists x, x = sumbool_rect (fun _ => bool) (fun _ => true) (fun _ => true) y.
12 eexists.
13 let x := match goal with |- ?x = _ => constr:(x) end in
14 let k := fresh in
15 set (k := x);
16 match goal with
17 | [ |- _ = sumbool_rect ?T (fun b => _) (fun c => _) ?v ]
18 => refine (_ : sumbool_rect T (fun b => _) (fun c => _) v = _)
19 end;
20 match goal with
21 | [ |- _ = sumbool_rect ?T (fun b => _) (fun c => _) ?v ]
22 => refine (sumbool_rect
23 (fun sb => sumbool_rect T _ _ sb = sumbool_rect T _ _ sb)
24 _
25 _
26 v);
27 try intro; simpl sumbool_rect
28 | [ |- bool ] => idtac
29 end.
30 reflexivity.
31 reflexivity.
32 Qed.