In mathematical logic, an atomic formula or its negation
In mathematical logic, a literal is an atomic formula (also known as an atom or prime formula) or its negation.[1][2] 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:[2]
- 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 .[3] 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.
- ^ Rautenberg (2010, p. 57): "The formulas procured by (F1) and (F2) are said to be prime or atomic formulas, or simply called prime. As in propositional logic, prime formulas and their negations are called literals."
- ^ a b Ben-Ari (2001, p. 30): "A literal is an atom or a negation of an atom. An atom is a positive literal and the negation of an atom is a negative literal."
- ^ Ben-Ari (2001, p. 69): "If is a literal, is its complement. This means that if , then, and if then ."