coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jean-Francois Monin <jean-francois.monin AT imag.fr>
- To: Fabian Schmitthenner <fabian1024 AT googlemail.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] use exists to proof finiteness
- Date: Mon, 16 May 2011 15:54:13 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=eBwvjymhH7vEV+aU8nLKrSViSOcyqXoigEI/l3naMDjHtiCQ086dhJFNJvmU8ZLAv7 ZrTiN0KVVbCsZn/oGqy2Hbrsz3lXpO2EjFfm3Nc6/3aUpXeX1wHzOZgAbPPB67IDF7HG oLEZrXZj2WTHnBiC55dE5Ur6KWN8Hsnhfk750=
Some tricks on this precise problem are given in
theories/Logic/ConstructiveEpsilon.v
Best regards,
Jean-Francois
On Mon, May 16, 2011 at 09:35:02AM +0200, Fabian Schmitthenner wrote:
> Hi list,
>
> I've been playing around with coq for a while now and the following problem
> came to me.
>
> Consider the following:
>
> Section MySection.
> Variable P: nat -> Prop.
> Axiom decP: forall n: nat, {P n}+{~P n}.
> Axiom existsP: exists n, P n.
>
>
> (* How to construct a function which gets the lowest value n, for which P
> n
> holds? *)
> Definition lowest: nat.
> (* ... ? ... *)
> Defined.
>
> Lemma lowestIsRight: P lowest /\ forall n: nat, n < lowest -> ~P n.
> (* ... *)
> Qed.
> End MySection.
>
> It's somehow clear from this, that the procedure of sequentially testing O,
> S
> O, ... until P n holds should work, but how to proof that this algorithm
> ends
> (which follows from existsP, but since it's in Prop, I clearly can't do a
> destruct on it).
>
> Any help would be appreciated.
>
> Thanks in advance.
>
> Fabian
>
>
--
Jean-Francois Monin
LIAMA Project FORMES, CNRS & Universite de Grenoble 1
Office 3-605, FIT, Tsinghua University
Haidian District, Beijing 100084, CHINA
Tel: +86 10 62 79 69 79 ext 605
Fax@LIAMA:
+86 10 6264 7458
- [Coq-Club] use exists to proof finiteness, Fabian Schmitthenner
- Re: [Coq-Club] use exists to proof finiteness, Jean-Francois Monin
- Re: [Coq-Club] use exists to proof finiteness, Guillaume Melquiond
Archive powered by MhonArc 2.6.16.