coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Kenneth Roe <kendroe AT hotmail.com>
- To: Coq-Club <coq-club AT inria.fr>
- Subject: [Coq-Club] An issue with induction
- Date: Tue, 18 Dec 2012 14:25:11 -0800
- Importance: Normal
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.
- 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.