Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Resolving contradiction

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Resolving contradiction


Chronological Thread 
  • 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.





Archive powered by MHonArc 2.6.18.

Top of Page