| 1 |
Require Program.Basics Program.Tactics. |
| 2 |
|
| 3 |
Obligation Tactic := idtac. |
| 4 |
|
| 5 |
Program Definition foo (m : nat) (p := S m) (n : nat) (q := S n) : unit := |
| 6 |
let bar : {r | n < r} := _ in |
| 7 |
let qux : {r | p < r} := _ in |
| 8 |
let quz : m = n -> True := _ in |
| 9 |
tt. |
| 10 |
Next Obligation. |
| 11 |
intros m p n q. |
| 12 |
exists (S n); constructor. |
| 13 |
Qed. |
| 14 |
Next Obligation. |
| 15 |
intros m p n q. |
| 16 |
exists (S (S m)); constructor. |
| 17 |
Qed. |
| 18 |
Next Obligation. |
| 19 |
intros m p n q ? ? H. |
| 20 |
destruct H. |
| 21 |
constructor. |
| 22 |
Qed. |
| 23 |
|
| 24 |
Check (foo_obligation_1 : forall n, {r | n < r}). |
| 25 |
Check (foo_obligation_2 : forall m, {r | (S m) < r}). |
| 26 |
Check (foo_obligation_3 : forall m n, m = n -> True). |