The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V27. Algebraic topology and condensed mathematics

Mathlib.AlgebraicTopology.SimplexCategory.Defs

43 declarations. Mathlib docs · Source

The simplex category

We construct a skeletal model of the simplex category, with an object ⦋n⦌ for each n : ℕ, and morphisms ⦋n⦌ ⟶ ⦋m⦌ identify to monotone maps from Fin (n + 1) to Fin (m + 1).

In Mathlib/AlgebraicTopology/SimplexCategory/Basic.lean, we show that this category is equivalent to NonemptyFinLinOrd.

Remarks

We provide the following functions to work with these objects:

  1. SimplexCategory.mk creates an object of SimplexCategory out of a natural number. Use the notation ⦋n⦌ in the Simplicial locale.
  2. SimplexCategory.len gives the "length" of an object of SimplexCategory, as a natural.
  3. SimplexCategory.Hom.mk makes a morphism out of a monotone map between Fin's.
  4. SimplexCategory.Hom.toOrderHom gives the underlying monotone map associated to a term of SimplexCategory.Hom.

Notation

  • ⦋n⦌ denotes the n-dimensional simplex. This notation is available with open Simplicial.
  • ⦋m⦌ₙ denotes the m-dimensional simplex in the n-truncated simplex category. The truncation proof p : m ≤ n can also be provided using the syntax ⦋m, p⦌ₙ. This notation is available with open SimplexCategory.Truncated.

def SimplexCategory.ctorIdx E1 #

SimplexCategory → ℕ

theorem SimplexCategory.mk.injEq E0 #

∀ (len len_1 : ℕ), ({ len := len } = { len := len_1 }) = (len = len_1)

theorem SimplexCategory.mk.inj E1 #

∀ {len len_1 : ℕ}, { len := len } = { len := len_1 } → len = len_1

structure SimplexCategory E3 #

Type

The simplex category:

  • for each n : ℕ, there is an object ⦋n⦌;
  • morphisms ⦋n⦌ ⟶ ⦋m⦌ are monotone functions Fin (n+1) → Fin (m+1)

theorem SimplexCategory.ext_iff E0 #

∀ {x y : SimplexCategory}, x = y ↔ x.len = y.len

theorem SimplexCategory.ext E1 #

∀ {x y : SimplexCategory}, x.len = y.len → x = y

ctor SimplexCategory.mk E0 #

ℕ → SimplexCategory

Constructor ℕ → SimplexCategory.

abbrev SimplexCategory.len E1 #

SimplexCategory → ℕ

The length of an object in SimplexCategory

def Simplicial.«term⦋_⦌» E1 #

Lean.ParserDescr

the n-dimensional simplex can be denoted ⦋n⦌

theorem SimplexCategory.len_mk E0 #

∀ (n : ℕ), { len := n }.len = n

theorem SimplexCategory.mk_len E0 #

∀ (n : SimplexCategory), { len := n.len } = n

def SimplexCategory.Hom E1 #

SimplexCategory → SimplexCategory → Type

Morphisms in the SimplexCategory.

def SimplexCategory.Hom.mk E1 #

{a b : SimplexCategory} → (Fin (a.len + 1) →o Fin (b.len + 1)) → a.Hom b

Make a morphism in SimplexCategory from a monotone map of Fin's.

def SimplexCategory.Hom.toOrderHom E1 #

{a b : SimplexCategory} → a.Hom b → Fin (a.len + 1) →o Fin (b.len + 1)

Recover the monotone map from a morphism in the simplex category.

theorem SimplexCategory.Hom.ext' E1 #

∀ {a b : SimplexCategory} (f g : a.Hom b), f.toOrderHom = g.toOrderHom → f = g

theorem SimplexCategory.Hom.mk_toOrderHom E0 #

∀ {a b : SimplexCategory} (f : a.Hom b), SimplexCategory.Hom.mk f.toOrderHom = f

theorem SimplexCategory.Hom.toOrderHom_mk E0 #

∀ {a b : SimplexCategory} (f : Fin (a.len + 1) →o Fin (b.len + 1)), (SimplexCategory.Hom.mk f).toOrderHom = f

theorem SimplexCategory.Hom.mk_toOrderHom_apply E0 #

∀ {a b : SimplexCategory} (f : Fin (a.len + 1) →o Fin (b.len + 1)) (i : Fin (a.len + 1)),
  (SimplexCategory.Hom.mk f).toOrderHom i = f i

def SimplexCategory.Hom.id E1 #

(a : SimplexCategory) → a.Hom a

Identity morphisms of SimplexCategory.

