Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Problem with rewriting

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Problem with rewriting


chronological Thread 
  • 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





Archive powered by MhonArc 2.6.16.

Top of Page