test-suite/success/ProgramFixpoint.v
raw| 1 | Require Import Program.Basics Program.Tactics. |
| 2 | |
| 3 | Module ProgramFixProto. |
| 4 | |
| 5 | (* Check the presence of [fix_proto] so that a preliminary work done on |
| 6 | obligations can be done automatically *) |
| 7 | |
| 8 | Program Fixpoint do_bug m : { k : nat | exists u : nat, k = m } := |
| 9 | match m with |
| 10 | | 0 => 0 |
| 11 | | S m' => S (do_bug m') |
| 12 | end. |
| 13 | Next Obligation. |
| 14 | exists 0. |
| 15 | reflexivity. |
| 16 | Qed. |
| 17 | Next Obligation. |
| 18 | exists 0. |
| 19 | reflexivity. |
| 20 | Defined. |
| 21 | |
| 22 | End ProgramFixProto. |