#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 jmantysalo):

 Replying to [comment:29 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:

 True. Hence my branch needs correcting.

 I think that this relates also with `sublattice()` and
 `random_maximal_sublattice()` (see #18562). Should there be "public"
 functions on `lattices.py` returning lists? This would be kind of
 optimization for some computations. Other way is to have them on
 `hasse_diagram.py`, so that advanced user might use them directly.

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