Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] About induction

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] About induction


chronological Thread 
  • From: St�phane Lescuyer <stephane.lescuyer AT inria.fr>
  • To: dimitrisg7 <dvekris AT hotmail.com>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] About induction
  • Date: Tue, 14 Apr 2009 15:02:26 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=id7TlXQVaUEXEH6HeEyZcdw8Mhte4j2naM827ioZGVGy3jACE6kUl+GM5mASezmx56 AosHdmaer8Fs+QRCa/hSYbLlzNmijYmt+AL8mKxsIdFVFVInbbj1R69yXuGuTlN11iNY 0sBp9yGOAjbk1GyFgrT3rGDQp/tFWkIKBDQeU=
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Try "remember <your complex expression> as n" before doing "induction n".
What it essentially does is :

set (n := your complex expression) in *;
assert (Heqn : n = your complex expression); [reflexivity|];
clearbody n.

Stéphane L.

On Tue, Apr 14, 2009 at 2:44 PM, dimitrisg7 
<dvekris AT hotmail.com>
 wrote:
>
> I want to have an induction on an complex expression, which is of type nat.
> But I also want to have a hypothesis during my induction process that would
> say that my complex expression is equal to "n" ("n" is used by Coq for the
> induction). Case_eq does that. Unfortunately I do not want a simple case
> analysis, but an induction schema as well.
>
> Thanks!
> --
> View this message in context: 
> http://www.nabble.com/About-induction-tp23038763p23038763.html
> Sent from the Coq mailing list archive at Nabble.com.
>
> --------------------------------------------------------
> Bug reports: http://logical.saclay.inria.fr/coq-bugs
> Archives: http://pauillac.inria.fr/pipermail/coq-club
>          http://pauillac.inria.fr/bin/wilma/coq-club
> Info: http://pauillac.inria.fr/mailman/listinfo/coq-club
>



-- 
I'm the kind of guy that until it happens, I won't worry about it. -
R.H. RoY05, MVP06





Archive powered by MhonArc 2.6.16.

Top of Page