SlideShare a Scribd company logo
The Propositional Calculus
Chapter 13.
2
Outline
 Using Constraints on Feature Values
 The Language
 Rules of Inference
 Definition of Proof
 Semantics
 Soundness and Completeness
 The PSAT Problem
 Other Important Topics
3
Using Constraints on Feature Values
 Description and Simulation
– Description
 Binary-valued features on what is true about the world and what is
not true
 easy to communicate
 In cases where the values of some features cannot be sensed directly,
their values can be inferred from the values of other features
– Simulation
 Iconic representation
 more direct and more efficient
4
Using Constraints on Feature Values
 Motivating Example
– Consider a robot that is able to lift a block, if that block is
liftable and the robot’s battery power source is adequate
– If both are satisfied, then when the robot tries to lift a
block it is holding, its arm moves.
 x1 (BAT_OK)
 x2 (LIFTABLE)
 x3 (MOVES)
– constraint in the language of the propositional calculus
BAT_OK  LIFTABLE  MOVES
5
Using Constraints on Feature Values
 Logic involves
– A language (with a syntax)
– Inference rule
– Semantics for associating elements of the language with
elements of some subject matter
 Two logical languages
– propositional calculus
– first-order predicate calculus (FOPC)
6
13.2 The Language
 Elements
– Atoms
 two distinguished atoms T and F and the countably infinite set of
those strings of characters that begin with a capital letter, for
example, P, Q, R, …, P1, P2, ON_A_B, and so on.
– Connectives
 , , , and , called “or”, “and”, “implies”, and “not”,
respectively.
– Syntax of well-formed formula (wff), also called sentences
 Any atom is a wff.
 If w1 and w2 are wffs, so are w1  w2, w1  w2, w1  w2,  w1.
 There are no other wffs.
7
13.2 The Language
 Literal
– atoms and a  sign in front of them
 Antecedent and Consequent
– In w1  w2, w1 is called the antecedent of the implication.
– w2 is called the consequent of the implication.
 Extra-linguistic separators: ( , )
– group wffs into (sub) wffs according to the recursive
definitions.
8
13.3 Rule of Inference
 Ways by which additional wffs can be produced from other ones
 Commonly used rules
– modus ponens: wff w2 can be inferred from the wff w1 and
w1  w2
–  introduction: wff w1  w2 can be inferred from the two wffs
w1 and w2
– commutativity : wff w2  w1 can be inferred from the wff w1
 w2
–  elimination: wff w1 can be inferred from the w1  w2
–  introduction: wff w1  w2 can be inferred from either from
the single wff w1 or from the single wff w2
–  elimination: wff w1 can be inferred from the wff  ( w1 ).
9
13.4 Definitions of Proof(验证定义)
 Proof
– The sequence of wffs {w1, w2, …, wn} is called a proof of wn
from a set of wffs  iff each wi is either in  or can be
inferred from a wff earlier in the sequence by using one of the
rules of inference.
 Theorem
– If there is a proof of wn from , wn is a theorem of the set .
  ㅏ wn
– Denote the set of inference rules by the letter R.
 wn can be proved from 
  ㅏ R wn
10
Example
 Given a set, , of wffs: {P, R, P  Q}, {P, P  Q, Q, R, Q 
R} is a proof of Q  R.
 The concept of proof can be based on a partial order.
11
13.5 Semantics(语义)
 Semantics
– Has to do with associating elements of a logical
language with elements of a domain of discourse.
– Meaning
 Such association
 Interpretation
– An association of atoms with propositions
– Denotation(指称)
 In a given interpretation, the proposition associated with an
atom
12
13.5 Semantics
 Under a given interpretation, atoms have values – True or
False.
 Special Atom
– T : always has value True
– F : always has value False
 An interpretation by assigning values directly to the atoms
in a language can be specified
13
Propositional Truth Table
 Given the values of atoms under some interpretation, use a truth
table to compute a value for any wff under that same
interpretation.
 Let w1 and w2 be wffs.
– (w1  w2) has True if both w1 and w2 have value True.
– (w1  w2) has True if one or both w1 or w2 have value True.
–  w1 has value True if w1 has value False.
– The semantics of  is defined in terms of  and .
Specifically, (w1  w2) is an alternative and equivalent form of
( w1  w2) .
14
Propositional Truth Table (2)
 If an agent describes its world using n features and these features
are represented in the agent’s model of the world by a
corresponding set of n atoms, then there are 2n different ways its
world can be.
 Given values for the n atoms, the agent can use the truth table to
find the values of any wffs.
 Suppose the values of wffs in a set of wffs are given.
– Do those values induce a unique interpretation?
– Usually “No.”
– Instead, there may be many interpretations that give each wff
in a set of wffs the value True .
15
Satisfiability
 An interpretation satisfies a wff if the wff is assigned the
value True under that interpretation.
 Model
– An interpretation that satisfies a wff
– In general, the more wffs that describe the world, the
fewer models.
 Inconsistent or Unsatisfiable
– When no interpretation satisfies a wff, the wff is
inconsistent or unsatisfiable.
– e.g. F or P  P
16
Validity
 A wff is said to be valid
