Lecture01 (Unit1, Module1-MathLogic Proposition LogicalOps-AND, OR, NOT, XOR Imply BiImply)
Lecture01 (Unit1, Module1-MathLogic Proposition LogicalOps-AND, OR, NOT, XOR Imply BiImply)
UNIT – I, Module – 1
Dr. Suddhasil De
Discrete mathematics
Mathematical logic
1
8/18/2024
Propositional logic
Proposition
Proposition
2
8/18/2024
Proposition
B. Compound proposition:
• Truth value of compound proposition completely determined by
truth values of subpropositions, and manner of connecting them.
• Connective (also called operator): representation of logical
operation, to be performed on truth value(s) of one or more
subpropositions.
Example:: AND ( ∧ ), OR ( ∨ ), NOT ( ¬ ), IMPLIES ( → ) etc.
Logical operation
• Logical operation:
• 3 basic “truth-functional” logical operations:
conjunction (due to AND connective; operator notation: ∧);
disjunction (due to OR connective, operator notation: ∨);
negation (due to NOT connective; operator notation: ¬, ‾̄ , ~, ′, !).
• Additional logical operations:
exclusive disjunction (equivalent to XOR connective; operator
notations: ⨁, ∨, ∨̇);
• implication (equivalent to IF…THEN…; operator notation: →);
• bi-implication (equivalent to …IF AND ONLY IF…; operator: ).
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
9
3
8/18/2024
• Conjunction:
• Example-1::
= “Ice floats in water.” à ’s value = TRUE.
= “2 + 2 = 4” à ’s value = TRUE.
∧ = “Ice floats in water AND 2 + 2 = 4.” à value of ∧ = TRUE.
• Example-2::
= “Ice floats in water.” à ’s value = TRUE.
= “2 + 2 = 5” à ’s value = FALSE.
∧ = “Ice floats in water AND 2 + 2 = 5.” à value of ∧ =
FALSE.
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
11
• Conjunction:
• Example-3::
= “India is in Europe.” à ’s value = FALSE.
= “2 + 2 = 4” à ’s value = TRUE.
∧ = “India is in Europe AND 2 + 2 = 4.” à value of ∧ = FALSE.
• Example-4::
= “India is in Europe.” à ’s value = FALSE.
= “2 + 2 = 5” à ’s value = FALSE.
∧ = “India is in Europe AND 2 + 2 = 5.” à value of ∧ = FALSE.
4
8/18/2024
• Disjunction:
• Example-1::
= “Ice floats in water.” à ’s value = TRUE.
= “2 + 2 = 4” à ’s value = TRUE.
∨ = “Ice floats in water OR 2 + 2 = 4.” à value of ∨ = TRUE.
• Example-2::
= “Ice floats in water.” à ’s value = TRUE.
= “2 + 2 = 5” à ’s value = FALSE.
∨ = “Ice floats in water OR 2 + 2 = 5.” à value of ∨ = TRUE.
• Disjunction:
• Example-3::
= “India is in Europe.” à ’s value = FALSE.
= “2 + 2 = 4” à ’s value = TRUE.
∨ = “India is in Europe OR 2 + 2 = 4.” à value of ∨ = TRUE.
• Example-4::
= “India is in Europe.” à ’s value = FALSE.
= “2 + 2 = 5” à ’s value = FALSE.
∨ = “India is in Europe OR 2 + 2 = 5.” à value of ∨ = FALSE.
5
8/18/2024
• Negation:
• Example-1::
= “Ice floats in water.” à ’s value = TRUE.
¬ = “It is false that ice floats in water.” à value of ¬ = FALSE.
• Example-2::
= “Ice floats in water.” à ’s value = TRUE.
¬ = “Ice does not float in water.” à value of ¬ = FALSE.
• Example-3::
= “2 + 2 = 5” à ’s value = FALSE.
¬ = “2 + 2 ≠ 5.” à value of ¬ = TRUE.
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
17
• Negation:
• Other used notations (apart from ¬ ): , ~ , ′, ! , etc.
6
8/18/2024
• Exclusive disjunction:
• Example-1::
= “At 8:30AM on Monday, I attend lecture of CS34110.”
à ’s value = TRUE.
= “At 8:30AM on Monday, I attend lecture of CS34105.”
à ’s value = TRUE.
⨁ = “At 8:30AM on Monday, I attend lecture of EITHER
CS34110 OR CS34105, IS FALSE.”
à value of ⨁ = FALSE.
• Exclusive disjunction:
• Example-2::
= “At 8:30AM on Monday, I attend lecture of CS34110.”
à ’s value = TRUE.
= “It is not the case that at 8:30AM on Monday, I attend lecture of
CS34105.”
à ’s value = FALSE.
⨁ = “At 8:30AM on Monday, I attend lecture of EITHER
CS34110 OR CS34105.”
à value of ⨁ = TRUE.
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
21
7
8/18/2024
• Exclusive disjunction:
• Example-3::
= “At 8:30AM on Monday, I DO NOT attend lecture of CS34110.”
à ’s value = FALSE.
= “At 8:30AM on Monday, I attend lecture of CS34105.”
à ’s value = TRUE.
⨁ = “At 8:30AM on Monday, I attend lecture of EITHER
CS34110 OR CS34105.”
à value of ⨁ = TRUE.
• Exclusive disjunction:
• Example-4::
= “At 8:30AM on Monday, I DO NOT attend lecture of CS34110.”
à ’s value = FALSE.
= “At 8:30AM on Monday, I DO NOT attend lecture of
CS34105.”
à ’s value = FALSE.
⨁ = “At 8:30AM on Monday, I attend lecture of EITHER
CS34110 OR CS34105, IS FALSE.”
à value of ⨁ = FALSE.
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
23
8
8/18/2024
• Implication:
• → [read: “ implies ”]: “IF THEN ”, of given propositions , .
• : hypothesis or antecedent or premise;
: conclusion or consequent.
Truth →
• Definition of truth value of → :
table T T T
if to be TRUE and to be FALSE,
T F F
then → to become FALSE;
F T T
otherwise → to become TRUE.
F F T
Note: when to be FALSE, → to be TRUE
regardless of truth value of .
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
25
• Implication:
• Example-1:: <Politician’s pledge>
= “I win election.” à ’s value = TRUE.
= “I will lower taxes.” à ’s value = TRUE.
→ = “IF I win election, THEN I will lower taxes.”
à value of → = TRUE.
[think as obligation or contract fulfilled]
• Example-2::
’s value = TRUE; ’s value = FALSE.
Value of → = FALSE. [obligation not fulfilled]
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
26
• Implication:
• Example-3::
’s value = FALSE; ’s value = TRUE. [by some influence]
Value of → = TRUE.
• Example-4::
’s value = FALSE; ’s value = FALSE.
Value of → = TRUE. [no obligation]
• Difference from ‘if then ’ construct in programming languages:
: set of executable instructions/statements, instead of proposition;
If ’s value = FALSE, then not to be executed.
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
27
9
8/18/2024
• Bi-implication:
• [read: “ if and only if ”]: “ IF AND ONLY IF ”, of given
propositions , . Truth
• Definition of truth value of : table T T T
if and to have same truth values, T F F
then to become TRUE; F T F
otherwise to become FALSE. F F T
• Property: to become TRUE when both → and → to be
TRUE, and to become FALSE otherwise.
Note: Truth table of opposite of ⨁ .
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
29
• Bi-implication:
• Example-1::
= “I can board airplane.” à ’s value = TRUE.
= “I get boarding pass.” à ’s value = TRUE.
= “I can board airplane, IF AND ONLY IF I get boarding pass.”
à value of = TRUE. [think as both-way obligation fulfilled]
“IF I can board airplane, THEN I get boarding pass.”
à value of → = TRUE.
“IF I get boarding pass, THEN I can board airplane.”
àvalue of → = TRUE.
Discrete Mathematics Dept. of CSE, NITP Dr. Suddhasil De
30
10
8/18/2024
• Bi-implication:
• Example-2::
’s value = TRUE; ’s value = FALSE.
Value of = FALSE. [obligation not fulfilled]
“IF I can board airplane, THEN I do not get boarding pass.”
à value of → = FALSE.
“IF I do not get boarding pass, THEN I can board airplane.”
à value of → = TRUE.
• Bi-implication:
• Example-3::
’s value = FALSE; ’s value = TRUE.
Value of = FALSE. [obligation not fulfilled]
“IF I can not board airplane, THEN I get boarding pass.”
à value of → = TRUE.
“IF I get boarding pass, THEN I can not board airplane.”
à value of → = FALSE.
• Bi-implication:
• Example-4::
’s value = FALSE; ’s value = FALSE.
Value of = TRUE. [no obligation]
“IF I can not board airplane, THEN I do not get boarding pass.”
à value of → = TRUE.
“IF I do not get boarding pass, THEN I can not board airplane.”
à value of → = TRUE.
11
8/18/2024
Summary
Summary
12
8/18/2024
References
1. [Ros19] Kenneth H. Rosen, Discrete Mathematics and its Applications, Eighth
edition, McGraw-Hill Education, 2019.
2. [Mot08] Joe L. Mott, Abraham Kandel, Theodore P. Baker, Discrete
Mathematics for Computer Scientists and Mathematicians, PHI, Second
edition, 2008.
3. [Lip07] Seymour Lipschutz and Marc Lars Lipson, Schaum's Outline of Theory
and Problems of Discrete Mathematics, Third edition, McGraw-Hill Education,
2007.
Further Reading
• Proposition:: [Ros19]:2-3.
• Logical operation:conjunction:: [Ros19]:4.
• Logical operation:disjunction:: [Ros19]:4-5.
• Logical operation:negation:: [Ros19]:3-4.
• Logical operation:exclusive disjunction:: [Ros19]:5-6.
• Logical operation:implication:: [Ros19]:6-9.
• Logical operation:bi-implication:: [Ros19]:10.
Let , , denote the statements “It is raining”, “It is cold”, and “It is
pleasant”, respectively. Then the statement “It is not raining and it is
pleasant, and it is not pleasant only if it is raining and it is cold” is
represented by _____.
13
8/18/2024
14