def SimplexCategory.Hom.comp E1 #

{a b c : SimplexCategory} → b.Hom c → a.Hom b → a.Hom c

Composition of morphisms of SimplexCategory.

instance SimplexCategory.smallCategory E0 #

CategoryTheory.SmallCategory SimplexCategory

theorem SimplexCategory.id_toOrderHom E0 #

∀ (a : SimplexCategory), SimplexCategory.Hom.toOrderHom (CategoryTheory.CategoryStruct.id a) = OrderHom.id

theorem SimplexCategory.comp_toOrderHom E0 #

∀ {a b c : SimplexCategory} (f : a ⟶ b) (g : b ⟶ c),
  SimplexCategory.Hom.toOrderHom (CategoryTheory.CategoryStruct.comp f g) =
    (SimplexCategory.Hom.toOrderHom g).comp (SimplexCategory.Hom.toOrderHom f)

theorem SimplexCategory.Hom.ext E1 #

∀ {a b : SimplexCategory} (f g : a ⟶ b), SimplexCategory.Hom.toOrderHom f = SimplexCategory.Hom.toOrderHom g → f = g

theorem SimplexCategory.Hom.ext_iff E0 #

∀ {a b : SimplexCategory} {f g : a ⟶ b}, f = g ↔ SimplexCategory.Hom.toOrderHom f = SimplexCategory.Hom.toOrderHom g

def SimplexCategory.homEquivOrderHom E1 #

{a b : SimplexCategory} → (a ⟶ b) ≃ (Fin (a.len + 1) →o Fin (b.len + 1))

Homs in SimplexCategory are equivalent to order-preserving functions of finite linear orders.

def SimplexCategory.homEquivFunctor E1 #

{a b : SimplexCategory} → (a ⟶ b) ≃ CategoryTheory.Functor (Fin (a.len + 1)) (Fin (b.len + 1))

Homs in SimplexCategory are equivalent to functors between finite linear orders.

abbrev SimplexCategory.Truncated E1 #

ℕ → Type

The truncated simplex category.

instance SimplexCategory.Truncated.instInhabited E0 #

{n : ℕ} → Inhabited (SimplexCategory.Truncated n)

abbrev SimplexCategory.Truncated.inclusion E1 #

(n : ℕ) → CategoryTheory.Functor (SimplexCategory.Truncated n) SimplexCategory

The fully faithful inclusion of the truncated simplex category into the usual simplex category.

def SimplexCategory.Truncated.inclusion.fullyFaithful E1 #

(n : ℕ) → (SimplexCategory.Truncated.inclusion n).op.FullyFaithful

A proof that the full subcategory inclusion is fully faithful

theorem SimplexCategory.Truncated.Hom.ext E1 #

∀ {n : ℕ} {a b : SimplexCategory.Truncated n} (f g : a ⟶ b),
  SimplexCategory.Hom.toOrderHom f.hom = SimplexCategory.Hom.toOrderHom g.hom → f = g

theorem SimplexCategory.Truncated.Hom.ext_iff E0 #

∀ {n : ℕ} {a b : SimplexCategory.Truncated n} {f g : a ⟶ b},
  f = g ↔ SimplexCategory.Hom.toOrderHom f.hom = SimplexCategory.Hom.toOrderHom g.hom

def SimplexCategory.Truncated.tacticTrunc E1 #

Lean.ParserDescr

A quick attempt to prove that ⦋m⦌ is n-truncated (⦋m⦌.len ≤ n).

def SimplexCategory.Truncated.mkNotation E1 #

Lean.ParserDescr

For m ≤ n, ⦋m⦌ₙ is the m-dimensional simplex in Truncated n. The proof p : m ≤ n can also be provided using the syntax ⦋m, p⦌ₙ.

abbrev SimplexCategory.Truncated.Hom.tr E1 #

{n : ℕ} →
  {a b : SimplexCategory} →
    (a ⟶ b) →
      (ha : autoParam (a.len ≤ n) SimplexCategory.Truncated.Hom.tr._auto_1) →
        (hb : autoParam (b.len ≤ n) SimplexCategory.Truncated.Hom.tr._auto_3) →
          { obj := a, property := ha } ⟶ { obj := b, property := hb }

Make a morphism in Truncated n from a morphism in SimplexCategory. This is equivalent to @id (⦋a⦌ₙ ⟶ ⦋b⦌ₙ) f.

theorem SimplexCategory.Truncated.Hom.tr_id E0 #