– It has value True under all interpretations of its
constituent atoms.
– e.g.
 P  P
 T
  ( P  P )
 Q  T
 [(P  Q)  P]  P
 P  (Q  P)
– Use of the truth table to determine the validity of a wff
takes time exponential in the number of atoms
17
Equivalence
 Two wffs are said to be equivalent iff their truth values are
identical under all interpretations.
 DeMorgan’s laws
(w1  w2)  w1   w2
(w1  w2)  w1   w2
 Law of the contrapositive
(w1  w2)  (w2   w1)
 If w1 and w2 are equivalent, then the following formula is valid:
(w1  w2)  (w2  w1)
18
Entailment
 If a wff w has value True under all of interpretations for
which each of the wffs in a set  has value True,  logically
entails w and w logically follows from  and w is a logical
consequence of .
 e.g.
– {P}ㅑ P
– {P, P  Q} ㅑ Q
– F ㅑ w
– P  Qㅑ P
19
13.6 Soundness and Completeness
 If, for any set of wffs, , and wff, w, ㅏR w implies ㅑ w, the
set of inference rules, R, is sound.
 If, for any set of wffs, , and wff, w, it is the case that whenever
ㅑ w, there exist a proof of w from  using the set of inference
rules, we say that R is complete.
 When inference rules are sound and complete, we can determine
whether one wff follows from a set of wffs by searching for a
proof.
20
13.6 Soundness and Completeness
 When the inference rules are sound, if we can find a proof of w
from , w logically follows from .
 When the inference rules are complete, we will eventually be able
to confirm that w follows from  by using a complete search
procedure to search for a proof.
 To determine whether or not a wff logically follows from a set of
wffs or can be proved from a set of wffs is, in general, an NP-
hard problem.
21
13.7 The PSAT Problem
 Propositional satisfiability (PSAT) problem: The problem
of finding a model for a formula.
 Clause
– A disjunction of literals
 Conjunctive Normal Form (CNF)
– A formula written as a conjunction of clauses
 An exhaustive procedure for solving the CNF PSAT
problem is to try systematically all of the ways to assign
True and False to the atoms in the formula.
– If there are n atoms in the formula, there are 2n different
assignments.
22
13.7 The PSAT Problem
 Interesting Special Cases
– 2SAT and 3SAT
– kSAT problem
 To find a model for a conjunction of clauses, the longest of
which contains exactly k literals
– 2SAT
 Polynomial complexity
– 3SAT
 NP-complete
– Many problems take only polynomial expected time.
23
13.7 The PSAT Problem
 GSAT
– Nonexhaustive, greedy, hill-climbing type of search procedure
– Begin by selecting a random set of values for all of the atoms
in the formula.
 The number of clauses having value True under this interpretation is
noted.
– Next, go through the list of atoms and calculate, for each one,
the increase in the number of clauses whose values would be
True if the value of that atom were to be changed.
 Change the value of that atom giving the largest increase
 Terminated after some fixed number of changes
 May terminate at a local maximum
24
13.8.2 Metatheorems
 Theorems about the propositional calculus
 Important Thorems
– Deductive theorem
 If {w1, w2, …, wn}ㅑ w, (w1  w2  …  wn) 
w is valid.
– Reducio ad absurdum
 If the set  has a model but   {w} does not,
then  ㅑ w.

More Related Content

What's hot

Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theory
NYversity
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logic
Janet Stemwedel
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
SHUBHAM KUMAR GUPTA
 
AI Lesson 14
AI Lesson 14AI Lesson 14
AI Lesson 14
Assistant Professor
 
AI Lesson 16
AI Lesson 16AI Lesson 16
AI Lesson 16
Assistant Professor
 
5 decidability theory of computation
5 decidability theory of computation 5 decidability theory of computation
5 decidability theory of computation
parmeet834
 
Theory of Computer Science - Post Correspondence Problem
Theory of Computer Science - Post Correspondence ProblemTheory of Computer Science - Post Correspondence Problem
Theory of Computer Science - Post Correspondence Problem
Karan Thakkar
 
AI Lesson 13
AI Lesson 13AI Lesson 13
AI Lesson 13
Assistant Professor
 
AI Lesson 17
AI Lesson 17AI Lesson 17
AI Lesson 17
Assistant Professor
 
word level analysis
word level analysis word level analysis
word level analysis
tjs1
 
AA Section 1-7
AA Section 1-7AA Section 1-7
AA Section 1-7
Jimbo Lamb
 
3.1 intro toautomatatheory h1
3.1 intro toautomatatheory  h13.1 intro toautomatatheory  h1
3.1 intro toautomatatheory h1
Rajendran
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logic
PalGov
 
Metalogic: The non-algorithmic side of the mind
Metalogic: The non-algorithmic side of the mindMetalogic: The non-algorithmic side of the mind
Metalogic: The non-algorithmic side of the mind
Haskell Lambda
 
Jarrar: First Order Logic- Inference Methods
Jarrar: First Order Logic- Inference MethodsJarrar: First Order Logic- Inference Methods
Jarrar: First Order Logic- Inference Methods
Mustafa Jarrar
 
First order logic
First order logicFirst order logic
First order logic
Chinmay Patel
 
Chapter 4 (final)
Chapter 4 (final)Chapter 4 (final)
Chapter 4 (final)
Nateshwar Kamlesh
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
giki67
 
