| 1 |
Axiom checker_flags : Set. |
| 2 |
|
| 3 |
Inductive Box (R : Type) : Type := box : Box R. |
| 4 |
|
| 5 |
Inductive typing (H : checker_flags) : Type := |
| 6 |
| type_Rel : typing H -> typing H |
| 7 |
| type_Case : let i := tt in Box (typing H) -> typing H. |
| 8 |
|
| 9 |
Definition unbox (P : Type) (b : Box P) := match b with box _ => 0 end. |
| 10 |
|
| 11 |
Definition size (H : checker_flags) (d : typing H) : nat. |
| 12 |
Proof. |
| 13 |
revert d. |
| 14 |
fix size 1. |
| 15 |
destruct 1. |
| 16 |
- exact (size d). |
| 17 |
- exact (unbox _ b). |
| 18 |
Defined. |
| 19 |
|
| 20 |
Definition foo (H : checker_flags) (a : typing H) : |
| 21 |
size H (type_Rel H a) = size H a. |
| 22 |
Proof. |
| 23 |
simpl. |
| 24 |
reflexivity. |
| 25 |
Qed. |
| 26 |
|
| 27 |
Definition bar (H : checker_flags) (a : typing H) : |
| 28 |
size H (type_Rel H a) = size H a. |
| 29 |
Proof. |
| 30 |
vm_compute. |
| 31 |
reflexivity. |
| 32 |
Qed. |
| 33 |
|
| 34 |
Definition qux (H : checker_flags) (a : typing H) : |
| 35 |
size H (type_Rel H a) = size H a. |
| 36 |
Proof. |
| 37 |
native_compute. |
| 38 |
reflexivity. |
| 39 |
Qed. |