Skip to Content.
Sympa Menu

ssreflect - Re: [ssreflect] Fintype for the subsequences of a sequence

Subject: Ssreflect Users Discussion List

List archive

Re: [ssreflect] Fintype for the subsequences of a sequence


Chronological Thread 
  • From: Florent Hivert <>
  • To: Georges Gonthier <>
  • Cc: Assia Mahboubi <>, "" <>
  • Subject: Re: [ssreflect] Fintype for the subsequences of a sequence
  • Date: Tue, 29 Sep 2015 22:45:55 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:hudEbx3TxCRiUZUdsmDT+DRfVm0co7zxezQtwd8ZsegeLfad9pjvdHbS+e9qxAeQG96Lt7QZ1KGP7vuocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC04LqiKvrpsabSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6LoJvvRNWqTifqk+UacQTHF/azh0t4XXskzsQAyV6XYHGkoRlAZIAgXfpEX1WZHtsir3rMJ42SKAOtbxQ6xyUjOnufRFUhjt3QkDMCQ09n2fqs1ugbhH6EaPoxtlzojIJqGUKvdkYovZZ9JcS3AXDZUZbDBIHo7pN9hHNOEGJ+sN6tCl/1Y=

Dear Georges,

Many thanks for your detailed answer.

> - First, from the description of Florent's needs, it seems that his needs
> would be better addressed with Cyril Cohen's (still) forthcoming finmap
> library. The latter would let him represent sets of subsequences as finite
> sets over a choiceType, allowing him to combine them freely (say, to talk
> about the number of common subsequences of two different words), while also
> being able to use them as finTypes (say, for indexing a bigop).

Looks very promising for me ! Working in (Algebraic) Combinatorics, I always
have to consider finite subset of a countable set. So from what I just seen It
seems to fulfill my need.

> - Finally, let me recall some of the rationale for the
> eqType/choiceType/countType/finType hierarchy:
> - The adhoc_choiceType for seq_sub should be used with the cloning
> construct:
> Definition subseqs w := seq_sub (enum_subseqs w).
> ...
> Canonical subseqs_choiceType w := [choiceType of subseqs w for
> adhoc_seq_sub_choiceType _].
> Canonical subseqs_countType w := [countType of subseqs w for
> adhoc_seq_sub_finType _].
> Canonical subseqs_finType w := [countType of subseqs w for
> adhoc_seq_sub_finType _].
> ...
> As explained in the documentation, using an ad hoc structure may cause
> issues in contexts that use both choiceType and subType operations, e.g.,
> sigW and val.

I'm not following you. It seems from you and Assia's email that there is this
'adhoc_choiceType' structure but I can't find it (I'm using SSreflect and
MathComp 1.5 from <http://ssr.msr-inria.inria.fr/>). Is it in some development
version ? If so it this version accessible ?

> - Finally, I have to disagree with Florent's long proof of
> enum_subseqs_nil. There are very short non-computational proofs, using
> either enum1 and eq_enum, or perm_eq_small.

Thanks ! I missed those possibilities.

Regards,

Florent



Archive powered by MHonArc 2.6.18.

Top of Page