Documentation

CategorialAlgebras.HepDerivor.Symbols

Operation symbols and dependence of evaluation #

Symbols retain their input word and output sort. Partial evaluation and existence equations depend only on the interpretations of the symbols occurring in them. The corresponding local preservation results do not require a homomorphism on symbols that do not occur.

@[reducible, inline]
abbrev CategorialAlgebras.OperationSymbol {S : Type u} (sig : Signature S) :
Type (max u v u)

All operation symbols, including their input words and output sorts.

Equations
Instances For
    def CategorialAlgebras.Term.symbols {S : Type u} {sig : Signature S} {X : S → Type x} {s : S} :
    Term sig X s → Set (OperationSymbol sig)

    The set $\mathrm{Op}(P)$ of operation symbols occurring in a term.

    Equations
    Instances For
      @[simp]
      theorem CategorialAlgebras.Term.symbols_var {S : Type u} {sig : Signature S} {X : S → Type x} {s : S} (x : X s) :

      A variable contains no operation symbols.

      @[simp]
      theorem CategorialAlgebras.Term.mem_symbols_app {S : Type u} {sig : Signature S} {X : S → Type x} {a : List S} {s : S} (σ : sig a s) (t : Word.Family (Term sig X) a) (p : OperationSymbol sig) :
      p ∈ (app σ t).symbols ↔ p = ⟨a, ⟨s, σ⟩⟩ ∨ ∃ (j : Fin a.length), p ∈ (t j).symbols

      An application contains its head symbol and the symbols of its arguments.

      theorem CategorialAlgebras.Term.partialEval_map_of_symbols {S : Type u} {sig : Signature S} {X : S → Type x} {A : PartialAlgebra sig} {B : PartialAlgebra sig} (f : SortedSet.Map A.carrier B.carrier) (a : SortedSet.Map X A.carrier) {s : S} (t : Term sig X s) (hf : ∀ {b : List S} {r : S} (σ : sig b r), ⟨b, ⟨r, σ⟩⟩ ∈ t.symbols → ∀ (z : Word.Family A.carrier b) {q : A.carrier r}, q ∈ A.op σ z → f r q ∈ B.op σ fun (j : Fin b.length) => f (b.get j) (z j)) {q : A.carrier s} (hq : q ∈ partialEval a t) :
      f s q ∈ partialEval (fun (s : S) (x : X s) => f s (a s x)) t

      Preserving just the symbols of a term suffices to preserve its defined values.

      theorem CategorialAlgebras.Term.partialEval_eq_of_symbols {S : Type u} {sig : Signature S} {X : S → Type x} {C : S → Type w} (op op' : PartialAlgebraStructure sig C) (a : SortedSet.Map X C) {s : S} (t : Term sig X s) (h : ∀ {b : List S} {r : S} (σ : sig b r), ⟨b, ⟨r, σ⟩⟩ ∈ t.symbols → ∀ (z : Word.Family C b), op σ z = op' σ z) :

      Evaluation depends only on the operations of the symbols occurring in the term.

      def CategorialAlgebras.EEquation.symbols {S : Type u} {sig : Signature S} {X : S → Type x} {s : S} (e : EEquation sig X s) :

      The symbols occurring on either side of an existence equation.

      Equations
      Instances For
        theorem CategorialAlgebras.EEquation.satisfies_map_of_symbols {S : Type u} {sig : Signature S} {X : S → Type x} {A : PartialAlgebra sig} {B : PartialAlgebra sig} (f : SortedSet.Map A.carrier B.carrier) (a : SortedSet.Map X A.carrier) {s : S} (e : EEquation sig X s) (hf : ∀ {b : List S} {r : S} (σ : sig b r), ⟨b, ⟨r, σ⟩⟩ ∈ e.symbols → ∀ (z : Word.Family A.carrier b) {q : A.carrier r}, q ∈ A.op σ z → f r q ∈ B.op σ fun (j : Fin b.length) => f (b.get j) (z j)) (he : Satisfies A a e) :
        Satisfies B (fun (s : S) (x : X s) => f s (a s x)) e

        Local preservation of operation values preserves an existence equation.

        theorem CategorialAlgebras.EEquation.satisfies_iff_of_symbols {S : Type u} {sig : Signature S} {X : S → Type x} {C : S → Type w} (op op' : PartialAlgebraStructure sig C) (a : SortedSet.Map X C) {s : S} (e : EEquation sig X s) (h : ∀ {b : List S} {r : S} (σ : sig b r), ⟨b, ⟨r, σ⟩⟩ ∈ e.symbols → ∀ (z : Word.Family C b), op σ z = op' σ z) :
        Satisfies { carrier := C, op := fun {a : List S} {s : S} => op } a e ↔ Satisfies { carrier := C, op := fun {a : List S} {s : S} => op' } a e

        Satisfaction depends only on the symbols occurring in the equation.

        def CategorialAlgebras.EEquationSet.symbols {S : Type u} {sig : Signature S} {X : S → Type x} (E : EEquationSet sig X) :

        The union of the symbols of all equations in a sorted set.

        Equations
        Instances For
          theorem CategorialAlgebras.EEquationSet.satisfies_map_of_symbols {S : Type u} {sig : Signature S} {X : S → Type x} {A : PartialAlgebra sig} {B : PartialAlgebra sig} (f : SortedSet.Map A.carrier B.carrier) (a : SortedSet.Map X A.carrier) (E : EEquationSet sig X) (hf : ∀ {b : List S} {r : S} (σ : sig b r), ⟨b, ⟨r, σ⟩⟩ ∈ E.symbols → ∀ (z : Word.Family A.carrier b) {q : A.carrier r}, q ∈ A.op σ z → f r q ∈ B.op σ fun (j : Fin b.length) => f (b.get j) (z j)) (he : Satisfies A a E) :
          Satisfies B (fun (s : S) (x : X s) => f s (a s x)) E

          Local preservation on the symbols of a set of equations preserves satisfaction.

          theorem CategorialAlgebras.EEquationSet.satisfies_iff_of_symbols {S : Type u} {sig : Signature S} {X : S → Type x} {C : S → Type w} (op op' : PartialAlgebraStructure sig C) (a : SortedSet.Map X C) (E : EEquationSet sig X) (h : ∀ {b : List S} {r : S} (σ : sig b r), ⟨b, ⟨r, σ⟩⟩ ∈ E.symbols → ∀ (z : Word.Family C b), op σ z = op' σ z) :
          Satisfies { carrier := C, op := fun {a : List S} {s : S} => op } a E ↔ Satisfies { carrier := C, op := fun {a : List S} {s : S} => op' } a E

          Satisfaction of a set depends only on the symbols occurring in its equations.