Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Beginner's question on induction

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Beginner's question on induction


chronological Thread 
  • From: Stefan Holdermans <stefan AT cs.uu.nl>
  • To: Adam Chlipala <adamc AT hcoop.net>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: [Coq-Club] Beginner's question on induction
  • Date: Wed, 7 Jan 2009 21:11:00 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Adam,

Thank you for your quick answer.

This is one of the most common problems in getting started with Coq. [induction] only works over predicates applied to arguments that are all variables. In your case, one of the arguments is [S n]. I would prefer that Coq signal an error in this case. Instead, the current [induction] implementation replaces each complex term with a fresh variable, forgetting structural details.

That is indeed a severe restriction. The workaround you describe is the one I had taken, but it felt quite clumsy. Still, I can live with it. :-)

Cheers,

  Stefan





Archive powered by MhonArc 2.6.16.

Top of Page