In mathematical logic, a ground term of a formal system is a term that does not contain any variables. Similarly, a ground formula is a formula that does not contain any variables.
In first-order logic with identity with constant symbols
a
b
Q(a)\lorP(b)
Consider the following expressions in first order logic over a signature containing the constant symbols
0
1
s
+
s(0),s(s(0)),s(s(s(0))),\ldots
0+1, 0+1+1,\ldots
0+s(0), s(0)+s(0), s(0)+s(s(0))+0
x+s(1)
s(x)
s(0)=1
0+0=0
What follows is a formal definition for first-order languages. Let a first-order language be given, with
C
F
P
A is a term that contains no variables. Ground terms may be defined by logical recursion (formula-recursion):
C
f\inF
n
\alpha1,\alpha2,\ldots,\alphan
f\left(\alpha1,\alpha2,\ldots,\alphan\right)
Roughly speaking, the Herbrand universe is the set of all ground terms.
A , or is an atomic formula all of whose argument terms are ground terms.
If
p\inP
n
\alpha1,\alpha2,\ldots,\alphan
p\left(\alpha1,\alpha2,\ldots,\alphan\right)
Roughly speaking, the Herbrand base is the set of all ground atoms, while a Herbrand interpretation assigns a truth value to each ground atom in the base.
A or is a formula without variables.
Ground formulas may be defined by syntactic recursion as follows:
\varphi
\psi
lnot\varphi
\varphi\lor\psi
\varphi\land\psi
Ground formulas are a particular kind of closed formulas.