Equationally partial signatures and specifications #
Domain conditions are existence equations in the positions of an input word. Ep-algebras have exactly these domains; weak ep-algebras may have smaller domains. Hierarchical signatures have a well-founded dependency relation on symbols. Specifications retain a separate finite variable context for every axiom.
An equationally partial signature, with existence conditions for each operation.
- symbol : Signature S
The underlying many-sorted signature.
The domain conditions, in the positions of the input word.
Instances For
The families satisfying the domain conditions of a symbol in $A$ itself.
Equations
- sig.domainSet A σ = {z : CategorialAlgebras.Word.Family A.carrier a | CategorialAlgebras.EEquationSet.Satisfies A (CategorialAlgebras.Word.valuation z) (sig.domain σ)}
Instances For
In an ep-algebra, definedness is equivalent to satisfaction of domain conditions.
Equations
Instances For
In a weak ep-algebra, definedness implies satisfaction of domain conditions.
Equations
- sig.IsWeakEPAlgebra A = ∀ {a : List S} {s : S} (σ : sig.symbol a s) (z : CategorialAlgebras.Word.Family A.carrier a), (A.op σ z).Dom → z ∈ sig.domainSet A σ
Instances For
Every ep-algebra is a weak ep-algebra.
The full category of ep-algebras with carriers in a fixed universe.
Equations
Instances For
The full category of weak ep-algebras with carriers in a fixed universe.
Equations
Instances For
Inclusion of ep-algebras into partial algebras.
Equations
Instances For
Inclusion of weak ep-algebras into partial algebras.
Equations
Instances For
The inclusion of ep-algebras is fully faithful.
Equations
Instances For
The inclusion of weak ep-algebras is fully faithful.
Equations
Instances For
The inclusion of ep-algebras into weak ep-algebras.
Equations
- sig.toWeak = CategorialAlgebras.corestrict sig.inclusion sig.IsWeakEPAlgebra ⋯
Instances For
The inclusion from ep-algebras to weak ep-algebras is fully faithful.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Forgetting that an ep-algebra is weak recovers its partial algebra.
A many-sorted signature as an ep-signature with empty domain conditions.
Equations
Instances For
Empty domain conditions characterize precisely everywhere defined operations.
Formally weaker than the informal statement. Informally, the category of ep-algebras of a signature without domain conditions is the category of total algebras; here only their objects are identified: an ep-algebra is a partial algebra whose operations are all total.
Total algebras satisfy the ep-signature with empty domain conditions.
Recover a total algebra from an ep-algebra with empty domain conditions.
Equations
- CategorialAlgebras.EPSignature.toAlgebra sig A h = { carrier := A.carrier, op := fun {a : List S} {s : S} (σ : sig a s) (z : CategorialAlgebras.Word.Family A.carrier a) => (A.op σ z).get ⋯ }
Instances For
Recovering a total algebra preserves the original partial operations.
Recovering the total operations of a total algebra returns that algebra.
A symbol depends on another when the latter occurs in its domain conditions.
Instances For
A hierarchical ep-signature has well-founded domain dependencies.
- wellFounded : WellFounded self.DependsOn
Well-foundedness of the dependency relation on all symbols.
Instances For
Well-founded induction on symbols, with all domain dependencies as hypotheses.
A symbol never occurs in its own domain conditions.
Every signature with empty domain conditions is hierarchical.
Equations
- CategorialAlgebras.HepSignature.ofSignature sig = { toEPSignature := CategorialAlgebras.EPSignature.ofSignature sig, wellFounded := ⋯ }
Instances For
A quasi-existence axiom with its own finite sorted variable context.
- vars : S → Type x
The context is retained even for variables not occurring in the terms.
There are finitely many variables in total.
- premises : List S
The word of sorts of the premises.
- sort : S
The sort of the conclusion.
- equation : QEEquation sig self.vars self.premises self.sort
The contextual quasi-existence equation.
Instances For
An ep-specification adds a set of contextual axioms to an ep-signature.
- equations : Set (ContextualQEEquation sig.symbol)
Each axiom has its own finite context.
Instances For
A model is an ep-algebra in which every contextual axiom is valid.
Equations
- E.IsModel A = (sig.IsEPAlgebra A ∧ ∀ e ∈ E.equations, CategorialAlgebras.QEEquation.Valid A e.equation)
Instances For
The ep-variety determined by a specification.
Instances For
The full category of models inside the category of ep-algebras.
Equations
- E.Models = CategoryTheory.ObjectProperty.FullSubcategory fun (A : sig.EPAlg) => ∀ e ∈ E.equations, CategorialAlgebras.QEEquation.Valid A.obj e.equation
Instances For
The inclusion of models into ep-algebras.
Equations
- E.inclusion = CategoryTheory.ObjectProperty.ι fun (A : sig.EPAlg) => ∀ e ∈ E.equations, CategorialAlgebras.QEEquation.Valid A.obj e.equation
Instances For
The inclusion of the model category is fully faithful.
Equations
- E.inclusionFullyFaithful = CategoryTheory.ObjectProperty.fullyFaithfulι fun (A : sig.EPAlg) => ∀ e ∈ E.equations, CategorialAlgebras.QEEquation.Valid A.obj e.equation
Instances For
The empty specification imposes exactly the ep-algebra conditions.