Created
January 29, 2016 15:30
-
-
Save gallais/5235bf9fb121833e1f80 to your computer and use it in GitHub Desktop.
In Coq you have to name subterms you want to recurse on
This file contains hidden or 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
(* | |
Fixpoint boringFail (m : nat) : True := | |
match m with | |
| S (S m) => boringFail (S m) | |
| _ => I | |
end. | |
*) | |
Fixpoint boringWork (m : nat) : True := | |
match m with | |
| S m' => match m' with | |
| S m => boringWork m' | |
| _ => I | |
end | |
| _ => I | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment