| 1 |
Require Import Ltac2.Ltac2. |
| 2 |
|
| 3 |
Import Constr. |
| 4 |
Import Unsafe. |
| 5 |
|
| 6 |
Polymorphic Axiom foo@{u v w | u < v, u <= w, v < w} : Prop. |
| 7 |
|
| 8 |
Polymorphic Axiom bar@{u v w | } : Prop. |
| 9 |
|
| 10 |
Universes u v w. |
| 11 |
|
| 12 |
Constraint u < v. |
| 13 |
|
| 14 |
Lemma baz : Prop. |
| 15 |
Proof. |
| 16 |
(* easiest way to get unsatisfied constraints *) |
| 17 |
match kind 'bar@{u v w}, kind 'foo with |
| 18 |
| Constant _ u, Constant c _ => Std.exact_no_check (make (Constant c u)) |
| 19 |
| _ => Control.throw Assertion_failure |
| 20 |
end. |
| 21 |
(* should mention u <= w and v < w but not u < v *) |
| 22 |
Fail Defined. |
| 23 |
Abort. |