coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonas Oberhauser <s9joober AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Resolving contradiction
- Date: Wed, 20 Mar 2013 14:54:34 +0100
Am 19.03.2013 16:19, schrieb Colm Bhandal:
Also the equation nth j Nil = Some (Integer n) does
not hold for Nil. But how to introduce these facts in Coq.
Since nth is defined by recursion on the j, you need to make the structure of j visible to Coq before it can reduce it to None. Then use discriminate on None = Some ... to close the goal.
This might or might not do the trick:
destruct j ; discriminate.
- [Coq-Club] Resolving contradiction, mtkhan, 03/18/2013
- <Possible follow-up(s)>
- [Coq-Club] Resolving contradiction, mtkhan, 03/19/2013
- Re: [Coq-Club] Resolving contradiction, Colm Bhandal, 03/19/2013
- Re: [Coq-Club] Resolving contradiction, Jonas Oberhauser, 03/20/2013
- Re: [Coq-Club] Resolving contradiction, Jonas Oberhauser, 03/20/2013
- Re: [Coq-Club] Resolving contradiction, Colm Bhandal, 03/19/2013
Archive powered by MHonArc 2.6.18.