SlideShare a Scribd company logo
1 of 34
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
COMPUTATIONAL LOGIC
Dr.J.Faritha Banu
SRM IST- Ramapuram
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Topics Covered in this Presentation are
 Propositional Calculus Introduction
 Terminologies
 Natural Deduction proof system
 Inference Rules
 Example Problems
 Sub Formula – Sub Proposition
 Soundness of Propositional Logic
 Completeness of Propositional Logic
 Gentzen sequent calculus
 Axiomatic System for PC
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
PROPOSITIONAL CALCULUS
 A proof starts with some well known facts and proceeds towards the result using
the allowed inferences.
 The accepted facts (proved theorems) are called axioms.
 The allowed inferences(Valid consequences) are called the rules of inference,
which link one or more propositions to another.
 A proof is then a sketch of how we reach the final proposition from the axioms by
means of the inference rules.
 Propositional Calculus (PC): Branch of symbolic logic that deals with
propositions and the relations between them, without examination of their
content.
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
INFORMAL METHOD
 Axiomatic systems are inconvenient as they insist on formality.
 Informal methods can be developed from the axiomatic systems.
INFORMAL SYSTEM – PROOF
NATURAL DEDUCTION
 Inference Rules: These are used in the Propositional natural deduction for
constructing proof. These rules are categorized to be either for introduction or for
elimination.
 Propositional Natural Deduction system (PND), This system has only one axiom,
