- Source: Term algebra
In universal algebra and mathematical logic, a term algebra is a freely generated algebraic structure over a given signature. For example, in a signature consisting of a single binary operation, the term algebra over a set X of variables is exactly the free magma generated by X. Other synonyms for the notion include absolutely free algebra and anarchic algebra.
From a category theory perspective, a term algebra is the initial object for the category of all X-generated algebras of the same signature, and this object, unique up to isomorphism, is called an initial algebra; it generates by homomorphic projection all algebras in the category.
A similar notion is that of a Herbrand universe in logic, usually used under this name in logic programming, which is (absolutely freely) defined starting from the set of constants and function symbols in a set of clauses. That is, the Herbrand universe consists of all ground terms: terms that have no variables in them.
An atomic formula or atom is commonly defined as a predicate applied to a tuple of terms; a ground atom is then a predicate in which only ground terms appear. The Herbrand base is the set of all ground atoms that can be formed from predicate symbols in the original set of clauses and terms in its Herbrand universe. These two concepts are named after Jacques Herbrand.
Term algebras also play a role in the semantics of abstract data types, where an abstract data type declaration provides the signature of a multi-sorted algebraic structure and the term algebra is a concrete model of the abstract declaration.
Universal algebra
A type
τ
{\displaystyle \tau }
is a set of function symbols, with each having an associated arity (i.e. number of inputs). For any non-negative integer
n
{\displaystyle n}
, let
τ
n
{\displaystyle \tau _{n}}
denote the function symbols in
τ
{\displaystyle \tau }
of arity
n
{\displaystyle n}
. A constant is a function symbol of arity 0.
Let
τ
{\displaystyle \tau }
be a type, and let
X
{\displaystyle X}
be a non-empty set of symbols, representing the variable symbols. (For simplicity, assume
X
{\displaystyle X}
and
τ
{\displaystyle \tau }
are disjoint.) Then the set of terms
T
(
X
)
{\displaystyle T(X)}
of type
τ
{\displaystyle \tau }
over
X
{\displaystyle X}
is the set of all well-formed strings that can be constructed using the variable symbols of
X
{\displaystyle X}
and the constants and operations of
τ
{\displaystyle \tau }
. Formally,
T
(
X
)
{\displaystyle T(X)}
is the smallest set such that:
X
∪
τ
0
⊆
T
(
X
)
{\displaystyle X\cup \tau _{0}\subseteq T(X)}
— each variable symbol from
X
{\displaystyle X}
is a term in
T
(
X
)
{\displaystyle T(X)}
, and so is each constant symbol from
τ
0
{\displaystyle \tau _{0}}
.
For all
n
≥
1
{\displaystyle n\geq 1}
and for all function symbols
f
∈
τ
n
{\displaystyle f\in \tau _{n}}
and terms
t
1
,
.
.
.
,
t
n
∈
T
(
X
)
{\displaystyle t_{1},...,t_{n}\in T(X)}
, we have the string
f
(
t
1
,
.
.
.
,
t
n
)
∈
T
(
X
)
{\displaystyle f(t_{1},...,t_{n})\in T(X)}
— given
n
{\displaystyle n}
terms
t
1
,
.
.
.
,
t
n
{\displaystyle t_{1},...,t_{n}}
, the application of an
n
{\displaystyle n}
-ary function symbol
f
{\displaystyle f}
to them represents again a term.
The term algebra
T
(
X
)
{\displaystyle {\mathcal {T}}(X)}
of type
τ
{\displaystyle \tau }
over
X
{\displaystyle X}
is, in summary, the algebra of type
τ
{\displaystyle \tau }
that maps each expression to its string representation. Formally,
T
(
X
)
{\displaystyle {\mathcal {T}}(X)}
is defined as follows:
The domain of
T
(
X
)
{\displaystyle {\mathcal {T}}(X)}
is
T
(
X
)
{\displaystyle T(X)}
.
For each nullary function
f
{\displaystyle f}
in
τ
0
{\displaystyle \tau _{0}}
,
f
T
(
X
)
(
)
{\displaystyle f^{{\mathcal {T}}(X)}()}
is defined as the string
f
{\displaystyle f}
.
For all
n
≥
1
{\displaystyle n\geq 1}
and for each n-ary function
f
{\displaystyle f}
in
τ
{\displaystyle \tau }
and elements
t
1
,
.
.
.
,
t
n
{\displaystyle t_{1},...,t_{n}}
in the domain,
f
T
(
X
)
(
t
1
,
.
.
.
,
t
n
)
{\displaystyle f^{{\mathcal {T}}(X)}(t_{1},...,t_{n})}
is defined as the string
f
(
t
1
,
.
.
.
,
t
n
)
{\displaystyle f(t_{1},...,t_{n})}
.
A term algebra is called absolutely free because for any algebra
A
{\displaystyle {\mathcal {A}}}
of type
τ
{\displaystyle \tau }
, and for any function
g
:
X
→
A
{\displaystyle g:X\to {\mathcal {A}}}
,
g
{\displaystyle g}
extends to a unique homomorphism
g
∗
:
T
(
X
)
→
A
{\displaystyle g^{\ast }:{\mathcal {T}}(X)\to {\mathcal {A}}}
, which simply evaluates each term
t
∈
T
(
X
)
{\displaystyle t\in {\mathcal {T}}(X)}
to its corresponding value
g
∗
(
t
)
∈
A
{\displaystyle g^{\ast }(t)\in {\mathcal {A}}}
. Formally, for each
t
∈
T
(
X
)
{\displaystyle t\in {\mathcal {T}}(X)}
:
If
t
∈
X
{\displaystyle t\in X}
, then
g
∗
(
t
)
=
g
(
t
)
{\displaystyle g^{\ast }(t)=g(t)}
.
If
t
=
f
∈
τ
0
{\displaystyle t=f\in \tau _{0}}
, then
g
∗
(
t
)
=
f
A
(
)
{\displaystyle g^{\ast }(t)=f^{\mathcal {A}}()}
.
If
t
=
f
(
t
1
,
.
.
.
,
t
n
)
{\displaystyle t=f(t_{1},...,t_{n})}
where
f
∈
τ
n
{\displaystyle f\in \tau _{n}}
and
n
≥
1
{\displaystyle n\geq 1}
, then
g
∗
(
t
)
=
f
A
(
g
∗
(
t
1
)
,
.
.
.
,
g
∗
(
t
n
)
)
{\displaystyle g^{\ast }(t)=f^{\mathcal {A}}(g^{\ast }(t_{1}),...,g^{\ast }(t_{n}))}
.
Example
As an example type inspired from integer arithmetic can be defined by
τ
0
=
{
0
,
1
}
{\displaystyle \tau _{0}=\{0,1\}}
,
τ
1
=
{
}
{\displaystyle \tau _{1}=\{\}}
,
τ
2
=
{
+
,
∗
}
{\displaystyle \tau _{2}=\{+,*\}}
, and
τ
i
=
{
}
{\displaystyle \tau _{i}=\{\}}
for each
i
>
2
{\displaystyle i>2}
.
The best-known algebra of type
τ
{\displaystyle \tau }
has the natural numbers as its domain and interprets
0
{\displaystyle 0}
,
1
{\displaystyle 1}
,
+
{\displaystyle +}
, and
∗
{\displaystyle *}
in the usual way; we refer to it as
A
n
a
t
{\displaystyle {\mathcal {A}}_{nat}}
.
For the example variable set
X
=
{
x
,
y
}
{\displaystyle X=\{x,y\}}
, we are going to investigate the term algebra
T
(
X
)
{\displaystyle {\mathcal {T}}(X)}
of type
τ
{\displaystyle \tau }
over
X
{\displaystyle X}
.
First, the set
T
(
X
)
{\displaystyle T(X)}
of terms of type
τ
{\displaystyle \tau }
over
X
{\displaystyle X}
is considered.
We use red color to flag its members, which otherwise may be hard to recognize due to their uncommon syntactic form.
We have e.g.
x
∈
T
(
X
)
{\displaystyle {\color {red}x}\in T(X)}
, since
x
∈
X
{\displaystyle x\in X}
is a variable symbol;
1
∈
T
(
X
)
{\displaystyle {\color {red}1}\in T(X)}
, since
1
∈
τ
0
{\displaystyle 1\in \tau _{0}}
is a constant symbol; hence
+
x
1
∈
T
(
X
)
{\displaystyle {\color {red}+x1}\in T(X)}
, since
+
{\displaystyle +}
is a 2-ary function symbol; hence, in turn,
∗
+
x
1
x
∈
T
(
X
)
{\displaystyle {\color {red}*+x1x}\in T(X)}
since
∗
{\displaystyle *}
is a 2-ary function symbol.
More generally, each string in
T
(
X
)
{\displaystyle T(X)}
corresponds to a mathematical expression built from the admitted symbols and written in Polish prefix notation;
for example, the term
∗
+
x
1
x
{\displaystyle {\color {red}*+x1x}}
corresponds to the expression
(
x
+
1
)
∗
x
{\displaystyle (x+1)*x}
in usual infix notation. No parentheses are needed to avoid ambiguities in Polish notation; e.g. the infix expression
x
+
(
1
∗
x
)
{\displaystyle x+(1*x)}
corresponds to the term
+
x
∗
1
x
{\displaystyle {\color {red}+x*1x}}
.
To give some counter-examples, we have e.g.
z
∉
T
(
X
)
{\displaystyle {\color {red}z}\not \in T(X)}
, since
z
{\displaystyle z}
is neither an admitted variable symbol nor an admitted constant symbol;
3
∉
T
(
X
)
{\displaystyle {\color {red}3}\not \in T(X)}
, for the same reason,
+
1
∉
T
(
X
)
{\displaystyle {\color {red}+1}\not \in T(X)}
, since
+
{\displaystyle +}
is a 2-ary function symbol, but is used here with only one argument term (viz.
1
{\displaystyle {\color {red}1}}
).
Now that the term set
T
(
X
)
{\displaystyle T(X)}
is established, we consider the term algebra
T
(
X
)
{\displaystyle {\mathcal {T}}(X)}
of type
τ
{\displaystyle \tau }
over
X
{\displaystyle X}
.
This algebra uses
T
(
X
)
{\displaystyle T(X)}
as its domain, on which addition and multiplication need to be defined.
The addition function
+
T
(
X
)
{\displaystyle +^{{\mathcal {T}}(X)}}
takes two terms
p
{\displaystyle p}
and
q
{\displaystyle q}
and returns the term
+
p
q
{\displaystyle {\color {red}+}pq}
; similarly, the multiplication function
∗
T
(
X
)
{\displaystyle *^{{\mathcal {T}}(X)}}
maps given terms
p
{\displaystyle p}
and
q
{\displaystyle q}
to the term
∗
p
q
{\displaystyle {\color {red}*}pq}
.
For example,
∗
T
(
X
)
(
+
x
1
,
x
)
{\displaystyle *^{{\mathcal {T}}(X)}({\color {red}+x1},{\color {red}x})}
evaluates to the term
∗
+
x
1
x
{\displaystyle {\color {red}*+x1x}}
.
Informally, the operations
+
T
(
X
)
{\displaystyle +^{{\mathcal {T}}(X)}}
and
∗
T
(
X
)
{\displaystyle *^{{\mathcal {T}}(X)}}
are both "sluggards" in that they just record what computation should be done, rather than doing it.
As an example for unique extendability of a homomorphism consider
g
:
X
→
A
n
a
t
{\displaystyle g:X\to {\mathcal {A}}_{nat}}
defined by
g
(
x
)
=
7
{\displaystyle g(x)=7}
and
g
(
y
)
=
3
{\displaystyle g(y)=3}
.
Informally,
g
{\displaystyle g}
defines an assignment of values to variable symbols, and once this is done, every term from
T
(
X
)
{\displaystyle T(X)}
can be evaluated in a unique way in
A
n
a
t
{\displaystyle {\mathcal {A}}_{nat}}
.
For example,
g
∗
(
+
x
1
)
=
g
∗
(
x
)
+
g
∗
(
1
)
since
g
∗
is a homomorphism
=
g
(
x
)
+
g
∗
(
1
)
since
g
∗
coincides on
X
with
g
=
7
+
g
∗
(
1
)
by definition of
g
=
7
+
1
since
g
∗
is a homomorphism
=
8
according to the well-known arithmetical rules in
A
n
a
t
{\displaystyle {\begin{array}{lll}&g^{*}({\color {red}+x1})\\=&g^{*}({\color {red}x})+g^{*}({\color {red}1})&{\text{ since }}g^{*}{\text{ is a homomorphism }}\\=&g({\color {red}x})+g^{*}({\color {red}1})&{\text{ since }}g^{*}{\text{ coincides on }}X{\text{ with }}g\\=&7+g^{*}({\color {red}1})&{\text{ by definition of }}g\\=&7+1&{\text{ since }}g^{*}{\text{ is a homomorphism }}\\=&8&{\text{ according to the well-known arithmetical rules in }}{\mathcal {A}}_{nat}\\\end{array}}}
In a similar way, one obtains
g
∗
(
∗
+
x
1
x
)
=
.
.
.
=
8
∗
g
(
x
)
=
.
.
.
=
56
{\displaystyle g^{*}({\color {red}*+x1x})=...=8*g({\color {red}x})=...=56}
.
Herbrand base
The signature σ of a language is a triple
Decidability
Term algebras can be shown decidable using quantifier elimination. The complexity of the decision problem is in NONELEMENTARY because binary constructors are injective and thus pairing functions.
See also
Answer-set programming
Clone (algebra)
Domain of discourse / Universe (mathematics)
Rabin's tree theorem (the monadic theory of the infinite complete binary tree is decidable)
Initial algebra
Abstract data type
Term rewriting system
References
Further reading
Joel Berman (2005). "The structure of free algebras". In Structural Theory of Automata, Semigroups, and Universal Algebra. Springer. pp. 47–76. MR2210125.
External links
Weisstein, Eric W. "Herbrand Universe". MathWorld.
Kata Kunci Pencarian:
- Aljabar
- Sifat komutatif
- Ekspresi (matematika)
- Aljabar elementer
- Daftar istilah teori kategori
- Rumus kuadrat
- Aljabar Boolean (struktur)
- Kuwait
- Nilai absolut
- Daftar penemuan di dunia Islam pertengahan
- Term algebra
- Algebra over a field
- Term
- Boolean algebra
- Algebra
- Algebraic notation (chess)
- Algebraic structure
- Universal algebra
- Abstract algebra
- Free algebra
Terminator 3: Rise of the Machines (2003)
Terminator Genisys (2015)
The Killer’s Game (2024)
How to Make Millions Before Grandma Dies (2024)
No More Posts Available.
No more pages to load.