Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Lightlike.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,9 @@ import Lightlike.PL.Pachner
import Lightlike.PL.PachnerMain
import Lightlike.PL.PachnerMoves
import Lightlike.PL.PachnerPL
import Lightlike.PL.MoveDimension
import Lightlike.PL.StellarBoundary
import Lightlike.PL.VertexRelabel
import Lightlike.PL.Polygon
import Lightlike.PL.PolygonInside
import Lightlike.PL.PolygonTriangle
Expand Down Expand Up @@ -1326,6 +1329,9 @@ import Lightlike.PL.Surface
import Lightlike.PL.Tests
import Lightlike.PL.Tests4
import Lightlike.PL.TestsPachner
import Lightlike.PL.TestsMoveDimension
import Lightlike.PL.TestsStellarBoundary
import Lightlike.PL.TestsVertexRelabel
import Lightlike.PL.TestsNewman
import Lightlike.PL.TestsPolygon
import Lightlike.PL.TestsK33
Expand Down
15 changes: 14 additions & 1 deletion Lightlike/PL/API-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ only if they are stellar equivalent" and prove it without topology {3}. Newman's
gives the version with PL homeomorphism in place of stellar equivalence: PL homeomorphic complexes
are stellar equivalent [21]. Combined with the stellar version, closed combinatorial manifolds are
PL homeomorphic exactly when they are related by bistellar moves, for complexes with the empty
face [22].
face [22]. On a closed combinatorial `n`-manifold every bistellar move `κ(A, B)` has `#A + #B = n + 2`,
so it is a move of Lickorish's Definition 2.3 [72]. No complex is both a stellar ball and a stellar sphere, and
for a stellar `n`-manifold the faces whose link is a stellar ball, and the faces whose link is not a
stellar sphere, are both empty exactly when it is a closed combinatorial `n`-manifold [73]. Relabellings by maps
injective on the vertices preserve stellar equivalence and closed combinatorial manifolds, and
transport bistellar equivalence between complexes on different vertex types [74].

Towards Newman's theorem, the library slices a geometric complex by affine functionals into cells,
each with a closed part, an open part and a chosen interior point [8]. For a slicing, the closed
Expand Down Expand Up @@ -223,6 +228,14 @@ interior point, and of loops about points outside them [66]. The Jordan curve th
70. Lightlike/PL/Realisation.lean - `PL.SComplex.isGeom_real`
71. Lightlike/PL/Links.lean - `PL.SComplex.IsPLSphere.isClosedCombManifold`,
`PL.SComplex.IsClosedCombManifold.link_face`
72. Lightlike/PL/MoveDimension.lean - `PL.SComplex.IsClosedCombManifold.card_add_card_of_isBistellar`
73. Lightlike/PL/StellarBoundary.lean - `PL.SComplex.IsStellarBall`, `PL.SComplex.IsStellarSphere`,
`PL.SComplex.not_isStellarBall_and_isStellarSphere`, `PL.SComplex.stellarBoundary`,
`PL.SComplex.stellarBoundary'`, `PL.SComplex.IsCombManifold.stellarBoundary_eq_empty_iff`,
`PL.SComplex.IsCombManifold.stellarBoundary'_eq_empty_iff`
74. Lightlike/PL/VertexRelabel.lean - `PL.SComplex.IsRelabelling`, `PL.SComplex.StellarEquivIn.image_iso`,
`PL.SComplex.StellarEquivIn.image₂`, `PL.SComplex.StellarEquiv.image`,
`PL.SComplex.IsClosedCombManifold.image`, `PL.SComplex.bistellarEquiv_iff_of_isRelabelling`

## References

Expand Down
7 changes: 6 additions & 1 deletion Lightlike/PL/Complex.lean
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ open Finset
namespace Lightlike.PL

/-- A **finite abstract simplicial complex** on the vertex type `V`: a finite family of finite
vertex sets closed under subsets. The empty set is a face of every non-void complex. -/
vertex sets closed under subsets. The empty set is a face of every non-void complex.

