Created
March 5, 2018 15:22
-
-
Save jad-hamza/aee0a3d2ba8d8c312c34a7aa15f69192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Require Import Coq.Program.Tactics. | |
Require Import Coq.Program.Program. | |
Require Import Omega. | |
Open Scope bool_scope. | |
Open Scope Z_scope. | |
Program Definition g (i: Z) (h: (Z.gtb i 0 = true)) : {holds: bool | (holds = true)} := | |
Z.geb i (-1). | |
Admit Obligations. | |
Program Definition f (i: Z) (h: (Z.geb i 0 = true)) : bool := | |
Z.gtb i 0. | |
Admit Obligations. | |
Program Definition h (i: Z) (h: match Z.gtb i 0 with | |
| true => f (Z.sub i 1) _ | |
| false => false | |
end = true) : | |
{res: Z | g (Z.add i 1) _ = true } := | |
Z.add i 1. | |
Next Obligation. | |
Admitted. | |
Next Obligation. | |
destruct (i >? 0). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment