|
| 1 | +/- |
| 2 | +Copyright (c) 2026 Jacob Reinhold. All rights reserved. |
| 3 | +Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | +Authors: Jacob Reinhold |
| 5 | +-/ |
| 6 | +module |
| 7 | + |
| 8 | +public import Mathlib.AlgebraicTopology.SimplicialSet.Boundary |
| 9 | +public import Mathlib.AlgebraicTopology.SimplicialSet.Degenerate |
| 10 | +public import Mathlib.AlgebraicTopology.SimplicialSet.SubcomplexAttach |
| 11 | + |
| 12 | +/-! |
| 13 | +# Single-cell boundary attachment to a subcomplex |
| 14 | +
|
| 15 | +`Skeleton.lean` attaches all nondegenerate `n`-simplices of a simplicial set |
| 16 | +in one step, dimension by dimension. This file refines that picture to a |
| 17 | +single cell along its boundary: for a nondegenerate `n`-simplex `x : X _⦋n⦌` |
| 18 | +with `x ∉ A` and boundary already in `A`, the square |
| 19 | +``` |
| 20 | +∂Δ[n] ──→ A |
| 21 | + │ │ |
| 22 | + ↓ ↓ |
| 23 | +Δ[n] ──→ A ⊔ ofSimplex x |
| 24 | +``` |
| 25 | +is a pushout in `SSet` |
| 26 | +(`Subcomplex.boundaryAttach_isPushout_of_nonDegenerate`). |
| 27 | +
|
| 28 | +The map `yonedaEquiv.symm x` need not be monic; injectivity off the |
| 29 | +boundary is enough, and that follows from nondegeneracy by an |
| 30 | +Eilenberg–Zilber argument |
| 31 | +(`Subcomplex.injOn_compl_boundary_yonedaEquiv_symm`). The pushout then |
| 32 | +follows from `Subcomplex.attachingMap_isPushout_of_injOn_compl` once the |
| 33 | +preimage of `A` along `yonedaEquiv.symm x` is identified with `∂Δ[n]` |
| 34 | +(`Subcomplex.preimage_yonedaEquiv_symm_eq_boundary`). |
| 35 | +
|
| 36 | +## References |
| 37 | +
|
| 38 | +* [E. Riehl and D. Verity, *Elements of ∞-Category Theory*][RiehlVerity2022], |
| 39 | + Section 1.1 (cellular structure of simplicial sets, Remark 1.1.27). |
| 40 | +-/ |
| 41 | + |
| 42 | +@[expose] public section |
| 43 | + |
| 44 | +universe u |
| 45 | + |
| 46 | +noncomputable section |
| 47 | + |
| 48 | +open CategoryTheory Limits Opposite |
| 49 | +open scoped Simplicial |
| 50 | + |
| 51 | +namespace SSet |
| 52 | +namespace Subcomplex |
| 53 | + |
| 54 | +/-- If the boundary of a nondegenerate `n`-simplex `x` already lies in `A` and |
| 55 | +`x` itself does not, the preimage of `A` along the classifier of `x` is exactly |
| 56 | +the boundary `∂Δ[n]`. -/ |
| 57 | +lemma preimage_yonedaEquiv_symm_eq_boundary {X : SSet.{u}} {n : ℕ} |
| 58 | + (A : X.Subcomplex) {x : X _⦋n⦌} (_hx : x ∈ X.nonDegenerate n) |
| 59 | + (hxA : x ∉ A.obj (op ⦋n⦌)) |
| 60 | + (hboundary : |
| 61 | + (∂Δ[n] : (Δ[n] : SSet.{u}).Subcomplex).image (yonedaEquiv.symm x) ≤ A) : |
| 62 | + A.preimage (yonedaEquiv.symm x) = (∂Δ[n] : (Δ[n] : SSet.{u}).Subcomplex) := by |
| 63 | + classical |
| 64 | + ext ⟨⟨d⟩⟩ y |
| 65 | + refine ⟨fun hyA ↦ ?_, fun hybdry ↦ hboundary _ ⟨y, hybdry, rfl⟩⟩ |
| 66 | + by_contra hybdry |
| 67 | + have hsurj : Function.Surjective (stdSimplex.asOrderHom y) := not_not.mp hybdry |
| 68 | + let f := stdSimplex.objEquiv y |
| 69 | + haveI : Epi f := by |
| 70 | + rw [SimplexCategory.epi_iff_surjective] |
| 71 | + simpa [f, stdSimplex.asOrderHom] using hsurj |
| 72 | + obtain ⟨⟨hsplit⟩⟩ := isSplitEpi_of_epi f |
| 73 | + apply hxA |
| 74 | + have hxA' : |
| 75 | + X.map hsplit.section_.op ((yonedaEquiv.symm x).app (op ⦋d⦌) y) ∈ |
| 76 | + A.obj (op ⦋n⦌) := |
| 77 | + A.map hsplit.section_.op hyA |
| 78 | + convert hxA' using 1 |
| 79 | + calc |
| 80 | + x = X.map (𝟙 (op ⦋n⦌)) x := by simp |
| 81 | + _ = X.map (f.op ≫ hsplit.section_.op) x := by |
| 82 | + rw [← op_comp, hsplit.id]; simp |
| 83 | + _ = X.map hsplit.section_.op (X.map f.op x) := by simp [Functor.map_comp] |
| 84 | + _ = X.map hsplit.section_.op ((yonedaEquiv.symm x).app (op ⦋d⦌) y) := by |
| 85 | + rw [stdSimplex.map_objEquiv_op_apply] |
| 86 | + |
| 87 | +/-- The classifier of a nondegenerate simplex is injective off the boundary, |
| 88 | +even when it is not monic. This is the Eilenberg–Zilber input to single-cell |
| 89 | +boundary attachment. -/ |
| 90 | +lemma injOn_compl_boundary_yonedaEquiv_symm {X : SSet.{u}} {n : ℕ} |
| 91 | + {x : X _⦋n⦌} (hx : x ∈ X.nonDegenerate n) (d : SimplexCategoryᵒᵖ) : |
| 92 | + Set.InjOn ((yonedaEquiv.symm x).app d) |
| 93 | + ((∂Δ[n] : (Δ[n] : SSet.{u}).Subcomplex).obj d)ᶜ := by |
| 94 | + classical |
| 95 | + obtain ⟨⟨d⟩⟩ := d |
| 96 | + intro y₁ hy₁ y₂ hy₂ h |
| 97 | + rw [Set.mem_compl_iff] at hy₁ hy₂ |
| 98 | + let f₁ := stdSimplex.objEquiv y₁ |
| 99 | + let f₂ := stdSimplex.objEquiv y₂ |
| 100 | + have hsurj₁ : Function.Surjective (stdSimplex.asOrderHom y₁) := not_not.mp hy₁ |
| 101 | + have hsurj₂ : Function.Surjective (stdSimplex.asOrderHom y₂) := not_not.mp hy₂ |
| 102 | + haveI : Epi f₁ := by |
| 103 | + rw [SimplexCategory.epi_iff_surjective] |
| 104 | + simpa [f₁, stdSimplex.asOrderHom] using hsurj₁ |
| 105 | + haveI : Epi f₂ := by |
| 106 | + rw [SimplexCategory.epi_iff_surjective] |
| 107 | + simpa [f₂, stdSimplex.asOrderHom] using hsurj₂ |
| 108 | + have hf : f₁ = f₂ := by |
| 109 | + refine X.unique_nonDegenerate_map ((yonedaEquiv.symm x).app (op ⦋d⦌) y₁) |
| 110 | + f₁ ⟨x, hx⟩ ?_ f₂ ⟨x, hx⟩ ?_ |
| 111 | + · simpa [f₁] using (stdSimplex.map_objEquiv_op_apply (X := X) x y₁).symm |
| 112 | + · calc |
| 113 | + (yonedaEquiv.symm x).app (op ⦋d⦌) y₁ = |
| 114 | + (yonedaEquiv.symm x).app (op ⦋d⦌) y₂ := h |
| 115 | + _ = X.map f₂.op x := by |
| 116 | + simpa [f₂] using (stdSimplex.map_objEquiv_op_apply (X := X) x y₂).symm |
| 117 | + exact stdSimplex.objEquiv.injective hf |
| 118 | + |
| 119 | +/-- Single-cell boundary attachment as a pushout. If `x : X _⦋n⦌` is |
| 120 | +nondegenerate with `x ∉ A` and its boundary already in `A`, then |
| 121 | +`A ⊔ ofSimplex x` is the pushout of `∂Δ[n] ↪ Δ[n]` along the attaching map. |
| 122 | +This is the per-cell counterpart to the `skeletonOfMono` filtration in |
| 123 | +`Skeleton.lean`. -/ |
| 124 | +lemma boundaryAttach_isPushout_of_nonDegenerate {X : SSet.{u}} {n : ℕ} |
| 125 | + (A : X.Subcomplex) {x : X _⦋n⦌} (hx : x ∈ X.nonDegenerate n) |
| 126 | + (hxA : x ∉ A.obj (op ⦋n⦌)) |
| 127 | + (hboundary : |
| 128 | + (∂Δ[n] : (Δ[n] : SSet.{u}).Subcomplex).image (yonedaEquiv.symm x) ≤ A) : |
| 129 | + IsPushout |
| 130 | + (attachingMap A (yonedaEquiv.symm x) |
| 131 | + (preimage_yonedaEquiv_symm_eq_boundary A hx hxA hboundary)) |
| 132 | + (∂Δ[n] : (Δ[n] : SSet.{u}).Subcomplex).ι |
| 133 | + (homOfLE (show A ≤ A ⊔ ofSimplex x by simp)) |
| 134 | + (lift (yonedaEquiv.symm x) (show range (yonedaEquiv.symm x) ≤ A ⊔ ofSimplex x by |
| 135 | + simp [Subcomplex.range_eq_ofSimplex])) := by |
| 136 | + have h := attachingMap_isPushout_of_injOn_compl A (yonedaEquiv.symm x) |
| 137 | + (preimage_yonedaEquiv_symm_eq_boundary A hx hxA hboundary) |
| 138 | + (injOn_compl_boundary_yonedaEquiv_symm hx) |
| 139 | + convert h using 2 |
| 140 | + all_goals simp [Subcomplex.range_eq_ofSimplex] |
| 141 | + |
| 142 | +end Subcomplex |
| 143 | +end SSet |
0 commit comments