| 1 |
Require Import Program.Tactics. |
| 2 |
|
| 3 |
Set Universe Polymorphism. |
| 4 |
|
| 5 |
Module Bug11766. |
| 6 |
|
| 7 |
Program Definition bla@{} : nat := _. |
| 8 |
Next Obligation. |
| 9 |
let x := constr:(Type) in exact 0. |
| 10 |
Defined. (* was unbound univ *) |
| 11 |
|
| 12 |
Program Definition bla'@{} : nat := _. |
| 13 |
Solve Obligations with let x := constr:(Type) in exact 0. (* was unbound univ *) |
| 14 |
|
| 15 |
End Bug11766. |
| 16 |
|
| 17 |
From Corelib Require Import ssreflect. |
| 18 |
|
| 19 |
Module Bug11988. |
| 20 |
|
| 21 |
#[local] |
| 22 |
Obligation Tactic := idtac. |
| 23 |
|
| 24 |
Section Foo. |
| 25 |
|
| 26 |
Universe u. |
| 27 |
|
| 28 |
Variable T : Type@{u}. |
| 29 |
Variable op : T -> T -> T. |
| 30 |
Hypothesis opC : forall x y, op x y = op y x. |
| 31 |
|
| 32 |
Program Definition foo@{} x y : {z : T & z = op x y} := |
| 33 |
existT _ (op y x) _. |
| 34 |
|
| 35 |
Next Obligation. |
| 36 |
move=> /= x y. |
| 37 |
by rewrite -[RHS]opC. |
| 38 |
Qed. (* should work even though rewrite [RHS] adds a spurious universe *) |
| 39 |
|
| 40 |
End Foo. |
| 41 |
|
| 42 |
End Bug11988. |
| 43 |
|
| 44 |
Module ExampleFrom11902. |
| 45 |
|
| 46 |
Local Unset Universe Polymorphism. |
| 47 |
|
| 48 |
Program Definition foo (X : Type) : Type := |
| 49 |
let x := X in forall x : x, _. |
| 50 |
|
| 51 |
Next Obligation. |
| 52 |
refine nat. |
| 53 |
Defined. |
| 54 |
|
| 55 |
End ExampleFrom11902. |