Propositional and Predicate Calculus - Carleton University
Propositional and Predicate Calculus - Carleton University
Propositional and Predicate Calculus - Carleton University
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Outline <strong>and</strong> Introduction<br />
<strong>Propositional</strong> <strong>Calculus</strong><br />
<strong>Predicate</strong> <strong>Calculus</strong><br />
Inference Rules<br />
Unification<br />
Resolution Theorem Proving<br />
<strong>Predicate</strong>s <strong>Calculus</strong> Sentences<br />
verify_sentence algorithm<br />
Introduction<br />
<strong>Predicate</strong>s <strong>and</strong> Sentences: Syntax<br />
General Important Notes<br />
Atomic Sentences<br />
<strong>Predicate</strong> <strong>Calculus</strong>: Semantics<br />
<strong>Predicate</strong> Equivalences<br />
Some Examples<br />
function verify_sentence(expression);<br />
begin<br />
case<br />
expression is an atomic sentence: return SUCCESS<br />
expression is of the form QXs where Q is either∀ or ∃, X is a variable, <strong>and</strong> s is an expression;<br />
if verify_sentence(s) returns SUCCESS<br />
then return SUCCESS<br />
else return FAIL<br />
expression is of the form ¬s:<br />
if verify_sentence(s) returns SUCCESS<br />
then return SUCCESS<br />
else return FAIL<br />
if verify_sentence(s)returns SUCCESS<br />
then return SUCCESS<br />
else return FAIL<br />
expression is of the form s 1 op s 2 , where op is a binary logical operator:<br />
if verify_sentence(s_1)returns SUCCESS <strong>and</strong><br />
verify_sentence(s_2)returns SUCCESS<br />
then return SUCCESS<br />
else return FAIL;<br />
otherwise: return FAIL<br />
end<br />
end<br />
37/77