Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] [coqdev] exists

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] [coqdev] exists


Chronological Thread 
  • From: Matthieu Sozeau <mattam AT mattam.org>
  • To: Patricia Peratto <psperatto AT vera.com.uy>, "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] [coqdev] exists
  • Date: Wed, 18 Nov 2015 16:23:32 +0000
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=mattam AT mattam.org; spf=Pass smtp.mailfrom=matthieu.sozeau AT gmail.com; spf=None smtp.helo=postmaster AT mail-wm0-f41.google.com
  • Ironport-phdr: 9a23:u+p7MxTx9bXyjb/JrMuHoBynQ9psv+yvbD5Q0YIujvd0So/mwa65YRyN2/xhgRfzUJnB7Loc0qyN4/2mBzVLsc/JmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbviptuNOk4Y3XKUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGY2zRakzTKRZATI6KCh1oZSz7ViQRw+G7XhUX2Afkx4ADw/A5RD8DIn8qCK8ve14njSLdY2tFeh1Cnye6PJTQQPyiSwGPnYB/XveltB3xPZDuwqsvRVj34n8foyPPbx1eaabYMJMASILVcFIEidFH4mUbo0VDuNHM/wS5932oEJLph+jDyGtAvnuw3lGnCml87c91rEEGB3a3A0tApo1t2bZpci9YKIbTfy8yYHNxCnfZvYQ3i3yvtubOis9qO2BCOsjOfHazlMiQlmd1lg=

Hi Patricia, 

  I guess you wanted to send this to coq-club AT inria.fr instead of coqdev AT inria.fr which is the developer mailing list.
The short answer is you cannot eliminate an existential in Prop to 
something in Set. This is a difference with the subset type {x : A | P x} which is also available in Coq.

Best,
-- Matthieu

On Wed, Nov 18, 2015 at 4:32 PM Patricia Peratto <psperatto AT vera.com.uy> wrote:
I'm making a proof that involves the existential quantifier.

I'want to get from a proof of a formula with this
quantifier the element that exists and the proof
of the proposition, i.e. "a" in the theorem below.

Theorem elem (A:Set)(P:A->Prop) :
(exists a:A, P a) -> A.
intro.
elim H.

When I try to prove elem, in elim H, I get
the message:

Error: Cannot find the elimination combinator ex_rec, the elimination of the
inductive definition ex on sort Set is probably not allowed.

How can I do to get "a" and the proof of "(P a)"?

Regards
Patricia



Archive powered by MHonArc 2.6.18.

Top of Page