which is ⊤; PND has the following inference rules (read ‘ i ’ for introduction and ‘e
’ for elimination
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
NATURAL DEDUCTION - Inference Rules
Natural Deduction of Propositional Logic: Rules of Conjunction, Disjunction, Implication, Negation
Conjunction (Introduction) Conjunction (Elimination) or Simplification
p p ∧ q p ∧ q
q p q
p ∧ q
Modus Ponens Modus Tollens
p→q p→q
p ¬q
q ¬ p
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
NATURAL DEDUCTION - Inference Rules
Disjunction(Introduction)
p q
p ∨ q p ∨ q
Disjunction(Elimination)
p ∨ q
p
(where p → r)
r
q ( where q → r)
r
r
Can be written as (p…..r) (q…r) , p v q ( ….. Means conditional)
r
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
NATURAL DEDUCTION - - Inference Rules
Top –True (Introduction) Top (Elimination)
Bottom -False (Introduction) Bottom -False (Elimination)
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
NATURAL DEDUCTION - Inference Rules
Negation (Introduction) Negation (Elimination)
Double Negation (Introduction) Double Negation
(Elimination)
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
NATURAL DEDUCTION- - Inference Rules
Conditional (Implication ) → (Introduction) → (Elimination)
Biconditional (Equivalence) ↔ (Introduction) ↔ (Elimination)
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Proof 1 :
 Premises ( p ∧ q ) ∧ ( r ∧ ( s ∧ t ))
Conclusion s
Deduction:
1. ( p ∧ q ) ∧ ( r ∧ ( s ∧ t )) Premise
2. ( r ∧ ( s ∧ t )) Conjunction Elimination (1)
3. s ∧ t Conjunction Elimination (2)
4. s Conjunction Elimination (2)
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Proof 2 :
 Premises ( p ∧ ( q ∨ r )) ∧ ( r ∧ ( s ↔ t ))
 Conclusion p ∧ r
Deduction:
1. ( p ∧ ( q ∨ r )) ∧ ( r ∧ ( s ↔ t )) Premise
2. p ∧ ( q ∨ r ) Conjunction Elimination(∧e)
(1)
3. p Conjunction Elimination(∧e)
(2)
4. r ∧ ( s ↔ t ) Conjunction Elimination (1)
5. r Conjunction Elimination (4)
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Proof 3 : Premises ( p ∧ q ) → r
p ∧ s
q
 Conclusion r ∨ t
Deduction:
1. ( p ∧ q ) → r Premise
2. p ∧ s Premise
3. q Premise
4. p Conjunction Elimination (2)
5. s Conjunction Elimination (2)
6. p ∧ q Conjunction Introduction (4,3)
7. r Modus Ponens (1,6)
8. r ∨ t Disjunction (7)
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Proof 4 : Premises p → ( q ∧ r )
¬( q ∧ r)
Conclusion ¬ p ∧ ¬ ( q ∧ r)
Deduction:
1. p → ( q ∧ r ) Premise
2. ¬( q ∧ r) Premise
3. ¬ p Modus Tollens (1)
4. ¬ p ∧ ¬ ( q ∧ r) Conjunction Introduction (3,2)
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Proof 5 : Premises p → q
p → r
s → ¬( q ∨ r)
Conclusion ¬ s ∧ p
Deduction:
1. p → q Premise
2. p → r Premise
3. s → ¬( q ∨ r) Premise
4. p Conjuction elimination 2
5. q Modus ponens(4,1)
6. q ∨ r Disjunction introduction (5)
7. ¬ s Modus Tollens (3,6)
8. ¬ s ∧ p Conjuction introduction (4,7)
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Proof 6: A proof for ⊢ p→(q→ p) is as follows:
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Sub Formula – Sub Proposition:
 A sub-proposition of w, is a proposition corresponding to any subtree of the
parse tree of w.
Immediate sub-proposition of a proposition w is any proposition
corresponding to a subtree of the parse tree Tw of w whose depth is one less
than Tw.
The set of appropriate nonlogical constants is called the signature of the
propositional language.
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Sub Formula – Sub Proposition:
 The function sub(P ) giving the sub formulas of a formula P is defined by
structural induction as follows:
sub(pi) = {pi}, for all atomic formulas pi
 sub(P ∧ Q) = {(P ∧ Q)} ∪ sub(P ) ∪ sub(Q)
sub(P ∨ Q) = {(P ∨ Q)} ∪ sub(P ) ∪ sub(Q)
sub(P → Q) = {(P → Q)} ∪ sub(P ) ∪ sub(Q)
sub(P ↔ Q) = {(P ↔ Q)} ∪ sub(P ) ∪ sub(Q)
sub(¬P ) = {¬P } ∪ sub(P ).
The set sub(P ) is called the set of sub formulas of P .
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Sub Formula – Sub Proposition:
 Compute sub(P ) for P = ((p1 ∧ ¬p2) ∨ ¬p3).
sub(P ) = {P } ∪ sub(p1 ∧ ¬p2) ∪ sub(¬p3)
= {P } ∪ {(p1 ∧ ¬p2)} ∪ sub(p1) ∪ sub(¬p2) ∪ sub(¬p3)
= {P, (p1 ∧ ¬p2)} ∪ {p1} ∪ {¬p2} ∪ sub(p2) ∪ {¬p3} ∪ sub(p3)
= {P, (p1 ∧ ¬p2), p1, ¬p2, p2, ¬p3, p3}
Note : From the Parse tree write propositions for all the
subtree of the parse tree of w. A tree is subtree to itself,
so w also.
∨
∧ ¬
p1 ¬ p3
p2
Parse Tree
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Soundness of Propositional Logic:
soundness property: if and only if every formula that can be proved in the system
is logically valid (Tautology) with respect to the semantics of the system.
Theorem :
Let Σ be a set of propositions, and let w be a proposition.
(1) If Σ ⊢ w in PC, then Σ ⊨ w.
(2) If Σ is satisfiable, then Σ is PC-consistent.
Ex: Modus ponens Proof
p (p=1)
p → q (p → q =1)
Q q=1
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Completeness of Propositional Logic:
Completeness property: any formula that is true under all valuations is a theorem.
Theorem :
Let Σ be an infinite set of propositions, and let w be a proposition.
(1) Σ ⊨ w iff Σ has a finite subset Γ such that Γ ⊨ w.
(2) Σ is unsatisfiable iff Σ has a finite unsatisfiable subset.
(3) Σ is satisfiable iff each nonempty finite subset of Σ is satisfiable
Note:
 Soundness means that you cannot prove anything that's wrong
 Completeness means that you can prove anything that's right.
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Gentzen sequent calculus
 Sequent calculus: Instead of constructing proofs, will prove that certain consequences
are provable. In a sequent calculus, one starts from a given sequent (consequence) and
goes on applying sequent rules to get newer sequents.
 Gentzen Sequent calculus: identifies some of the sequents as correct or self-evident
and tries to reduce everything to the self-evident ones, which terminate a proof.
 A sequent is of the form Σ ⊢ Γ, where Σ and Γ are sets of propositions. The empty sequent
‘⊢’ represents a consequence which never holds; and the universal sequent ⊤ represents
a valid consequence, which is used to terminate a proof.
 This system is also known as GPC, Gentzen’s Propositional Calculus.
 ⊤ p, r ⊢ q, s, t p, r ⊢ q p ⊢ q p ⊢ ⊢ q ⊢
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Gentzen sequent calculus
 Let Σ, Γ, Δ, Ω be generic sets of propositions, and let x, y be generic
propositions. The inference rules or the sequent rules of GPC, along with their
mnemonics, are as follows:
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Gentzen sequent calculus
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Gentzen sequent calculus
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Gentzen sequent calculus
 A derivation (GPC-derivation) is a tree whose root is a sequent, and it is
generated by applications of sequent rules on the leaves recursively.
 The new sequents are added as children of the original (leaf) node.
 Rules that have a single denominator are called stacking rules, and the ones
with two denominators are called branching rules.
 Sequents arising out of an application of a stacking rule are written one after
another from top to bottom, while those arising out of branching rules are written
with the help of slanted lines
 A proof of a sequent (GPC-proof) is a derivation with the sequent at its root and ⊤ at
all its leaves
 A set of propositions Σ is inconsistent in GPC iff Σ ⊢ ⊥.
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
GPC-proof for p → (q → p)
 ⊢ p → (q → p) ⊢ → (then x ⊢ y)
p ⊢ (q→p) ⊢ → (then x ⊢ y)
p , q ⊢ p
T
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
GPC-proof for ⊢ p→(¬q→¬(p→q))
⊢ p→ (¬q→¬(p→q)) ⊢ → (then x ⊢ y)
p ⊢ ¬q→¬(p→q) ⊢ → (then x ⊢ y)
 p , ¬q ⊢ ¬(p→q) ⊢ ¬ ( then x ⊢
 p, ¬q , (p→q) ⊢ ¬ ⊢ (then ⊢ x)
 p, (p→q) ⊢ q
→ ⊢ then ⊢ x y ⊢
 p ⊢ p, q p, q ⊢ q
 T T
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
GPC-proof for ⊢ (p→(q→r))→((p→q)→(p→r))
⊢ (p→(q→r))→((p→q)→(p→r)) ⊢ → (then x ⊢ y)
p →(q→r) ⊢ ((p→q)→(p→r) ⊢ → (then x ⊢ y)
 p→(q→r), p→q ⊢ p→r ⊢ → (then x ⊢ y)
 p→(q→r), p→q, p ⊢ r → ⊢ then ⊢ x y ⊢
 p→(q→r), p ⊢ p, r p→(q→r), q,p ⊢ r → ⊢ then ⊢ x y ⊢
 T q,p ⊢ p,r q→r,q,p ⊢ r
T
q,p ⊢ q, r r,q,p ⊢ r
T T
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Show that the following sequent are provable or not using GPC
p, p→q ! ⊢ q
p, p→q ⊢ q → ⊢ then ⊢ x y ⊢
p ⊢p, q p, q ⊢ q
T T
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
AXIOMATIC SYSTEM PC
We choose the subset {¬,→} we ignore other connectives for simplicity.
We choose the subset {¬,→} we ignore other connectives for simplicity.
we use capital letters A,B,C, . . . as generic symbols for propositions.
The axiom schemes of PC are:
(A1) A→(B→A)
(A2) (A→(B→C))→((A→B)→(A→C))
(A3) (¬A→¬B)→((¬A→B)→A)
In addition to the axioms, PC has a inference rule - Modus Ponens:
{A, A→B} ⊨ B.
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Proof using axiomatic system
EX: Show that ⊢ q→(p→ p).
1. p→ p Theorem
2. (p→ p)→(q→(p→ p)) A1
3. q→(p→ p) MP 1, 2
EX: Show that ⊢ (¬q→q)→q.
1. ¬q→¬q Theorem
2. (¬q→¬q)→((¬q→q)→q) A3
3. (¬q→q)→q 1, 2,MP
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
Proof using axiomatic system
⊨ PC r→(p→(q→ p)).
1. (p→(q→ p)) → r→(p→(q→ p)). A1 , A := p→(q→ p), B := r
2. p→(q→ p) A1, A := p, B := q
3. r→(p→(q→ p)) MP 1, 2,
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
RAMAPURAM CAMPUS, CHENNAI-600 089
References
1. Arindama Singh," Logics for Computer Science", PHI Learning Private
Ltd,2nd Edition, 2018
2. Wasilewska & Anita, "Logics for computer science: classical and non-
classical", Springer, 2018
3. Huth M and Ryan M, Logic in Computer Science: Modeling and Reasoning
about systems‖, Cambridge University Press, 2005
4. Dana Richards & Henry Hamburger, "Logic And Language Models For
Computer Science", Third Edition, World Scientific Publishing Co. Pte.
Ltd,2018
Computational Logic Topics at SRM IST Chennai

More Related Content

What's hot

CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of InferenceCMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of Inferenceallyn joy calcaben
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Logic and proof
Logic and proofLogic and proof
Logic and proofSuresh Ram
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceasimnawaz54
 
String matching with finite state automata
String matching with finite state automataString matching with finite state automata
String matching with finite state automataAnmol Hamid
 
Lecture Notes-Finite State Automata for NLP.pdf
Lecture Notes-Finite State Automata for NLP.pdfLecture Notes-Finite State Automata for NLP.pdf
Lecture Notes-Finite State Automata for NLP.pdfDeptii Chaudhari
 
String matching algorithms(knuth morris-pratt)
String matching algorithms(knuth morris-pratt)String matching algorithms(knuth morris-pratt)
String matching algorithms(knuth morris-pratt)Neel Shah
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inferenceraksharao
 
Series solutions at ordinary point and regular singular point
Series solutions at ordinary point and regular singular pointSeries solutions at ordinary point and regular singular point
Series solutions at ordinary point and regular singular pointvaibhav tailor
 
discrete mathematics precedence of logical operators
discrete mathematics precedence of logical operatorsdiscrete mathematics precedence of logical operators
discrete mathematics precedence of logical operatorsTukaram Gundoor
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicIT Engineering Department
 
Propositional logic
Propositional logicPropositional logic
Propositional logicMamta Pandey
 
Godels First Incompleteness Theorem
Godels First Incompleteness TheoremGodels First Incompleteness Theorem
Godels First Incompleteness Theoremmmanning02474
 

What's hot (20)

CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of InferenceCMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of Inference
 
Quantifier
QuantifierQuantifier
Quantifier
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inference
 
Formal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical EquivalenceFormal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical Equivalence
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Truth table
Truth tableTruth table
Truth table
 
String matching with finite state automata
String matching with finite state automataString matching with finite state automata
String matching with finite state automata
 
Lecture Notes-Finite State Automata for NLP.pdf
Lecture Notes-Finite State Automata for NLP.pdfLecture Notes-Finite State Automata for NLP.pdf
Lecture Notes-Finite State Automata for NLP.pdf
 
String matching algorithms(knuth morris-pratt)
String matching algorithms(knuth morris-pratt)String matching algorithms(knuth morris-pratt)
String matching algorithms(knuth morris-pratt)
 
Nonlinear Differential Equations
Nonlinear Differential EquationsNonlinear Differential Equations
Nonlinear Differential Equations
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
 
Series solutions at ordinary point and regular singular point
Series solutions at ordinary point and regular singular pointSeries solutions at ordinary point and regular singular point
Series solutions at ordinary point and regular singular point
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
discrete mathematics precedence of logical operators
discrete mathematics precedence of logical operatorsdiscrete mathematics precedence of logical operators
discrete mathematics precedence of logical operators
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Godels First Incompleteness Theorem
Godels First Incompleteness TheoremGodels First Incompleteness Theorem
Godels First Incompleteness Theorem
 

Similar to Computational Logic Topics at SRM IST Chennai

Lecture 09 -_davis_putnam
Lecture 09 -_davis_putnamLecture 09 -_davis_putnam
Lecture 09 -_davis_putnamIssen Sobri
 
Computer Science Engineering: Discrete mathematics & graph theory, THE GATE A...
Computer Science Engineering: Discrete mathematics & graph theory, THE GATE A...Computer Science Engineering: Discrete mathematics & graph theory, THE GATE A...
Computer Science Engineering: Discrete mathematics & graph theory, THE GATE A...klirantga
 
NAND and NOR connectives
NAND and NOR connectivesNAND and NOR connectives
NAND and NOR connectivesLakshmi R
 
Orthogonal basis and gram schmidth process
Orthogonal basis and gram schmidth processOrthogonal basis and gram schmidth process
Orthogonal basis and gram schmidth processgidc engineering college
 
Du Calcul des prédicats vers Prolog
Du Calcul des prédicats vers PrologDu Calcul des prédicats vers Prolog
Du Calcul des prédicats vers PrologSerge Garlatti
 
discreatemathpresentationrss-171107192105.pptx
discreatemathpresentationrss-171107192105.pptxdiscreatemathpresentationrss-171107192105.pptx
discreatemathpresentationrss-171107192105.pptxAbdulMajeetMohamed
 
A simple method to find a robust output feedback controller by random search ...
A simple method to find a robust output feedback controller by random search ...A simple method to find a robust output feedback controller by random search ...
A simple method to find a robust output feedback controller by random search ...ISA Interchange
 
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light SystemTMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light SystemIosif Itkin
 
Lecture_3_Chapter_1_Lesson_1.2.pptx
Lecture_3_Chapter_1_Lesson_1.2.pptxLecture_3_Chapter_1_Lesson_1.2.pptx
Lecture_3_Chapter_1_Lesson_1.2.pptxHomer53
 
The Logic of Quantum Physics
The Logic of Quantum PhysicsThe Logic of Quantum Physics
The Logic of Quantum PhysicsRishi Banerjee
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptxDakshBaveja
 

Similar to Computational Logic Topics at SRM IST Chennai (20)

Chap05
Chap05Chap05
Chap05
 
L2.pdf
L2.pdfL2.pdf
L2.pdf
 
Lecture 09 -_davis_putnam
Lecture 09 -_davis_putnamLecture 09 -_davis_putnam
Lecture 09 -_davis_putnam
 
Computer Science Engineering: Discrete mathematics & graph theory, THE GATE A...
Computer Science Engineering: Discrete mathematics & graph theory, THE GATE A...Computer Science Engineering: Discrete mathematics & graph theory, THE GATE A...
Computer Science Engineering: Discrete mathematics & graph theory, THE GATE A...
 
AI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdfAI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdf
 
Formal Logic - Lesson 7 - Rules of Inference
Formal Logic - Lesson 7 - Rules of InferenceFormal Logic - Lesson 7 - Rules of Inference
Formal Logic - Lesson 7 - Rules of Inference
 
NAND and NOR connectives
NAND and NOR connectivesNAND and NOR connectives
NAND and NOR connectives
 
Formal Logic - Lesson 6 - Switching Circuits
Formal Logic - Lesson 6 - Switching CircuitsFormal Logic - Lesson 6 - Switching Circuits
Formal Logic - Lesson 6 - Switching Circuits
 
1. linear model, inference, prediction
1. linear model, inference, prediction1. linear model, inference, prediction
1. linear model, inference, prediction
 
Orthogonal basis and gram schmidth process
Orthogonal basis and gram schmidth processOrthogonal basis and gram schmidth process
Orthogonal basis and gram schmidth process
 
Du Calcul des prédicats vers Prolog
Du Calcul des prédicats vers PrologDu Calcul des prédicats vers Prolog
Du Calcul des prédicats vers Prolog
 
Predicate Calculus
Predicate CalculusPredicate Calculus
Predicate Calculus
 
Logic
LogicLogic
Logic
 
discreatemathpresentationrss-171107192105.pptx
discreatemathpresentationrss-171107192105.pptxdiscreatemathpresentationrss-171107192105.pptx
discreatemathpresentationrss-171107192105.pptx
 
chapter9.ppt
chapter9.pptchapter9.ppt
chapter9.ppt
 
A simple method to find a robust output feedback controller by random search ...
A simple method to find a robust output feedback controller by random search ...A simple method to find a robust output feedback controller by random search ...
A simple method to find a robust output feedback controller by random search ...
 
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light SystemTMPA-2015: Implementing the MetaVCG Approach in the C-light System
TMPA-2015: Implementing the MetaVCG Approach in the C-light System
 
Lecture_3_Chapter_1_Lesson_1.2.pptx
Lecture_3_Chapter_1_Lesson_1.2.pptxLecture_3_Chapter_1_Lesson_1.2.pptx
Lecture_3_Chapter_1_Lesson_1.2.pptx
 
The Logic of Quantum Physics
The Logic of Quantum PhysicsThe Logic of Quantum Physics
The Logic of Quantum Physics
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptx
 

Recently uploaded

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 

Recently uploaded (20)

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 

Computational Logic Topics at SRM IST Chennai

  • 1. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 COMPUTATIONAL LOGIC Dr.J.Faritha Banu SRM IST- Ramapuram
  • 2. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Topics Covered in this Presentation are  Propositional Calculus Introduction  Terminologies  Natural Deduction proof system  Inference Rules  Example Problems  Sub Formula – Sub Proposition  Soundness of Propositional Logic  Completeness of Propositional Logic  Gentzen sequent calculus  Axiomatic System for PC
  • 3. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 PROPOSITIONAL CALCULUS  A proof starts with some well known facts and proceeds towards the result using the allowed inferences.  The accepted facts (proved theorems) are called axioms.  The allowed inferences(Valid consequences) are called the rules of inference, which link one or more propositions to another.  A proof is then a sketch of how we reach the final proposition from the axioms by means of the inference rules.  Propositional Calculus (PC): Branch of symbolic logic that deals with propositions and the relations between them, without examination of their content.
  • 4. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 INFORMAL METHOD  Axiomatic systems are inconvenient as they insist on formality.  Informal methods can be developed from the axiomatic systems. INFORMAL SYSTEM – PROOF NATURAL DEDUCTION  Inference Rules: These are used in the Propositional natural deduction for constructing proof. These rules are categorized to be either for introduction or for elimination.  Propositional Natural Deduction system (PND), This system has only one axiom, which is ⊤; PND has the following inference rules (read ‘ i ’ for introduction and ‘e ’ for elimination
  • 5. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 NATURAL DEDUCTION - Inference Rules Natural Deduction of Propositional Logic: Rules of Conjunction, Disjunction, Implication, Negation Conjunction (Introduction) Conjunction (Elimination) or Simplification p p ∧ q p ∧ q q p q p ∧ q Modus Ponens Modus Tollens p→q p→q p ¬q q ¬ p
  • 6. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 NATURAL DEDUCTION - Inference Rules Disjunction(Introduction) p q p ∨ q p ∨ q Disjunction(Elimination) p ∨ q p (where p → r) r q ( where q → r) r r Can be written as (p…..r) (q…r) , p v q ( ….. Means conditional) r
  • 7. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 NATURAL DEDUCTION - - Inference Rules Top –True (Introduction) Top (Elimination) Bottom -False (Introduction) Bottom -False (Elimination)
  • 8. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 NATURAL DEDUCTION - Inference Rules Negation (Introduction) Negation (Elimination) Double Negation (Introduction) Double Negation (Elimination)
  • 9. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 NATURAL DEDUCTION- - Inference Rules Conditional (Implication ) → (Introduction) → (Elimination) Biconditional (Equivalence) ↔ (Introduction) ↔ (Elimination)
  • 10. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Proof 1 :  Premises ( p ∧ q ) ∧ ( r ∧ ( s ∧ t )) Conclusion s Deduction: 1. ( p ∧ q ) ∧ ( r ∧ ( s ∧ t )) Premise 2. ( r ∧ ( s ∧ t )) Conjunction Elimination (1) 3. s ∧ t Conjunction Elimination (2) 4. s Conjunction Elimination (2)
  • 11. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Proof 2 :  Premises ( p ∧ ( q ∨ r )) ∧ ( r ∧ ( s ↔ t ))  Conclusion p ∧ r Deduction: 1. ( p ∧ ( q ∨ r )) ∧ ( r ∧ ( s ↔ t )) Premise 2. p ∧ ( q ∨ r ) Conjunction Elimination(∧e) (1) 3. p Conjunction Elimination(∧e) (2) 4. r ∧ ( s ↔ t ) Conjunction Elimination (1) 5. r Conjunction Elimination (4)
  • 12. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Proof 3 : Premises ( p ∧ q ) → r p ∧ s q  Conclusion r ∨ t Deduction: 1. ( p ∧ q ) → r Premise 2. p ∧ s Premise 3. q Premise 4. p Conjunction Elimination (2) 5. s Conjunction Elimination (2) 6. p ∧ q Conjunction Introduction (4,3) 7. r Modus Ponens (1,6) 8. r ∨ t Disjunction (7)
  • 13. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Proof 4 : Premises p → ( q ∧ r ) ¬( q ∧ r) Conclusion ¬ p ∧ ¬ ( q ∧ r) Deduction: 1. p → ( q ∧ r ) Premise 2. ¬( q ∧ r) Premise 3. ¬ p Modus Tollens (1) 4. ¬ p ∧ ¬ ( q ∧ r) Conjunction Introduction (3,2)
  • 14. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Proof 5 : Premises p → q p → r s → ¬( q ∨ r) Conclusion ¬ s ∧ p Deduction: 1. p → q Premise 2. p → r Premise 3. s → ¬( q ∨ r) Premise 4. p Conjuction elimination 2 5. q Modus ponens(4,1) 6. q ∨ r Disjunction introduction (5) 7. ¬ s Modus Tollens (3,6) 8. ¬ s ∧ p Conjuction introduction (4,7)
  • 15. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Proof 6: A proof for ⊢ p→(q→ p) is as follows:
  • 16. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Sub Formula – Sub Proposition:  A sub-proposition of w, is a proposition corresponding to any subtree of the parse tree of w. Immediate sub-proposition of a proposition w is any proposition corresponding to a subtree of the parse tree Tw of w whose depth is one less than Tw. The set of appropriate nonlogical constants is called the signature of the propositional language.
  • 17. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Sub Formula – Sub Proposition:  The function sub(P ) giving the sub formulas of a formula P is defined by structural induction as follows: sub(pi) = {pi}, for all atomic formulas pi  sub(P ∧ Q) = {(P ∧ Q)} ∪ sub(P ) ∪ sub(Q) sub(P ∨ Q) = {(P ∨ Q)} ∪ sub(P ) ∪ sub(Q) sub(P → Q) = {(P → Q)} ∪ sub(P ) ∪ sub(Q) sub(P ↔ Q) = {(P ↔ Q)} ∪ sub(P ) ∪ sub(Q) sub(¬P ) = {¬P } ∪ sub(P ). The set sub(P ) is called the set of sub formulas of P .
  • 18. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Sub Formula – Sub Proposition:  Compute sub(P ) for P = ((p1 ∧ ¬p2) ∨ ¬p3). sub(P ) = {P } ∪ sub(p1 ∧ ¬p2) ∪ sub(¬p3) = {P } ∪ {(p1 ∧ ¬p2)} ∪ sub(p1) ∪ sub(¬p2) ∪ sub(¬p3) = {P, (p1 ∧ ¬p2)} ∪ {p1} ∪ {¬p2} ∪ sub(p2) ∪ {¬p3} ∪ sub(p3) = {P, (p1 ∧ ¬p2), p1, ¬p2, p2, ¬p3, p3} Note : From the Parse tree write propositions for all the subtree of the parse tree of w. A tree is subtree to itself, so w also. ∨ ∧ ¬ p1 ¬ p3 p2 Parse Tree
  • 19. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Soundness of Propositional Logic: soundness property: if and only if every formula that can be proved in the system is logically valid (Tautology) with respect to the semantics of the system. Theorem : Let Σ be a set of propositions, and let w be a proposition. (1) If Σ ⊢ w in PC, then Σ ⊨ w. (2) If Σ is satisfiable, then Σ is PC-consistent. Ex: Modus ponens Proof p (p=1) p → q (p → q =1) Q q=1
  • 20. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Completeness of Propositional Logic: Completeness property: any formula that is true under all valuations is a theorem. Theorem : Let Σ be an infinite set of propositions, and let w be a proposition. (1) Σ ⊨ w iff Σ has a finite subset Γ such that Γ ⊨ w. (2) Σ is unsatisfiable iff Σ has a finite unsatisfiable subset. (3) Σ is satisfiable iff each nonempty finite subset of Σ is satisfiable Note:  Soundness means that you cannot prove anything that's wrong  Completeness means that you can prove anything that's right.
  • 21. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Gentzen sequent calculus  Sequent calculus: Instead of constructing proofs, will prove that certain consequences are provable. In a sequent calculus, one starts from a given sequent (consequence) and goes on applying sequent rules to get newer sequents.  Gentzen Sequent calculus: identifies some of the sequents as correct or self-evident and tries to reduce everything to the self-evident ones, which terminate a proof.  A sequent is of the form Σ ⊢ Γ, where Σ and Γ are sets of propositions. The empty sequent ‘⊢’ represents a consequence which never holds; and the universal sequent ⊤ represents a valid consequence, which is used to terminate a proof.  This system is also known as GPC, Gentzen’s Propositional Calculus.  ⊤ p, r ⊢ q, s, t p, r ⊢ q p ⊢ q p ⊢ ⊢ q ⊢
  • 22. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Gentzen sequent calculus  Let Σ, Γ, Δ, Ω be generic sets of propositions, and let x, y be generic propositions. The inference rules or the sequent rules of GPC, along with their mnemonics, are as follows:
  • 23. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Gentzen sequent calculus
  • 24. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Gentzen sequent calculus
  • 25. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Gentzen sequent calculus  A derivation (GPC-derivation) is a tree whose root is a sequent, and it is generated by applications of sequent rules on the leaves recursively.  The new sequents are added as children of the original (leaf) node.  Rules that have a single denominator are called stacking rules, and the ones with two denominators are called branching rules.  Sequents arising out of an application of a stacking rule are written one after another from top to bottom, while those arising out of branching rules are written with the help of slanted lines  A proof of a sequent (GPC-proof) is a derivation with the sequent at its root and ⊤ at all its leaves  A set of propositions Σ is inconsistent in GPC iff Σ ⊢ ⊥.
  • 26. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 GPC-proof for p → (q → p)  ⊢ p → (q → p) ⊢ → (then x ⊢ y) p ⊢ (q→p) ⊢ → (then x ⊢ y) p , q ⊢ p T
  • 27. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 GPC-proof for ⊢ p→(¬q→¬(p→q)) ⊢ p→ (¬q→¬(p→q)) ⊢ → (then x ⊢ y) p ⊢ ¬q→¬(p→q) ⊢ → (then x ⊢ y)  p , ¬q ⊢ ¬(p→q) ⊢ ¬ ( then x ⊢  p, ¬q , (p→q) ⊢ ¬ ⊢ (then ⊢ x)  p, (p→q) ⊢ q → ⊢ then ⊢ x y ⊢  p ⊢ p, q p, q ⊢ q  T T
  • 28. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 GPC-proof for ⊢ (p→(q→r))→((p→q)→(p→r)) ⊢ (p→(q→r))→((p→q)→(p→r)) ⊢ → (then x ⊢ y) p →(q→r) ⊢ ((p→q)→(p→r) ⊢ → (then x ⊢ y)  p→(q→r), p→q ⊢ p→r ⊢ → (then x ⊢ y)  p→(q→r), p→q, p ⊢ r → ⊢ then ⊢ x y ⊢  p→(q→r), p ⊢ p, r p→(q→r), q,p ⊢ r → ⊢ then ⊢ x y ⊢  T q,p ⊢ p,r q→r,q,p ⊢ r T q,p ⊢ q, r r,q,p ⊢ r T T
  • 29. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Show that the following sequent are provable or not using GPC p, p→q ! ⊢ q p, p→q ⊢ q → ⊢ then ⊢ x y ⊢ p ⊢p, q p, q ⊢ q T T
  • 30. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 AXIOMATIC SYSTEM PC We choose the subset {¬,→} we ignore other connectives for simplicity. We choose the subset {¬,→} we ignore other connectives for simplicity. we use capital letters A,B,C, . . . as generic symbols for propositions. The axiom schemes of PC are: (A1) A→(B→A) (A2) (A→(B→C))→((A→B)→(A→C)) (A3) (¬A→¬B)→((¬A→B)→A) In addition to the axioms, PC has a inference rule - Modus Ponens: {A, A→B} ⊨ B.
  • 31. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Proof using axiomatic system EX: Show that ⊢ q→(p→ p). 1. p→ p Theorem 2. (p→ p)→(q→(p→ p)) A1 3. q→(p→ p) MP 1, 2 EX: Show that ⊢ (¬q→q)→q. 1. ¬q→¬q Theorem 2. (¬q→¬q)→((¬q→q)→q) A3 3. (¬q→q)→q 1, 2,MP
  • 32. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 Proof using axiomatic system ⊨ PC r→(p→(q→ p)). 1. (p→(q→ p)) → r→(p→(q→ p)). A1 , A := p→(q→ p), B := r 2. p→(q→ p) A1, A := p, B := q 3. r→(p→(q→ p)) MP 1, 2,
  • 33. SRM INSTITUTE OF SCIENCE AND TECHNOLOGY RAMAPURAM CAMPUS, CHENNAI-600 089 References 1. Arindama Singh," Logics for Computer Science", PHI Learning Private Ltd,2nd Edition, 2018 2. Wasilewska & Anita, "Logics for computer science: classical and non- classical", Springer, 2018 3. Huth M and Ryan M, Logic in Computer Science: Modeling and Reasoning about systems‖, Cambridge University Press, 2005 4. Dana Richards & Henry Hamburger, "Logic And Language Models For Computer Science", Third Edition, World Scientific Publishing Co. Pte. Ltd,2018