Subject: Ssreflect Users Discussion List
List archive
- From: Christian Doczkal <>
- To:
- Subject: RE: FSets with powerset operation
- Date: Tue, 03 Aug 2010 18:11:34 +0200
Hello
> More specifically, you should use the Choice interface, because it is
> more directly suited to your purposes, and is more general and more
> widely available than the Countable interface
> there’s a little theory of that developed by Cyril Cohen in quotient.v
> (but this is still experimental work-in-progress).
Is this available somewhere
> In your case this would amount to representing finite sets with
> something like
>
> Record { elems : seq T ; _ : uniq elems; elems == choose (perm_eq
> elems) elems }
>
> with T : choiceType.
Unfortunately?, I already had developed the theory up to the powerset
construction using sorted/contType. I just tried to port this to
choiceType wich worked nicely except for the definition of powerset.
My definition of powerset uses recursion on the sorted list and
therefore relies on the fact that the representation invariant is
preserved unter behead.
So how could one go about defining the powerset with this
representation.
--
Regards
Christian
- RE: FSets with powerset operation, Christian Doczkal, 08/03/2010
- RE: FSets with powerset operation, roconnor, 08/03/2010
- RE: FSets with powerset operation, Georges Gonthier, 08/03/2010
- <Possible follow-up(s)>
- RE: FSets with powerset operation, Georges Gonthier, 08/05/2010
Archive powered by MHonArc 2.6.18.