Ground expression: Difference between revisions
Hans Adler (talk | contribs) →Examples: style |
No edit summary |
||
(47 intermediate revisions by 32 users not shown) | |||
Line 1: | Line 1: | ||
{{Short description|Term that does not contain any variables}} |
|||
In [[mathematical logic]], a '''ground term''' of a [[formal system]] is a [[term (mathematics)|term]] that does not contain any variables at all, and a '''closed term''' is a term that has no free variables. In [[first-order logic]] all closed terms are ground terms, but in [[lambda calculus]] the closed term {{nowrap|λ ''x''. ''x'' (λ ''y''. ''y'')}} of [[lambda calculus]] is not a ground term. |
|||
{{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 variables, and a '''closed formula''' or '''sentence''' is a formula that has no free variables. In first-order logic with identity, the sentence {{all}} ''x'' (''x''=''x'') is not a ground formula. |
|||
==Examples== |
|||
⚫ | |||
⚫ | 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. |
||
== Classifying ground expressions == |
|||
* <math>s(0), s(s(0)), s(s(s(0))), \ldots</math> are ground terms; |
|||
⚫ | |||
* <math>0+s(0), \; s(0)+ s(0), \; s(0)+s(s(0))+0</math> are ground terms; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
Because expressions of a language can be divided into terms, atoms and formulae, we can classify ground expressions in a similar way. There are: |
|||
# '''ground term'''s, expressions which do not contain variables (only constant signs) and functions, |
|||
# '''ground atom'''s, which are predicates consisting only of ground terms |
|||
# '''ground formulae''' which are composed from ground atoms. |
|||
⚫ | |||
None of these contain variables or are composed from variables. |
|||
== |
===Ground term=== |
||
⚫ | |||
⚫ | |||
# Elements of <math>C</math> are ground terms; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* ''s''('''z''')=1 and ∀'''x''': (''s''('''x''')+1=''s''(''s''('''x'''))) are expressions, but are not ground expressions. |
|||
Roughly speaking, the [[Herbrand universe]] is the set of all ground terms. |
|||
Ground expressions are necessarily closed. The last example, ∀'''x''': (''s''('''x''')+1=''s''(''s''('''x'''))), shows that a closed expression is not necessarily a ground expression. So, this formula is a closed formula, but not a ground formula, because it ''contains'' a logical variable, even though that variable is not free. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | What follows is a formal definition for [[first-order language]]s. Let a first-order language be given, with |
||
⚫ | |||
⚫ | |||
⚫ | |||
# elements of C are ground terms; |
|||
⚫ | |||
⚫ | |||
Roughly speaking, the [[Herbrand |
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 '''{{visible anchor|ground formula}}''' or '''{{visible anchor|ground clause}}''' is a formula without variables. |
|||
⚫ | |||
⚫ | |||
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. |
|||
⚫ | |||
# 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. |
|||
Ground formulas are a particular kind of [[Sentence (mathematical logic)|closed formulas]]. |
|||
=== Ground formula === |
|||
A ground formula or ground clause is a formula all of whose arguments are ground atoms. |
|||
==See also== |
|||
⚫ | |||
# A ground atom is a ground formula; that is, 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 formula (and is a ground atom); |
|||
# If ''p'' and ''q'' are ground formulae, then ¬(''p''), (''p'')∨(''q''), (''p'')∧(''q''), (''p'')→(''q''), formulas composed with [[logical connective]]s, are ground formulae, too. |
|||
# If ''p'' is a ground formula and we can get q from it that way some ( or ) we delete or insert in the p formula, and then the result, q is well-formed and equivalent with p, then q is a ground formula.{{Clarify me|date=February 2009}} |
|||
# We can get all ground formulae applying these three rules. |
|||
* {{annotated link|Open formula}} |
|||
⚫ | |||
* {{annotated link|Sentence (mathematical logic)}} |
|||
* {{Citation |
|||
| title = Handbook of discrete and combinatorial mathematics |
|||
⚫ | |||
| contribution = Logic-based computer programming paradigms |
|||
{{reflist}} |
|||
| year = 2000 |
|||
| editor1-last = Rosen |
|||
* {{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}} |
|||
| 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. |
* [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 --> |
||
{{Mathematical logic}} |
|||
[[Category:Logical expressions]] |
|||
[[hu:Alapkifejezés]] |
|||
[[Category:Mathematical logic]] |
|||
[[pt:Átomo básico]] |
Latest revision as of 15:11, 23 March 2024
Part of a series on |
Formal languages |
---|
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):
- Elements of are ground terms;
- If is an -ary function symbol and are ground terms, then 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).
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:
- A ground atom is a ground formula.
- 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]- ^ Alex Sakharov. "Ground Atom". MathWorld. Retrieved October 20, 2022.
- Dalal, M. (2000), "Logic-based computer programming paradigms", in Rosen, K.H.; Michaels, J.G. (eds.), Handbook of discrete and combinatorial mathematics, p. 68
- Hodges, Wilfrid (1997), A shorter model theory, Cambridge University Press, ISBN 978-0-521-58713-6
- First-Order Logic: Syntax and Semantics