coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adamc AT csail.mit.edu>
- To: Kenneth Roe <kendroe AT hotmail.com>
- Cc: Coq-Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] An issue with induction
- Date: Tue, 18 Dec 2012 17:40:00 -0500
See Section 3.8 of CPDT <http://adam.chlipala.net/cpdt/>. On 12/18/2012 05:25 PM, Kenneth Roe wrote: Below is a simple theorem I would like to prove with
induction. I have copied code up to the point where I would like to
where I would like to use an inductive hypothesis. However, Coq does
not give me an inductive hypothesis. What do I need to do to get
things working?
- Ken Inductive Test : Type := | Leaf : nat -> Test | Nodes : list Test -> Test. Fixpoint same x := match x with | Leaf x => Leaf x | Nodes l => Nodes (map same l) end. Theorem ss : forall x, same x = x. Proof. induction x. unfold same. reflexivity. |
- [Coq-Club] An issue with induction, Kenneth Roe, 12/18/2012
- Re: [Coq-Club] An issue with induction, Adam Chlipala, 12/18/2012
- Re: [Coq-Club] An issue with induction, AUGER Cédric, 12/18/2012
Archive powered by MHonArc 2.6.18.