coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jiten Pathy <jpathy AT fssrv.net>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] destruct match .. with
- Date: Sat, 13 Dec 2014 05:48:00 -0800
Hello,
I just started learning Coq. And currently facing difficulty solving
the following theorem(bin_conv) using induction. Anybody could help me
out with this? I am having difficulty with the normalize fixpoint
where i am using recursive pattern matching.
Inductive bin : Type :=
| O' : bin
| T : bin -> bin
| T' : bin -> bin.
Fixpoint normalize (b :bin) : bin :=
match b with
| O' => O'
| T n' =>
match normalize n' with
| O' => O'
| _ => T (normalize n')
end
| T' n' => T' (normalize n')
end.
The full file to run with Coq.
https://gist.github.com/anonymous/082c9f17c3d9dc2b5263
- [Coq-Club] destruct match .. with, Jiten Pathy, 12/13/2014
- Re: [Coq-Club] destruct match .. with, Daniel Schepler, 12/13/2014
- Re: [Coq-Club] destruct match .. with, Jiten Pathy, 12/14/2014
- Re: [Coq-Club] destruct match .. with, Daniel Schepler, 12/13/2014
Archive powered by MHonArc 2.6.18.