Combinatorial equivalence, cells, manifolds, triangulated manifolds, and complex connectivity
DefinitionMoise_Ch0_Ch1_ExtraDefines combinatorial equivalence Moise.IsCombinatoriallyEquivalent, -cells Moise.IsCell, combinatorial -cells Moise.IsCombinatorialCell, topological -manifolds with boundary Moise.IsTopologicalManifoldWithBoundary, manifold boundary Moise.manifoldBoundary and interior Moise.manifoldInterior, triangulated -manifolds Moise.IsTriangulatedManifold, combinatorial boundary Moise.combinatorialBoundary (Moise Ch. 0), and connectivity of Euclidean complexes Moise.EuclideanComplex.IsConnected (Moise Ch. 1).
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Geometry.Manifold.Instances.Real
import Definitions.Def_Moise_EuclideanComplex
namespace Moise
/-- Two Euclidean complexes `K₁` and `K₂` are combinatorially equivalent (Moise, Ch. 0) if they
have subdivisions `K₁'` and `K₂'` related by a homeomorphism `f : |K₁'| ≃ₜ |K₂'|` such that both
`f` and `f.symm` are simplicial maps. -/
def IsCombinatoriallyEquivalent {n m : ℕ}
(K₁ : EuclideanComplex n) (K₂ : EuclideanComplex m) : Prop :=
∃ (K₁' : EuclideanComplex n) (K₂' : EuclideanComplex m)
(_ : K₁'.IsSubdivision K₁) (_ : K₂'.IsSubdivision K₂)
(f : K₁'.polyhedron ≃ₜ K₂'.polyhedron),
IsSimplicialMap K₁' K₂' f ∧ IsSimplicialMap K₂' K₁' f.symm
/-- A topological space `X` is an `n`-cell (Moise, Ch. 0) if it is homeomorphic to the closed
unit ball in `ℝⁿ`. -/
def IsCell (n : ℕ) (X : Type*) [TopologicalSpace X] : Prop :=
Nonempty (X ≃ₜ Metric.closedBall (0 : EuclideanSpace ℝ (Fin n)) 1)
/-- A Euclidean complex `K` in `ℝᵐ` is a combinatorial `n`-cell (Moise, Ch. 0) if it is
PL-homeomorphic to a complex consisting of an `n`-simplex and all of its faces. -/
def IsCombinatorialCell (n : ℕ) {m : ℕ} (K : EuclideanComplex m) : Prop :=
∃ (K₀ : EuclideanComplex (n + 1)) (σ : Simplex (n + 1)),
σ.dim = n ∧
K₀.simplices = {τ : Simplex (n + 1) | τ.IsFace σ} ∧
∃ f : K.polyhedron ≃ₜ K₀.polyhedron, IsPLHomeomorph K K₀ f
/-- A topological space `M` is an `n`-manifold with boundary (Moise, Ch. 0) if it is Hausdorff,
second-countable, and every point has an open neighborhood homeomorphic to an open subset of
the closed upper half-space `{y ∈ ℝⁿ | 0 ≤ y₀}` (for `n > 0`, or `ℝ⁰` for `n = 0`). -/
def IsTopologicalManifoldWithBoundary (n : ℕ) (M : Type*) [TopologicalSpace M] : Prop :=
T2Space M ∧ SecondCountableTopology M ∧
∀ x : M, ∃ (U : Set M) (V : Set (EuclideanSpace ℝ (Fin n))),
IsOpen U ∧ x ∈ U ∧ IsOpen V ∧
Nonempty (U ≃ₜ {y ∈ V | ∀ h : 0 < n, 0 ≤ y ⟨0, h⟩})
/-- The boundary of a topological `n`-manifold `M` (Moise, Ch. 0): points admitting a half-space
chart sending them to the boundary hyperplane `{y₀ = 0}` (empty when `n = 0`). -/
def manifoldBoundary (n : ℕ) (M : Type*) [TopologicalSpace M] : Set M :=
{x : M | ∃ (U : Set M) (V : Set (EuclideanSpace ℝ (Fin n)))
(_ : IsOpen U) (hxU : x ∈ U) (_ : IsOpen V)
(φ : U ≃ₜ {y ∈ V | ∀ h : 0 < n, 0 ≤ y ⟨0, h⟩}) (h : 0 < n),
(φ ⟨x, hxU⟩).1 ⟨0, h⟩ = 0}
/-- The interior of a topological `n`-manifold `M` (Moise, Ch. 0): the complement of its
boundary. -/
def manifoldInterior (n : ℕ) (M : Type*) [TopologicalSpace M] : Set M :=
(manifoldBoundary n M)ᶜ
/-- A Euclidean complex `K` in `ℝᵐ` is a triangulated `n`-manifold (Moise, Ch. 0) if its
polyhedron `|K|` is a topological `n`-manifold with boundary. -/
def IsTriangulatedManifold (n : ℕ) {m : ℕ} (K : EuclideanComplex m) : Prop :=
IsTopologicalManifoldWithBoundary n K.polyhedron
/-- The combinatorial boundary of a triangulated `n`-manifold `K` (Moise, Ch. 0): for `n ≥ 1`,
the simplices of `K` that are faces of some `(n - 1)`-simplex lying in at most one `n`-simplex
of `K` (empty when `n = 0`). -/
def combinatorialBoundary (n : ℕ) {m : ℕ} (K : EuclideanComplex m) : Set (Simplex m) :=
if 0 < n then
{σ ∈ K.simplices | ∃ τ ∈ K.simplices, τ.dim = n - 1 ∧ σ.IsFace τ ∧
Set.Subsingleton {ρ ∈ K.simplices | ρ.dim = n ∧ τ.IsFace ρ}}
else ∅
/-- A Euclidean complex `K` is connected (Moise, Ch. 1) if it is nonempty and cannot be written
as the union of two nonempty, disjoint Euclidean subcomplexes. -/
def EuclideanComplex.IsConnected {n : ℕ} (K : EuclideanComplex n) : Prop :=
K.simplices.Nonempty ∧
∀ K₁ K₂ : EuclideanComplex n,
K₁.simplices.Nonempty → K₂.simplices.Nonempty →
K₁.simplices ∪ K₂.simplices = K.simplices →
(K₁.simplices ∩ K₂.simplices).Nonempty
end Moise
Read-back
What the Lean code literally says, in plain math · gemini-4-hydrogen-medium
Throughout these definitions, for , denotes the -dimensional Euclidean space; a simplex in consists of a finite, nonempty, affinely independent vertex set , with geometric carrier (its -convex hull), dimension , and face relation meaning ; a Euclidean complex in consists of a set of simplices in that is locally finite (every point of has an open neighborhood meeting for only finitely many ), closed under faces, and such that any two simplices in whose carriers intersect have intersection equal to the carrier of a common face in , with polyhedron carrying the subspace topology (note that and are allowed).
IsCombinatoriallyEquivalent: Given , a Euclidean complex in , and a Euclidean complex in , and are combinatorially equivalent if there exist Euclidean complexes in and in that are subdivisions of and respectively (meaning and every simplex carrier of is contained in some simplex carrier of ), together with a homeomorphism such that both and are simplicial maps (where a map is simplicial if for every there exist and an -affine map between the ambient Euclidean spaces sending into and agreeing with on ). Edge cases , , and empty complexes are included.
IsCell: Given and a topological space , is an -cell if there exists a homeomorphism between and the closed unit ball with the subspace topology from . When , and its closed unit ball are singletons, so a -cell is any one-point space.
IsCombinatorialCell: Given and a Euclidean complex in , is a combinatorial -cell if there exist a Euclidean complex in and a simplex in such that , , and there exists a homeomorphism that is a PL map from to (meaning is continuous and there exist subdivisions of and of such that the induced map is simplicial; note that is not explicitly required to be a PL map). Both and are included.
IsTopologicalManifoldWithBoundary: Given and a topological space , is a topological -manifold with boundary if is Hausdorff (), second-countable, and for every there exist an open set with , an open set , and a homeomorphism from (with the subspace topology) onto (with the subspace topology from , where is the -th coordinate of ). When , the condition is false so the target is ; if , the condition holds vacuously.
manifoldBoundary: Given and any topological space (not necessarily a manifold), manifoldBoundary n M is the subset of consisting of all for which there exist an open set with , an open set , a homeomorphism , and a proof that such that the -th coordinate of is . When , this set is .
manifoldInterior: Given and any topological space (not necessarily a manifold), manifoldInterior n M is the complement . When , it equals all of .
IsTriangulatedManifold: Given and a Euclidean complex in , is a triangulated -manifold if (with the subspace topology from ) satisfies IsTopologicalManifoldWithBoundary n |K|. Empty complexes and or are included.
combinatorialBoundary: Given and any Euclidean complex in (not necessarily a triangulated manifold), if , combinatorialBoundary n K is the set of simplices for which there exists with , , and such that has at most one element (possibly zero elements); if , it is .
EuclideanComplex.IsConnected: Given and a Euclidean complex in , is connected if and for all Euclidean complexes in with , , and , we have . Note that are Euclidean complexes (hence locally finite, face-closed, and satisfying the carrier-intersection axiom), and the union is on sets of simplices rather than polyhedra; if , is not connected.