IRJET- Soft Pre Generalized B- Closed Sets in a Soft Topological Space
IRJET- Soft Pre Generalized B- Closed Sets in a Soft Topological SpaceIRJET- Soft Pre Generalized B- Closed Sets in a Soft Topological Space
IRJET- Soft Pre Generalized B- Closed Sets in a Soft Topological Space
IRJET Journal
 
congruence lattices of algebras
congruence lattices of algebrascongruence lattices of algebras
congruence lattices of algebras
filipke85
 

What's hot (20)

Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theory
 
Syntax and semantics of propositional logic
Syntax and semantics of propositional logicSyntax and semantics of propositional logic
Syntax and semantics of propositional logic
 
Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)Predicate logic_2(Artificial Intelligence)
Predicate logic_2(Artificial Intelligence)
 
AI Lesson 14
AI Lesson 14AI Lesson 14
AI Lesson 14
 
AI Lesson 16
AI Lesson 16AI Lesson 16
AI Lesson 16
 
5 decidability theory of computation
5 decidability theory of computation 5 decidability theory of computation
5 decidability theory of computation
 
Theory of Computer Science - Post Correspondence Problem
Theory of Computer Science - Post Correspondence ProblemTheory of Computer Science - Post Correspondence Problem
Theory of Computer Science - Post Correspondence Problem
 
AI Lesson 13
AI Lesson 13AI Lesson 13
AI Lesson 13
 
AI Lesson 17
AI Lesson 17AI Lesson 17
AI Lesson 17
 
word level analysis
word level analysis word level analysis
word level analysis
 
AA Section 1-7
AA Section 1-7AA Section 1-7
AA Section 1-7
 
3.1 intro toautomatatheory h1
3.1 intro toautomatatheory  h13.1 intro toautomatatheory  h1
3.1 intro toautomatatheory h1
 
Jarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logicJarrar.lecture notes.aai.2011s.ch7.p logic
Jarrar.lecture notes.aai.2011s.ch7.p logic
 
Metalogic: The non-algorithmic side of the mind
Metalogic: The non-algorithmic side of the mindMetalogic: The non-algorithmic side of the mind
Metalogic: The non-algorithmic side of the mind
 
Jarrar: First Order Logic- Inference Methods
Jarrar: First Order Logic- Inference MethodsJarrar: First Order Logic- Inference Methods
Jarrar: First Order Logic- Inference Methods
 
First order logic
First order logicFirst order logic
First order logic
 
Chapter 4 (final)
Chapter 4 (final)Chapter 4 (final)
Chapter 4 (final)
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
IRJET- Soft Pre Generalized B- Closed Sets in a Soft Topological Space
IRJET- Soft Pre Generalized B- Closed Sets in a Soft Topological SpaceIRJET- Soft Pre Generalized B- Closed Sets in a Soft Topological Space
IRJET- Soft Pre Generalized B- Closed Sets in a Soft Topological Space
 
congruence lattices of algebras
congruence lattices of algebrascongruence lattices of algebras
congruence lattices of algebras
 

Viewers also liked

Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
Slideshare
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
ankush_kumar
 
CPSC 125 Ch 1 sec 1
CPSC 125 Ch 1 sec 1CPSC 125 Ch 1 sec 1
CPSC 125 Ch 1 sec 1
David Wood
 
Artificial Intelligence Introduction
Artificial Intelligence Introduction Artificial Intelligence Introduction
Artificial Intelligence Introduction
Kaushlendra Rajput
 
Semantic Networks
Semantic NetworksSemantic Networks
Semantic Networks
Jenny Galino
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
Amey Kerkar
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
ForwardBlog Enewzletter
 
Frames
FramesFrames
Frames
amitp26
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge Acquisition
The Integral Worm
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
Vishal Singh
 
Logic Ppt
Logic PptLogic Ppt
Logic Ppt
DMMMSU-MLUC
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
Girish Naik
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representation
Likan Patra
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
Amey Kerkar
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
Sajid Marwat
 

Viewers also liked (16)

Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
 
CPSC 125 Ch 1 sec 1
CPSC 125 Ch 1 sec 1CPSC 125 Ch 1 sec 1
CPSC 125 Ch 1 sec 1
 
Artificial Intelligence Introduction
Artificial Intelligence Introduction Artificial Intelligence Introduction
Artificial Intelligence Introduction
 
Semantic Networks
Semantic NetworksSemantic Networks
Semantic Networks
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Frames
FramesFrames
Frames
 
Artificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge AcquisitionArtificial Intelligence: Knowledge Acquisition
Artificial Intelligence: Knowledge Acquisition
 
Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
 
Logic Ppt
Logic PptLogic Ppt
Logic Ppt
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representation
 
Knowledge representation and Predicate logic
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
 
Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 

Similar to 13 propositional calculus

Knowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningKnowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and Reasoning
Sagacious IT Solution
 
Propositional logic is a good vehicle to introduce basic properties of logic
Propositional logic is a good vehicle to introduce basic properties of logicPropositional logic is a good vehicle to introduce basic properties of logic
Propositional logic is a good vehicle to introduce basic properties of logic
pendragon6626
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
Tianlu Wang
 
