Debian Codegraph @

test-suite/bugs/bug_3666.v

raw
1 Unset Strict Universe Declaration.
2 (* File reduced by coq-bug-finder from original input, then from 11542 lines to 325 lines, then from 347 lines to 56 lines, then from 58 lines to 15 lines *)
3 (* coqc version trunk (September 2014) compiled on Sep 25 2014 2:53:46 with OCaml 4.01.0
4 coqtop version cagnode16:/afs/csail.mit.edu/u/j/jgross/coq-trunk,trunk (bec7e0914f4a7144cd4efa8ffaccc9f72dbdb790) *)
5
6 Axiom transport : forall {A : Type} (P : A -> Type) {x y : A} (p : x = y) (u : P x), P y.
7 Notation "p # x" := (transport _ p x) (right associativity, at level 65, only parsing).
8 Inductive V : Type@{U'} := | set {A : Type@{U}} (f : A -> V) : V.
9 Module NonPrim.
10 Record hProp := hp { hproptype :> Type ; isp : Set}.
11 Goal forall (A B : Type) (H_f : A -> V -> hProp) (H_g : B -> V -> hProp)
12 (C : Type) (h : C -> V) (b : B) (a : A) (c : C),
13 H_f a (h c) -> H_f a (h c) = H_g b (h c) -> H_g b (h c).
14 intros A B H_f H_g C h b a c H3 H'.
15 exact (@transport hProp (fun x => x) _ _ H' H3).
16 Undo.
17 Set Debug Unification.
18 exact (H' # H3).
19 Defined.
20 End NonPrim.
21
22 Module Prim.
23 Set Primitive Projections.
24 Set Universe Polymorphism.
25 Record hProp := hp { hproptype :> Type ; isp : Set}.
26 Goal forall (A B : Type) (H_f : A -> V -> hProp) (H_g : B -> V -> hProp)
27 (C : Type) (h : C -> V) (b : B) (a : A) (c : C),
28 H_f a (h c) -> H_f a (h c) = H_g b (h c) -> H_g b (h c).
29 intros A B H_f H_g C h b a c H3 H'.
30 exact (@transport hProp (fun x => x) _ _ H' H3).
31 Undo.
32 Set Debug Unification.
33 exact (H' # H3).
34 (* Toplevel input, characters 7-14:
35 Error:
36 In environment
37 A : Type
38 B : Type
39 H_f : A -> V -> hProp
40 H_g : B -> V -> hProp
41 C : Type
42 h : C -> V
43 b : B
44 a : A
45 c : C
46 H3 : H_f a (h c)
47 H' : H_f a (h c) = H_g b (h c)
48 Unable to unify "hproptype (H_f a (h c))" with "?T (H_f a (h c))".
49 *)
50 Defined.
51 End Prim.