∀ {n : ℕ} (a : SimplexCategory) (ha : autoParam (a.len ≤ n) SimplexCategory.Truncated.Hom.tr_id._auto_1),
  SimplexCategory.Truncated.Hom.tr (CategoryTheory.CategoryStruct.id a) ha ha =
    CategoryTheory.CategoryStruct.id { obj := a, property := ha }

theorem SimplexCategory.Truncated.Hom.tr_comp E1 #

∀ {n : ℕ} {a b c : SimplexCategory} (f : a ⟶ b) (g : b ⟶ c)
  (ha : autoParam (a.len ≤ n) SimplexCategory.Truncated.Hom.tr_comp._auto_1)
  (hb : autoParam (b.len ≤ n) SimplexCategory.Truncated.Hom.tr_comp._auto_3)
  (hc : autoParam (c.len ≤ n) SimplexCategory.Truncated.Hom.tr_comp._auto_5),
  SimplexCategory.Truncated.Hom.tr (CategoryTheory.CategoryStruct.comp f g) ha hc =
    CategoryTheory.CategoryStruct.comp (SimplexCategory.Truncated.Hom.tr f ha hb)
      (SimplexCategory.Truncated.Hom.tr g hb hc)

theorem SimplexCategory.Truncated.Hom.tr_comp_assoc E1 #

∀ {n : ℕ} {a b c : SimplexCategory} (f : a ⟶ b) (g : b ⟶ c)
  (ha : autoParam (a.len ≤ n) SimplexCategory.Truncated.Hom.tr_comp._auto_1)
  (hb : autoParam (b.len ≤ n) SimplexCategory.Truncated.Hom.tr_comp._auto_3)
  (hc : autoParam (c.len ≤ n) SimplexCategory.Truncated.Hom.tr_comp._auto_5)
  {Z : CategoryTheory.ObjectProperty.FullSubcategory fun a ↦ a.len ≤ n} (h : { obj := c, property := hc } ⟶ Z),
  CategoryTheory.CategoryStruct.comp (SimplexCategory.Truncated.Hom.tr (CategoryTheory.CategoryStruct.comp f g) ha hc)
      h =
    CategoryTheory.CategoryStruct.comp (SimplexCategory.Truncated.Hom.tr f ha hb)
      (CategoryTheory.CategoryStruct.comp (SimplexCategory.Truncated.Hom.tr g hb hc) h)

theorem SimplexCategory.Truncated.Hom.tr_comp' E1 #

∀ {n : ℕ} {a b c : SimplexCategory} (f : a ⟶ b) {hb : b.len ≤ n} {hc : c.len ≤ n}
  (g : { obj := b, property := hb } ⟶ { obj := c, property := hc })
  (ha : autoParam (a.len ≤ n) SimplexCategory.Truncated.Hom.tr_comp'._auto_1),
  SimplexCategory.Truncated.Hom.tr (CategoryTheory.CategoryStruct.comp f g.hom) ha hc =
    CategoryTheory.CategoryStruct.comp (SimplexCategory.Truncated.Hom.tr f ha hb) g

theorem SimplexCategory.Truncated.Hom.tr_comp'_assoc E1 #

∀ {n : ℕ} {a b c : SimplexCategory} (f : a ⟶ b) {hb : b.len ≤ n} {hc : c.len ≤ n}
  (g : { obj := b, property := hb } ⟶ { obj := c, property := hc })
  (ha : autoParam (a.len ≤ n) SimplexCategory.Truncated.Hom.tr_comp'._auto_1)
  {Z : CategoryTheory.ObjectProperty.FullSubcategory fun a ↦ a.len ≤ n} (h : { obj := c, property := hc } ⟶ Z),
  CategoryTheory.CategoryStruct.comp
      (SimplexCategory.Truncated.Hom.tr (CategoryTheory.CategoryStruct.comp f g.hom) ha hc) h =
    CategoryTheory.CategoryStruct.comp (SimplexCategory.Truncated.Hom.tr f ha hb)
      (CategoryTheory.CategoryStruct.comp g h)

abbrev SimplexCategory.Truncated.incl E1 #

(n m : ℕ) →
  autoParam (n ≤ m) SimplexCategory.Truncated.incl._auto_1 →
    CategoryTheory.Functor (SimplexCategory.Truncated n) (SimplexCategory.Truncated m)

The inclusion of Truncated n into Truncated m when n ≤ m.

def SimplexCategory.Truncated.inclCompInclusion E1 #

{n m : ℕ} →
  (h : n ≤ m) →
    (SimplexCategory.Truncated.incl n m ⋯).comp (SimplexCategory.Truncated.inclusion m) ≅
      SimplexCategory.Truncated.inclusion n

For all n ≤ m, inclusion n factors through Truncated m.