Finite bounded hypergraph complexes #
This file defines finite augmented complexes whose faces have cardinality at most a fixed rank.
Unlike Mathlib's PreAbstractSimplicialComplex, a HypergraphComplex includes the empty face and
records faces in finite cardinality levels. The conversions in this file identify bounded
pre-abstract simplicial complexes with finitely many faces with these finite graded complexes after
forgetting or adjoining the empty face. Neither conversion requires a finite ambient vertex type.
Use HypergraphComplex.ofPreAbstractSimplicialComplex to construct a finite graded complex and
HypergraphComplex.toPreAbstractSimplicialComplex to forget its empty face and grading.
The grading uses face cardinality: a triple lies in level 3, corresponding to simplicial
dimension 2.
A finite augmented complex of rank r on V.
Its level k is a finite collection of k-element faces, the collections are downward closed,
and the empty face belongs to level zero.
The faces of cardinality
k, fork ≤ r.Every face in level
khas cardinalityk.- down_closed (k : ℕ) (hk : k ≤ r) (s : Finset V) : s ∈ self.faces k hk → ∀ t ⊆ s, ∀ (htr : t.card ≤ r), t ∈ self.faces t.card htr
Every subset of a face occurs in the level given by its cardinality.
The empty face belongs to every complex.
Instances For
The empty face is the unique face in level zero.
Forget the empty face and finite grading of a hypergraph complex.
The resulting Mathlib complex consists of exactly the nonempty faces of the graded complex.
Instances For
The underlying pre-abstract simplicial complex contains exactly the nonempty graded faces.
Every face of the underlying pre-abstract simplicial complex has cardinality at most the rank.
Forgetting the empty face leaves finitely many faces, even on an infinite ambient type.
Keep the faces of cardinality at most r of a finite precomplex and adjoin the empty face.
On a finite ambient type, the finiteness proof can be supplied by Set.toFinite _.
With an expected HypergraphComplex r V type, use .ofPreAbstractSimplicialComplex K hfinite.
Instances For
The finite conversion adds exactly the empty face and groups faces by cardinality.
Adjoining and then forgetting the empty face recovers the original finite precomplex.
Forgetting and then adjoining the empty face recovers the finite graded complex, including rank zero.