AI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdfAI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdf
JNTUK KAKINADA
 
FURTHER CHARACTERIZATIONS AND SOME APPLICATIONS OF UPPER AND LOWER WEAKLY QUA...
FURTHER CHARACTERIZATIONS AND SOME APPLICATIONS OF UPPER AND LOWER WEAKLY QUA...FURTHER CHARACTERIZATIONS AND SOME APPLICATIONS OF UPPER AND LOWER WEAKLY QUA...
FURTHER CHARACTERIZATIONS AND SOME APPLICATIONS OF UPPER AND LOWER WEAKLY QUA...
IJESM JOURNAL
 
Logic
LogicLogic
Authentication protocols based on zero knowledge proof (Part 2 - Brief talk)
Authentication protocols based on zero knowledge proof (Part 2 - Brief talk)Authentication protocols based on zero knowledge proof (Part 2 - Brief talk)
Authentication protocols based on zero knowledge proof (Part 2 - Brief talk)
Israel Buitron
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
ssuser92109d
 
Csr2011 june17 14_00_bulatov
Csr2011 june17 14_00_bulatovCsr2011 june17 14_00_bulatov
Csr2011 june17 14_00_bulatov
CSR2011
 
L2.pdf
L2.pdfL2.pdf
Generalized Functions, Gelfand Triples and the Imaginary Resolvent Theorem
Generalized Functions, Gelfand Triples and the Imaginary Resolvent TheoremGeneralized Functions, Gelfand Triples and the Imaginary Resolvent Theorem
Generalized Functions, Gelfand Triples and the Imaginary Resolvent Theorem
Michael Maroun
 
03 propsem
03 propsem03 propsem
03 propsem
khairuljazlee
 
Csr2011 june17 14_00_bulatov
Csr2011 june17 14_00_bulatovCsr2011 june17 14_00_bulatov
Csr2011 june17 14_00_bulatov
CSR2011
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
smarwaneid
 
lectures in prolog in order to advance in artificial intelligence
lectures in prolog in order to advance in artificial intelligencelectures in prolog in order to advance in artificial intelligence
lectures in prolog in order to advance in artificial intelligence
AlaaCHOUMANE
 
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
ProfSHananeel
 
Knowledge base artificial intelligence.pdf
Knowledge base  artificial intelligence.pdfKnowledge base  artificial intelligence.pdf
Knowledge base artificial intelligence.pdf
jannatulferdous20101
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
PriyalMayurManvar
 
Interview presentation
Interview presentationInterview presentation
Interview presentation
Joseph Gubbins
 
Prpositional2
Prpositional2Prpositional2
Prpositional2
gueste5006ef
 

Similar to 13 propositional calculus (20)

Knowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and ReasoningKnowledge Representation, Inference and Reasoning
Knowledge Representation, Inference and Reasoning
 
Propositional logic is a good vehicle to introduce basic properties of logic
Propositional logic is a good vehicle to introduce basic properties of logicPropositional logic is a good vehicle to introduce basic properties of logic
Propositional logic is a good vehicle to introduce basic properties of logic
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
 
AI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdfAI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdf
 
FURTHER CHARACTERIZATIONS AND SOME APPLICATIONS OF UPPER AND LOWER WEAKLY QUA...
FURTHER CHARACTERIZATIONS AND SOME APPLICATIONS OF UPPER AND LOWER WEAKLY QUA...FURTHER CHARACTERIZATIONS AND SOME APPLICATIONS OF UPPER AND LOWER WEAKLY QUA...
FURTHER CHARACTERIZATIONS AND SOME APPLICATIONS OF UPPER AND LOWER WEAKLY QUA...
 
Logic
LogicLogic
Logic
 
Authentication protocols based on zero knowledge proof (Part 2 - Brief talk)
Authentication protocols based on zero knowledge proof (Part 2 - Brief talk)Authentication protocols based on zero knowledge proof (Part 2 - Brief talk)
Authentication protocols based on zero knowledge proof (Part 2 - Brief talk)
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
 
Csr2011 june17 14_00_bulatov
Csr2011 june17 14_00_bulatovCsr2011 june17 14_00_bulatov
Csr2011 june17 14_00_bulatov
 
L2.pdf
L2.pdfL2.pdf
L2.pdf
 
Generalized Functions, Gelfand Triples and the Imaginary Resolvent Theorem
Generalized Functions, Gelfand Triples and the Imaginary Resolvent TheoremGeneralized Functions, Gelfand Triples and the Imaginary Resolvent Theorem
Generalized Functions, Gelfand Triples and the Imaginary Resolvent Theorem
 
03 propsem
03 propsem03 propsem
03 propsem
 
Csr2011 june17 14_00_bulatov
Csr2011 june17 14_00_bulatovCsr2011 june17 14_00_bulatov
Csr2011 june17 14_00_bulatov
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
lectures in prolog in order to advance in artificial intelligence
lectures in prolog in order to advance in artificial intelligencelectures in prolog in order to advance in artificial intelligence
lectures in prolog in order to advance in artificial intelligence
 
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
 
Knowledge base artificial intelligence.pdf
Knowledge base  artificial intelligence.pdfKnowledge base  artificial intelligence.pdf
Knowledge base artificial intelligence.pdf
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
 
