Documentation

CategorialAlgebras.Omega.Descriptions

Representatives and finite-dimensional cells in unification #

Boundaries are represented in their own dimension. Composition and the original operations are calculated on representatives in a common dimension. The $k$-cells are precisely the classes with a representative in dimension $k$.

theorem CategorialAlgebras.Omega.unifiedSource_representative {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {k p : ℕ} (h : k < p) (s : S) (x : Heterogeneous.CategorialAlgebra.carrier B (p, s)) :
unifiedSource B k s (cellIn B p s x) = cellIn B k s (((B.sort s).str.dim k p h).source x)

A source is the class of the original lower-dimensional source.

theorem CategorialAlgebras.Omega.unifiedTarget_representative {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {k p : ℕ} (h : k < p) (s : S) (x : Heterogeneous.CategorialAlgebra.carrier B (p, s)) :
unifiedTarget B k s (cellIn B p s x) = cellIn B k s (((B.sort s).str.dim k p h).target x)

A target is the class of the original lower-dimensional target.

theorem CategorialAlgebras.Omega.unifiedComp_representative {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {k p : ℕ} (h : k < p) (s : S) (x y : Heterogeneous.CategorialAlgebra.carrier B (p, s)) :
unifiedComp B k s (cellIn B p s x) (cellIn B p s y) = Part.map (cellIn B p s) (((B.sort s).str.dim k p h).comp x y)

Compositions have the original domain and the class of the original value.

theorem CategorialAlgebras.Omega.unifiedComp_dom {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {k p : ℕ} (h : k < p) (s : S) (x y : Heterogeneous.CategorialAlgebra.carrier B (p, s)) :
(unifiedComp B k s (cellIn B p s x) (cellIn B p s y)).Dom ↔ ((B.sort s).str.dim k p h).source x = ((B.sort s).str.dim k p h).target y

The domain of composition of representatives is exactly boundary matching.

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

Original operations are computed on representatives in any common dimension.

Every cell represented in dimension $k$ is fixed by its $k$-source.

The $k$-cells of unification are exactly classes of original $k$-cells.

Unification has finite-dimensional cells, including dimension zero.

Sources above a representative's dimension fix its class.

Targets above a representative's dimension fix its class.

theorem CategorialAlgebras.Omega.unifiedComp_high {S : Type u} {sig : Signature S} (B : Heterogeneous.OmegaCategorialAlgebra sig) {p k : ℕ} (h : p ≤ k) (s : S) (x y z : Heterogeneous.CategorialAlgebra.carrier B (p, s)) :
cellIn B p s z ∈ unifiedComp B k s (cellIn B p s x) (cellIn B p s y) ↔ x = y ∧ x = z

Composition above the representatives' dimension is exactly diagonal composition.