test-suite/bugs/bug_6976.v
raw| 1 | Set Printing Universes. |
| 2 | |
| 3 | Set Universe Polymorphism. |
| 4 | Set Polymorphic Inductive Cumulativity. |
| 5 | |
| 6 | Record Unit : Prop := tt {}. |
| 7 | |
| 8 | Record Foo (A B : Type) : Prop := mkfoo { }. |
| 9 | |
| 10 | Parameter V : Type -> Type. |
| 11 | Axiom foobar : forall A, V A -> Foo@{_ Set} A Unit. |
| 12 | |
| 13 | Section sec. |
| 14 | Universe a. |
| 15 | Variable A : Type@{a}. |
| 16 | Variable v : V A. |
| 17 | |
| 18 | Definition bar@{i|a <= i} : Foo@{i i} A Unit. |
| 19 | Proof. |
| 20 | apply foobar. |
| 21 | apply v. |
| 22 | Qed. |
| 23 | End sec. |