Simplicial complexes #
In this file, we define simplicial complexes in π
-modules. A simplicial complex is a collection
of simplices closed by inclusion (of vertices) and intersection (of underlying sets).
We model them by a downward-closed set of affine independent finite sets whose convex hulls "glue nicely", each finite set and its convex hull corresponding respectively to the vertices and the underlying set of a simplex.
Main declarations #
SimplicialComplex π E
: A simplicial complex in theπ
-moduleE
.SimplicialComplex.vertices
: The zero dimensional faces of a simplicial complex.SimplicialComplex.facets
: The maximal faces of a simplicial complex.
Notation #
s β K
means that s
is a face of K
.
K β€ L
means that the faces of K
are faces of L
.
Implementation notes #
"glue nicely" usually means that the intersection of two faces (as sets in the ambient space) is a
face. Given that we store the vertices, not the faces, this would be a bit awkward to spell.
Instead, SimplicialComplex.inter_subset_convexHull
is an equivalent condition which works on the
vertices.
TODO #
Simplicial complexes can be generalized to affine spaces once ConvexHull
has been ported.
A simplicial complex in a π
-module is a collection of simplices which glue nicely together.
Note that the textbook meaning of "glue nicely" is given in
Geometry.SimplicialComplex.disjoint_or_exists_inter_eq_convexHull
. It is mostly useless, as
Geometry.SimplicialComplex.convexHull_inter_convexHull
is enough for all purposes.
the faces of this simplicial complex: currently, given by their spanning vertices
- not_empty_mem : β β self.faces
the empty set is not a face: hence, all faces are non-empty
- indep {s : Finset E} : s β self.faces β AffineIndependent π Subtype.val
the vertices in each face are affine independent: this is an implementation detail
faces are downward closed: a non-empty subset of its spanning vertices spans another face
- inter_subset_convexHull {s t : Finset E} : s β self.faces β t β self.faces β (convexHull π) βs β© (convexHull π) βt β (convexHull π) (βs β© βt)
Instances For
A Finset
belongs to a SimplicialComplex
if it's a face of it.
Equations
- Geometry.SimplicialComplex.instMembershipFinset = { mem := fun (K : Geometry.SimplicialComplex π E) (s : Finset E) => s β K.faces }
The underlying space of a simplicial complex is the union of its faces.
Equations
- K.space = β s β K.faces, (convexHull π) βs
Instances For
The conclusion is the usual meaning of "glue nicely" in textbooks. It turns out to be quite
unusable, as it's about faces as sets in space rather than simplices. Further, additional structure
on π
means the only choice of u
is s β© t
(but it's hard to prove).
Construct a simplicial complex by removing the empty face for you.
Equations
- Geometry.SimplicialComplex.ofErase faces indep down_closed inter_subset_convexHull = { faces := faces \ {β }, not_empty_mem := β―, indep := β―, down_closed := β―, inter_subset_convexHull := β― }
Instances For
Construct a simplicial complex as a subset of a given simplicial complex.
Equations
- K.ofSubcomplex faces subset down_closed = { faces := faces, not_empty_mem := β―, indep := β―, down_closed := β―, inter_subset_convexHull := β― }
Instances For
Vertices #
The vertices of a simplicial complex are its zero dimensional faces.
Instances For
A face is a subset of another one iff its vertices are.
Facets #
A facet of a simplicial complex is a maximal face.
Equations
Instances For
The complex consisting of only the faces present in both of its arguments.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Geometry.SimplicialComplex.instSemilatticeInf π E = SemilatticeInf.mk (fun (x1 x2 : Geometry.SimplicialComplex π E) => x1 β x2) β― β― β―
Equations
- Geometry.SimplicialComplex.hasBot π E = { bot := { faces := β , not_empty_mem := β―, indep := β―, down_closed := β―, inter_subset_convexHull := β― } }
Equations
- Geometry.SimplicialComplex.instOrderBot π E = OrderBot.mk β―
Equations
- Geometry.SimplicialComplex.instInhabited π E = { default := β₯ }