Mathematical Logic
Mathematical Logic [UG Semester IV]
2/19/2022
History
Mathematical Logic [UG Semester IV]
2/19/2022
Aristotle (384 B.C. -322 B.C.)
Syllogism
Leibnitz (1646-1716)
Mechanization of Inference
Aristotelian Logic
Logic is a science that studies thinking.
Mathematical Logic [UG Semester IV]
2/19/2022
Process of thinking
Mathematical Logic [UG Semester IV]
2/19/2022
Information
Emotion
Mathematical Logic [UG Semester IV]
2/19/2022
Classical Logic [Bivalent Logic]
Mathematical Logic [UG Semester IV]
2/19/2022
True
(1)
False
(0)
Principles of Logic
Mathematical Logic [UG Semester IV]
2/19/2022
Principle of Identity
Principle of Noncontradiction
Principle of Excluded Middle
Principle of Logic
Mathematical Logic [UG Semester IV]
2/19/2022
Principle of Double Negation
Principle of sufficient reason
What is Mathematical Logic?�
Mathematical Logic [UG Semester IV]
2/19/2022
Mathematical Logic [UG Semester IV]
2/19/2022
Mathematical Logic [UG Semester IV]
2/19/2022
George Boole (1815-1864)
Mathematical Analysis of Logic
Gottlob Frege (1848-1925)
Complete Propositional Logic
Robinson (1930-2016)
Resolution Complete
Mathematical Logic [UG Semester IV]
2/19/2022
Mathematical Logic [UG Semester IV]
2/19/2022
Bart Selman
Min Conflict
History
Mathematical Logic [UG Semester IV]
2/19/2022
300 BC Aristotle: Syllogisms
Late 1600’s Leibnitz’s goal: mechanization of inference
1847 Boole: Mathematical Analysis of Logic
1879: Complete Propositional Logic: Frege
1965: Resolution Complete (Robinson)
Continued…
Mathematical Logic [UG Semester IV]
2/19/2022
1971: Cook: satisfiability NP-complete
1992: GSAT Selman min-conflicts
Propositional Logic
Mathematical Logic [UG Semester IV]
2/19/2022
Propositions or statements
Sentences
Mathematical Logic [UG Semester IV]
2/19/2022
Declarative
Exclamatory
Interrogative
Imperative
Our Main concerns
Mathematical Logic [UG Semester IV]
2/19/2022
Mathematical Logic [UG Semester IV]
2/19/2022
Some Sample Propositions
Puppies are cuter than kittens.
Kittens are cuter than puppies.
●
●
●
Usain Bolt can outrun everyone in this
room.
CS103 is useful for cocktail parties.
The earth is made up of gold.
●
●
Mathematical Logic [UG Semester IV]
2/19/2022
More Propositions
I'm a single lady.
●
●
●
●
●
The sun will come out tomorrow.
Party rock is in the house tonight.
We can dance if we want to.
We can leave your friends behind.
Which of them are propositions?�
(No)
(Yes)
(No)
(No)
(Yes)
(No)
Mathematical Logic [UG Semester IV]
2/19/2022
Is this a proposition?
(Semantic or Liar paradox)
Mathematical Logic [UG Semester IV]
2/19/2022
Logical connectives and propositions
It is an arbitrary proposition whose truth value is unspecified.
We use lower case letters p, q, r,.....for propositional variables.
Example: p: Tsunami took thousands of lives on christmas eve.
q: Alia is intelligent.
Mathematical Logic [UG Semester IV]
2/19/2022
Logical connectives
Mathematical Logic [UG Semester IV]
2/19/2022
Logical Connectives | Symbol | Terminology |
Negation | ῀ | Not |
Conjunction | ᴧ | And |
Disjunction | ᴠ | Or |
Exclusive or | Ꚛ | Either or but not both |
Implication (Conditional) | → | If and then |
Bi-implication (Biconditional) | ↔ | If and only if |
Truth table:
Negation (῀):
Example:
p: I went to my institute yesterday.
῀p : I did not go to my institute yesterday.
Mathematical Logic [UG Semester IV]
2/19/2022
| ῀ |
T | F |
F | T |
p
p
Truth table:
Conjunction (ᴧ):
Example: p: Ram went to school.
q: Gopal went to school.
pᴧq: Ram and Gopal went to school.
Mathematical Logic [UG Semester IV]
2/19/2022
p | q | pᴧq |
T | T | T |
T | F | F |
F | T | F |
F | F | F |
Truth table:
Disjunction (ᴠ):
Example: p: There is something wrong with the teacher.
q: There is something wrong with the student.
pᴠq: There is something wrong with the teacher or with the student.
Mathematical Logic [UG Semester IV]
2/19/2022
p | q | pᴠq |
T | T | T |
T | F | T |
F | T | T |
F | F | F |
Truth table:
Conditional (or Implication) (→):
q: conclusion or consequent.
p is a sufficient condition for q
q is a necessary condition for p.
Mathematical Logic [UG Semester IV]
2/19/2022
p | q | p→q |
T | T | T |
T | F | F |
F | T | T |
F | F | T |
Example:
p: The Mathematics Department gets a package of Rs. 2 Lacs
q: The Mathematics Department develops a new software lab.
p→q: If the Department gets a package of Rs. 2 Lacs then the Department will develop a new software lab.
Mathematical Logic [UG Semester IV]
2/19/2022
Truth table:
Biconditional (Bi-implication (↔):
Mathematical Logic [UG Semester IV]
2/19/2022
p | q | p↔q |
T | T | T |
T | F | F |
F | T | F |
F | F | T |
Example:
p: x is a prime number
q: x is divisible by 1 or itself
Since p and q both are true statement, p↔q is true.
Mathematical Logic [UG Semester IV]
2/19/2022
Connectives
Mathematical Logic [UG Semester IV]
2/19/2022
Classification of Statements
Mathematical Logic [UG Semester IV]
2/19/2022
Atomic Statements
Composite Statement
Statement formula
Mathematical Logic [UG Semester IV]
2/19/2022
Is every statement formula is a statement?
However, if we substitute specific statement for the statement letters in a statement formula we get a statement.
Mathematical Logic [UG Semester IV]
2/19/2022
Truth Table of statement formulas
Example: Statement formula: p→(qᴧ῀p)
Truth Table:
Mathematical Logic [UG Semester IV]
2/19/2022
p | q | ῀p | qᴧ῀p | p→(qᴧ῀p) |
T | T | F | F | F |
T | F | F | F | F |
F | T | T | T | T |
F | F | T | F | T |
Tautology
Mathematical Logic [UG Semester IV]
2/19/2022
Example of tautologies
Example: “Socretes is a man”.
“Man is immortal”.
So, “Socretes is immortal.”
Mathematical Logic [UG Semester IV]
2/19/2022
A few results on tautology
Result 1:
If |= A and |= A→B then |= B.
Result 2: (Principle of substitution)
If |= A containing as statement letters p1,....., pn
and B arises from A by substituting statement formulas A1,....., An for p1,....., pn respectively then |=B.
(i.e. Substitution in a tautology is a tautology)
Mathematical Logic [UG Semester IV]
2/19/2022
Logical Consequence
Mathematical Logic [UG Semester IV]
2/19/2022
Logical Consequence
Mathematical Logic [UG Semester IV]
2/19/2022
Some results
Result 1:
Result 2:
Mathematical Logic [UG Semester IV]
2/19/2022
Statement Bundle
Note: Logical equivalence is an equivalence relation in the set of statement formulas. Hence the set of st. formulas is partitioned into st. bundle by logical equivalence and the set of st. bundles forms an atomless Boolean algebra.
Mathematical Logic [UG Semester IV]
2/19/2022
Logical Equivalence
Example: p→q≡῀pᴠq
Mathematical Logic [UG Semester IV]
2/19/2022
Contradiction
|= A iff ῀A is contradiction.
Example: pᴧ῀p is a contradiction.
Mathematical Logic [UG Semester IV]
2/19/2022
Algebra of statement formulas
Mathematical Logic [UG Semester IV]
2/19/2022
Continued...
6. Aᴠ῀A≡T, A ᴧ῀A≡F, ῀T≡F, ῀F≡T [Complemented Laws]
῀῀A≡A [Law of Double Negation]
7. ῀(AᴠB)≡῀Aᴧ῀B; ῀(AᴧB)≡῀Aᴠ῀B [De Morgan’s Law]
8. Aᴠ(AᴧB)≡A; Aᴧ(AᴠB)≡A [Absorption Law]
9. A→B≡῀B→῀A [Contrapositive Law]
Mathematical Logic [UG Semester IV]
2/19/2022
Adequate system of connectives
We have mentioned so far one unary and four binary connectives There are many more unary and binary connectives, and also n-ary connectives, for n > 2.
Mathematical Logic [UG Semester IV]
2/19/2022
Binary and n-ary connectives
Answer:
Mathematical Logic [UG Semester IV]
2/19/2022
Adequate set of connectives
Definition: Any set of connectives with the capability to express all truth tables is said to be adequate.
Emil Post observed in 1921 that the set of standard connectives {¬, ᴧ, ᴠ, →, ↔} is adequate.
Mathematical Logic [UG Semester IV]
2/19/2022
Continued..
Mathematical Logic [UG Semester IV]
2/19/2022
Emil Posts, 1897-1954
In 1921 that the set of standard connectives {¬, ᴧ, ᴠ, →, ↔} is adequate.
Proving adequacy of connective set
Mathematical Logic [UG Semester IV]
2/19/2022
Continued..
reducible to"; “can be expressed in terms of") ¬ and ᴠ.
Mathematical Logic [UG Semester IV]
2/19/2022
Results on adequate system of connectives
Theorem: {¬, ᴧ, ᴠ} are adequate system of connectives.
Proof: Sketch-
¬A is tautologically equivalent to A
AᴧB is tautologically equivalent to AᴧB
AᴠB is tautologically equivalent to AᴠB
A→B is tautologically equivalent to ¬AᴠB
A↔B is tautologically equivalent to (¬AᴠB)ᴧ(¬BᴠA)
¬, ᴧ, ᴠ therefore {¬, ᴧ, ᴠ} is an adequate set of connectives.
Mathematical Logic [UG Semester IV]
2/19/2022
Corollary
{¬, ᴧ}, {¬, ᴠ} and {¬, →} are adequate.
Questions:
Mathematical Logic [UG Semester IV]
2/19/2022
Peirce arrow (↓)
Mathematical Logic [UG Semester IV]
2/19/2022
C. S. Peirce (1839-1914)
Truth table for Peirce arrow ↓
Mathematical Logic [UG Semester IV]
2/19/2022
p | q | p↓q |
T | T | F |
T | F | F |
F | T | F |
F | F | T |
The Peirce arrow, “↓", has the property that each of the standard
connectives is definable in terms of “↓".
Proof that Peirce arrow is adequate
We can express the standard connectives in terms of the Peirce ↓ by
¬p≡p↓p, pᴧq≡(p↓p)↓(q↓q)
pᴠq≡(p↓q)↓ (p↓q)
p→q≡((p↓p)↓q)↓ ((p↓p)↓q)
p↔q≡((p↓p)↓q)↓ ((q↓p)↓q)
Thus it follows that the set consisting of a single connective, the
Peirce arrow, “↓”(also called NOR) is adequate.
Note: Thus, to test a new set of connectives S for being adequate, it suffices to test if ↓ can be expressed by S .
Mathematical Logic [UG Semester IV]
2/19/2022
Sheffer stroke |�
Mathematical Logic [UG Semester IV]
2/19/2022
H.M.Sheffer (1882-1964
Truth table for sheffer stroke |
Mathematical Logic [UG Semester IV]
2/19/2022
p | q | p|q |
T | T | F |
T | F | T |
F | T | T |
F | F | T |
One can show that the Sheffer stroke “|” also has the property that
each of the standard connectives is definable in terms of “|”.
Adequacy of Sheffer’s stroke |
¬p≡p|p, pᴠq≡(p|p)|(q|q)
Note :The set of connectives consisting of only one connective, the Sheffer stroke, “|”, (also called NAND), is adequate.
Mathematical Logic [UG Semester IV]
2/19/2022
Theorem
Mathematical Logic [UG Semester IV]
2/19/2022
Powerful connectives in decreasing order
↔
→
ᴠ
ᴧ
¬
Mathematical Logic [UG Semester IV]
2/19/2022
Mathematical Logic [UG Semester IV]
2/19/2022
Thank You