coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Roger Witte <rogerwite AT yahoo.co.uk>
- To: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] How to force apply on the other way?
- Date: Thu, 9 May 2013 10:10:57 +0100 (BST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=onlqMlfmJife+TlO0448YEeK+Ow5seMaE1xu4hchnxfeGnngDEqUrBv3vbJl5hwIcw8JkGNDiLN254HsIBJ+D3iMNOXWaOL33DR4BiV4mX2O6AOuSOqQfHhVk2uPiLIorIJqQ/j3wPpL5FFxfEbURtLYQyBq1ooTyaTtc7ULxPU=;
It is worth noting that the rewrite here is a setoid rewrite using the iff_setoid and will only work if Setoid has been imported.
From: Daniel de Rauglaudre <daniel.de_rauglaudre AT inria.fr>
To: Coq Club <coq-club AT inria.fr>
Sent: Thursday, 9 May 2013, 9:52
Subject: Re: [Coq-Club] How to force apply on the other way?
Indeed, that does the job. I did not think that 'rewrite' could work
in that case. Thanks.
On Thu, May 09, 2013 at 10:37:30AM +0200, Beta Ziliani wrote:
> I don't know what is the expected result from apply in this case, but
> you can always perform a rewrite in the goal or in the hypothesis:
>
> rewrite <- Qlt_alt.
>
> or
>
> rewrite Qlt_alt in H.
>
>
> On Thu, May 9, 2013 at 10:32 AM, Daniel de Rauglaudre
> <daniel.de_rauglaudre AT inria.fr> wrote:
> > Hi,
> >
> > I don't know if it is a bug or something I don't know, but I have a
> > problem with 'apply' when the applied theorem is a iff:
> >
> > Example:
> >
> > Require Import QArith.
> > Example foo : ∀ x y, x < y → (x ?= y) = Lt.
> > Proof.
> > intros.
> > apply Qlt_alt.
> > --> nothing happens !
> > apply Qlt_alt in H.
> > --> nothing happens !
> >
> > Is there a way to tell 'apply' to apply Qlt_alt the direction I want?
> > Why was there no error message and nothing happened?
> >
> > Tested on 8.4 and trunk.
> >
> > Thanks.
> >
> > --
> > Daniel de Rauglaudre
> > http://pauillac.inria.fr/~ddr/
--
Daniel de Rauglaudre
http://pauillac.inria.fr/~ddr/
- [Coq-Club] How to force apply on the other way?, Daniel de Rauglaudre, 05/09/2013
- Re: [Coq-Club] How to force apply on the other way?, Beta Ziliani, 05/09/2013
- Re: [Coq-Club] How to force apply on the other way?, Daniel de Rauglaudre, 05/09/2013
- Re: [Coq-Club] How to force apply on the other way?, Roger Witte, 05/09/2013
- Re: [Coq-Club] How to force apply on the other way?, Daniel de Rauglaudre, 05/09/2013
- Re: [Coq-Club] How to force apply on the other way?, Duckki Oe, 05/09/2013
- Re: [Coq-Club] How to force apply on the other way?, Dimitur Krustev, 05/10/2013
- Re: [Coq-Club] How to force apply on the other way?, Daniel de Rauglaudre, 05/10/2013
- Re: [Coq-Club] How to force apply on the other way?, Beta Ziliani, 05/09/2013
Archive powered by MHonArc 2.6.18.