Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] how to represent the assumption of a finite set

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] how to represent the assumption of a finite set


chronological Thread 
  • From: Damien Pous <Damien.Pous AT inrialpes.fr>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] how to represent the assumption of a finite set
  • Date: Fri, 6 May 2011 14:00:31 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=t5EgxRnwpJTV5qSpOAgCeqBsSsj0cvwt3jpr3sgzCOvwy0T4z+Twx1p/cnvSPMlKyP 6ExygVGwbmQRr6t4LnrvOPlmKwoCjYuaa99q0eGWwDsDL+No6qHEfGjVDePQrY4IWow2 PCCnAMbK7LfSLo3nfX28M/UBBpCOAcb7AJV1M=

Sebastien Briais also used the following trick:

Assume an arbitrary set and a list over that set, and consider the set
of elements of that list.

Variable U: Set.
Variable X: list U.
Goal forall x, In x U -> x = x.
...

Depending on what you want to do, this might do the job.

Damien


2011/5/6 Vincent 
<vincent.siles AT gmail.com>:
> Hi Gyesik,
> I think the two usual ways to do this in Coq is to use the Finite
> predicate (Finite_sets.v),
> or to use the FSet Module interface.
>
> There are some new attempts to define Finite sets with Co-Inductive or
> Accessibility-like
> predicates, but they are still under investigation, and they are not
> in the stdlib.
>
> Cheers,
> Vincent
>
>
> 2011/5/6 Gyesik Lee 
> <leegys AT gmail.com>:
>> Hi,
>>
>> many languages are based on a finite set of symbols.
>> I am wondering how to represent phrases such as "Let L be a finite set
>> of constants".
>> On paper, we usually say, L is indexed by numbers less than a natural 
>> number.
>> Is there a simple, intuitive way to do the same thing in Coq?
>> Any help will be appreciated.
>>
>> Gyesik
>>
>



Archive powered by MhonArc 2.6.16.

Top of Page