Finiteness is needed: the quadrant `[0, ∞)²` cut into unit squares, every square split along its `/` diagonal,
versus every square split along its `\` diagonal, are PL homeomorphic, but no finite sequence of bistellar moves
and isomorphisms joins them. The boundary is essential: on the whole plane the two grids are mirror images, hence
isomorphic. -/
@[ext]
structure SComplex (V : Type*) where
/-- The faces, as finite vertex sets. -/
Expand Down
39 changes: 39 additions & 0 deletions Lightlike/PL/MoveDimension.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import Lightlike.PL.PachnerPL

/-!
# The dimension of a bistellar move on a closed combinatorial manifold

`IsBistellar K A B` asks only that `A` and `B` be nonempty, disjoint, that `lk(A, K) = ∂B` and that
`B` not be a face. On a closed combinatorial `n`-manifold the link of a nonempty face `A` is a sphere
on `n + 2 − #A` vertices (`IsClosedCombManifold.link_face`), and the boundary of the simplex `B` is
a sphere on `#B` vertices; stellar equivalent complexes have the same dimension
(`StellarEquivIn.maxCard_eq`). So `#A + #B = n + 2`
(`IsClosedCombManifold.card_add_card_of_isBistellar`): `A` is an `r`-simplex and `B` an
`(n − r)`-simplex, and on closed combinatorial manifolds the moves are exactly those of Lickorish's
Definition 2.3 (*Simplicial moves on complexes and manifolds*, 1999).
-/

open Finset

namespace Lightlike.PL

namespace SComplex

variable {V : Type*} [DecidableEq V]

/-- **The dimension of a bistellar move**: on a closed combinatorial `n`-manifold, a bistellar move
`κ(A, B)` has `#A + #B = n + 2`, i.e. `dim A + dim B = n`. -/
theorem IsClosedCombManifold.card_add_card_of_isBistellar {n : ℕ} {K : SComplex V}
(hK : IsClosedCombManifold n K) {A B : Finset V} (h : IsBistellar K A B) : #A + #B = n + 2 := by
obtain ⟨C, hC, hLC⟩ := hK.link_face h.mem h.nonempty_left
rw [h.link_eq, lift_boundary] at hLC
have hA := hK.card_le h.mem
have hCne : C.Nonempty := card_pos.1 (by omega)
have hmc := hLC.maxCard_eq
rw [maxCard_boundary (h.nonempty_right.map), maxCard_boundary hCne, card_map] at hmc
have hB := card_pos.2 h.nonempty_right
omega

end SComplex

