Validity of the homogeneous equations #
Expansion of a categorial algebra satisfies every contextual equation. Together with recovery, this gives the two directions of the presentation on unchanged carriers.
def
CategorialAlgebras.Homogeneous.CategorialAlgebra.boundary
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
(A : CategorialAlgebra I sig)
(k : I)
(b : Bool)
{s : S}
(x : A.carrier s)
:
A.carrier s
Select a source or target map in a categorial algebra.
Equations
Instances For
theorem
CategorialAlgebras.Homogeneous.CategorialAlgebra.boundary_retract
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
(A : CategorialAlgebra I sig)
(k : I)
(b c : Bool)
{s : S}
(x : A.carrier s)
:
All boundaries in one dimension fix each other's images.
theorem
CategorialAlgebras.Homogeneous.CategorialAlgebra.higher_lower
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
(A : CategorialAlgebra I sig)
{l k : I}
(h : l < k)
(b : Bool)
{s : S}
(x : A.carrier s)
:
Higher boundaries fix the corresponding lower boundaries.
theorem
CategorialAlgebras.Homogeneous.CategorialAlgebra.lower_higher
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
(A : CategorialAlgebra I sig)
{l k : I}
(h : l < k)
(b c : Bool)
{s : S}
(x : A.carrier s)
:
Lower boundaries absorb either higher boundary.
theorem
CategorialAlgebras.Homogeneous.CategorialAlgebra.higher_comp
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
(A : CategorialAlgebra I sig)
{l k : I}
(h : l < k)
(b : Bool)
{s : S}
{x y z : A.carrier s}
(hz : z ∈ ((A.sort s).str.dim l).comp x y)
:
Higher boundaries preserve lower composite values.
theorem
CategorialAlgebras.Homogeneous.CategorialAlgebra.operation_boundary
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
(A : CategorialAlgebra I sig)
{a : List S}
{s : S}
(σ : sig a s)
(k : I)
(b : Bool)
(x : Word.Family A.carrier a)
:
Original operations preserve both kinds of boundary.
theorem
CategorialAlgebras.Homogeneous.eval_expansion_boundary
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
{X : S → Type x}
(A : CategorialAlgebra I sig)
(v : SortedSet.Map X A.carrier)
(k : I)
(b : Bool)
{s : S}
(t : Term (Symbol I sig) X s)
:
Term.partialEval v (boundary k b t) = (Term.partialEval v t).bind fun (x : A.toPartialAlgebra.carrier s) => Part.some (A.boundary k b x)
Boundary evaluation in an expanded categorial algebra.
theorem
CategorialAlgebras.Homogeneous.eval_expansion_base
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
{X : S → Type x}
(A : CategorialAlgebra I sig)
(v : SortedSet.Map X A.carrier)
{a : List S}
{s : S}
(σ : sig a s)
(t : Word.Family (Term (Symbol I sig) X) a)
:
Term.partialEval v (Term.app (Symbol.base σ) t) = (partFamily fun (j : Fin a.length) => Term.partialEval v (t j)).bind
fun (z : (j : Fin a.length) → A.toPartialAlgebra.carrier (a.get j)) => Part.some ((A.op σ).toFun z)
Original operation evaluation in an expanded categorial algebra.
theorem
CategorialAlgebras.Homogeneous.eval_expansion_binary
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
(A : CategorialAlgebra I sig)
{s : S}
{m : ℕ}
(x : Fin m → A.carrier s)
(k : I)
(j j' : Fin m)
:
Term.partialEval (uniformValuation x) (binary k (variableTerm s j) (variableTerm s j')) = ((A.sort s).str.dim k).comp (x j) (x j')
Uniform binary terms evaluate to the corresponding categorical composition.
theorem
CategorialAlgebras.Homogeneous.CategorialAlgebra.satisfiesEquations
{I : Type i}
[LT I]
{S : Type u}
{sig : Signature S}
(A : CategorialAlgebra I sig)
:
All contextual equations hold in the expansion of a categorial algebra.