#18511: LatticePoset: add is_sublattice()
-------------------------------------+-------------------------------------
       Reporter:  jmantysalo         |        Owner:
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-wishlist
      Component:  combinatorics      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jori Mäntysalo     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jmantysalo/latticeposet__add_is_sublattice__|  
c3e1c19e4e7c8c1a666a755c96bb5a23ea921b1a
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jmantysalo):

 Replying to [comment:3 ncohen]:

 > the way it is implemented, your function works for both. And I do not
 personally mind if  `is_sublattice`  also works on lists.

 OK. How about the name of the function?

 > On the other hand, with the current implementation the antichain on 5
 elements is a sublattice of the chain on 5 elements.

 ??

 {{{
 sage: L=Posets.ChainPoset(5)
 sage: M=Posets.AntichainPoset(5)
 sage: L.is_sublattice(M)
 False
 }}}

 Replying to [comment:6 ncohen]:

 > I mean the `hasse_diagram.is_sublattice` which is called by
 `Lattice.is_sublattice` but does not check that 'other' is a subposet of
 self.

 But that is checked on `lattices.py`. Isn't it slower to access elements
 of _hasse_diagram on a loop from another file?

--
Ticket URL: <http://trac.sagemath.org/ticket/18511#comment:7>
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