Documentation

CategorialAlgebras.HepDerivor.Signature

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.

structure CategorialAlgebras.EPSignature (S : Type u) :
Type (max u (v + 1))

An equationally partial signature, with existence conditions for each operation.

Instances For
    def CategorialAlgebras.EPSignature.domainSet {S : Type u} (sig : EPSignature S) (A : PartialAlgebra sig.symbol) {a : List S} {s : S} (σ : sig.symbol a s) :

    The families satisfying the domain conditions of a symbol in $A$ itself.

    Equations
    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
        Instances For

          Every ep-algebra is a weak ep-algebra.

          @[reducible, inline]
          abbrev CategorialAlgebras.EPSignature.EPAlg {S : Type u} (sig : EPSignature S) :
          Type (max (max u v) (w + 1))

          The full category of ep-algebras with carriers in a fixed universe.

          Equations
          Instances For
            @[reducible, inline]
            abbrev CategorialAlgebras.EPSignature.WEPAlg {S : Type u} (sig : EPSignature S) :
            Type (max (max u v) (w + 1))

            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 into weak ep-algebras.

                  Equations
                  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
                      @[simp]

                      Forgetting that an ep-algebra is weak recovers its partial algebra.

                      @[reducible, inline]

                      A many-sorted signature as an ep-signature with empty domain conditions.

                      Equations
                      Instances For
                        theorem CategorialAlgebras.EPSignature.ofSignature_isEPAlgebra_iff {S : Type u} (sig : Signature S) (A : PartialAlgebra sig) :
                        (ofSignature sig).IsEPAlgebra A ↔ ∀ {a : List S} {s : S} (σ : sig a s) (z : Word.Family A.carrier a), (A.op σ z).Dom

                        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
                        Instances For

                          Recovering a total algebra preserves the original partial operations.

                          @[simp]

                          Recovering the total operations of a total algebra returns that algebra.

                          A symbol depends on another when the latter occurs in its domain conditions.

                          Equations
                          Instances For
                            structure CategorialAlgebras.HepSignature (S : Type u) extends CategorialAlgebras.EPSignature S :
                            Type (max u (v + 1))

                            A hierarchical ep-signature has well-founded domain dependencies.

                            Instances For
                              theorem CategorialAlgebras.HepSignature.symbol_induction {S : Type u} (sig : HepSignature S) {P : OperationSymbol sig.symbol → Prop} (step : ∀ (σ : OperationSymbol sig.symbol), (∀ (τ : OperationSymbol sig.symbol), sig.DependsOn τ σ → P τ) → P σ) (σ : OperationSymbol sig.symbol) :
                              P σ

                              Well-founded induction on symbols, with all domain dependencies as hypotheses.

                              A symbol never occurs in its own domain conditions.

                              @[reducible, inline]

                              Every signature with empty domain conditions is hierarchical.

                              Equations
                              Instances For
                                structure CategorialAlgebras.ContextualQEEquation {S : Type u} (sig : Signature S) :
                                Type (max (max u v) (x + 1))

                                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.

                                • finite : Finite ((s : S) × self.vars s)

                                  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
                                  structure CategorialAlgebras.EPSpecification {S : Type u} (sig : EPSignature S) :
                                  Type (max (max u v) (x + 1))

                                  An ep-specification adds a set of contextual axioms to an ep-signature.

                                  Instances For

                                    A model is an ep-algebra in which every contextual axiom is valid.

                                    Equations
                                    Instances For

                                      The ep-variety determined by a specification.

                                      Equations
                                      Instances For
                                        @[reducible, inline]
                                        abbrev CategorialAlgebras.EPSpecification.Models {S : Type u} {sig : EPSignature S} (E : EPSpecification sig) :
                                        Type (max (max u v) (w + 1))

                                        The full category of models inside the category of ep-algebras.

                                        Equations
                                        Instances For

                                          The inclusion of models into ep-algebras.

                                          Equations
                                          Instances For

                                            The empty specification imposes exactly the ep-algebra conditions.