Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] difference between simpl and unfold

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] difference between simpl and unfold


Chronological Thread 
  • From: Pierre Courtieu <pierre.courtieu AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] difference between simpl and unfold
  • Date: Thu, 3 Sep 2015 12:17:45 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=pierre.courtieu AT gmail.com; spf=Pass smtp.mailfrom=pierre.courtieu AT gmail.com; spf=None smtp.helo=postmaster AT mail-lb0-f176.google.com
  • Ironport-phdr: 9a23:rvDHoREUkUP3KzSRCxy7V51GYnF86YWxBRYc798ds5kLTJ75oMuwAkXT6L1XgUPTWs2DsrQf27aQ6/yrAzBIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/ni6bqp9aJP01hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv+YJa6jxfrw5QLpEF3xmdjltvIy4/SXEGCCI/zM3Vngc2k5DBBGA5xXnVL/wtDH7v6xzwn/JE9fxSOUMWDm49aojYxj1kjsGOiNxpHnWh9ZqgeRQpw+7ux1y3qbbZYiUMLx1eaaLLoBSfnZIQssED38JOYi7dYZaSrNZZes=

You can see the behavior of simpl, cbn and unfold in the documentation.

In short: simpl is reduction heuristic. It only unfolds if some
further reduction (iota-reduction mainly I think) is triggered by the
unfolding, otherwise it does not unfold (to keep you goal small).

Remark: please use cbn instead of simpl if you are using coq-8.5. Its
behavior is most of the time better.

Hope this helps
P.



2015-09-02 16:10 GMT+02:00 shenshengyu
<shengyushen AT me.com>:
> Dear all:
>
> I am a new leaner of Coq, I am reading the usage of tactics.
>
> I am trying to prove the following theorem:
>
> ===================================
> Theorem double_neg_i: forall P:Prop , P->~~P.
> ===================================
>
> if I use “unfold not.” , I can transform the goal to
>
>
> ===================================
> forall P : Prop, P -> (P -> False) -> False
> ===================================
>
>
> But if I use “simpl not”, then nothing happen.
>
> So my question is what is the difference of simpl and unfold?
>
>
> Shen
>
>



Archive powered by MHonArc 2.6.18.

Top of Page