Debian Codegraph @

test-suite/bugs/bug_6070.v

raw
1 (* A slight shortening of bug 6078 *)
2
3 (* This bug exposed a different behavior of unshelve_unifiable
4 depending on which projection is found in the unification
5 heuristics *)
6
7 Axiom flat_type : Type.
8 Axiom interp_flat_type : flat_type -> Type.
9 Inductive type := Arrow (_ _ : flat_type).
10 Definition interp_type (t : type)
11 := interp_flat_type (match t with Arrow s d => s end)
12 -> interp_flat_type (match t with Arrow s d => d end).
13 Axiom Expr : type -> Type.
14 Axiom Interp : forall {t : type}, Expr t -> interp_type t.
15 Axiom Wf : forall {t}, Expr t -> Prop.
16 Axiom a : forall f, interp_flat_type f.
17
18 Definition packaged_expr_functionP A :=
19 (fun F : Expr A -> Expr A
20 => forall e' v, Interp (F e') v = a (let (_,f) := A in f)).
21 Goal forall (f f0 : flat_type)
22 (e : forall _ : Expr (@Arrow f f0),
23 Expr (@Arrow f f0)),
24 @packaged_expr_functionP (@Arrow f f0) e.
25 intros.
26 refine (fun (e0 : Expr (Arrow f f0))
27 => (fun zHwf':True =>
28 (fun v : interp_flat_type f =>
29 ?[G] : ?[U] = ?[V] :> interp_flat_type ?[v])) ?[H]);
30 [ | ].
31 (* Was: Error: Tactic failure: Incorrect number of goals (expected 3 tactics). *)
32 Abort.