coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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.
- [Coq-Club] How does the simpl. tactics behave?, Z
- Re: [Coq-Club] How does the simpl. tactics behave?,
Adam Chlipala
- Re: [Coq-Club] How does the simpl. tactics behave?,
Z
- Re: [Coq-Club] How does the simpl. tactics behave?,
Christine Paulin
- Message not available
- Re: [Coq-Club] How does the simpl. tactics behave?, Z
- Message not available
- Re: [Coq-Club] How does the simpl. tactics behave?,
Christine Paulin
- Re: [Coq-Club] How does the simpl. tactics behave?, Adam Chlipala
- Re: [Coq-Club] How does the simpl. tactics behave?,
Z
- Re: [Coq-Club] How does the simpl. tactics behave?,
Adam Chlipala
Archive powered by MhonArc 2.6.16.