Jump to content

Ground expression: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Ground formula: all the terms in a ground atom are ground terms, which contains no variables. An atom which is not ground can have free variables.
No edit summary
 
(30 intermediate revisions by 18 users not shown)
Line 1: Line 1:
In [[mathematical logic]], a '''ground term''' of a [[formal system]] is a [[term (logic)|term]] that does not contain any free variables.
{{Short description|Term that does not contain any variables}}
{{Formal languages}}
In [[mathematical logic]], a '''ground term''' of a [[formal system]] is a [[Term (logic)|term]] that does not contain any [[Variable (mathematics)|variables]]. Similarly, a '''ground formula''' is a [[Well formed formula|formula]] that does not contain any variables.


In [[First-order logic#Equality and its axioms|first-order logic with identity]] with constant symbols <math>a</math> and <math>b</math>, the [[Sentence (mathematical logic)|sentence]] <math>Q(a) \lor P(b)</math> is a ground formula. A '''ground expression''' is a ground term or ground formula.
Similarly, a '''ground formula''' is a [[well formed formula|formula]] that does not contain any free variables. In first-order logic with identity, the sentence {{all}}&nbsp;''x''&nbsp;(''x''=''x'') is a ground formula.


==Examples==
A '''ground expression''' is a ground term or ground formula.


Consider the following expressions in [[first order logic]] over a [[signature (mathematical logic)|signature]] containing the constant symbols <math>0</math> and <math>1</math> for the numbers 0 and 1, respectively, a unary function symbol <math>s</math> for the successor function and a binary function symbol <math>+</math> for addition.
== Examples ==
* <math>s(0), s(s(0)), s(s(s(0))), \ldots</math> are ground terms;
* <math>0 + 1, \; 0 + 1 + 1, \ldots</math> are ground terms;
* <math>0+s(0), \; s(0)+ s(0), \; s(0)+s(s(0))+0</math> are ground terms;
* <math>x + s(1)</math> and <math>s(x)</math> are terms, but not ground terms;
* <math>s(0) = 1</math> and <math>0 + 0 = 0</math> are ground formulae.


==Formal definitions==
Consider the following expressions from [[first order logic]] over a [[signature (mathematical logic)|signature]] containing a constant symbol 0 for the number 0, a unary function symbol ''s'' for the successor function and a binary function symbol + for addition.
* ''s''(0), ''s''(''s''(0)), ''s''(''s''(''s''(0))) ... are ground terms;
* 0+1, 0+1+1, ... are ground terms.
* '''x'''+''s''(1) and ''s''('''x''') are terms, but not ground terms;
* ''s''(0)=1 and 0+0=0 are ground formulae;
* ''s''(1) and ∀'''x''':&nbsp;(''s''('''x''')+1=''s''(''s''('''x'''))) are ground expressions.


What follows is a formal definition for [[first-order language]]s. Let a first-order language be given, with <math>C</math> the set of constant symbols, <math>F</math> the set of functional operators, and <math>P</math> the set of [[predicate symbol]]s.
== Formal definition ==


===Ground term===
What follows is a formal definition for [[first-order language]]s. Let a first-order language be given, with <math>C</math> the set of constant symbols, <math>V</math> the set of (individual) variables, <math>F</math> the set of functional operators, and <math>P</math> the set of predicate symbols.


A '''{{visible anchor|ground term}}''' is a [[Term (logic)|term]] that contains no variables. Ground terms may be defined by logical recursion (formula-recursion):
=== Ground terms ===
# Elements of <math>C</math> are ground terms;
Ground terms are [[term (logic)|terms]] that contain no variables. They may be defined by logical recursion (formula-recursion):
# If <math>f \in F</math> is an <math>n</math>-ary function symbol and <math>\alpha_1, \alpha_2, \ldots, \alpha_n</math> are ground terms, then <math>f\left(\alpha_1, \alpha_2, \ldots, \alpha_n\right)</math> is a ground term.
# elements of C are ground terms;
# If ''f''∈''F'' is an ''n''-ary function symbol and α<sub>1</sub>, α<sub>2</sub>, ..., α<sub>n</sub> are ground terms, then ''f''(α<sub>1</sub>, α<sub>2</sub>, ..., α<sub>n</sub>) is a ground term.
# Every ground term can be given by a finite application of the above two rules (there are no other ground terms; in particular, predicates cannot be ground terms).
# Every ground term can be given by a finite application of the above two rules (there are no other ground terms; in particular, predicates cannot be ground terms).


Roughly speaking, the [[Herbrand universe]] is the set of all ground terms.
Roughly speaking, the [[Herbrand universe]] is the set of all ground terms.


=== Ground atom ===
===Ground atom===
A '''ground predicate''' or '''ground atom''' or '''ground literal''' is an [[atomic formula]] all of whose argument terms are ground terms.


A '''{{visible anchor|ground predicate}}''', '''{{visible anchor|ground atom}}''' or '''{{visible anchor|ground literal}}''' is an [[atomic formula]] all of whose argument terms are ground terms.
If ''p''∈''P'' is an ''n''-ary predicate symbol and α<sub>1</sub>, α<sub>2</sub>, ..., α<sub>n</sub> are ground terms, then ''p''(α<sub>1</sub>, α<sub>2</sub>, ..., α<sub>n</sub>) is a ground predicate or ground atom.


If <math>p \in P</math> is an <math>n</math>-ary predicate symbol and <math>\alpha_1, \alpha_2, \ldots, \alpha_n</math> are ground terms, then <math>p\left(\alpha_1, \alpha_2, \ldots, \alpha_n\right)</math> is a ground predicate or ground atom.
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.


Roughly speaking, the [[Herbrand base]] is the set of all ground atoms,<ref>{{MathWorld |id=GroundAtom |title=Ground Atom |author=Alex Sakharov |access-date=October 20, 2022 |ref= }}</ref> while a [[Herbrand interpretation]] assigns a [[truth value]] to each ground atom in the base.
=== Ground formula ===
A ground formula or ground clause is a formula without free variables.


===Ground formula===
Formulas with free variables may be defined by syntactic recursion as follows:
# The free variables of a unground atom are all variables occurring in it.
# The free variables of ¬''p'' are the same as those of ''p''. The free variables of ''p''∨''q'', ''p''∧''q'', ''p''→''q'' are those free variables of ''p'' or free variables of ''q''.
# The free variables of {{all}}&nbsp;''x''&nbsp;''p'' and {{exist}}&nbsp;''x''&nbsp;''p'' are the free variables of ''p'' except ''x''.


A '''{{visible anchor|ground formula}}''' or '''{{visible anchor|ground clause}}''' is a formula without variables.
== References ==

* {{Citation
Ground formulas may be defined by syntactic recursion as follows:
| title = Handbook of discrete and combinatorial mathematics
# A ground atom is a ground formula.
| contribution = Logic-based computer programming paradigms
# If <math>\varphi</math> and <math>\psi</math> are ground formulas, then <math>\lnot \varphi</math>, <math>\varphi \lor \psi</math>, and <math>\varphi \land \psi</math> are ground formulas.
| year = 2000

| editor1-last = Rosen
Ground formulas are a particular kind of [[Sentence (mathematical logic)|closed formulas]].
| editor1-first = K.H.

| editor2-last = Michaels
==See also==
| editor2-first = J.G.

| last = Dalal
* {{annotated link|Open formula}}
| first = M.
* {{annotated link|Sentence (mathematical logic)}}
| page = 68

}}
==References==
{{reflist}}

* {{Citation | title=Handbook of discrete and combinatorial mathematics | contribution = Logic-based computer programming paradigms | year=2000 | editor1-last = Rosen | editor1-first = K.H. | editor2-last = Michaels | editor2-first = J.G. | last = Dalal | first = M. | page=68}}
* {{Citation | last1=Hodges | first1=Wilfrid | author1-link=Wilfrid Hodges | title=A shorter model theory | publisher=[[Cambridge University Press]] | isbn=978-0-521-58713-6 | year=1997}}
* {{Citation | last1=Hodges | first1=Wilfrid | author1-link=Wilfrid Hodges | title=A shorter model theory | publisher=[[Cambridge University Press]] | isbn=978-0-521-58713-6 | year=1997}}
* [http://web.engr.oregonstate.edu/~afern/classes/cs532/notes/fo-ss.pdf First-Order Logic: Syntax and Semantics]
* [http://web.engr.oregonstate.edu/~afern/classes/cs532/notes/fo-ss.pdf First-Order Logic: Syntax and Semantics]
<!-- these references are essentially random; Hodges is a standard reference but does not define all the terms used in this article -->
<!-- these references are essentially random; Hodges is a standard reference but does not define all the terms used in this article -->


[[Category:Mathematical logic]]
{{Mathematical logic}}

[[Category:Logical expressions]]
[[Category:Logical expressions]]
[[Category:Mathematical logic]]

Latest revision as of 15:11, 23 March 2024

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 and , the sentence is a ground formula. A ground expression is a ground term or ground formula.

Examples

[edit]

Consider the following expressions in first order logic over a signature containing the constant symbols and for the numbers 0 and 1, respectively, a unary function symbol for the successor function and a binary function symbol for addition.

  • are ground terms;
  • are ground terms;
  • are ground terms;
  • and are terms, but not ground terms;
  • and are ground formulae.

Formal definitions

[edit]

What follows is a formal definition for first-order languages. Let a first-order language be given, with the set of constant symbols, the set of functional operators, and the set of predicate symbols.

Ground term

[edit]

A ground term is a term that contains no variables. Ground terms may be defined by logical recursion (formula-recursion):

  1. Elements of are ground terms;
  2. If is an -ary function symbol and are ground terms, then is a ground term.
  3. Every ground term can be given by a finite application of the above two rules (there are no other ground terms; in particular, predicates cannot be ground terms).

Roughly speaking, the Herbrand universe is the set of all ground terms.

Ground atom

[edit]

A ground predicate, ground atom or ground literal is an atomic formula all of whose argument terms are ground terms.

If is an -ary predicate symbol and are ground terms, then is a ground predicate or ground atom.

Roughly speaking, the Herbrand base is the set of all ground atoms,[1] while a Herbrand interpretation assigns a truth value to each ground atom in the base.

Ground formula

[edit]

A ground formula or ground clause is a formula without variables.

Ground formulas may be defined by syntactic recursion as follows:

  1. A ground atom is a ground formula.
  2. If and are ground formulas, then , , and are ground formulas.

Ground formulas are a particular kind of closed formulas.

See also

[edit]
  • Open formula – formula that contains at least one free variable
  • Sentence (mathematical logic) – In mathematical logic, a well-formed formula with no free variables

References

[edit]
  1. ^ Alex Sakharov. "Ground Atom". MathWorld. Retrieved October 20, 2022.