Debian Codegraph @

test-suite/bugs/bug_3539.v

raw
1 (* -*- mode: coq; coq-prog-args: ("-indices-matter") -*- *)
2 (* File reduced by coq-bug-finder from original input, then from 11678 lines to 11330 lines, then from 10721 lines to 9544 lines, then from 9549 lines to 794 lines, then from 810 lines to 785 lines, then from 628 lines to 246 lines, then from 220 lines to 89 lines, then from 80 lines to 47 lines *)
3 (* coqc version trunk (August 2014) compiled on Aug 22 2014 4:17:28 with OCaml 4.01.0
4 coqtop version cagnode17:/afs/csail.mit.edu/u/j/jgross/coq-trunk,trunk (a67cc6941434124465f20b14a1256f2ede31a60e) *)
5
6 Set Implicit Arguments.
7 Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a where "x = y" := (@paths _ x y) : type_scope.
8 Arguments idpath {A a} , [A] a.
9 Scheme Rewriting for paths.
10 Definition transport {A : Type} (P : A -> Type) {x y : A} (p : x = y) (u : P x) : P y := match p with idpath => u end.
11 Local Set Primitive Projections.
12 Record prod (A B : Type) := pair { fst : A ; snd : B }.
13 Notation "x * y" := (prod x y) : type_scope.
14 Notation "( x , y , .. , z )" := (pair .. (pair x y) .. z) : core_scope.
15 Axiom path_prod : forall {A B : Type} (z z' : A * B), (fst z = fst z') -> (snd z = snd z') -> (z = z').
16 Axiom transport_path_prod : forall A B (P : A * B -> Type) (x y : A * B) (HA : fst x = fst y) (HB : snd x = snd y) Px,
17 transport P (path_prod _ _ HA HB) Px
18 = transport (fun x => P (x, snd y)) HA (transport (fun y => P (fst x, y)) HB Px).
19 Goal forall (T0 : Type) (snd1 snd0 f : T0) (p : @paths T0 f snd0)
20 (f0 : T0) (p1 : @paths T0 f0 snd1) (T1 : Type)
21 (fst1 fst0 : T1) (p0 : @paths T1 fst0 fst0) (p2 : @paths T1 fst1 fst1)
22 (T : Type) (x2 : T) (T2 : Type) (T3 : forall (_ : T2) (_ : T2), Type)
23 (x' : forall (_ : T1) (_ : T), T2) (m : T3 (x' fst1 x2) (x' fst0 x2)),
24 @paths (T3 (x' fst1 x2) (x' fst0 x2))
25 (@transport (prod T1 T0)
26 (fun x : prod T1 T0 =>
27 T3 (x' fst1 x2) (x' (fst x) x2))
28 (@pair T1 T0 fst0 f) (@pair T1 T0 fst0 snd0)
29 (@path_prod T1 T0 (@pair T1 T0 fst0 f)
30 (@pair T1 T0 fst0 snd0) p0 p)
31 (@transport (prod T1 T0)
32 (fun x : prod T1 T0 =>
33 T3 (x' (fst x) x2) (x' fst0 x2))
34 (@pair T1 T0 fst1 f0) (@pair T1 T0 fst1 snd1)
35 (@path_prod T1 T0 (@pair T1 T0 fst1 f0)
36 (@pair T1 T0 fst1 snd1) p2 p1) m)) m.
37 intros.
38 match goal with
39 | [ |- context[transport ?P (path_prod ?x ?y ?HA ?HB) ?Px] ]
40 => rewrite (transport_path_prod P x y HA HB Px)
41 end || fail "bad".
42 Undo.
43 Set Printing All.
44 rewrite transport_path_prod. (* Toplevel input, characters 15-43:
45 Error:
46 In environment
47 T0 : Type
48 snd1 : T0
49 snd0 : T0
50 f : T0
51 p : @paths T0 f snd0
52 f0 : T0
53 p1 : @paths T0 f0 snd1
54 T1 : Type
55 fst1 : T1
56 fst0 : T1
57 p0 : @paths T1 fst0 fst0
58 p2 : @paths T1 fst1 fst1
59 T : Type
60 x2 : T
61 T2 : Type
62 T3 : forall (_ : T2) (_ : T2), Type
63 x' : forall (_ : T1) (_ : T), T2
64 m : T3 (x' fst1 x2) (x' fst0 x2)
65 Unable to unify "?25 (@pair ?23 ?24 (fst ?27) (snd ?27))" with
66 "?25 ?27".
67 *)
68 Abort.