coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Pierre Courtieu <pierre.courtieu AT gmail.com>
- To: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] apply without instantiating
- Date: Mon, 28 Jan 2019 11:29:46 +0100
- 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-it1-f173.google.com
- Ironport-phdr: 9a23:tFS/dh84G35EfP9uRHKM819IXTAuvvDOBiVQ1KB42+0cTK2v8tzYMVDF4r011RmVBdWds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+557ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMNboRr4oRzut86ZrSAfpiCgZMT457HrXgdF0gK5CvR6tuwBzz4vSbYqINvRxY7ndcMsVSmpPXMlfVyJPDIChYYURE+UPMv1Vr5Xkp1YUsReyGRWgCeHpxzRVhnH2x6o60+E5HA/c3QwvAcgOsG7Ko97oKqoSVv21zLPUzTXCcfxWxCr25Y/QchAgv/6MR6hwftTLxUYzEAPFk0+QqZDkPzyLy+QAqGeb7+96WuKuj24rsR1+oj+qxso1jITCm4Ebykjc+Cln3Io4Ice0RU17bNK+DZddtiCXO5FrTs4gTWxlvjsxxKcctp6hZicKzYwqxx7BZPyDdIiF+hfjW/yQITd8nX5lea6/iwur/Uiu1+HxVMe53ExFripCldnMuXQN2ALJ5sebTft9+1+t2TeJ1w/N9uFJOV44mbbfJpI7wbM9loAfvVnCEyL3gkn6ka2be0s89uit8evnY7HmppGGN49zjwHzKrwums2hDuQiKAgBQXKX9vi71L3+5035XLRKgeMrkqTCv5DaIN4Upq+9AwNPzokj7BO/Ay+80NsEhXkHME5FeBWfgof1PFHOOen0Auu7g1Sxizhm3OvGP73kApXVNHfPirbhfbBn605d0gU/195f54gHQo0Gddn0QwfasMHSRksyNBXxyOL6Av180JkfUCSBGPnKHrnVtAqw5+81OeTET4gIoir8JuVts+bvgGUjlBkWerSzwZoadVi3G/1nJwOSZn+60YRJKnsDogdrFL+is1aFSzMGIi/qB/tttAF+M5qvCML4fq7ohbWA2CmhGZgPPzJJD1mNFTHjcIDWAq5QOhLXGddol3k/bZbkU5UojEj8uwrzyr4hJe3RqHVB6MDTkeNt7uiWrikcsDx5C8PHjTOIRmBw22IUHno4hf8k50N6zViH3O5zhPkKTdE=
You are right, simple apply do performs evar instantiation. It only
stops unification modulo conversion in presence of evars.
P.
Le lun. 28 janv. 2019 à 11:15, Jeremy Dawson
<Jeremy.Dawson AT anu.edu.au>
a écrit :
>
> Hi Pierre,
>
> Well, in this example simple apply (which I assume is what you meant)
> instantiates the variable. Is there something else you do to stop that?
>
> Cheers,
>
> Jeremy
>
> Coq < Goal exists x, (x = a).
> 1 subgoal
>
> ============================
> exists x : nat, x = a
>
> Unnamed_thm < eexists.
> 1 focused subgoal
> (shelved: 1)
>
> ============================
> ?x = a
>
> Unnamed_thm < simple_apply eq_refl.
> Toplevel input, characters 0-12:
> > simple_apply eq_refl.
> > ^^^^^^^^^^^^
> Error: The reference simple_apply was not found in the current environment.
>
> Unnamed_thm < simple apply eq_refl.
> No more subgoals.
>
>
>
> On 01/22/2019 06:16 PM, Pierre Courtieu wrote:
> > Did you try simple_apply? One of the differences with apply seems to be
> > more or less what you want. It is not the only difference though.
> > Best regards
> > Pierre
> >
> > Pierre
> > ------------------------------------------------------------------------
> > *De :*
> > coq-club-request AT inria.fr
> > de la part de Jason -Zhong Sheng- Hu
> > <fdhzs2010 AT hotmail.com>
> > *Envoyé :* mardi, janvier 22, 2019 7:33 AM
> > *À :*
> > coq-club AT inria.fr
> > *Objet :* Re: [Coq-Club] apply without instantiating
> > I believe lots of tactics, e.g. trivial, will eliminate reflexive goals
> > but not instantiating evars.
> >
> > Thanks,
> > Jason Hu
> >
> > On Jan 22, 2019 01:21, Jeremy Dawson
> > <Jeremy.Dawson AT anu.edu.au>
> > wrote:
> >
> > Hi,
> >
> > Is there a way of applying a theorem without instantiating existential
> > variables in a goal?
> >
> > For example, if you want to eliminate equality goals but not create
> > phony ones, as with the goals
> >
> > a ++ b ++ c = ?d ++ ?e
> > and
> > f ++ g = f ++ g
> >
> > I want some variant of
> >
> > all : try (apply eq_refl).
> >
> > which would catch the second goal but not the first
> >
> > thanks
> >
> > Jeremy
- [Coq-Club] apply without instantiating, Jeremy Dawson, 01/22/2019
- Re: [Coq-Club] apply without instantiating, Jason -Zhong Sheng- Hu, 01/22/2019
- Re: [Coq-Club] apply without instantiating, Pierre Courtieu, 01/22/2019
- Re: [Coq-Club] apply without instantiating, Jeremy Dawson, 01/28/2019
- Re: [Coq-Club] apply without instantiating, Pierre Courtieu, 01/28/2019
- Re: [Coq-Club] apply without instantiating, Jeremy Dawson, 01/28/2019
- Re: [Coq-Club] apply without instantiating, Jeremy Dawson, 01/24/2019
- Re: [Coq-Club] apply without instantiating, Théo Zimmermann, 01/24/2019
- Re: [Coq-Club] apply without instantiating, Pierre Courtieu, 01/22/2019
- Re: [Coq-Club] apply without instantiating, Jason -Zhong Sheng- Hu, 01/22/2019
Archive powered by MHonArc 2.6.18.