Debian Codegraph @

test-suite/bugs/HoTT_coq_067.v

raw
1 Require Import TestSuite.admit.
2 Set Universe Polymorphism.
3 Inductive paths {A : Type} (a : A) : A -> Type :=
4 idpath : paths a a.
5
6 Goal forall (A : Type) (P : forall _ : A, Type) (x0 : A)
7 (p : P x0) (q : @paths (@sigT A P) (@existT A P x0 p) (@existT A P x0 p)),
8 @paths (@paths (@sigT A P) (@existT A P x0 p) (@existT A P x0 p))
9 (@idpath (@sigT A P) (@existT A P x0 p))
10 (@idpath (@sigT A P) (@existT A P x0 p)).
11 intros.
12 induction q.
13 admit.
14 Qed.
15 (** Error: Illegal application:
16 The term "paths_rect" of type
17 "forall (A : Type) (a : A) (P : forall a0 : A, paths a a0 -> Type),
18 P a (idpath a) -> forall (y : A) (p : paths a y), P y p"
19 cannot be applied to the terms
20 "{x : _ & P x}" : "Type"
21 "s" : "{x : _ & P x}"
22 "fun (a : {x : _ & P x}) (_ : paths s a) => paths (idpath a) (idpath a)"
23 : "forall a : {x : _ & P x}, paths s a -> Type"
24 "match proof_admitted return (paths (idpath s) (idpath s)) with
25 end" : "paths (idpath s) (idpath s)"
26 "s" : "{x : _ & P x}"
27 "q" : "paths (existT P x0 p) (existT P x0 p)"
28 The 3rd term has type "forall a : {x : _ & P x}, paths s a -> Type"
29 which should be coercible to "forall a : {x : _ & P x}, paths s a -> Type". *)