#15621: Implement regular partition tuples
-------------------------------------+-------------------------------------
       Reporter:  tscrim             |        Owner:  sage-combinat
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.10
      Component:  combinatorics      |   Resolution:
       Keywords:  regular partition  |    Merged in:
  tuples                             |    Reviewers:
        Authors:  Travis Scrimshaw   |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  809cc130b52b00c21f14e57ff2b8296f60dafaed
  public/combinat/regular_partition_tuples|     Stopgaps:
   Dependencies:  #15525             |
-------------------------------------+-------------------------------------
Changes (by tscrim):

 * status:  needs_info => needs_review


Comment:

 Replying to [comment:16 andrew.mathas]:
 >
 > > I noticed an inconsistency with this. In particular, we currently
 have:-
 > > {{{
 > > sage: la = Partition([3,3,1])
 > > sage: PT = PartitionTuples()
 > > sage: la in PT
 > > }}}
 > > So either we should have my change where the quoted example should be
 `True`, or we change it so that the example I gave returns `False`. Which
 would you prefer?
 >
 > Yes, this is certainly a bug. I would prefer the following:
 > {{{
 > sage: Partition([3,3,1]) in PartitionTuples()
 > True
 > sage: [3,3,1] in PartitionTuples()
 > True   # ** currently returns False
 > }}}
 > I am not sure if this is compatible with what you are proposing.

 Yes it is as `__contains__` does not have to mean the checked object is an
 honest element of the parent. However it's just the output when passed
 through `PartitionTuples()` will be a tuple of size 1:
 {{{
 sage: PT = PartitionTuples()
 sage: [3,3,1] in PT
 True
 sage: PT([3,3,1])
 ([3, 3, 1])
 }}}
 I was worried about which way you wanted given your statement on
 comment:3.

 However I will add a conversion from level 1 partition tuples to the
 corresponding set of partitions.

--
Ticket URL: <http://trac.sagemath.org/ticket/15621#comment:17>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to