The areas / V27. Algebraic topology and condensed mathematics
Mathlib.AlgebraicTopology.SimplexCategory.GeneratorsRelations.NormalForms
52 declarations and 1 deprecated aliases. Mathlib docs · Source
Normal forms for morphisms in SimplexCategoryGenRel.
In this file, we establish that P_δ and P_σ morphisms in SimplexCategoryGenRel
each admits a normal form.
In both cases, the normal forms are encoded as an integer m, and a strictly increasing
list of integers [i₀,…,iₙ] such that iₖ ≤ m + k for all k. We define a predicate
isAdmissible m : List ℕ → Prop encoding this property. And provide some lemmas to help
work with such lists.
Normal forms for P_σ morphisms are encoded by m-admissible lists, in which case the list
[i₀,…,iₙ] represents the morphism σ iₙ ≫ ⋯ ≫ σ i₀ : .mk (m + n) ⟶ .mk n.
Normal forms for P_δ morphisms are encoded by (m + 1)-admissible lists, in which case the list
[i₀,…,iₙ] represents the morphism δ i₀ ≫ ⋯ ≫ δ iₙ : .mk n ⟶ .mk (m + n).
The results in this file are to be treated as implementation-only, and they only serve as stepping
stones towards proving that the canonical functor
toSimplexCategory : SimplexCategoryGenRel ⥤ SimplexCategory is an equivalence.
References
TODO
- Show that every
P_δadmits a unique normal form.
ctor SimplexCategoryGenRel.IsAdmissible.below.nil E0 #
∀ {motive : (m : ℕ) → (L : List ℕ) → SimplexCategoryGenRel.IsAdmissible m L → Prop} (m : ℕ),
SimplexCategoryGenRel.IsAdmissible.below ⋯
theorem SimplexCategoryGenRel.standardσ.match_1.congr_eq_2 E1 #
∀ {m₁ m₂ : ℕ} (motive : (L : List ℕ) → m₂ + L.length = m₁ → Sort u_1) (L : List ℕ) (h : m₂ + L.length = m₁)
(h_1 : (h : m₂ + [].length = m₁) → motive [] h)
(h_2 : (a : ℕ) → (t : List ℕ) → (h : m₂ + (a :: t).length = m₁) → motive (a :: t) h) (a : ℕ) (t : List ℕ)
(h_3 : m₂ + (a :: t).length = m₁),
L = a :: t →
h ≍ h_3 →
(match L, h with
| [], h => h_1 h
| a :: t, h => h_2 a t h) ≍
h_2 a t h_3
theorem SimplexCategoryGenRel.standardσ.congr_simp E1 #
∀ (L L_1 : List ℕ) (e_L : L = L_1) {m₁ m₂ : ℕ} (h : m₂ + L.length = m₁),
SimplexCategoryGenRel.standardσ L h = SimplexCategoryGenRel.standardσ L_1 ⋯
theorem SimplexCategoryGenRel.IsAdmissible.head.congr_simp E1 #
∀ {m a a_1 : ℕ} (e_a : a = a_1) {L L_1 : List ℕ} (e_L : L = L_1) (hl : SimplexCategoryGenRel.IsAdmissible m (a :: L)),
hl.head = ⋯.head
ctor SimplexCategoryGenRel.IsAdmissible.below.singleton E0 #
∀ {motive : (m : ℕ) → (L : List ℕ) → SimplexCategoryGenRel.IsAdmissible m L → Prop} {m a : ℕ} (ha : a ≤ m),
SimplexCategoryGenRel.IsAdmissible.below ⋯
theorem SimplexCategoryGenRel.standardσ.hcongr_4 E1 #
∀ (L L' : List ℕ),
L = L' →
∀ (m₁ m₁' : ℕ),
m₁ = m₁' →
∀ (m₂ m₂' : ℕ),
m₂ = m₂' →
∀ (h : m₂ + L.length = m₁) (h' : m₂' + L'.length = m₁'),
h ≍ h' → SimplexCategoryGenRel.standardσ L h ≍ SimplexCategoryGenRel.standardσ L' h'
theorem SimplexCategoryGenRel.simplicialInsert.match_1.congr_eq_1 E1 #
∀ (motive : List ℕ → Sort u_1) (x : List ℕ) (h_1 : Unit → motive []) (h_2 : (b : ℕ) → (l : List ℕ) → motive (b :: l)),
x = [] →
(match x with
| [] => h_1 ()
| b :: l => h_2 b l) ≍
h_1 ()
theorem SimplexCategoryGenRel.standardσ.match_1.congr_eq_1 E1 #
∀ {m₁ m₂ : ℕ} (motive : (L : List ℕ) → m₂ + L.length = m₁ → Sort u_1) (L : List ℕ) (h : m₂ + L.length = m₁)
(h_1 : (h : m₂ + [].length = m₁) → motive [] h)
(h_2 : (a : ℕ) → (t : List ℕ) → (h : m₂ + (a :: t).length = m₁) → motive (a :: t) h) (h_3 : m₂ + [].length = m₁),
L = [] →
h ≍ h_3 →
(match L, h with
| [], h => h_1 h
| a :: t, h => h_2 a t h) ≍
h_1 h_3
ctor SimplexCategoryGenRel.IsAdmissible.below.cons_cons E0 #
∀ {motive : (m : ℕ) → (L : List ℕ) → SimplexCategoryGenRel.IsAdmissible m L → Prop} {m a b : ℕ} {L' : List ℕ}
(hab : a < b) (hbL : SimplexCategoryGenRel.IsAdmissible (m + 1) (b :: L')) (ha : a ≤ m),
SimplexCategoryGenRel.IsAdmissible.below hbL →
motive (m + 1) (b :: L') hbL → SimplexCategoryGenRel.IsAdmissible.below ⋯
theorem SimplexCategoryGenRel.simplicialInsert.match_1.congr_eq_2 E1 #
∀ (motive : List ℕ → Sort u_1) (x : List ℕ) (h_1 : Unit → motive []) (h_2 : (b : ℕ) → (l : List ℕ) → motive (b :: l))
(b : ℕ) (l : List ℕ),
x = b :: l →
(match x with
| [] => h_1 ()
| b :: l => h_2 b l) ≍
h_2 b l
inductive SimplexCategoryGenRel.IsAdmissible E1 #
ℕ → List ℕ → Prop
A list of natural numbers [i₀, ⋯, iₙ] is said to be m-admissible (for m : ℕ) if
i₀ < ⋯ < iₙ and iₖ ≤ m + k for all k. This would suggest the definition
L.IsChain (· < ·) ∧ ∀ k, (h : k < L.length) → L[k] ≤ m + k.
However, we instead define IsAdmissible inductively and show, in
isAdmissible_iff_isChain_and_le, that this is equivalent to the non-inductive definition.
theorem SimplexCategoryGenRel.isAdmissible_iff E0 #
∀ (m : ℕ) (L : List ℕ),
SimplexCategoryGenRel.IsAdmissible m L ↔
L = [] ∨
(∃ a ≤ m, L = [a]) ∨
∃ a b L', a < b ∧ SimplexCategoryGenRel.IsAdmissible (m + 1) (b :: L') ∧ a ≤ m ∧ L = a :: b :: L'
ctor SimplexCategoryGenRel.IsAdmissible.nil E0 #
∀ (m : ℕ), SimplexCategoryGenRel.IsAdmissible m []
ctor SimplexCategoryGenRel.IsAdmissible.singleton E0 #
∀ {m a : ℕ}, a ≤ m → SimplexCategoryGenRel.IsAdmissible m [a]
ctor SimplexCategoryGenRel.IsAdmissible.cons_cons E0 #
∀ {m a b : ℕ} {L' : List ℕ},
a < b →
SimplexCategoryGenRel.IsAdmissible (m + 1) (b :: L') → a ≤ m → SimplexCategoryGenRel.IsAdmissible m (a :: b :: L')
theorem SimplexCategoryGenRel.isAdmissible_singleton_iff E0 #
∀ {m a : ℕ}, SimplexCategoryGenRel.IsAdmissible m [a] ↔ a ≤ m
theorem SimplexCategoryGenRel.isAdmissible_cons_cons_iff E0 #
∀ {m a b : ℕ} {L : List ℕ},
SimplexCategoryGenRel.IsAdmissible m (a :: b :: L) ↔
a < b ∧ SimplexCategoryGenRel.IsAdmissible (m + 1) (b :: L) ∧ a ≤ m
theorem SimplexCategoryGenRel.isAdmissible_cons_iff E0 #
∀ {m a : ℕ} {L : List ℕ},
SimplexCategoryGenRel.IsAdmissible m (a :: L) ↔
a ≤ m ∧ (∀ (x : 0 < L.length), a < L[0]) ∧ SimplexCategoryGenRel.IsAdmissible (m + 1) L
theorem SimplexCategoryGenRel.isAdmissible_iff_isChain_and_le E1 #
∀ {m : ℕ} {L : List ℕ},
SimplexCategoryGenRel.IsAdmissible m L ↔
List.IsChain (fun x1 x2 ↦ x1 < x2) L ∧ ∀ (k : ℕ) (h : k < L.length), L[k] ≤ m + k
theorem SimplexCategoryGenRel.isAdmissible_iff_pairwise_and_le E1 #
∀ {m : ℕ} {L : List ℕ},
SimplexCategoryGenRel.IsAdmissible m L ↔
List.Pairwise (fun x1 x2 ↦ x1 < x2) L ∧ ∀ (k : ℕ) (h : k < L.length), L[k] ≤ m + k
theorem SimplexCategoryGenRel.isAdmissible_of_isChain_of_forall_getElem_le E1 #
∀ {m : ℕ} {L : List ℕ},
List.IsChain (fun x1 x2 ↦ x1 < x2) L →
(∀ (k : ℕ) (h : k < L.length), L[k] ≤ m + k) → SimplexCategoryGenRel.IsAdmissible m L
theorem SimplexCategoryGenRel.IsAdmissible.isChain E1 #
∀ {m : ℕ} {L : List ℕ}, SimplexCategoryGenRel.IsAdmissible m L → List.IsChain (fun x1 x2 ↦ x1 < x2) L
theorem SimplexCategoryGenRel.IsAdmissible.le E1 #
∀ {m : ℕ} {L : List ℕ}, SimplexCategoryGenRel.IsAdmissible m L → ∀ (k : ℕ) (h : k < L.length), L[k] ≤ m + k
theorem SimplexCategoryGenRel.IsAdmissible.of_cons E1 #
∀ {m a : ℕ} {L : List ℕ}, SimplexCategoryGenRel.IsAdmissible m (a :: L) → SimplexCategoryGenRel.IsAdmissible (m + 1) L
The tail of an m-admissible list is (m+1)-admissible.
theorem SimplexCategoryGenRel.IsAdmissible.cons E1 #
∀ {m a : ℕ} {L : List ℕ},
SimplexCategoryGenRel.IsAdmissible (m + 1) L →
a ≤ m → (∀ (x : 0 < L.length), a < L[0]) → SimplexCategoryGenRel.IsAdmissible m (a :: L)
theorem SimplexCategoryGenRel.IsAdmissible.sortedLT E1 #
∀ {m : ℕ} {L : List ℕ}, SimplexCategoryGenRel.IsAdmissible m L → L.SortedLT
theorem SimplexCategoryGenRel.IsAdmissible.head_lt E1 #
∀ {m a : ℕ} {L : List ℕ}, SimplexCategoryGenRel.IsAdmissible m (a :: L) → ∀ a' ∈ L, a < a'
If (a :: l) is m-admissible then a is less than all elements of l
theorem SimplexCategoryGenRel.IsAdmissible.getElem_lt E1 #
∀ {m : ℕ} {L : List ℕ}, SimplexCategoryGenRel.IsAdmissible m L → ∀ {k : ℕ} {hk : k < L.length}, L[k] < m + L.length
def SimplexCategoryGenRel.IsAdmissible.getElemAsFin E1 #
{m : ℕ} → {L : List ℕ} → SimplexCategoryGenRel.IsAdmissible m L → (k : ℕ) → k < L.length → Fin (m + k + 1)
An element of an m-admissible list, as an element of the appropriate Fin
theorem SimplexCategoryGenRel.IsAdmissible.getElemAsFin_val E0 #
∀ {m : ℕ} {L : List ℕ} (hl : SimplexCategoryGenRel.IsAdmissible m L) (k : ℕ) (hK : k < L.length),
↑(hl.getElemAsFin k hK) = L[k]
def SimplexCategoryGenRel.IsAdmissible.head E1 #
{m a : ℕ} → {L : List ℕ} → SimplexCategoryGenRel.IsAdmissible m (a :: L) → Fin (m + 1)
The head of an m-admissible list.
theorem SimplexCategoryGenRel.IsAdmissible.head_val E0 #
∀ {m a : ℕ} {L : List ℕ} (hl : SimplexCategoryGenRel.IsAdmissible m (a :: L)), ↑hl.head = a
theorem SimplexCategoryGenRel.IsAdmissible.mono E1 #
∀ {m : ℕ} {L : List ℕ} {n : ℕ}, m ≤ n → SimplexCategoryGenRel.IsAdmissible m L → SimplexCategoryGenRel.IsAdmissible n L
def SimplexCategoryGenRel.simplicialInsert E1 #
ℕ → List ℕ → List ℕ
The construction simplicialInsert describes inserting an element in a list of integer and
moving it to its "right place" according to the simplicial relations. Somewhat miraculously,
the algorithm is the same for the first or the fifth simplicial relations, making it "valid"
when we treat the list as a normal form for a morphism satisfying P_δ, or for a morphism
satisfying P_σ!
This is similar in nature to List.orderedInsert, but note that we increment one of the element
every time we perform an exchange, making it a different construction.
theorem SimplexCategoryGenRel.simplicialInsert_length E1 #
∀ (a : ℕ) (L : List ℕ), (SimplexCategoryGenRel.simplicialInsert a L).length = L.length + 1
simplicialInsert just adds one to the length.
theorem SimplexCategoryGenRel.simplicialInsert_isAdmissible E1 #
∀ (m : ℕ) (L : List ℕ),
SimplexCategoryGenRel.IsAdmissible (m + 1) L →
∀ j ≤ m, SimplexCategoryGenRel.IsAdmissible m (SimplexCategoryGenRel.simplicialInsert j L)
simplicialInsert preserves admissibility
def SimplexCategoryGenRel.standardσ E1 #
(L : List ℕ) → {m₁ m₂ : ℕ} → m₂ + L.length = m₁ → (SimplexCategoryGenRel.mk m₁ ⟶ SimplexCategoryGenRel.mk m₂)
Given a sequence L = [ i 0, ..., i b ], standardσ m L i is the morphism
σ (i b) ≫ … ≫ σ (i 0). The construction is provided for any list of natural numbers,
but it is intended to behave well only when the list is admissible.
theorem SimplexCategoryGenRel.standardσ_nil E0 #
∀ (m : ℕ), SimplexCategoryGenRel.standardσ [] ⋯ = CategoryTheory.CategoryStruct.id (SimplexCategoryGenRel.mk m)
theorem SimplexCategoryGenRel.standardσ_cons E0 #
∀ (L : List ℕ) (a : ℕ) {m₁ m₂ : ℕ} (h : m₂ + (a :: L).length = m₁),
SimplexCategoryGenRel.standardσ (a :: L) h =
CategoryTheory.CategoryStruct.comp (SimplexCategoryGenRel.standardσ L ⋯)
(SimplexCategoryGenRel.σ (Fin.ofNat (m₂ + 1) a))
theorem SimplexCategoryGenRel.standardσ_cons_assoc E1 #
∀ (L : List ℕ) (a : ℕ) {m₁ m₂ : ℕ} (h : m₂ + (a :: L).length = m₁) {Z : SimplexCategoryGenRel}
(h_1 : SimplexCategoryGenRel.mk m₂ ⟶ Z),
CategoryTheory.CategoryStruct.comp (SimplexCategoryGenRel.standardσ (a :: L) h) h_1 =
CategoryTheory.CategoryStruct.comp (SimplexCategoryGenRel.standardσ L ⋯)
(CategoryTheory.CategoryStruct.comp (SimplexCategoryGenRel.σ (Fin.ofNat (m₂ + 1) a)) h_1)
theorem SimplexCategoryGenRel.standardσ_comp_standardσ_assoc E1 #
∀ (L₁ L₂ : List ℕ) {m₁ m₂ m₃ : ℕ} (h : m₂ + L₁.length = m₁) (h' : m₃ + L₂.length = m₂) {Z : SimplexCategoryGenRel}
(h_1 : SimplexCategoryGenRel.mk m₃ ⟶ Z),
CategoryTheory.CategoryStruct.comp (SimplexCategoryGenRel.standardσ L₁ h)
(CategoryTheory.CategoryStruct.comp (SimplexCategoryGenRel.standardσ L₂ h') h_1) =
CategoryTheory.CategoryStruct.comp (SimplexCategoryGenRel.standardσ (L₂ ++ L₁) ⋯) h_1
theorem SimplexCategoryGenRel.standardσ_comp_standardσ E1 #
∀ (L₁ L₂ : List ℕ) {m₁ m₂ m₃ : ℕ} (h : m₂ + L₁.length = m₁) (h' : m₃ + L₂.length = m₂),
CategoryTheory.CategoryStruct.comp (SimplexCategoryGenRel.standardσ L₁ h) (SimplexCategoryGenRel.standardσ L₂ h') =
SimplexCategoryGenRel.standardσ (L₂ ++ L₁) ⋯
def SimplexCategoryGenRel.simplicialEvalσ E1 #
List ℕ → ℕ → ℕ
simplicialEvalσ is a lift to ℕ of (toSimplexCategory.map (standardσ m L _ _)).toOrderHom.
Rather than defining it as such, we define it inductively for less painful inductive reasoning,
(see simplicialEvalσ_of_isAdmissible).
It is expected to produce the correct result only if L is admissible, and values for
non-admissible lists should be considered junk values. Similarly, values for out-of-bounds inputs
are junk values.
theorem SimplexCategoryGenRel.simplicialEvalσ_of_le_mem E1 #
∀ (L : List ℕ) (j : ℕ), (∀ k ∈ L, j ≤ k) → SimplexCategoryGenRel.simplicialEvalσ L j = j
theorem SimplexCategoryGenRel.simplicialEvalσ_monotone E1 #
∀ (L : List ℕ), Monotone (SimplexCategoryGenRel.simplicialEvalσ L)
theorem SimplexCategoryGenRel.simplicialEvalσ_of_isAdmissible E1 #
∀ (L : List ℕ) (m₁ m₂ : ℕ),
SimplexCategoryGenRel.IsAdmissible m₂ L →
∀ (hk : m₂ + L.length = m₁) (j : ℕ) (hj : j < m₁ + 1),
↑((SimplexCategory.Hom.toOrderHom
(SimplexCategoryGenRel.toSimplexCategory.map (SimplexCategoryGenRel.standardσ L hk)))
⟨j, hj⟩) =
SimplexCategoryGenRel.simplicialEvalσ L j
theorem SimplexCategoryGenRel.standardσ_simplicialInsert E1 #
∀ {m : ℕ} (L : List ℕ),
∀ j < m + 1,
∀ (m₁ : ℕ) (hm₁ : m + L.length + 1 = m₁),
SimplexCategoryGenRel.standardσ (SimplexCategoryGenRel.simplicialInsert j L) ⋯ =
CategoryTheory.CategoryStruct.comp (SimplexCategoryGenRel.standardσ L ⋯)
(SimplexCategoryGenRel.σ (Fin.ofNat (m + 1) j))
Performing a simplicial insertion in a list is the same as composition on the right by the corresponding degeneracy operator.
theorem SimplexCategoryGenRel.exists_normal_form_P_σ E1 #
∀ {x y : SimplexCategoryGenRel} (f : x ⟶ y),
SimplexCategoryGenRel.P_σ f →
∃ L m b,
∃ (h₁ : SimplexCategoryGenRel.mk m = y) (h₂ : x = SimplexCategoryGenRel.mk (m + b)) (h : L.length = b),
SimplexCategoryGenRel.IsAdmissible m L ∧ f = SimplexCategoryGenRel.standardσ L ⋯
Using standardσ_simplicialInsert, we can prove that every morphism satisfying P_σ is equal
to some standardσ for some admissible list of indices.
theorem SimplexCategoryGenRel.IsAdmissible.simplicialEvalσ_succ_getElem E1 #
∀ {m : ℕ} (L : List ℕ),
SimplexCategoryGenRel.IsAdmissible m L →
∀ {k : ℕ} {hk : k < L.length},
SimplexCategoryGenRel.simplicialEvalσ L L[k] = SimplexCategoryGenRel.simplicialEvalσ L (L[k] + 1)
theorem SimplexCategoryGenRel.mem_isAdmissible_of_eval_eq_eval_add_one E0 #
∀ {m : ℕ} (L : List ℕ),
SimplexCategoryGenRel.IsAdmissible m L →
∀ (j : ℕ), SimplexCategoryGenRel.simplicialEvalσ L j = SimplexCategoryGenRel.simplicialEvalσ L (j + 1) → j ∈ L
theorem SimplexCategoryGenRel.lt_and_eval_eq_eval_add_one_of_mem_isAdmissible E1 #
∀ {m : ℕ} (L : List ℕ),
SimplexCategoryGenRel.IsAdmissible m L →
∀ j ∈ L,
j < m + L.length ∧ SimplexCategoryGenRel.simplicialEvalσ L j = SimplexCategoryGenRel.simplicialEvalσ L (j + 1)
theorem SimplexCategoryGenRel.mem_isAdmissible_iff E0 #
∀ {m : ℕ} (L : List ℕ),
SimplexCategoryGenRel.IsAdmissible m L →
∀ (j : ℕ),
j ∈ L ↔
j < m + L.length ∧ SimplexCategoryGenRel.simplicialEvalσ L j = SimplexCategoryGenRel.simplicialEvalσ L (j + 1)
We can characterize elements in an admissible list as exactly those for which
simplicialEvalσ takes the same value twice in a row.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
SimplexCategoryGenRel.mem_isAdmissible_of_lt_and_eval_eq_eval_add_one | SimplexCategoryGenRel.mem_isAdmissible_of_eval_eq_eval_add_one | 2026-10-31 |