Partial algebras #
Partial operations take word-indexed families to Part. Homomorphisms preserve defined
values. Total algebras embed fully faithfully, isomorphisms are bijective homomorphisms
reflecting definedness, and products have componentwise domains and values.
Families of partial values #
Assemble a dependent family of partial values, defined exactly when every entry is.
Equations
Instances For
Membership in an assembled family is componentwise membership.
A partial algebra structure on a fixed sorted carrier.
Equations
- CategorialAlgebras.PartialAlgebraStructure sig A = ({a : List S} → {s : S} → sig a s → CategorialAlgebras.Word.Family A a → Part (A s))
Instances For
A many-sorted partial algebra.
- carrier : S → Type w
The sorted carrier.
- op : PartialAlgebraStructure sig self.carrier
The partial interpretation of every operation symbol.
Instances For
Homomorphisms #
A homomorphism preserves each defined operation value.
- toMap : SortedSet.Map A.carrier B.carrier
The underlying total sorted mapping.
- map_op {a : List S} {s : S} (σ : sig a s) (x : Word.Family A.carrier a) {y : A.carrier s} : y ∈ A.op σ x → self.toMap s y ∈ B.op σ fun (j : Fin a.length) => self.toMap (a.get j) (x j)
Preservation of defined values, hence also of definedness.
Instances For
Identity homomorphism.
Equations
- CategorialAlgebras.PartialAlgebra.Hom.id A = { toMap := fun (x : S) => id, map_op := ⋯ }
Instances For
Composition in diagrammatic order.
Equations
Instances For
Partial algebras with carriers in a fixed universe form a category.
Equations
- One or more equations did not get rendered due to their size.
The forgetful functor to sorted sets.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A homomorphism preserves definedness.
Total algebras #
Regard a total algebra as a partial algebra with everywhere defined operations.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Inclusion of total algebras into partial algebras.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The inclusion of total algebras is fully faithful.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The total inclusion is full.
The total inclusion is faithful.
Isomorphisms #
Reflection of the domains of all basic operations.
Equations
Instances For
A bijective homomorphism reflecting definedness has a homomorphic inverse.
Equations
Instances For
An isomorphism has a bijective underlying sorted mapping.
Isomorphisms reflect definedness.
A homomorphism is invertible exactly when it is bijective and reflects definedness.
A bijective homomorphism is invertible exactly when it reflects definedness.
Invertibility is equivalent to bijectivity and a homomorphic inverse mapping. For a bijective map its right inverse is necessarily its unique inverse.
Products #
Product algebra; its operations are defined in every component simultaneously.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A product operation is defined exactly when all component operations are.
The canonical projection from a product.
Equations
- CategorialAlgebras.PartialAlgebra.projection A i = { toMap := fun (x : S) (x_1 : (CategorialAlgebras.PartialAlgebra.product A).carrier x) => x_1 i, map_op := ⋯ }
Instances For
The homomorphism induced by a family of homomorphisms into the factors.
Equations
Instances For
The fan of canonical projections, with product index and carriers in a fixed universe.
Equations
Instances For
The componentwise product satisfies the categorical product universal property.
Equations
- One or more equations did not get rendered due to their size.