Documentation

CategorialAlgebras.HepDerivor.Transformed

Generalized hep-derivors and transformed algebras #

A generalized hep-derivor selects cells by existence equations in one variable. Its transformed operations are defined by well-founded recursion on source symbols. Their public characterization uses the domain conditions in the transformed algebra itself, definedness of the interpreting term, and membership of its value in the cells.

theorem CategorialAlgebras.Word.valuation_map {S : Type u} {T : Type u'} {φ : S → T} {a : List S} {A : T → Type w} {B : T → Type w'} (f : SortedSet.Map A B) (b : Family (fun (s : S) => A (φ s)) a) :
(fun (t : T) (z : MappedVariables φ a t) => f t (valuation b t z)) = valuation fun (j : Fin a.length) => f (φ (a.get j)) (b j)

Family valuations commute with every sorted map, also after changing sorts.

def CategorialAlgebras.Word.singletonValuation {S : Type u} {A : S → Type w} {s : S} (b : A s) :

The valuation of a one-letter word assigning its unique position the value $b$.

Equations
Instances For
    theorem CategorialAlgebras.Word.singletonValuation_natural {S : Type u} {A : S → Type w} {B : S → Type w'} (f : SortedSet.Map A B) {s : S} (b : A s) :
    (fun (t : S) (z : Variables [s] t) => f t (singletonValuation b t z)) = singletonValuation (f s b)

    Single-variable valuation commutes with every sorted map.

    structure CategorialAlgebras.GeneralizedHepDerivor {S : Type u} {T : Type u'} (sig : HepSignature S) (tau : HepSignature T) extends CategorialAlgebras.Derivor sig.symbol tau.symbol :
    Type (max (max (max u u') v) v')

    A derivor equipped with a single-variable existence domain for each source sort.

    Instances For

      Cells and their functor #

      def CategorialAlgebras.GeneralizedHepDerivor.IsCell {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) (B : PartialAlgebra tau.symbol) (s : S) (b : B.carrier (c.sortMap s)) :

      An element is a cell when it satisfies the domain of its source sort.

      Equations
      Instances For
        def CategorialAlgebras.GeneralizedHepDerivor.Cell {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) (B : PartialAlgebra tau.symbol) (s : S) :

        The sorted carrier of cells.

        Equations
        Instances For
          theorem CategorialAlgebras.GeneralizedHepDerivor.isCell_map {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) {B : PartialAlgebra tau.symbol} {B' : PartialAlgebra tau.symbol} (f : B.Hom B') {s : S} {b : B.carrier (c.sortMap s)} (h : c.IsCell B s b) :
          c.IsCell B' s (f.toMap (c.sortMap s) b)

          Homomorphisms send cells to cells.

          def CategorialAlgebras.GeneralizedHepDerivor.cellMap {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) {B : PartialAlgebra tau.symbol} {B' : PartialAlgebra tau.symbol} (f : B.Hom B') :
          SortedSet.Map (c.Cell B) (c.Cell B')

          The birrestriction of a homomorphism to the selected cells.

          Equations
          Instances For

            The functor sending a partial algebra to its sorted set of cells.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem CategorialAlgebras.GeneralizedHepDerivor.isCell_of_empty {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) (h : ∀ (s : S), c.domain s = ⊥) (B : PartialAlgebra tau.symbol) (s : S) (b : B.carrier (c.sortMap s)) :
              c.IsCell B s b

              With empty domains every element is a cell.

              With empty domains, forgetting the subtype of cells gives the usual change of sorts. Both directions act identically on the underlying elements.

              Formally weaker than the informal statement. Informally, the two functors are equal; here the carriers of transformed algebras are subtypes of cells, so the equality becomes a natural isomorphism that is the identity on elements.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                Well-founded construction #

                def CategorialAlgebras.GeneralizedHepDerivor.imageValue {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) (B : PartialAlgebra tau.symbol) {a : List S} {s : S} (σ : sig.symbol a s) (b : Word.Family (c.Cell B) a) :
                Part (B.carrier (c.sortMap s))

                The interpreting term evaluated on the underlying elements of a family of cells.

                Equations
                Instances For

                  The partial algebra on cells obtained by recursion over domain dependencies.

                  Equations
                  Instances For
                    theorem CategorialAlgebras.GeneralizedHepDerivor.mem_transformed_op {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) (B : PartialAlgebra tau.symbol) {a : List S} {s : S} (σ : sig.symbol a s) (b : Word.Family (c.Cell B) a) (y : c.Cell B s) :
                    y ∈ (c.transformed B).op σ b ↔ b ∈ sig.domainSet (c.transformed B) σ ∧ ↑y ∈ c.imageValue B σ b

                    A transformed operation has value $y$ exactly when its domain conditions hold in the transformed algebra itself and the interpreting term has underlying value $y$. The subtype of $y$ supplies the third condition, that this value is a cell.

                    theorem CategorialAlgebras.GeneralizedHepDerivor.transformed_op_dom {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) (B : PartialAlgebra tau.symbol) {a : List S} {s : S} (σ : sig.symbol a s) (b : Word.Family (c.Cell B) a) :
                    ((c.transformed B).op σ b).Dom ↔ b ∈ sig.domainSet (c.transformed B) σ ∧ ∃ (h : (c.imageValue B σ b).Dom), c.IsCell B s ((c.imageValue B σ b).get h)

                    The domain of a transformed operation expresses all three defining conditions.

                    Every transformed algebra is a weak ep-algebra.

                    theorem CategorialAlgebras.GeneralizedHepDerivor.transformed_isEPAlgebra_iff {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) (B : PartialAlgebra tau.symbol) :
                    sig.IsEPAlgebra (c.transformed B) ↔ ∀ {a : List S} {s : S} (σ : sig.symbol a s), ∀ b ∈ sig.domainSet (c.transformed B) σ, ∃ (h : (c.imageValue B σ b).Dom), c.IsCell B s ((c.imageValue B σ b).get h)

                    The transformed algebra is an ep-algebra precisely when domain satisfaction ensures that the interpreting term is defined and its value is a cell.

                    The induced functors #

                    theorem CategorialAlgebras.GeneralizedHepDerivor.imageValue_map {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) {B : PartialAlgebra tau.symbol} {B' : PartialAlgebra tau.symbol} (f : B.Hom B') {a : List S} {s : S} (σ : sig.symbol a s) (b : Word.Family (c.Cell B) a) {q : B.carrier (c.sortMap s)} (hq : q ∈ c.imageValue B σ b) :
                    f.toMap (c.sortMap s) q ∈ c.imageValue B' σ fun (j : Fin a.length) => c.cellMap f (a.get j) (b j)

                    Homomorphisms preserve the values of interpreting terms on families of cells.

                    theorem CategorialAlgebras.GeneralizedHepDerivor.cellMap_mem_op {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) {B : PartialAlgebra tau.symbol} {B' : PartialAlgebra tau.symbol} (f : B.Hom B') {a : List S} {s : S} (σ : sig.symbol a s) (b : Word.Family (c.Cell B) a) {y : (c.transformed B).carrier s} (hy : y ∈ (c.transformed B).op σ b) :
                    c.cellMap f s y ∈ (c.transformed B').op σ fun (j : Fin a.length) => c.cellMap f (a.get j) (b j)

                    The birrestriction to cells preserves every transformed operation. The proof uses well-founded induction, requiring preservation only at symbols occurring in the current domain conditions.

                    noncomputable def CategorialAlgebras.GeneralizedHepDerivor.transformedHom {S : Type u} {T : Type u'} {sig : HepSignature S} {tau : HepSignature T} (c : GeneralizedHepDerivor sig tau) {B : PartialAlgebra tau.symbol} {B' : PartialAlgebra tau.symbol} (f : B.Hom B') :

                    A homomorphism induces a homomorphism of transformed algebras by birrestriction.

                    Equations
                    Instances For

                      The functor induced by a generalized hep-derivor on all partial algebras.

                      Equations
                      Instances For
                        @[simp]

                        The forgetful triangle commutes strictly: the underlying functor is the cell functor.

                        The induced functor restricted and corestricted to weak ep-algebras.

                        Equations
                        Instances For
                          @[simp]

                          The weak-algebra functor agrees with the partial-algebra functor after inclusion.