| 1 |
|
| 2 |
|
| 3 |
Universe i j. |
| 4 |
|
| 5 |
Goal False. |
| 6 |
Proof. |
| 7 |
Check Type@{i} : Type@{j}. |
| 8 |
Fail constr_eq_strict Type@{i} Type@{j}. |
| 9 |
assert_succeeds constr_eq Type@{i} Type@{j}. (* <- i=j is forgotten after assert_succeeds *) |
| 10 |
Fail constr_eq_strict Type@{i} Type@{j}. |
| 11 |
|
| 12 |
constr_eq Type@{i} Type@{j}. (* <- i=j is retained *) |
| 13 |
constr_eq_strict Type@{i} Type@{j}. |
| 14 |
Fail Check Type@{i} : Type@{j}. |
| 15 |
|
| 16 |
Fail constr_eq Prop Set. |
| 17 |
Fail constr_eq Prop Type. |
| 18 |
|
| 19 |
Fail constr_eq_strict Type Type. |
| 20 |
constr_eq Type Type. |
| 21 |
|
| 22 |
constr_eq_strict Set Set. |
| 23 |
constr_eq Set Set. |
| 24 |
constr_eq Prop Prop. |
| 25 |
|
| 26 |
let x := constr:(Type) in constr_eq_strict x x. |
| 27 |
let x := constr:(Type) in constr_eq x x. |
| 28 |
|
| 29 |
Fail lazymatch type of prod with |
| 30 |
| ?A -> ?B -> _ => constr_eq_strict A B |
| 31 |
end. |
| 32 |
lazymatch type of prod with |
| 33 |
| ?A -> ?B -> _ => constr_eq A B |
| 34 |
end. |
| 35 |
lazymatch type of prod with |
| 36 |
| ?A -> ?B -> ?C => constr_eq A C |
| 37 |
end. |
| 38 |
|
| 39 |
Abort. |