Skip to content

Instantly share code, notes, and snippets.

@gallais
Created January 29, 2016 15:30
Show Gist options
  • Save gallais/5235bf9fb121833e1f80 to your computer and use it in GitHub Desktop.
Save gallais/5235bf9fb121833e1f80 to your computer and use it in GitHub Desktop.
In Coq you have to name subterms you want to recurse on
(*
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