| 1 |
Module A. |
| 2 |
Set Primitive Projections. |
| 3 |
Record hSet : Type := BuildhSet { setT : Type; iss : True }. |
| 4 |
Ltac head_hnf_under_binders x := |
| 5 |
match eval hnf in x with |
| 6 |
| ?f _ => head_hnf_under_binders f |
| 7 |
| (fun y => ?f y) => head_hnf_under_binders f |
| 8 |
| ?y => y |
| 9 |
end. |
| 10 |
Goal forall s : hSet, True. |
| 11 |
intros. |
| 12 |
let x := head_hnf_under_binders setT in pose x. |
| 13 |
|
| 14 |
set (foo := eq_refl (@setT )). generalize foo. simpl. cbn. |
| 15 |
Abort. |
| 16 |
End A. |
| 17 |
|
| 18 |
Module A'. |
| 19 |
Set Universe Polymorphism. |
| 20 |
Set Primitive Projections. |
| 21 |
Record hSet (A : Type) : Type := BuildhSet { setT : Type; iss : True }. |
| 22 |
Ltac head_hnf_under_binders x := |
| 23 |
match eval compute in x with |
| 24 |
| ?f _ => head_hnf_under_binders f |
| 25 |
| (fun y => ?f y) => head_hnf_under_binders f |
| 26 |
| ?y => y |
| 27 |
end. |
| 28 |
Goal forall s : @hSet nat, True. |
| 29 |
intros. |
| 30 |
let x := head_hnf_under_binders setT in pose x. |
| 31 |
|
| 32 |
set (foo := eq_refl (@setT nat)). generalize foo. simpl. cbn. |
| 33 |
Abort. |
| 34 |
End A'. |