Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplicity and simpliciality for CombinatorialPolyhedron #27086

Closed
kliem opened this issue Jan 21, 2019 · 37 comments
Closed

Simplicity and simpliciality for CombinatorialPolyhedron #27086

kliem opened this issue Jan 21, 2019 · 37 comments

Comments

@kliem
Copy link
Contributor

kliem commented Jan 21, 2019

We add a function to CombinatorialPolyhedron that returns the largest k such that the polyhedron is k-simple/k-simplicial.

Depends on #28606

CC: @jplab

Component: geometry

Keywords: Polyhedron, CombinatorialPolyhedron, simple, simplicial, flag

Author: Jonathan Kliem

Branch/Commit: a19efd6

Reviewer: Jean-Philippe Labbé, Laith Rastanawi

Issue created by migration from https://trac.sagemath.org/ticket/27086

@kliem kliem added this to the sage-8.7 milestone Jan 21, 2019
@kliem
Copy link
Contributor Author

kliem commented Feb 8, 2019

Changed keywords from Polyhedron, CombinatorialPolyhedron, simple, simplicial to Polyhedron, CombinatorialPolyhedron, simple, simplicial, flag

@kliem

This comment has been minimized.

@kliem kliem changed the title Add simpliciality and simpliness to CombinatorialPolyhedron More functions for CombinatorialPolyhedron Feb 8, 2019
@kliem

This comment has been minimized.

@kliem
Copy link
Contributor Author

kliem commented Feb 18, 2019

comment:4

Posting this example, so I won't forget:

An example for simpliness and simpliciality could look like this:

sage: for i in Combinations(6,3):
....:     x.append(list(Integer(j in i) for j in range(6)))
....: P = Polyhedron(vertices=x)
....: C = CombinatorialPolyhedron(P)
....: C.simpliness()
4
....: C.simpliciality()
2
....: C.dimension()
5

One can replace 6 by n and this will alter 4 to n-2 and 5 to n-1.

(This example is taken from lecture notes from Günter M. Ziegler.)

@embray
Copy link
Contributor

embray commented Mar 25, 2019

comment:5

Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually)

@embray embray modified the milestones: sage-8.7, sage-8.8 Mar 25, 2019
@kliem kliem removed this from the sage-8.8 milestone Jun 14, 2019
@kliem

This comment has been minimized.

@kliem kliem added this to the sage-9.0 milestone Oct 16, 2019
@kliem kliem changed the title More functions for CombinatorialPolyhedron Simpliness and simpliciality for CombinatorialPolyhedron Oct 16, 2019
@kliem
Copy link
Contributor Author

kliem commented Oct 16, 2019

Changed dependencies from #26887 to #28606

@kliem
Copy link
Contributor Author

kliem commented Oct 16, 2019

Author: Jonathan Kliem

@kliem
Copy link
Contributor Author

kliem commented Oct 16, 2019

Commit: 9f6f172

@kliem
Copy link
Contributor Author

kliem commented Oct 16, 2019

Branch: public/27086

@kliem
Copy link
Contributor Author

kliem commented Oct 16, 2019

Last 10 new commits:

37592f9replace attributes by methods; remove empty folder from source
e865f9dremoved attribute Vinv, as its not being used
84ef31badded docstrings to the new methods
588afa4removed method for Vinv
531222dunbounded(self) -> is_bounded(self); _unbounded -> _bounded
fb93bedpartly added simpliness
c8c49c5fixed small mistake in header file
2f0b931Merge branch 'public/28606' of git://trac.sagemath.org/sage into public/27086
1fc57e3method simpliciality
9f6f172method simpliness

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 16, 2019

Changed commit from 9f6f172 to 6ec5053

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 16, 2019

Branch pushed to git repo; I updated commit sha1. New commits:

6ec5053cached the results; opted out when discovering not 2-simple/simplicial

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 16, 2019

Branch pushed to git repo; I updated commit sha1. New commits:

6fd5b2ausing cached_method as described in #12951

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 16, 2019

