Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] How to force apply on the other way?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] How to force apply on the other way?


Chronological Thread 
  • From: Beta Ziliani <beta AT mpi-sws.org>
  • To: Daniel de Rauglaudre <daniel.de_rauglaudre AT inria.fr>
  • Cc: 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:36:58 +0200

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/



Archive powered by MHonArc 2.6.18.

Top of Page