Interview presentation
Interview presentationInterview presentation
Interview presentation
 
Prpositional2
Prpositional2Prpositional2
Prpositional2
 

More from Tianlu Wang

L7 er2
L7 er2L7 er2
L7 er2
Tianlu Wang
 
L8 design1
L8 design1L8 design1
L8 design1
Tianlu Wang
 
L9 design2
L9 design2L9 design2
L9 design2
Tianlu Wang
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
Tianlu Wang
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
Tianlu Wang
 
11 alternative search
11 alternative search11 alternative search
11 alternative search
Tianlu Wang
 
10 2 sum
10 2 sum10 2 sum
10 2 sum
Tianlu Wang
 
22 planning
22 planning22 planning
22 planning
Tianlu Wang
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
Tianlu Wang
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learning
Tianlu Wang
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidence
Tianlu Wang
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledge
Tianlu Wang
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
Tianlu Wang
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based system
Tianlu Wang
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolution
Tianlu Wang
 
15 predicate
15 predicate15 predicate
15 predicate
Tianlu Wang
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
Tianlu Wang
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
Tianlu Wang
 
07 plan agent
07 plan agent07 plan agent
07 plan agent
Tianlu Wang
 
06 robot vision
06 robot vision06 robot vision
06 robot vision
Tianlu Wang
 

More from Tianlu Wang (20)

L7 er2
L7 er2L7 er2
L7 er2
 
L8 design1
L8 design1L8 design1
L8 design1
 
L9 design2
L9 design2L9 design2
L9 design2
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
 
11 alternative search
11 alternative search11 alternative search
11 alternative search
 
10 2 sum
10 2 sum10 2 sum
10 2 sum
 
22 planning
22 planning22 planning
22 planning
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learning
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidence
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledge
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based system
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolution
 
15 predicate
15 predicate15 predicate
15 predicate
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
 
07 plan agent
07 plan agent07 plan agent
07 plan agent
 
06 robot vision
06 robot vision06 robot vision
06 robot vision
 

Recently uploaded

FinalLessonPlanResponding.docxnknknknknknk
FinalLessonPlanResponding.docxnknknknknknkFinalLessonPlanResponding.docxnknknknknknk
FinalLessonPlanResponding.docxnknknknknknk
abbieharman
 
Tibbetts_HappyAwesome_NewArc Sketch to AI
Tibbetts_HappyAwesome_NewArc Sketch to AITibbetts_HappyAwesome_NewArc Sketch to AI
Tibbetts_HappyAwesome_NewArc Sketch to AI
Todd Tibbetts
 
Ealing London Independent Photography meeting - June 2024
Ealing London Independent Photography meeting - June 2024Ealing London Independent Photography meeting - June 2024
Ealing London Independent Photography meeting - June 2024
Sean McDonnell
 
➒➌➎➏➑➐➋➑➐➐ Dpboss Matka Guessing Satta Matka Kalyan panel Chart Indian Matka ...
➒➌➎➏➑➐➋➑➐➐ Dpboss Matka Guessing Satta Matka Kalyan panel Chart Indian Matka ...➒➌➎➏➑➐➋➑➐➐ Dpboss Matka Guessing Satta Matka Kalyan panel Chart Indian Matka ...
➒➌➎➏➑➐➋➑➐➐ Dpboss Matka Guessing Satta Matka Kalyan panel Chart Indian Matka ...
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
HOW TO USE PINTEREST_by: Clarissa Credito
HOW TO USE PINTEREST_by: Clarissa CreditoHOW TO USE PINTEREST_by: Clarissa Credito
HOW TO USE PINTEREST_by: Clarissa Credito
ClarissaAlanoCredito
 
Barbie Made To Move Skin Tones Matches.pptx
Barbie Made To Move Skin Tones Matches.pptxBarbie Made To Move Skin Tones Matches.pptx
Barbie Made To Move Skin Tones Matches.pptx
LinaCosta15
 
Complete Lab 123456789123456789123456789
Complete Lab 123456789123456789123456789Complete Lab 123456789123456789123456789
Complete Lab 123456789123456789123456789
vickyvikas51556
 
Domino Express Storyboard - TV Adv Toys 30"
Domino Express Storyboard - TV Adv Toys 30"Domino Express Storyboard - TV Adv Toys 30"
Domino Express Storyboard - TV Adv Toys 30"
Alessandro Occhipinti
 
My storyboard for the short film "Maatla".
My storyboard for the short film "Maatla".My storyboard for the short film "Maatla".
My storyboard for the short film "Maatla".
AlejandroGuarnGutirr
 
storyboard: Victor and Verlin discussing about top hat
storyboard: Victor and Verlin discussing about top hatstoryboard: Victor and Verlin discussing about top hat
storyboard: Victor and Verlin discussing about top hat
LyneSun
 
❼❷⓿❺❻❷❽❷❼❽ Dpboss Kalyan Satta Matka Guessing Matka Result Main Bazar chart
❼❷⓿❺❻❷❽❷❼❽ Dpboss Kalyan Satta Matka Guessing Matka Result Main Bazar chart❼❷⓿❺❻❷❽❷❼❽ Dpboss Kalyan Satta Matka Guessing Matka Result Main Bazar chart
❼❷⓿❺❻❷❽❷❼❽ Dpboss Kalyan Satta Matka Guessing Matka Result Main Bazar chart
❼❷⓿❺❻❷❽❷❼❽ Dpboss Kalyan Satta Matka Guessing Matka Result Main Bazar chart
 
