| 1 |
Require Import TestSuite.admit. |
| 2 |
(* File reduced by coq-bug-finder from original input, then from 2674 lines to 136 lines, then from 115 lines to 61 lines *) |
| 3 |
(* coqc version trunk (October 2014) compiled on Oct 28 2014 14:33:38 with OCaml 4.01.0 |
| 4 |
coqtop version cagnode15:/afs/csail.mit.edu/u/j/jgross/coq-trunk,(no branch) (53bfe9cf58a3c40e6eb7120d25c1633a9cea3126) *) |
| 5 |
Class IsEquiv {A B : Type} (f : A -> B) := {}. |
| 6 |
Record Equiv A B := { equiv_fun : A -> B ; equiv_isequiv : IsEquiv equiv_fun }. |
| 7 |
Arguments equiv_fun {A B} _ _. |
| 8 |
Record PreCategory := { object :> Type ; morphism : object -> object -> Type }. |
| 9 |
Set Printing Coercions. |
| 10 |
Set Printing Implicit. |
| 11 |
Module NonPrim. |
| 12 |
Unset Primitive Projections. |
| 13 |
Record TruncType (n : nat) := { trunctype_type :> Type }. |
| 14 |
Canonical Structure default_TruncType := fun n T => (@Build_TruncType n T). |
| 15 |
Goal (forall (s d : TruncType 0) (m : trunctype_type 0 s -> trunctype_type 0 d), |
| 16 |
@IsEquiv (trunctype_type 0 s) (trunctype_type 0 d) m -> Type) -> |
| 17 |
forall (T T0 : Type) (m : T0 -> T), @IsEquiv T0 T m -> True. |
| 18 |
intros isiso_isequiv' mc md e e'. |
| 19 |
(pose (@isiso_isequiv' |
| 20 |
_ _ |
| 21 |
(e |
| 22 |
: (Build_TruncType 0 md) -> |
| 23 |
(Build_TruncType 0 mc)) |
| 24 |
e') as i || fail "too early"); clear i. |
| 25 |
pose (@isiso_isequiv' |
| 26 |
_ _ _ |
| 27 |
e'). |
| 28 |
admit. |
| 29 |
Defined. |
| 30 |
End NonPrim. |
| 31 |
Module Prim. |
| 32 |
Set Primitive Projections. |
| 33 |
Record TruncType (n : nat) := { trunctype_type :> Type }. |
| 34 |
Canonical Structure default_TruncType := fun n T => (@Build_TruncType n T). |
| 35 |
Goal (forall (s d : TruncType 0) (m : trunctype_type 0 s -> trunctype_type 0 d), |
| 36 |
@IsEquiv (trunctype_type 0 s) (trunctype_type 0 d) m -> Type) -> |
| 37 |
forall (T T0 : Type) (m : T0 -> T), @IsEquiv T0 T m -> True. |
| 38 |
intros isiso_isequiv' mc md e e'. |
| 39 |
(pose (@isiso_isequiv' |
| 40 |
_ _ |
| 41 |
(e |
| 42 |
: (Build_TruncType 0 md) -> |
| 43 |
(Build_TruncType 0 mc)) |
| 44 |
e') as i || fail "too early"); clear i. |
| 45 |
Set Printing Existential Instances. |
| 46 |
Set Debug Unification. |
| 47 |
pose (@isiso_isequiv' |
| 48 |
_ _ _ |
| 49 |
e'). (* Toplevel input, characters 48-50: |
| 50 |
Error: |
| 51 |
In environment |
| 52 |
isiso_isequiv' : forall (s d : TruncType 0) |
| 53 |
(m : trunctype_type 0 s -> trunctype_type 0 d), |
| 54 |
@IsEquiv (trunctype_type 0 s) (trunctype_type 0 d) m -> Type |
| 55 |
mc : Type |
| 56 |
md : Type |
| 57 |
e : md -> mc |
| 58 |
e' : @IsEquiv md mc e |
| 59 |
The term "e'" has type "@IsEquiv md mc e" while it is expected to have type |
| 60 |
"@IsEquiv (trunctype_type 0 ?t) (trunctype_type 0 ?t0) ?t1". |
| 61 |
*) |
| 62 |
admit. |
| 63 |
Defined. |
| 64 |
End Prim. |