Changed commit from 6ec5053 to 6fd5b2a

@jplab
Copy link

jplab commented Oct 21, 2019

comment:12

I believe that 'simplicity' is more appropriate than simpliness.

@jplab
Copy link

jplab commented Oct 21, 2019

Reviewer: Jean-Philippe Labbé

@kliem
Copy link
Contributor Author

kliem commented Oct 28, 2019

Last 10 new commits:

2e3e464removed empty folder being created in source
7701062removed attribute Vinv, as its not being used
1b17f6eadded docstrings to the new methods
c51cdd9removed method for Vinv
dd21f9capplied changes of 28605 to new code from 28625
4f49eacundid change to module list
0f3b121replace attributes by methods; remove attribute Vinv
6550083unbounded(self) -> is_bounded(self); _unbounded -> _bounded
8aaaef5unbounded(self) -> is_bounded(self); _unbounded -> _bounded
e36b271added simplicity and simpliciality to CombinatorialPolyhedron

@kliem
Copy link
Contributor Author

kliem commented Oct 28, 2019

Changed commit from 50eeaf6 to e36b271

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 28, 2019

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

b0eac08replace attributes by methods; remove attribute Vinv
e44a557unbounded(self) -> is_bounded(self); _unbounded -> _bounded
8e8ac4eadded simplicity and simpliciality to CombinatorialPolyhedron

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 28, 2019

Changed commit from e36b271 to 8e8ac4e

@kliem
Copy link
Contributor Author

kliem commented Dec 13, 2019

comment:17

Rebased again.


New commits:

f131286added simplicity and simpliciality to CombinatorialPolyhedron

@kliem
Copy link
Contributor Author

kliem commented Dec 13, 2019

Changed commit from 8e8ac4e to f131286

@kliem
Copy link
Contributor Author

kliem commented Dec 13, 2019

Changed branch from public/27086-reb to public/27086-reb2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2019

Changed commit from f131286 to 2113b47

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 13, 2019

Branch pushed to git repo; I updated commit sha1. New commits:

2113b47took into account the changes from #28614

@embray
Copy link
Contributor

embray commented Jan 6, 2020

comment:19

Ticket retargeted after milestone closed

@embray embray modified the milestones: sage-9.0, sage-9.1 Jan 6, 2020
@LaisRast
Copy link

comment:20

In simplicity method:

  • I suggest to change the definition of k-simple. Using the definition you give, one needs to know P/F.
-        A polytope `P` is `k`-simple, if for every face `F`
-        of codimension `k` the polytope `P/F` is simple.
+        A polytope `P` is `k`-simple, if every `(d-1-k)`-face
+        is contained in `k+1` facets of `P` for `1 <= k <= d-1`.
  • coface instead of face:
            if face_iter.n_atom_rep() == d + 1:
-                # The current face is a simplex.
+                # The current coface is a simplex.
                face_iter.ignore_supfaces()
  • Since you are dealing with cofaces, maybe you need to do the following change
-        cdef FaceIterator face_iter = self._face_iter(True, -2)
+        cdef FaceIterator coface_iter = self._face_iter(True, -2)

@kliem
Copy link
Contributor Author

kliem commented Jan 10, 2020

Changed commit from 2113b47 to a19efd6

@kliem
Copy link
Contributor Author

kliem commented Jan 10, 2020

Changed branch from public/27086-reb2 to public/27086-reb3

@kliem
Copy link
Contributor Author

kliem commented Jan 10, 2020

New commits:

dfa32fcadded simplicity and simpliciality to CombinatorialPolyhedron
e47a144took into account the changes from #28614
a19efd6small changes improving readibilty of code

@LaisRast
Copy link

comment:22

I believe it is good to go.

@LaisRast
Copy link

Changed reviewer from Jean-Philippe Labbé to Jean-Philippe Labbé, Laith Rastanawi

@vbraun
Copy link
Member

vbraun commented Jan 11, 2020

Changed branch from public/27086-reb3 to a19efd6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants