| 1 |
Require Import TestSuite.admit. |
| 2 |
(* File reduced by coq-bug-finder from original input, then from 5968 lines to |
| 3 |
11933 lines, then from 11239 lines to 11231 lines, then from 10365 lines to 446 |
| 4 |
lines, then from 456 lines to 379 lines, then from 391 lines to 373 lines, then |
| 5 |
from 369 lines to 351 lines, then from 350 lines to 340 lines, then from 348 |
| 6 |
lines to 320 lines, then from 328 lines to 302 lines, then from 332 lines to 21 |
| 7 |
lines *) |
| 8 |
Set Universe Polymorphism. |
| 9 |
Module short. |
| 10 |
Record foo := { bar : Type }. |
| 11 |
Coercion baz (x : foo@{Set}) : Set := bar x. |
| 12 |
Goal True. |
| 13 |
Proof. |
| 14 |
Fail pose ({| bar := Set |} : Type). (* check that it fails *) |
| 15 |
try pose ({| bar := Set |} : Type). (* Anomaly: apply_coercion_args: mismatch between arguments and coercion. |
| 16 |
Please report. *) |
| 17 |
Admitted. |
| 18 |
End short. |
| 19 |
|
| 20 |
Module long. |
| 21 |
Axiom admit : forall {T}, T. |
| 22 |
Definition UU := Set. |
| 23 |
Definition UU' := Type. |
| 24 |
Definition hSet:= sigT (fun X : UU' => admit) . |
| 25 |
Definition pr1hSet:= @projT1 UU (fun X : UU' => admit) : hSet -> Type. |
| 26 |
Coercion pr1hSet: hSet >-> Sortclass. |
| 27 |
Axiom binop : UU -> Type. |
| 28 |
Axiom setwithbinop : Type. |
| 29 |
Goal True. |
| 30 |
Proof. |
| 31 |
Fail pose (( @projT1 _ ( fun X : hSet@{i j k} => binop X ) ) : _ -> hSet). (* check that it fails *) |
| 32 |
try pose (( @projT1 _ ( fun X : hSet@{i j k} => binop X ) ) : _ -> hSet). (* check that it's not an anomaly *) |
| 33 |
Admitted. |
| 34 |
End long. |