#18511: LatticePoset: add has_sublattice()
-------------------------------------+-------------------------------------
       Reporter:  jmantysalo         |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.8
      Component:  combinatorics      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jori Mäntysalo     |    Reviewers:  Nathann Cohen, Darij
Report Upstream:  N/A                |  Grinberg
         Branch:                     |  Work issues:
  public/ticket/18511                |       Commit:
   Dependencies:                     |  0ef0050b3b959c2115dc9a433d80c62dda905f8f
                                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by ncohen):

 > But it would mean that after `L1=LatticePoset({1:[2]}); L2=L2.dual()` we
 would have `L2` ''not'' a subposet of L1 but `L1.has_sublattice(L2)` would
 return `True`.

 Right, right. And returning `True` is precisely what your branch does:

 {{{
 sage: L1=LatticePoset({1:[2]})
 sage: L2=L1.dual()
 sage: L1.has_sublattice(L2)
 True
 }}}

 Nathann

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