Discrete Mathematics: Propositional Logic and Applications
Fundamentals of Propositional Logic
Definition of a Proposition:
A proposition is a declarative sentence that is either true () or false (), but not both simultaneously.
The truth value of a proposition is denoted by if it is a true statement and by if it is a false statement.
Examples of Declarative Sentences that are Propositions:
"The Moon is made of green cheese." (A false proposition; truth value is )
"Trenton is the capital of New Jersey." (A true proposition; truth value is )
"Toronto is the capital of Canada." (A false proposition; truth value is , as Ottawa is the capital)
"" (A true mathematical proposition; truth value is )
"" (A false mathematical proposition; truth value is )
Examples of Sentences that are NOT Propositions:
"Sit down!" (An imperative sentence/command; does not assert a fact and cannot be assigned a truth value)
"What time is it?" (An interrogative sentence/question; neither true nor false)
"" (An open statement containing a variable; its truth or falsehood cannot be established without a specific value assigned to )
"" (An open statement containing multiple variables; not a proposition without specific value bindings or universal/existential quantifiers)
Constructing Propositions and Variable Conventions:
Propositional Variables: Conventional lowercase letters such as , , , , and so on, are utilized to represent propositional variables.
Constant Truth Values:
The proposition that is always true is denoted by .
The proposition that is always false is denoted by .
Logical Operators and Compound Propositions
Compound Propositions:
Compound propositions are constructed by combining one or more existing propositions using logical operators (also called logical connectives).
Fundamental connectives include:
Negation: denoted by
Conjunction: denoted by
Disjunction: denoted by
Exclusive Or: denoted by
Implication (Conditional): denoted by
Biconditional: denoted by
Negation ():
The negation of a proposition is denoted by and is read as "not " or "It is not the case that ".
The truth value of is the opposite of the truth value of .
Example:
Let be "The earth is round."
Then is "It is not the case that the earth is round," or simply "The earth is not round."
Truth Table for Negation:

* When is , is .
* When is , is .
Conjunction ():
The conjunction of propositions and is denoted by and is read as " and ".
The conjunction is true when both and are true; otherwise, it evaluates to false.
Example:
Let be "I am at home."
Let be "It is raining."
Then is "I am at home and it is raining."
Truth Table for Conjunction:

* ,
* ,
* ,
* , Disjunction ():
The disjunction (also known as inclusive or) of propositions and is denoted by and is read as " or ".
The disjunction is false when both and are false; otherwise, it evaluates to true.
Example:
Let be "I am at home."
Let be "It is raining."
Then is "I am at home or it is raining."
Truth Table for Disjunction:

* ,
* ,
* ,
* , Exclusive Or ():
The exclusive or (XOR) of propositions and is denoted by .
The proposition evaluates to true when exactly one of and is true, but not both.
Real-World Metaphor/Example:
"Soup or salad comes with this entrée." In standard dining context, a diner is entitled to choose soup or salad, but does not receive both soup and salad simultaneously.
Truth Table for Exclusive Or:

* ,
* ,
* ,
* , Conditional Statements (Implications)
Definition and Structure:
If and are propositions, the conditional statement (or implication) is denoted by and read as "if , then ".
In the expression :
is referred to as the hypothesis, antecedent, or premise.
is referred to as the conclusion or consequence.
Example:
Let be "I am at home."
Let be "It is raining."
The statement denotes "If I am at home then it is raining."
Truth Table for Implication:

,
,
,
,
An implication is false only in the single scenario where the hypothesis is true and the conclusion is false.
Understanding the Nature of Implication:
The logical meaning of depends strictly upon the truth values of and .
There does not need to be any causal relationship, intrinsic connection, or subject-matter relevance between antecedent and consequent .
Illustrative Hypothetical Statements:
"If the moon is made of green cheese, then I have more money than Bill Gates." (Since the antecedent is false, the implication evaluates to true regardless of personal wealth)
"If , then your grandma wears combat boots." (Since the antecedent is mathematically false, the overall implication evaluates to true)
The Contractual/Obligation Perspective:
A practical method to conceptualize logical implication is via a conditional obligation, pledge, or contract:
Campaign Pledge: "If I am elected, then I will lower taxes."
If the politician is elected and lowers taxes (), the pledge is kept ().
If the politician is elected and does not lower taxes (), the pledge is broken ().
If the politician is not elected (), the promise cannot be violated whether taxes are lowered or not (, ).
Grading Pledge: "If you get 100% on the final, then you will get an A."
The promise is violated only if a student receives 100% on the final but fails to receive an A.
If the student scores below 100%, the professor has not broken the contract regardless of the letter grade assigned.
Alternative Linguistic Formulations of :
"if , then "
" implies "
"if , "
" only if "
" unless "
" when "
" if "
" whenever "
" is sufficient for "
" follows from "
" is necessary for "
" is a necessary condition for "
" is a sufficient condition for "
Necessary Versus Sufficient Conditions:
Necessary Condition:
In , is a necessary condition for .
This means: if not , then not (), which is logically equivalent to: if , then .
Concrete Example: A necessary condition for getting an A in BBM205 is that a student completes all the assignments.
Equivalent formulation 1: If a student does not complete all the assignments, then he/she cannot get an A in BBM205.
Equivalent formulation 2 (Contrapositive): If a student gets an A in BBM205, then he/she completes all the assignments.
Completing all assignments is required, but may not guarantee an A by itself.
Sufficient Condition:
In , is a sufficient condition for .
This means: if condition is satisfied, outcome is fully guaranteed.
Concrete Example: A sufficient condition for getting an A in BBM205 is that a student gets an A from every piece of graded work.
Formulation: If a student gets an A from every piece of graded work, then he/she gets an A in BBM205.
Converse, Contrapositive, Inverse, and Biconditional
Derived Conditional Statements:
Given an original conditional statement :
Inverse:
Converse:
Contrapositive:
Worked Translation Example:
Statement to analyze: "It raining is a sufficient condition for my not going to town."
Original Implication (): "If it is raining, then I will not go to town."
Inverse (): "If it is not raining, then I will go to town."
Converse (): "If I do not go to town, then it is raining."
Contrapositive (): "If I go to town, then it is not raining."
The Biconditional Statement ():
If and are propositions, the biconditional proposition is read as " if and only if " (commonly written as " iff ").
The biconditional statement evaluates to true when and have identical truth values, and evaluates to false when they possess differing truth values.
Example:
Let be "I am at home."
Let be "It is raining."
Then represents "I am at home if and only if it is raining."
Alternative English expressions for :
" is necessary and sufficient for "
"if then , and conversely"
" iff "
Truth Table for Biconditional:

* ,
* ,
* ,
* , Truth Tables, Logical Equivalence, and Operator Precedence
Principles of Truth Table Construction:
Rows: A truth table requires a row for every possible combination of truth values of the atomic propositions. For propositional variables, exactly rows are required.
With propositional variables, exactly distinct truth assignments exist, allowing the construction of distinct (non-equivalent) propositions.
Columns:
A column for each basic atomic proposition.
Intermediate columns for the truth values of each subexpression that occurs in the compound proposition as it is built up.
A column for the complete compound proposition, typically positioned at the far right.
Comprehensive Construction Example: :
For variables (, , ), the truth table requires rows.

Step-by-step row evaluations:
Row 1:
Row 2:
Row 3:
Row 4:
Row 5:
Row 6:
Row 7:
Row 8:
Operator Precedence:
To minimize the number of parentheses needed in complex expressions, logical operators are evaluated in order of strict precedence.

Order of precedence:
(Precedence level 1; highest precedence)
(Precedence level 2)
(Precedence level 3)
(Precedence level 4)
(Precedence level 5; lowest precedence)
Example Application: In the expression , the disjunction and negation have higher precedence than , meaning the expression is interpreted as .
If the intended logical operation is , parentheses must be explicitly provided.
Determining Logical Equivalence:
Two propositions are defined as logically equivalent if they exhibit identical truth values under every possible assignment of truth values to their variables.
Equivalence of Implication and Contrapositive:

* When evaluating versus across all assignments:
* and
* and
* and
* and
* Because the truth values of and are identical in every single row, the conditional statement is logically equivalent to its contrapositive.
Demonstrating Non-Equivalence (Converse and Inverse):

A truth table comparing , the inverse , and the converse shows:
For : , whereas and .
For : , whereas and .
Consequently, neither the converse nor the inverse is logically equivalent to the original conditional statement .
Note that the converse and inverse are logically equivalent to each other, as each is the contrapositive of the other.
Applications of Propositional Logic
Overview of Application Areas:
Translating English sentences into formal logic
System specifications verification
Boolean searching
Logic puzzles
Logic circuits design
Translating English Sentences into Formal Propositions:
General procedure:
Identify all atomic propositions within the sentence and assign propositional variables to each.
Determine the appropriate logical connectives and respect grammatical grouping through parentheses.
Example 1:
Sentence: "If I go to Harry's or to the country, I will not go shopping."
Variable assignments:
Let represent "I go to Harry's."
Let represent "I go to the country."
Let represent "I will go shopping."
Structural breakdown: "If or then not ."
Symbolic logic translation:
Example 2:
Sentence: "You can access the Internet from campus only if you are a computer science major or you are not a freshman."
Variable assignments:
Let represent "You can access the Internet from campus."
Let represent "You are a computer science major."
Let represent "You are a freshman."
Structural breakdown: " only if ( or not )"
Symbolic logic translation:
System Specifications:
System and software engineers translate requirements expressed in natural language into formal, precise logical specifications to avoid ambiguity.
Example:
Requirement: "The automated reply cannot be sent when the file system is full."
Variable assignments:
Let represent "The automated reply can be sent."
Let represent "The file system is full."
The phrase "when the file system is full" identifies as the condition/premise.
Symbolic logic translation:
Consistent System Specifications:
Definition: A list of propositions is consistent if it is possible to assign truth values to the propositional variables such that every proposition in the specification is true simultaneously (i.e., a satisfying truth assignment exists).
Specification Analysis 1:
Statements:
"The diagnostic message is stored in the buffer or it is retransmitted."
"The diagnostic message is not stored in the buffer."
"If the diagnostic message is stored in the buffer, then it is retransmitted."
Formalization:
Let represent "The diagnostic message is stored in the buffer."
Let represent "The diagnostic message is retransmitted."
The system of statements is: , , .
Evaluation:
To make true, must be assigned .
For to be true with , variable must be assigned .
Check with and : .
Under the assignment and , all three propositions evaluate to .
Result: The specification is consistent.
Specification Analysis 2 (Adding a fourth requirement):
Additional Statement: "The diagnostic message is not retransmitted."
Formalization:
The complete set of requirements becomes: , , , .
Evaluation:
Satisfying requires .
Satisfying requires .
Evaluating under gives .
There exists no truth assignment that makes all specifications true simultaneously.
Result: The extended specification is not consistent.