Discrete Mathematics: Logic Lecture 1 - Statements, Negation, Conjunction, and Disjunction
Introduction to Discrete Mathematics
Discrete Mathematics is the study of the mathematical properties of sets, systems, and structures that possess countably many elements.
Key areas of study include:
Relations
Enumerative combinatorics
Algorithms
Graph theory
And more
It has wide-ranging applications in various fields:
Computer Science
Engineering
Communications
Transportation
And other areas requiring the analysis of discrete data and structures.
Statements and Truth Values
Categories of Sentences: Sentences can be categorized into four types:
Declarative
Interrogative (questions)
Imperative (commands)
Exclamatory
In logic, the primary focus is on declarative sentences.
Definition 1: Statement
A statement is defined as a declarative sentence that is definitively either true or false, but cannot be both simultaneously.
Truth Value:
Every statement possesses a truth value, which is either True () or False ().
Examples of determining truth values:
()
()
( - since is irrational and is a rational approximation)
( - is irrational, is a rational approximation)
(This is an identity, always true for any )
( - )
(This is an open sentence, not a statement by itself as its truth value depends on )
Open Sentences
Definition 2: Open Sentence
An open sentence is a declarative sentence that contains one or more variables.
Its truth or falseness is contingent upon the specific values assigned to these variables.
Example: is odd, where and are integers.
If , then is odd ().
If , then is odd ().
Problem Objective: When dealing with open sentences, the objective typically is to identify all variable values for which the sentence evaluates to true (or false).
Logical Connectives and Compound Statements
Statements can be combined to form new, more complex statements.
The fundamental challenge is to establish rules for efficiently computing the truth value of these new, compound statements.
Truth tables are an essential tool for this purpose.
Negation
Definition 3: Negation ()
The negation of a statement is the statement "not ", denoted by (other notations may also be used).
The negation operator acts on a single statement, $P$, to produce a new statement with the opposite truth value.
Truth Table for Negation:
If is True, is False.
If is False, is True.
\begin{array}{|c|c|}
\hline
P & \sim P \
\hline
T & F \
\hline
F & T \
\hline
\end{array}
Application to Open Sentences: The negation operator can also be applied to open sentences.
If P : x + 3 > 0, then
Conjunction
Definition 4: Conjunction ()
For two statements and , their conjunction is the statement " and ", denoted by .
The conjunction operator acts on a pair of statements, and , and produces a single statement that is true only when both and are true.
Truth Table for Conjunction:
\begin{array}{|c|c|c|}
\hline
P & Q & P \land Q \
\hline
T & T & T \
\hline
T & F & F \
\hline
F & T & F \
\hline
F & F & F \
\hline
\end{array}Application to Open Sentences: Conjunction can also be applied to open sentences.
Disjunction
Definition 5: Disjunction ()
For two statements and , their disjunction is the statement " or ", denoted by .
The disjunction operator acts on a pair of statements, and , and produces a single statement that is true only when at least one of or is true (this is known as inclusive or).
Truth Table for Disjunction:
\begin{array}{|c|c|c|}
\hline
P & Q & P \lor Q \
\hline
T & T & T \
\hline
T & F & T \
\hline
F & T & T \
\hline
F & F & F \
\hline
\end{array}Application to Open Sentences: Disjunction can also be applied to open sentences.
Exclusive OR
The phrase " or " can sometimes imply that exactly one of or must be true. This is distinct from inclusive or.
If it is intended that both and cannot be true simultaneously, this is called exclusive or.
Definition 6: Exclusive OR ()
For two statements and , the exclusive or of and is a statement that is true when exactly one of or is true.
Truth Table for Exclusive OR:
\begin{array}{|c|c|c|}
\hline
P & Q & P \oplus Q \
\hline
T & T & F \
\hline
T & F & T \
\hline
F & T & T \
\hline
F & F & F \
\hline
\end{array}Application to Open Sentences: Exclusive or can also be applied to open sentences.
Compound Statements and Logical Equivalence
The symbols are known as logical connectives.
Definition 7: Compound Statement
A compound statement is a statement formed by combining one or more simple statements using one or more logical connectives.
Compound statements can become very intricate.
A key interest in logic is simplifying compound statements as much as possible.
Definition 8: Logical Equivalence ()
Two compound statements, and , constructed from the same component statements, are considered logically equivalent if they consistently have the same truth value for every possible combination of truth values of their component statements.
This is denoted as .
If their truth values differ for even one combination, they are not logically equivalent, written as .
Laws of Logic
Commutative Laws
Theorem 1: Commutative Laws
For any two statements and :
\begin{equation}P \land Q \equiv Q \land P\end{equation}
\begin{equation}P \lor Q \equiv Q \lor P\end{equation}
Proof Idea: These laws can be proven by constructing truth tables for both sides of the equivalence and demonstrating that their final truth value columns are identical.
Application to Open Sentences: These laws also apply to open sentences.
Example: " is even or n^2 - 9 < 0" is logically equivalent to "n^2 - 9 < 0 or is even".
De Morgan's Laws
Theorem 2: De Morgan's Laws
For any two statements and , the following equivalences hold:
(a) \begin{equation}\sim (P \lor Q) \equiv (\sim P) \land (\sim Q)\end{equation}
(b) \begin{equation}\sim (P \land Q) \equiv (\sim P) \lor (\sim Q)\end{equation}
Proof of (a) using Truth Table: \begin{array}{|c|c|c|c|c|c|c|} \hline P & Q & P \lor Q & \sim (P \lor Q) & \sim P & \sim Q & (\sim P) \land (\sim Q) \ \hline T & T & T & F & F & F & F \ \hline T & F & T & F & F & T & F \ \hline F & T & T & F & T & F & F \ \hline F & F & F & T & T & T & T \ \hline \end{array}
The columns for and are identical, thus proving their logical equivalence.
De Morgan's Laws for Open Sentences: These laws similarly apply to open sentences.
Let is odd, is odd.
: " is odd or is odd."
: "It is not the case that ( is odd or is odd )" or "Neither is odd, nor is odd."
Restate using De Morgan's Law (a): : " is not odd (i.e., is even) and is not odd (i.e., is even)".
Theorem 3: Double Negation Law
For every statement , \begin{equation}P \equiv \sim (\sim P)\end{equation}. A statement is logically equivalent to the negation of its negation.
Exercise: Proof using De Morgan's Laws
Problem: Prove that
Hint: Apply an appropriate De Morgan's Law by treating as a single statement (e.g., let ).
Then
Substituting back , we get
By the Double Negation Law (), this simplifies to .
Thus, is proven.
Associative and Distributive Laws
Theorem 4: Associative and Distributive Laws
Let , and be three statements.
(a) Associative Laws:
\begin{equation}P \lor (Q \lor R) \equiv (P \lor Q) \lor R\end{equation}
\begin{equation}P \land (Q \land R) \equiv (P \land Q) \land R\end{equation}
These laws indicate that the grouping of statements in a series of disjunctions or conjunctions does not affect the logical equivalence of the compound statement.
(b) Distributive Laws:
\begin{equation}P \lor (Q \land R) \equiv (P \lor Q) \land (P \lor R)\end{equation}
\begin{equation}P \land (Q \lor R) \equiv (P \land Q) \lor (P \land R)\end{equation}
These laws are analogous to distributive laws in algebra, showing how disjunction distributes over conjunction, and vice-versa.
Proof Idea: Both sets of laws can be proven by constructing comprehensive truth tables, showing that the truth values for both sides of each equivalence are identical for all possible combinations of truth values for , and .