Propositional Logic
The system of propositional logic allows us to express statements mathematically and reason about their truth values.
Language of Propositional Logic
We must first define the syntax we will use to express propositions in propositional logic.
A proposition, in fact, is defined as follows:
Definition 1: Proposition
A proposition is a statement that can be true or false.
Terminology: Synonyms for Proposition
Mathematical papers often use the following terms to more concisely refer to propositions:
- A theorem is a significant proposition that has been proven to be true.
- A lemma is a proposition used to progress towards proving a larger theorem.
- A corollary is a proposition that follows directly from a previously proven theorem.
- A proposition, in general, is a statement that can be proven true or false.
“True” and “False” are the two truth values that propositions can take on.
Propositional Variables
Propositional variables are used to abstract propositions into a symbolic form. Since we are interested in the syntax used to express propositions, we cannot associate a propositional variable with a specific proposition. Instead, we treat propositional variables as placeholders that can represent any proposition.
Definition 2: Propositional Variable
A propositional variable is a variable that can potentially take on a truth value. That is, can be assigned either true or false.
Remark
Note that a propositional variable itself is not “either true or false” directly. Rather it is merely “possible” to assign a truth value of either true or false, and we manipulate as if we don’t know which truth value it has been assigned.
Example.
Notation: Truth Values
We can denote the truth values as for true and for false.
Complex Propositions
Although propositional variables can abstract individual propositions, we can express more complex propositions by combining propositional variables using logical connectives.
Definition 3: Logical Connective
A logical connective is an operator that takes one or more propositions as input and produces a new proposition as output.
Definition 4: Atomic and Compound Propositions
An compound proposition is a proposition that can be formed by combining one or more propositions using logical connectives. A proposition that is not compound is called an atomic proposition.
Resource 1: Semantics of the Standard Logical Connectives
If and are propositions, then the following are common logical connectives:
- , called the negation of , read “not .”
- , called the conjunction of and , read “ and .”
- , called the disjunction of and , read “ or .”
- , called the implication from to , read “if then ” or “ implies .”
- , called the biconditional between and , read “ if and only if .”
The above connectives are listed in order of binding precedence. Also, the implication operator is right-associative, while the other binary connectives are left-associative.
Example.
Example.
Terminology: Tautology and Contradiction
A proposition is a tautology, denoted or , if it is assumed to be true under all circumstances. A proposition is a contradiction, denoted or , if it is assumed to be false under all circumstances.
Well-Formed Propositional Formulae
Formally, we can define the syntax of compound propositions using the notion of propositional formulae. A propositional formula is an abstract syntactic object that represents a proposition. Propositional formulae are built from propositional variables and logical connectives according to the following rules:
Definition 5: Well-Formed Propositional Formula
Let a set of propositional variables, and let be a set of logical connectives over . The set of well-formed propositional formulae over , denoted , is the smallest set such that the following rules hold:
- Trivial Formulae. and .
- Atomic Formulae. If , then .
- Unary Connectives. For all and for all unary connectives , we have .
- Binary Connectives. For all and for all binary connectives , we have .
This definition of a well-formed propositional formula rigorously defines a syntax under which we can write compound propositions.
Example.
Proposition 1: Unique Readability of Propositional Formulae
Let . Then exactly one of the following holds:
- or .
- .
- such that for some unary connective .
- such that for some binary connective .
The definition of well-formed formulae is a bit abstract, so it would be useful to restrict it to the set of familiar connectives we want to eventually assign semantics to. Define a set of standard logical connectives that we will implicitly assume:
Definition 6: Standard Logical Connectives
Let be a unary connective, and let , , , and be binary connectives. Then the set of standard logical connectives is defined as .
Notation: Precendence and Associativity
When unambiguous, we will often omit parentheses in propositional formulae, relying on the standard binding precedence and associativity of the logical connectives to disambiguate:
- Define the binding strength from tightest to loosest of the standard logical connectives as .
- Define to mean .
- Define to mean for the connectives , , and .
- Define to mean .
Notation
Unless specified, assume that the set of propositional formulae is defined under the standard logical connectives from Definition 6. Consequently, let denote the set of well-formed propositional formulae over under the standard logical connectives.
Definition 7: Subformula
Let . A subformula of is any formula that appears as a part of . Formally, the set of subformulae of , denoted , is defined recursively as follows:
- If , , or , then .
- If for some unary connective , then .
- If for some binary connective , then .
Example.
Definition 8: Complexity and Depth of a Propositional Formula
The complexity of a propositional formula , denoted , is the total number of logical connectives in . Formally, if , then:
The depth of a propositional formula , denoted , is the length of the longest path from the root of to any leaf in the parse tree of . Formally, if , then:
Example.
Truth Assignments and Semantics
While propositional formulae are syntactic objects, we can assign them meaning by defining truth assignments that specify the truth value of each propositional variable.
Definition 9: Truth Assignment
A truth assignment over a set of propositional variables is a function that assigns a truth value to each propositional variable in (and by extension, to all propositional formulae over ).
Formally, a truth assignment over is a function that satisfies:
where denotes the set of all propositional formulae over .
Example.
Example.
Let be a set of propositional variables. Then a truth assignment over could be defined as follows:
Another truth assignment over , say , could be defined differently as:
There are many possible truth assignments over a set of propositional variables. Specifically, if is a set of propositional variables, then there are possible truth assignments over , since each propositional variable can be assigned one of two values ( or ) independently.
Corollary 1: Number of Truth Assignments
Let be a set of propositional variables. Then there are possible truth assignments over .
Definition 10: Satisfaction of Propositional Formulae
A propositional formula is satisfied under a truth assignment , denoted , if . Otherwise, if , we say that is not satisfied under , denoted .
Terminology: Satisfiability of Propositional Formulae
A propositional formula is satisfiable if there exists a truth assignment such that . Otherwise, is unsatisfiable.
We can now rigorously define tautologies and contradictions in terms of truth assignments:
Definition 11: Tautology and Contradiction
Let be a set of propositional variables. A propositional formula over is a tautology if for all truth assignments over .
On the other hand, a propositional formula is a contradiction if for all truth assignments over .
Boolean Functions and Truth Tables
Definition 12: Boolean Parameterization
The Boolean parameterization of a propositional formula over the variables is the Boolean function defined by:
Example.
Let be a propositional formula over the variables . Then the Boolean parameterization of is the function defined by:
Definition 13: Truth Table
The truth table of a propositional formula over the variables is a tabular representation of all possible truth assignments. Specifically, each row corresponds to a possible truth assignment over , and the last column gives the truth value of under that assignment:
Where are the possible truth assignments over . Auxiliary columns of the truth table may be added to show the truth values of subformulae of under each truth assignment.
Example.
A truth table for the propositional formula is:
Notice that all rows have the same truth value in the and columns. In other words, and have the same truth value under every possible truth assignment, so .
Property
Let be the propositional formula corresponding to a column of a truth table. is a tautology iff all entries in the column are , and is a contradiction iff all entries in the column are . is satisfiable iff at least one entry in the column is .
Semantics of Logical Connectives
Until now, logical connectives like , , and have been treated as syntactic objects that can be used to build propositional formulae, but they have not been given any meaning. Under a truth assignment, we can properly define the semantics of the logical connectives.
Definition 14: Negation
Under a truth assignment , the negation of a propositional formula , denoted and read “not ”, is defined by:
Definition 15: Conjunction
Under a truth assignment , the conjunction of two propositional formulae and , denoted and read “ and ”, is defined by:
Definition 16: Disjunction
The disjunction of two propositional formulae and , denoted and read “ or ”, is defined by:
Definition 17: Implication
The implication from a propositional formula to a propositional formula , denoted and read “if then ”, is defined by:
When , the implication is true regardless of the truth value of , in which case we say that is vacuously true.
Definition 18: Biconditional
The biconditional between two propositional formulae and , denoted and read “ if and only if ”, is defined by:
Logical Equivalences
Definition 19: Logical Equivalence
Two propositional formulae and are logically equivalent, denoted , iff and have the same truth value under every possible truth assignment. That is,
Corollary 2: Logical Equivalence as a Biconditional
Let and be propositional formulae. Then iff is a tautology.
Property
Let and be propositional formulae corresponding to columns of a truth table. iff the entries in the and columns are the same for every row.
Definition 20: Propositional Axioms
For all propositional formulae , , and , the following laws hold:
-
Associativity.
-
Commutativity.
-
Distributivity.
-
Identity.
-
Existence of Complements.
To simplify propositional formulae, we can use logical equivalences to rewrite them in simpler forms.
Theorem 1: Double Negation Law
For all propositional formulae , it holds that .
Proof: Double Negation Law.
Theorem 2: De Morgan’s Laws
For all propositional formulae and , the following equivalences hold:
Resource 2: Logical Equivalences
| Name | Equivalence | |
|---|---|---|
| Axioms | Commutativity over | |
| Commutativity over | ||
| Associativity over | ||
| Associativity over | ||
| Distributivity of over | ||
| Distributivity of over | ||
| Identity for | ||
| Identity for | ||
| Equivalences over | Law of Excluded Middle | |
| Law of Non-Contradiction | ||
| Domination of | ||
| Domination of | ||
| Double Negation | ||
| De Morgan’s Law over | ||
| De Morgan’s Law over | ||
| Absorption Law over | ||
| Absorption Law over | ||
| Idempotency of | ||
| Idempotency of | ||
| Implication Equivalences | Material Implication | |
| Contraposition of | ||
| Exportation of | ||
| Elimination using | ||
| Biconditional Equivalences | Definition of Biconditional | |
| Material Biconditional | ||
| Contraposition of | ||
| Exportation of | ||
| Negation of Biconditional |
Normal Forms
Definition 21: Literal
A literal over a set of propositional variables is either a propositional variable or the negation of a propositional variable for some .
Definition 22: Negation Normal Form
A propositional formula is in negation normal form (NNF) if the negation operator only applies to propositional variables, and the only logical connectives are conjunctions and disjunctions.
Definition 23: Disjunctive Normal Form
A propositional formula is in disjunctive normal form (DNF) if it is a disjunction of conjunctions of literals.
Definition 24: Conjunctive Normal Form
A propositional formula is in conjunctive normal form (CNF) if it is a conjunction of disjunctions of literals.
Theorem 3: Existence of Normal Forms
For all propositional formulae , there exist propositional formulae in NNF, DNF, and CNF that are logically equivalent to .
Proposition 2: Length Complexity of Normal Forms
The number of symbols needed to express a propositional formula in CNF or DNF has a length complexity of , where is the number of propositional variables in .
Counting Formulae
Functional Completeness
Definition 25: Functionally Complete Set of Connectives
A set of logical connectives over is functionally complete over iff for every propositional formula , there exists a propositional formula such that .
Theorem 4: Alternative Characterization of Functional Completeness
A set of logical connectives over a set iff for every truth assignment over
Theorem 5: Functional Completeness over Standard Logical Connectives
Each of , , and is functionally complete over the set of standard logical connectives.
Definition 26: Sheffer Stroke and Peirce’s Arrow
The Sheffer stroke (also called the NAND operator) is a binary connective denoted by and defined by . Peirce’s arrow (also called the NOR operator) is a binary connective denoted by and defined by .
Theorem 6: Functional Completeness of Sheffer Stroke and Peirce’s Arrow
Each of is functionally complete over the set of standard logical connectives.