Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] How does the simpl. tactics behave?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] How does the simpl. tactics behave?


chronological Thread 
  • From: Z <zell08v AT orange.fr>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] How does the simpl. tactics behave?
  • Date: Tue, 7 Sep 2010 17:40:24 +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:content-type; b=eQ4XFgEYwl5UHckW0ojCaHoxD/tFXhqk9H/u36mY4HJBl1R+Vw9td+vZwZLLRmUHFC LGe/VYXqp2eQHVfQ+XlxE67WA4I2igrbwnK7IWQ3I5TqyRRFxQrY57d6PjfcrgXzVdbX gty/nClCzj8om9YGdcRXqXQONvRETTD1ppO/Q=

Here is another example that I have some trouble to understand, where simpl. does not want to unfold gx although it should have considered that "match"

Any ideas?
********************
Definition gx(x: nat) := match x with |_ =>0 end.
Eval simpl gx in gx 0.
********************

Then, in this case, which tactic to do the unfolding work?

Thank you.
Zell

   [simpl] only unfolds definitions when doing so causes some [match]
   to simplify.  I hope it's not hard to see the consequences of this
   heuristic for the two examples, and why it leads to the [simpl]
   behavior you see.






Archive powered by MhonArc 2.6.16.

Top of Page