All the images mentioned in 'See What You're Missing'
All the images mentioned in 'See What You're Missing'All the images mentioned in 'See What You're Missing'
All the images mentioned in 'See What You're Missing'
Dave Boyle
 
一比一原版美国加州大学圣地亚哥分校毕业证(ucsd毕业证书)如何办理
一比一原版美国加州大学圣地亚哥分校毕业证(ucsd毕业证书)如何办理一比一原版美国加州大学圣地亚哥分校毕业证(ucsd毕业证书)如何办理
一比一原版美国加州大学圣地亚哥分校毕业证(ucsd毕业证书)如何办理
taqyea
 
一比一原版加拿大多伦多大学毕业证(uoft毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(uoft毕业证书)如何办理一比一原版加拿大多伦多大学毕业证(uoft毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(uoft毕业证书)如何办理
taqyea
 
Codes n Conventions Website Media studies.pptx
Codes n Conventions Website Media studies.pptxCodes n Conventions Website Media studies.pptx
Codes n Conventions Website Media studies.pptx
ZackSpencer3
 
My storyboard for a sword fight scene with lightsabers
My storyboard for a sword fight scene with lightsabersMy storyboard for a sword fight scene with lightsabers
My storyboard for a sword fight scene with lightsabers
AlejandroGuarnGutirr
 
一比一原版(BC毕业证)波士顿学院毕业证如何办理
一比一原版(BC毕业证)波士顿学院毕业证如何办理一比一原版(BC毕业证)波士顿学院毕业证如何办理
一比一原版(BC毕业证)波士顿学院毕业证如何办理
40fortunate
 
Cherries 32 collection of colorful paintings
Cherries 32 collection of colorful paintingsCherries 32 collection of colorful paintings
Cherries 32 collection of colorful paintings
sandamichaela *
 
Heart Touching Romantic Love Shayari In English with Images
Heart Touching Romantic Love Shayari In English with ImagesHeart Touching Romantic Love Shayari In English with Images
Heart Touching Romantic Love Shayari In English with Images
Short Good Quotes
 
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
zeyhe
 

Recently uploaded (20)

FinalLessonPlanResponding.docxnknknknknknk
FinalLessonPlanResponding.docxnknknknknknkFinalLessonPlanResponding.docxnknknknknknk
FinalLessonPlanResponding.docxnknknknknknk
 
Tibbetts_HappyAwesome_NewArc Sketch to AI
Tibbetts_HappyAwesome_NewArc Sketch to AITibbetts_HappyAwesome_NewArc Sketch to AI
Tibbetts_HappyAwesome_NewArc Sketch to AI
 
Ealing London Independent Photography meeting - June 2024
Ealing London Independent Photography meeting - June 2024Ealing London Independent Photography meeting - June 2024
Ealing London Independent Photography meeting - June 2024
 
➒➌➎➏➑➐➋➑➐➐ Dpboss Matka Guessing Satta Matka Kalyan panel Chart Indian Matka ...
➒➌➎➏➑➐➋➑➐➐ Dpboss Matka Guessing Satta Matka Kalyan panel Chart Indian Matka ...➒➌➎➏➑➐➋➑➐➐ Dpboss Matka Guessing Satta Matka Kalyan panel Chart Indian Matka ...
➒➌➎➏➑➐➋➑➐➐ Dpboss Matka Guessing Satta Matka Kalyan panel Chart Indian Matka ...
 
HOW TO USE PINTEREST_by: Clarissa Credito
HOW TO USE PINTEREST_by: Clarissa CreditoHOW TO USE PINTEREST_by: Clarissa Credito
HOW TO USE PINTEREST_by: Clarissa Credito
 
Barbie Made To Move Skin Tones Matches.pptx
Barbie Made To Move Skin Tones Matches.pptxBarbie Made To Move Skin Tones Matches.pptx
Barbie Made To Move Skin Tones Matches.pptx
 
Complete Lab 123456789123456789123456789
Complete Lab 123456789123456789123456789Complete Lab 123456789123456789123456789
Complete Lab 123456789123456789123456789
 
Domino Express Storyboard - TV Adv Toys 30"
Domino Express Storyboard - TV Adv Toys 30"Domino Express Storyboard - TV Adv Toys 30"
Domino Express Storyboard - TV Adv Toys 30"
 
My storyboard for the short film "Maatla".
My storyboard for the short film "Maatla".My storyboard for the short film "Maatla".
My storyboard for the short film "Maatla".
 
storyboard: Victor and Verlin discussing about top hat
storyboard: Victor and Verlin discussing about top hatstoryboard: Victor and Verlin discussing about top hat
storyboard: Victor and Verlin discussing about top hat
 
❼❷⓿❺❻❷❽❷❼❽ Dpboss Kalyan Satta Matka Guessing Matka Result Main Bazar chart
❼❷⓿❺❻❷❽❷❼❽ Dpboss Kalyan Satta Matka Guessing Matka Result Main Bazar chart❼❷⓿❺❻❷❽❷❼❽ Dpboss Kalyan Satta Matka Guessing Matka Result Main Bazar chart
❼❷⓿❺❻❷❽❷❼❽ Dpboss Kalyan Satta Matka Guessing Matka Result Main Bazar chart
 
All the images mentioned in 'See What You're Missing'
All the images mentioned in 'See What You're Missing'All the images mentioned in 'See What You're Missing'
All the images mentioned in 'See What You're Missing'
 
一比一原版美国加州大学圣地亚哥分校毕业证(ucsd毕业证书)如何办理
一比一原版美国加州大学圣地亚哥分校毕业证(ucsd毕业证书)如何办理一比一原版美国加州大学圣地亚哥分校毕业证(ucsd毕业证书)如何办理
一比一原版美国加州大学圣地亚哥分校毕业证(ucsd毕业证书)如何办理
 
一比一原版加拿大多伦多大学毕业证(uoft毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(uoft毕业证书)如何办理一比一原版加拿大多伦多大学毕业证(uoft毕业证书)如何办理
一比一原版加拿大多伦多大学毕业证(uoft毕业证书)如何办理
 
Codes n Conventions Website Media studies.pptx
Codes n Conventions Website Media studies.pptxCodes n Conventions Website Media studies.pptx
Codes n Conventions Website Media studies.pptx
 
My storyboard for a sword fight scene with lightsabers
My storyboard for a sword fight scene with lightsabersMy storyboard for a sword fight scene with lightsabers
My storyboard for a sword fight scene with lightsabers
 
一比一原版(BC毕业证)波士顿学院毕业证如何办理
一比一原版(BC毕业证)波士顿学院毕业证如何办理一比一原版(BC毕业证)波士顿学院毕业证如何办理
一比一原版(BC毕业证)波士顿学院毕业证如何办理
 
Cherries 32 collection of colorful paintings
Cherries 32 collection of colorful paintingsCherries 32 collection of colorful paintings
Cherries 32 collection of colorful paintings
 
Heart Touching Romantic Love Shayari In English with Images
Heart Touching Romantic Love Shayari In English with ImagesHeart Touching Romantic Love Shayari In English with Images
Heart Touching Romantic Love Shayari In English with Images
 
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单如何办理
 

13 propositional calculus

  • 2. 2 Outline  Using Constraints on Feature Values  The Language  Rules of Inference  Definition of Proof  Semantics  Soundness and Completeness  The PSAT Problem  Other Important Topics
  • 3. 3 Using Constraints on Feature Values  Description and Simulation – Description  Binary-valued features on what is true about the world and what is not true  easy to communicate  In cases where the values of some features cannot be sensed directly, their values can be inferred from the values of other features – Simulation  Iconic representation  more direct and more efficient
  • 4. 4 Using Constraints on Feature Values  Motivating Example – Consider a robot that is able to lift a block, if that block is liftable and the robot’s battery power source is adequate – If both are satisfied, then when the robot tries to lift a block it is holding, its arm moves.  x1 (BAT_OK)  x2 (LIFTABLE)  x3 (MOVES) – constraint in the language of the propositional calculus BAT_OK  LIFTABLE  MOVES
  • 5. 5 Using Constraints on Feature Values  Logic involves – A language (with a syntax) – Inference rule – Semantics for associating elements of the language with elements of some subject matter  Two logical languages – propositional calculus – first-order predicate calculus (FOPC)
  • 6. 6 13.2 The Language  Elements – Atoms  two distinguished atoms T and F and the countably infinite set of those strings of characters that begin with a capital letter, for example, P, Q, R, …, P1, P2, ON_A_B, and so on. – Connectives  , , , and , called “or”, “and”, “implies”, and “not”, respectively. – Syntax of well-formed formula (wff), also called sentences  Any atom is a wff.  If w1 and w2 are wffs, so are w1  w2, w1  w2, w1  w2,  w1.  There are no other wffs.
  • 7. 7 13.2 The Language  Literal – atoms and a  sign in front of them  Antecedent and Consequent – In w1  w2, w1 is called the antecedent of the implication. – w2 is called the consequent of the implication.  Extra-linguistic separators: ( , ) – group wffs into (sub) wffs according to the recursive definitions.
  • 8. 8 13.3 Rule of Inference  Ways by which additional wffs can be produced from other ones  Commonly used rules – modus ponens: wff w2 can be inferred from the wff w1 and w1  w2 –  introduction: wff w1  w2 can be inferred from the two wffs w1 and w2 – commutativity : wff w2  w1 can be inferred from the wff w1  w2 –  elimination: wff w1 can be inferred from the w1  w2 –  introduction: wff w1  w2 can be inferred from either from the single wff w1 or from the single wff w2 –  elimination: wff w1 can be inferred from the wff  ( w1 ).
  • 9. 9 13.4 Definitions of Proof(验证定义)  Proof – The sequence of wffs {w1, w2, …, wn} is called a proof of wn from a set of wffs  iff each wi is either in  or can be inferred from a wff earlier in the sequence by using one of the rules of inference.  Theorem – If there is a proof of wn from , wn is a theorem of the set .   ㅏ wn – Denote the set of inference rules by the letter R.  wn can be proved from    ㅏ R wn
  • 10. 10 Example  Given a set, , of wffs: {P, R, P  Q}, {P, P  Q, Q, R, Q  R} is a proof of Q  R.  The concept of proof can be based on a partial order.
  • 11. 11 13.5 Semantics(语义)  Semantics – Has to do with associating elements of a logical language with elements of a domain of discourse. – Meaning  Such association  Interpretation – An association of atoms with propositions – Denotation(指称)  In a given interpretation, the proposition associated with an atom
  • 12. 12 13.5 Semantics  Under a given interpretation, atoms have values – True or False.  Special Atom – T : always has value True – F : always has value False  An interpretation by assigning values directly to the atoms in a language can be specified
  • 13. 13 Propositional Truth Table  Given the values of atoms under some interpretation, use a truth table to compute a value for any wff under that same interpretation.  Let w1 and w2 be wffs. – (w1  w2) has True if both w1 and w2 have value True. – (w1  w2) has True if one or both w1 or w2 have value True. –  w1 has value True if w1 has value False. – The semantics of  is defined in terms of  and . Specifically, (w1  w2) is an alternative and equivalent form of ( w1  w2) .
  • 14. 14 Propositional Truth Table (2)  If an agent describes its world using n features and these features are represented in the agent’s model of the world by a corresponding set of n atoms, then there are 2n different ways its world can be.  Given values for the n atoms, the agent can use the truth table to find the values of any wffs.  Suppose the values of wffs in a set of wffs are given. – Do those values induce a unique interpretation? – Usually “No.” – Instead, there may be many interpretations that give each wff in a set of wffs the value True .
  • 15. 15 Satisfiability  An interpretation satisfies a wff if the wff is assigned the value True under that interpretation.  Model – An interpretation that satisfies a wff – In general, the more wffs that describe the world, the fewer models.  Inconsistent or Unsatisfiable – When no interpretation satisfies a wff, the wff is inconsistent or unsatisfiable. – e.g. F or P  P
  • 16. 16 Validity  A wff is said to be valid – It has value True under all interpretations of its constituent atoms. – e.g.  P  P  T   ( P  P )  Q  T  [(P  Q)  P]  P  P  (Q  P) – Use of the truth table to determine the validity of a wff takes time exponential in the number of atoms
  • 17. 17 Equivalence  Two wffs are said to be equivalent iff their truth values are identical under all interpretations.  DeMorgan’s laws (w1  w2)  w1   w2 (w1  w2)  w1   w2  Law of the contrapositive (w1  w2)  (w2   w1)  If w1 and w2 are equivalent, then the following formula is valid: (w1  w2)  (w2  w1)
  • 18. 18 Entailment  If a wff w has value True under all of interpretations for which each of the wffs in a set  has value True,  logically entails w and w logically follows from  and w is a logical consequence of .  e.g. – {P}ㅑ P – {P, P  Q} ㅑ Q – F ㅑ w – P  Qㅑ P
  • 19. 19 13.6 Soundness and Completeness  If, for any set of wffs, , and wff, w, ㅏR w implies ㅑ w, the set of inference rules, R, is sound.  If, for any set of wffs, , and wff, w, it is the case that whenever ㅑ w, there exist a proof of w from  using the set of inference rules, we say that R is complete.  When inference rules are sound and complete, we can determine whether one wff follows from a set of wffs by searching for a proof.
  • 20. 20 13.6 Soundness and Completeness  When the inference rules are sound, if we can find a proof of w from , w logically follows from .  When the inference rules are complete, we will eventually be able to confirm that w follows from  by using a complete search procedure to search for a proof.  To determine whether or not a wff logically follows from a set of wffs or can be proved from a set of wffs is, in general, an NP- hard problem.
  • 21. 21 13.7 The PSAT Problem  Propositional satisfiability (PSAT) problem: The problem of finding a model for a formula.  Clause – A disjunction of literals  Conjunctive Normal Form (CNF) – A formula written as a conjunction of clauses  An exhaustive procedure for solving the CNF PSAT problem is to try systematically all of the ways to assign True and False to the atoms in the formula. – If there are n atoms in the formula, there are 2n different assignments.
  • 22. 22 13.7 The PSAT Problem  Interesting Special Cases – 2SAT and 3SAT – kSAT problem  To find a model for a conjunction of clauses, the longest of which contains exactly k literals – 2SAT  Polynomial complexity – 3SAT  NP-complete – Many problems take only polynomial expected time.
  • 23. 23 13.7 The PSAT Problem  GSAT – Nonexhaustive, greedy, hill-climbing type of search procedure – Begin by selecting a random set of values for all of the atoms in the formula.  The number of clauses having value True under this interpretation is noted. – Next, go through the list of atoms and calculate, for each one, the increase in the number of clauses whose values would be True if the value of that atom were to be changed.  Change the value of that atom giving the largest increase  Terminated after some fixed number of changes  May terminate at a local maximum
  • 24. 24 13.8.2 Metatheorems  Theorems about the propositional calculus  Important Thorems – Deductive theorem  If {w1, w2, …, wn}ㅑ w, (w1  w2  …  wn)  w is valid. – Reducio ad absurdum  If the set  has a model but   {w} does not, then  ㅑ w.