Literal (mathematical logic) explained
In mathematical logic, a literal is an atomic formula (also known as an atom or prime formula) or its negation. The definition mostly appears in proof theory (of classical logic), e.g. in conjunctive normal form and the method of resolution.
Literals can be divided into two types:
- A positive literal is just an atom (e.g.,
).
- A negative literal is the negation of an atom (e.g.,
).The
polarity of a literal is positive or negative depending on whether it is a positive or negative literal.
In logics with double negation elimination (where
) the
complementary literal or
complement of a literal
can be defined as the literal corresponding to the negation of
. We can write
to denote the complementary literal of
. More precisely, if
then
is
and if
then
is
. Double negation elimination occurs in classical logics but not in
intuitionistic logic.
In the context of a formula in the conjunctive normal form, a literal is pure if the literal's complement does not appear in the formula.
In Boolean functions, each separate occurrence of a variable, either in inverse or uncomplemented form, is a literal. For example, if
,
and
are variables then the expression
contains three literals and the expression
contains four literals. However, the expression
would also be said to contain four literals, because although two of the literals are identical (
appears twice) these qualify as two separate occurrences.
Examples
In propositional calculus a literal is simply a propositional variable or its negation.
In predicate calculus a literal is an atomic formula or its negation, where an atomic formula is a predicate symbol applied to some terms,
with the terms
recursively defined starting from constant symbols, variable symbols, and
function symbols. For example,
is a negative literal with the constant symbol 2, the variable symbols
x,
y, the function symbols
f,
g, and the predicate symbol
Q.
References
- Book: Ben-Ari
, Mordechai . Mordechai Ben-Ari
. Mordechai Ben-Ari . 2001 . Mathematical Logic for Computer Science . 2nd . Springer . 1-85233-319-7.
- Book: Buss
, Samuel R.
. Samuel Buss . Buss . Samuel R. . Samuel Buss . 1998 . An Introduction to Proof Theory . https://mathweb.ucsd.edu/~sbuss/ResearchWeb/handbookI/ChapterI.pdf . Handbook of Proof Theory . Elsevier . Amsterdam . 0-444-89840-9 . 1–78.
- Book: Godse . Atul P. . Godse . Deepali A. . 2008 . Digital Logic Circuits . Technical Publications . 9788184314250 .
- Book: Rautenberg
, Wolfgang
. Wolfgang Rautenberg
. Wolfgang Rautenberg . 2010 . A Concise Introduction to Mathematical Logic . 3rd . Universitext . Springer . 10.1007/978-1-4419-1221-3 . 978-1-4419-1220-6.