coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Edsko de Vries <edskodevries AT gmail.com>
- To: dimitrisg7 <dvekris AT hotmail.com>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Problem with rewriting
- Date: Wed, 3 Jun 2009 16:44:20 +0100
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Hi,
(exists n, K n = x) is syntactic sugar for ex (fun n : nat => eq (K n) x) and so *rewriting* would require rewriting under a binder (which requires extensionality)? However, it is easy to prove one from the other:
Section test.
Variable x : Type.
Variable K : nat -> Type.
Hypothesis H : exists n, K n = x.
Lemma foo : exists n, x = K n.
Proof.
elim H ; intros n Hn.
exists n ; apply sym_eq ; exact Hn.
Qed.
Hope that helps,
Edsko
- [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.