coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: dimitrisg7 <dvekris AT hotmail.com>
- To: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Problem with rewriting
- Date: Thu, 4 Jun 2009 01:07:40 -0700 (PDT)
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Pierre Castéran wrote:
>
> I don't know whether it answers your initial questions, but if you
> consider two logically equivalent
> propositions, you can replace one by another in a correct context (see
> documentation on setoids):
>
>
> Require Import Setoid.
> Variables (x: Type)(K: nat -> Type).
>
> Lemma L : (exists m, K m =x) <-> (exists n, x = K n).
> split;intros [m H];exists m;auto.
> Qed.
>
> Variable P:Prop.
> Goal (exists m, K m =x) -> P.
> rewrite L.
>
>
> Admitted.
>
I appreciate your help guys. What I was asking is a simple way to manipulate
this rewriting. Your answers have been really informative.
-----
Never say never.
--
View this message in context:
http://www.nabble.com/Problem-with-rewriting-tp23853684p23865557.html
Sent from the Coq mailing list archive at Nabble.com.
- [Coq-Club] Problem with rewriting, dimitrisg7
- Re: [Coq-Club] Problem with rewriting, Edsko de Vries
- Re: [Coq-Club] Problem with rewriting, Adam Chlipala
- Re: [Coq-Club] Problem with rewriting,
muad
- Re: [Coq-Club] Problem with rewriting,
Pierre Casteran
- Re: [Coq-Club] Problem with rewriting, dimitrisg7
- Re: [Coq-Club] Problem with rewriting,
Pierre Casteran
- Re: [Coq-Club] Problem with rewriting,
dimitrisg7
- Re: [Coq-Club] Problem with rewriting, Adam Chlipala
Archive powered by MhonArc 2.6.16.