end Lightlike.PL
7 changes: 6 additions & 1 deletion Lightlike/PL/PachnerMain.lean
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,12 @@ theorem StellarEquivIn.bistellarEquivIn [Infinite V] {n : ℕ} {K L : SComplex V
iff related by bistellar moves** (no renamings of the vertices are needed). The closed
combinatorial manifolds are the stellar ones of `Lightlike/PL/Manifold.lean` (Lickorish 1999,
Definition 3.1). Lickorish's Theorem 5.9 (Newman, Pachner) has "PL homeomorphic" in place of
"stellar equivalent"; that form is `pachner_plHomeomorphic`, from this theorem and Newman's theorem. -/
"stellar equivalent"; that form is `pachner_plHomeomorphic`, from this theorem and Newman's theorem.

The complexes are finite (`SComplex`). Finiteness is needed: the quadrant `[0, ∞)²` cut into unit squares, every square split along its `/` diagonal,
versus every square split along its `\` diagonal, are PL homeomorphic, but no finite sequence of bistellar moves
and isomorphisms joins them. The boundary is essential: on the whole plane the two grids are mirror images, hence
isomorphic. -/
theorem pachner {n : ℕ} {K L : SComplex V} (hK : IsClosedCombManifold n K) :
StellarEquiv K L ↔ BistellarEquiv K L :=
⟨fun h => StellarEquivIn.bistellarEquivIn h (isMfdIn_false_iff.2 hK),
Expand Down
135 changes: 135 additions & 0 deletions Lightlike/PL/StellarBoundary.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
import Lightlike.PL.Links
import Lightlike.PL.Euler

/-!
# Balls, spheres and the boundary of a stellar manifold

Following Lickorish (*Simplicial moves on complexes and manifolds*, 1999, Definition 3.1), a
**stellar ball** is a complex stellar equivalent to a simplex `Δᵐ` (`m ≥ 0`) and a **stellar sphere**
is a complex stellar equivalent to the boundary `∂Δᵐ⁺¹` of a simplex (`m ≥ −1`; the `(−1)`-sphere
`∂Δ⁰ = {∅}` is the link of a top face, as in Lickorish's Definition 2.3). Stellar equivalence is
measured after lifting to `V ⊕ ℕ`, as for `StellarEquiv`.

* `not_isStellarBall_and_isStellarSphere`: **no complex is both a stellar ball and a stellar sphere**,
in any dimensions: the signed face count (an Euler characteristic, `signedCount`) is a stellar
invariant, `0` for a simplex and `−(−1)^{#A} ≠ 0` for the boundary of the simplex on `A`.
* `stellarBoundary K`: the nonempty faces of `K` whose link is a stellar ball (Lickorish, p. 305);
`stellarBoundary' K`: the nonempty faces whose link is not a stellar sphere.
* `IsCombManifold.stellarBoundary_eq_empty_iff`, `IsCombManifold.stellarBoundary'_eq_empty_iff`: for
a stellar `n`-manifold `K` (`IsCombManifold n K`, Definition 3.1), each boundary is empty exactly
when `K` is a closed combinatorial `n`-manifold.
-/

open Finset

namespace Lightlike.PL

namespace SComplex

variable {V : Type*} [DecidableEq V]

/-- `K` is a **stellar ball**: stellar equivalent (after lifting to `V ⊕ ℕ`) to a simplex on a
nonempty vertex set. -/
def IsStellarBall (K : SComplex V) : Prop :=
∃ A : Finset (V ⊕ ℕ), A.Nonempty ∧ StellarEquivIn K.lift (simplex A)

/-- `K` is a **stellar sphere**: stellar equivalent (after lifting to `V ⊕ ℕ`) to the boundary of a
simplex on a nonempty vertex set (the boundary of a single vertex is the `(−1)`-sphere `{∅}`). -/
def IsStellarSphere (K : SComplex V) : Prop :=
∃ A : Finset (V ⊕ ℕ), A.Nonempty ∧ StellarEquivIn K.lift (boundary A)

/-- **No complex is both a stellar ball and a stellar sphere**, in any dimensions: a stellar
equivalence preserves the signed face count, which is `0` on a simplex and `−(−1)^{#A} ≠ 0` on the
boundary of the simplex on `A`. -/
theorem not_isStellarBall_and_isStellarSphere (K : SComplex V) :
¬ (IsStellarBall K ∧ IsStellarSphere K) := by
rintro ⟨⟨A, hA, hKA⟩, ⟨B, hB, hKB⟩⟩
have h := StellarEquivIn.signedCount_eq (StellarEquivIn.trans (StellarEquivIn.symm hKA) hKB)
rw [signedCount_simplex hA, signedCount_boundary hB] at h
rcases neg_one_pow_eq_or ℤ #B with h' | h' <;> rw [h'] at h <;> norm_num at h

/-- A stellar `m`-ball in the sense of `IsPLBall` is a stellar ball. -/
lemma IsPLBall.isStellarBall {m : ℕ} {K : SComplex V} (h : IsPLBall m K) : K.IsStellarBall := by
obtain ⟨A, hA, hKA⟩ := h
exact ⟨A, card_pos.1 (by omega), hKA⟩

/-- A stellar `m`-sphere in the sense of `IsPLSphere` is a stellar sphere. -/
lemma IsPLSphere.isStellarSphere {m : ℕ} {K : SComplex V} (h : IsPLSphere m K) : K.IsStellarSphere := by
obtain ⟨A, hA, hKA⟩ := h
exact ⟨A, card_pos.1 (by omega), hKA⟩

open Classical in
/-- The **boundary** of `K` (Lickorish, p. 305): the nonempty faces of `K` whose link is a stellar
ball. -/
noncomputable def stellarBoundary (K : SComplex V) : Finset (Finset V) :=
K.faces.filter fun σ => σ.Nonempty ∧ (K.link σ).IsStellarBall

open Classical in
/-- The nonempty faces of `K` whose link is **not a stellar sphere**. -/
noncomputable def stellarBoundary' (K : SComplex V) : Finset (Finset V) :=
K.faces.filter fun σ => σ.Nonempty ∧ ¬ (K.link σ).IsStellarSphere

open Classical in
lemma mem_stellarBoundary {K : SComplex V} {σ : Finset V} :
σ ∈ K.stellarBoundary ↔ σ ∈ K ∧ σ.Nonempty ∧ (K.link σ).IsStellarBall := by
simp [stellarBoundary]

open Classical in
lemma mem_stellarBoundary' {K : SComplex V} {σ : Finset V} :
σ ∈ K.stellarBoundary' ↔ σ ∈ K ∧ σ.Nonempty ∧ ¬ (K.link σ).IsStellarSphere := by
simp [stellarBoundary']

/-- On a closed combinatorial manifold every nonempty face has a stellar sphere as link. -/
lemma IsClosedCombManifold.isStellarSphere_link {n : ℕ} {K : SComplex V} (h : IsClosedCombManifold n K)
{σ : Finset V} (hσ : σ ∈ K) (hne : σ.Nonempty) : (K.link σ).IsStellarSphere := by
obtain ⟨A, hA, hLA⟩ := h.link_face hσ hne
have := h.card_le hσ
exact ⟨A, card_pos.1 (by omega), hLA⟩

/-- The first boundary lies in the second: a ball is not a sphere. -/
lemma stellarBoundary_subset (K : SComplex V) : K.stellarBoundary ⊆ K.stellarBoundary' := by
intro σ hσ
rw [mem_stellarBoundary] at hσ
rw [mem_stellarBoundary']
exact ⟨hσ.1, hσ.2.1, fun hs => not_isStellarBall_and_isStellarSphere _ ⟨hσ.2.2, hs⟩⟩

/-- **The boundary of a stellar manifold is empty exactly when the manifold is closed** (balls as
links): for `IsCombManifold n K`, `stellarBoundary K = ∅ ↔ IsClosedCombManifold n K`. -/
theorem IsCombManifold.stellarBoundary_eq_empty_iff {n : ℕ} {K : SComplex V} (hK : IsCombManifold n K) :
K.stellarBoundary = ∅ ↔ IsClosedCombManifold n K := by
constructor
· intro h0
rw [isClosedCombManifold_iff]
intro v hv
rcases isCombManifold_iff.1 hK v hv with hs | ⟨A, hA, hLA⟩
· exact hs
· rcases A.eq_empty_or_nonempty with rfl | hne
· refine ⟨{Sum.inr 0}, by simp [hA.symm], ?_⟩
rwa [boundary_singleton]
· exfalso
have hm : {v} ∈ K.stellarBoundary :=
mem_stellarBoundary.2 ⟨mem_verts.1 hv, singleton_nonempty v, ⟨A, hne, hLA⟩⟩
rw [h0] at hm
exact notMem_empty _ hm
· intro hc
refine eq_empty_of_forall_notMem fun σ hσ => ?_
have := stellarBoundary_subset K hσ
rw [mem_stellarBoundary'] at this
exact this.2.2 (hc.isStellarSphere_link this.1 this.2.1)

/-- **The faces with a non-sphere link**: for a stellar `n`-manifold `K`,
`IsClosedCombManifold n K ↔ stellarBoundary' K = ∅`. -/
theorem IsCombManifold.stellarBoundary'_eq_empty_iff {n : ℕ} {K : SComplex V} (hK : IsCombManifold n K) :
IsClosedCombManifold n K ↔ K.stellarBoundary' = ∅ := by
constructor
· intro hc
refine eq_empty_of_forall_notMem fun σ hσ => ?_
rw [mem_stellarBoundary'] at hσ
exact hσ.2.2 (hc.isStellarSphere_link hσ.1 hσ.2.1)
· intro h0
rw [← hK.stellarBoundary_eq_empty_iff]
exact subset_empty.1 (h0 ▸ stellarBoundary_subset K)

end SComplex

end Lightlike.PL
39 changes: 39 additions & 0 deletions Lightlike/PL/TestsMoveDimension.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import Lightlike.PL.MoveDimension
import Lightlike.PL.TestsPachner

/-!
# Trust checks for the dimension of a bistellar move

* On the boundary of the tetrahedron (a closed combinatorial 2-manifold) the 1-3 move on the
triangle `012` with the new vertex `4` has `#A + #B = 3 + 1 = 4 = n + 2`, as
`IsClosedCombManifold.card_add_card_of_isBistellar` says (non-vacuity).
* Wrong input: on the closed segment `simplex {0, 1}`, which is not a closed combinatorial
manifold, the move subdividing the edge at the new vertex `2` exists and has `#A + #B = 3`, so the
manifold hypothesis is not idle: for `n = 0` it would predict `2`.
-/

open Finset

namespace Lightlike.PL

open SComplex

/-- Non-vacuity: the theorem on the 1-3 move of the tetrahedron boundary. -/
example : #({0, 1, 2} : Finset (Fin 6)) + #({4} : Finset (Fin 6)) = 2 + 2 :=
(isClosedCombManifold_boundary (n := 2) (by decide +kernel)).card_add_card_of_isBistellar oct₁

/-- The edge subdivision of a closed segment: a bistellar move with `#A + #B = 3`. -/
lemma segment_move : (simplex ({0, 1} : Finset (Fin 3))).IsBistellar {0, 1} {2} where
nonempty_left := by decide +kernel
nonempty_right := by decide +kernel
disjoint := by decide +kernel
link_eq := by apply SComplex.ext; decide +kernel
notMem := by decide +kernel

/-- The closed segment is not a closed combinatorial `0`-manifold: the conclusion `#A + #B = 2`
fails for its edge subdivision. -/
example : ¬ IsClosedCombManifold 0 (simplex ({0, 1} : Finset (Fin 3))) := fun h => by
have := h.card_add_card_of_isBistellar segment_move
simp at this

end Lightlike.PL
55 changes: 55 additions & 0 deletions Lightlike/PL/TestsStellarBoundary.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import Lightlike.PL.StellarBoundary

/-!
# Trust checks for stellar balls, spheres and the boundary

* The triangle is a stellar ball and not a stellar sphere; its boundary is a stellar sphere and not
a stellar ball; `{∅}` (the `(−1)`-sphere) is a stellar sphere.
* The boundary of the tetrahedron (a closed combinatorial 2-manifold) has empty boundary.
* The triangle is a stellar 2-manifold whose boundary is not empty: the link of a vertex is an edge,
a ball, so it is not a closed combinatorial 2-manifold.
-/

open Finset

namespace Lightlike.PL

open SComplex

lemma isStellarBall_triangle : (simplex ({0, 1, 2} : Finset (Fin 4))).IsStellarBall :=
⟨({0, 1, 2} : Finset (Fin 4)).map Function.Embedding.inl, by simp, by
rw [lift_simplex]⟩

example : ¬ (simplex ({0, 1, 2} : Finset (Fin 4))).IsStellarSphere := fun h =>
not_isStellarBall_and_isStellarSphere _ ⟨isStellarBall_triangle, h⟩

lemma isStellarSphere_circle : (boundary ({0, 1, 2} : Finset (Fin 4))).IsStellarSphere :=
⟨({0, 1, 2} : Finset (Fin 4)).map Function.Embedding.inl, by simp, by
rw [lift_boundary]⟩

example : ¬ (boundary ({0, 1, 2} : Finset (Fin 4))).IsStellarBall := fun h =>
not_isStellarBall_and_isStellarSphere _ ⟨h, isStellarSphere_circle⟩

/-- `{∅}` is the `(−1)`-sphere, the boundary of a single vertex. -/
example : (simplex (∅ : Finset (Fin 4))).IsStellarSphere :=
⟨{Sum.inr 0}, by simp, by
rw [lift_simplex, map_empty, ← boundary_singleton (Sum.inr 0 : Fin 4 ⊕ ℕ)]⟩

/-- Non-vacuity: the boundary of the tetrahedron has empty boundary. -/
example : (boundary ({0, 1, 2, 3} : Finset (Fin 4))).stellarBoundary = ∅ := by
have hc := isClosedCombManifold_boundary (n := 2) (A := ({0, 1, 2, 3} : Finset (Fin 4))) (by decide)
exact (hc.isCombManifold.stellarBoundary_eq_empty_iff).2 hc

/-- The triangle is not closed: its boundary is not empty. -/
example : (simplex ({0, 1, 2} : Finset (Fin 4))).stellarBoundary ≠ ∅ := by
intro h
have hm := isCombManifold_simplex (n := 2) (A := ({0, 1, 2} : Finset (Fin 4))) (by decide)
have hc := (hm.stellarBoundary_eq_empty_iff).1 h
have hlk : (simplex ({0, 1, 2} : Finset (Fin 4))).link {0} = simplex {1, 2} := by
apply SComplex.ext; decide +kernel
have hs := hc.isStellarSphere_link (σ := {0}) (by decide) (by decide)
rw [hlk] at hs
refine not_isStellarBall_and_isStellarSphere _ ⟨⟨({1, 2} : Finset (Fin 4)).map Function.Embedding.inl, by simp, ?_⟩, hs⟩
rw [lift_simplex]

end Lightlike.PL
Loading
Loading