A
formula
In science, a formula is a concise way of expressing information symbolically, as in a mathematical formula or a ''chemical formula''. The informal use of the term ''formula'' in science refers to the general construct of a relationship betwe ...
of the
predicate calculus
Predicate or predication may refer to:
* Predicate (grammar), in linguistics
* Predication (philosophy)
* several closely related uses in mathematics and formal logic:
**Predicate (mathematical logic)
** Propositional function
**Finitary relation, ...
is in prenex
normal form (PNF) if it is
written
Writing is the act of creating a persistent representation of language. A writing system includes a particular set of symbols called a ''script'', as well as the rules by which they encode a particular spoken language. Every written language ...
as a string of
quantifiers and
bound variables
In mathematics, and in other disciplines involving formal languages, including mathematical logic and computer science, a variable may be said to be either free or bound. Some older books use the terms real variable and apparent variable for f ...
, called the prefix, followed by a quantifier-free part, called the matrix. Together with the normal forms in
propositional logic
The propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. Sometimes, it is called ''first-order'' propositional logic to contra ...
(e.g.
disjunctive normal form
In boolean logic, a disjunctive normal form (DNF) is a canonical normal form of a logical formula consisting of a disjunction of conjunctions; it can also be described as an OR of ANDs, a sum of products, or in philosophical logic a ''cluster c ...
or
conjunctive normal form
In Boolean algebra, a formula is in conjunctive normal form (CNF) or clausal normal form if it is a conjunction of one or more clauses, where a clause is a disjunction of literals; otherwise put, it is a product of sums or an AND of ORs.
In au ...
), it provides a
canonical normal form useful in
automated theorem proving
Automated theorem proving (also known as ATP or automated deduction) is a subfield of automated reasoning and mathematical logic dealing with proving mathematical theorems by computer programs. Automated reasoning over mathematical proof was a majo ...
.
Every formula in
classical logic
Classical logic (or standard logic) or Frege–Russell logic is the intensively studied and most widely used class of deductive logic. Classical logic has had much influence on analytic philosophy.
Characteristics
Each logical system in this c ...
is
logically equivalent
In logic and mathematics, statements p and q are said to be logically equivalent if they have the same truth value in every model. The logical equivalence of p and q is sometimes expressed as p \equiv q, p :: q, \textsfpq, or p \iff q, depending on ...
to a formula in prenex normal form. For example, if
,
, and
are quantifier-free formulas with the free variables shown then
:
is in prenex normal form with matrix
, while
:
is logically equivalent but not in prenex normal form.
Conversion to prenex form
Every
first-order formula is
logically equivalent
In logic and mathematics, statements p and q are said to be logically equivalent if they have the same truth value in every model. The logical equivalence of p and q is sometimes expressed as p \equiv q, p :: q, \textsfpq, or p \iff q, depending on ...
(in classical logic) to some formula in prenex normal form.
[Hinman, P. (2005), p. 111] There are several conversion rules that can be recursively applied to convert a formula to prenex normal form. The rules depend on which
logical connective
In logic, a logical connective (also called a logical operator, sentential connective, or sentential operator) is a logical constant. Connectives can be used to connect logical formulas. For instance in the syntax of propositional logic, the ...
s appear in the formula.
Conjunction and disjunction
The rules for
conjunction and
disjunction
In logic, disjunction (also known as logical disjunction, logical or, logical addition, or inclusive disjunction) is a logical connective typically notated as \lor and read aloud as "or". For instance, the English language sentence "it is ...
say that
:
is equivalent to
under (mild) additional condition
, or, equivalently,
(meaning that at least one individual exists),
:
is equivalent to
;
and
:
is equivalent to
,
:
is equivalent to
under additional condition
.
The equivalences are valid when
does not appear as a
free variable
In mathematics, and in other disciplines involving formal languages, including mathematical logic and computer science, a variable may be said to be either free or bound. Some older books use the terms real variable and apparent variable for f ...
of
; if
does appear free in
, one can rename the bound
in
and obtain the equivalent
.
For example, in the language of
rings,
:
is equivalent to
,
but
:
is not equivalent to
because the formula on the left is true in any ring when the free variable ''x'' is equal to 0, while the formula on the right has no free variables and is false in any nontrivial ring. So
will be first rewritten as
and then put in prenex normal form
.
Negation
The rules for negation say that
:
is equivalent to
and
:
is equivalent to
.
Implication
There are four rules for
implication: two that remove quantifiers from the antecedent and two that remove quantifiers from the consequent. These rules can be derived by
rewriting
In mathematics, computer science, and logic, rewriting covers a wide range of methods of replacing subterms of a formula with other terms. Such methods may be achieved by rewriting systems (also known as rewrite systems, rewrite engines, or reduc ...
the implication
as
and applying the rules for disjunction and negation above. As with the rules for disjunction, these rules require that the variable quantified in one subformula does not appear free in the other subformula.
The rules for removing quantifiers from the antecedent are (note the change of quantifiers):
:
is equivalent to
(under the assumption that
),
:
is equivalent to
.
The rules for removing quantifiers from the consequent are:
:
is equivalent to
(under the assumption that
),
:
is equivalent to
.
For example, when the
range of quantification is the non-negative
natural number
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
(viz.
), the statement
:
is
logically equivalent
In logic and mathematics, statements p and q are said to be logically equivalent if they have the same truth value in every model. The logical equivalence of p and q is sometimes expressed as p \equiv q, p :: q, \textsfpq, or p \iff q, depending on ...
to the statement
: