Documentation

CategorialAlgebras.Omega.OperationLaws

Independence of unified operations from representatives #

The same operations, including their exact partial domains, can be computed in any common sufficiently large dimension.

theorem CategorialAlgebras.Omega.cellAt_eq {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {m n : ℕ} (h : m ≤ n) (s : S) (x : Heterogeneous.CategorialAlgebra.carrier B (m, s)) (hn : (Quotient.out (cellIn B m s x)).fst ≤ n) :
cellAt B s (cellIn B m s x) n hn = inclusion B h s x

A chosen representative, raised to a common stage, agrees with every other representative there.

theorem CategorialAlgebras.Omega.cellIn_comp {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {m n : ℕ} (h : m ≤ n) (s : S) :
cellIn B n s ∘ inclusion B h s = cellIn B m s

Moving a representative to a later stage does not change its image in the union.

theorem CategorialAlgebras.Omega.inclusion_comp_map {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {m n : ℕ} (h : m ≤ n) (s : S) (k : Fin m) (x y : ((stageAlgebra B m).sort s).carrier) :
Part.map (inclusion B h s) ((((stageAlgebra B m).sort s).str.dim k).comp x y) = (((stageAlgebra B n).sort s).str.dim ((Dimensions.dimensionInclusion h) k)).comp (inclusion B h s x) (inclusion B h s y)

Stage inclusions commute with the whole partial composition, including its domain.

theorem CategorialAlgebras.Omega.cellAt_trans {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {s : S} (x : Cell B s) {m n : ℕ} (hm : (Quotient.out x).fst ≤ m) (hn : m ≤ n) :
inclusion B hn s (cellAt B s x m hm) = cellAt B s x n ⋯

Raising a chosen representative agrees with its direct raising to the later stage.

theorem CategorialAlgebras.Omega.unifiedSource_in {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {n : ℕ} (k : Fin n) (s : S) (x : Heterogeneous.CategorialAlgebra.carrier B (n, s)) :
unifiedSource B (↑k) s (cellIn B n s x) = cellIn B n s ((((stageAlgebra B n).sort s).str.dim k).source x)

A source on the union can be computed in any stage containing its dimension.

theorem CategorialAlgebras.Omega.unifiedTarget_in {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {n : ℕ} (k : Fin n) (s : S) (x : Heterogeneous.CategorialAlgebra.carrier B (n, s)) :
unifiedTarget B (↑k) s (cellIn B n s x) = cellIn B n s ((((stageAlgebra B n).sort s).str.dim k).target x)

A target on the union can be computed in any stage containing its dimension.

theorem CategorialAlgebras.Omega.unifiedComp_move {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {m n : ℕ} (h : m ≤ n) (s : S) (k : Fin m) (x y : ((stageAlgebra B m).sort s).carrier) :
Part.map (cellIn B m s) ((((stageAlgebra B m).sort s).str.dim k).comp x y) = Part.map (cellIn B n s) ((((stageAlgebra B n).sort s).str.dim ((Dimensions.dimensionInclusion h) k)).comp (inclusion B h s x) (inclusion B h s y))

Computing a partial composition and inserting its value commutes with moving to a later stage.

theorem CategorialAlgebras.Omega.unifiedComp_in {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {n : ℕ} (k : Fin n) (s : S) (x y : Heterogeneous.CategorialAlgebra.carrier B (n, s)) :
unifiedComp B (↑k) s (cellIn B n s x) (cellIn B n s y) = Part.map (cellIn B n s) ((((stageAlgebra B n).sort s).str.dim k).comp x y)

Partial composition on the union is computed in any sufficiently large common stage.

theorem CategorialAlgebras.Omega.unifiedComp_mem {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {n : ℕ} (k : Fin n) (s : S) (x y z : Heterogeneous.CategorialAlgebra.carrier B (n, s)) :
cellIn B n s z ∈ unifiedComp B (↑k) s (cellIn B n s x) (cellIn B n s y) ↔ z ∈ (((stageAlgebra B n).sort s).str.dim k).comp x y

All values of partial composition can be checked in a common finite stage.

theorem CategorialAlgebras.Omega.unifiedBase_in {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {n : ℕ} {a : List S} {s : S} (σ : sig a s) (x : Word.Family (Homogeneous.CategorialAlgebra.carrier (stageAlgebra B n)) a) :
(unifiedBase B σ fun (j : Fin a.length) => cellIn B n (a.get j) (x j)) = cellIn B n s (((stageAlgebra B n).op σ).toFun x)

Original operations on the union are computed at every common finite stage.