CSC 685 Logic Review. Logic: Modeling Human Reasoning syllogistic logic Syllogistic Logic (Aristotle). all/some X are/not Y Propositional Logic (Boole).

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.
The Logic of Quantified Statements
Resolution in Propositional and First-Order Logic.
Section 1.3. More Logical Equivalences Constructing New Logical Equivalences We can show that two expressions are logically equivalent by developing.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Predicate Calculus Formal Methods in Verification of Computer Systems Jeremy Johnson.
Elementary Number Theory and Methods of Proof
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages Chapter 3 : Describing Syntax and Semantics Axiomatic Semantics.
NKU CSC 685 Kirby First-Order Logic and Undecidability.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution 3.7. Natural Deduction.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
Dr. Muhammed Al-Mulhem 1ICS ICS 535 Design and Implementation of Programming Languages Part 1 Fundamentals (Chapter 4) Axiomatic Semantics ICS 535.
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
 x (x 2  0) 1. True2. False.  x (3x + 2 = 12) 1. True2. False.
Ch 1.3: Quantifiers Open sentences, or predicates, are sentences that contain one or more variables. They do not have a truth value until variables are.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 6 Limitations of propositional logic Introduction to predicate logic Symbols, terms and formulae, Parse.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 11 Introduction to Predicate Logic Limitations of Propositional Logic Predicates, quantifiers and propositions.
Deciding a Combination of Theories - Decision Procedure - Changki pswlab Combination of Theories Daniel Kroening, Ofer Strichman Presented by Changki.
The Foundations: Logic and Proofs
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
1st-order Predicate Logic (FOL)
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
1 Section 7.2 Equivalent Formulas Two wffs A and B are equivalent, written A  B, if they have the same truth value for every interpretation. Property:
Great Theoretical Ideas in Computer Science about AWESOME Some Generating Functions Probability Infinity MATH Some Formal Logic (which is really.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
Course Overview and Road Map Computability and Logic.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Logical Reasoning:Proof Prove the theorem using the basic axioms of algebra.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Predicates and Quantified Statements
Bertram Ludäscher Department of Computer Science & Engineering University of California, San Diego CSE-291: Ontologies in Data Integration.
CS6133 Software Specification and Verification
0 Propositional logic versus first-order (predicate) logic The universe of discourse Constants, variables, terms and valuations Predicates as generalized.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
1 Section 8.2 Program Correctness (for imperative programs) A theory of program correctness needs wffs, axioms, and inference rules. Wffs (called Hoare.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
CS 344 Artificial Intelligence By Prof: Pushpak Bhattacharya Class on 12/Feb/2007.
Predicate Calculus CS 270 Math Foundations of Computer Science Jeremy Johnson Presentation uses material from Huth and Ryan, Logic in Computer Science:
3. The Logic of Quantified Statements Summary
Modal, Dynamic and Temporal Logics
Chapter 1 The Foundations: Logic and Proofs
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
Lecture 2 Propositional Logic
Decidability of logical theories
A Brief Summary for Exam 1
1st-order Predicate Logic (FOL)
Relational Proofs Computational Logic Lecture 8
MA/CSSE 474 More Math Review Theory of Computation
Metatheorems Computational Logic Lecture 8
Relational Proofs Computational Logic Lecture 7
Logical Entailment Computational Logic Lecture 3
CSNB234 ARTIFICIAL INTELLIGENCE
Decidability of logical theories
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Relational Proofs Computational Logic Lecture 7
Relational Proofs Computational Logic Lecture 7
1st-order Predicate Logic (FOL)
Presentation transcript:

CSC 685 Logic Review

Logic: Modeling Human Reasoning syllogistic logic Syllogistic Logic (Aristotle). all/some X are/not Y Propositional Logic (Boole). if X and Y then not Z or W First-order Logic (Frege). for all X there is a Y such that if not Px then Qy propositional logic first-order logic

Frege (1879) AA A AA A B ABAB Px x  x Px Px x Qx

"Term t is free for variable x in formula  " means: all variables in t remain free when t is substituted for x in .  [t/x] =  with all free occurrences of x replaced by t.  x(  y Rxy  Pxy) [f(x)/y] =  [[t/x]] =  with all free occurrences of x replaced by t as long as t is free for x in   x(  y Rxy  Pxy) [[f(x)/y]] =  x(  y Rxy  Pxf(x))  x(  y Rxy  Pxy) (no change) Variables in plugged-in terms shouldn't be "captured"

ie ,                      , [  …  ], [  …  ]   [  …  ] ,    [  …  ]  ,           = t = t t = s,  [ t/x ]  [s/x]  y[ …  [y/x] ]  x  x   [[ t/x ]]  [[t/x]]  x  x , y[  [y/x] …  ]  where  does not contain x copy  First-Order Natural Deduction PBC [  …  ]  MT ,   LEM   

Why is  e this:  x   [[ t/x ]], not this:  x   [ t/x ] ?  x  y Lxy  y Lay  x  y Lxy  y Lyy... ok.... not ok.

An Axiomatic System Axiom schemas A1   (    ) A2   (    )  ((    )  (    )) A3(    )  (    ) A4  x    [[t/x]] A5    x  if x is not free in  A6  x (    )  (  x    x  ) A7  x , where  is an axiom Rule MP   ,  

bool truth( Sentence , Model m ) { if (  = =  ) return ! truth( ,m) ; else if (  = =  ) return truth( ,m) && truth( ,m) else if (  = =  ) return truth( ,m) || truth( ,m) else if (  = =  ) return ! truth( ,m) || truth( ,m) else if (  = =  x  (x) ) for each a in m.A if ! truth(  (a), m ) return false ; return true ; else if (  = =  x  (x) ) for each a in m.A if truth(  (a), m ) return true ; return false ; else //  = = Pf 1 (a 1 a 2 …)f 2 (b 1 b 2 …)… return P m ( f 1 m (a 1 m a 2 m …) f 2 m (b 1 m b 2 m …)… ; } Truth in a model m

 |=  |   syntax (proof theory) semantics (model theory) sound complete

Compactness Theorem If all finite subsets of a set of formulas G are satisfiable, then G is satisfiable. Proof Assume all finite subsets of G are satisfiable. Assume G is NOT satisfiable. Then G |=  Then G|   (by completeness) Then there is a finite proof of  from formulas in G. This proof only uses a finite set D of formulas in G. So D |   where D is finite. So D |=  (by soundness) So some finite subset D of G is unsatisfiable. Contra! So G is satisfiable.

Expressing reachability u v v is reachable from u R In SECOND-ORDER logic: reachable( R,u,v):=   P  x  y  z( Pxx  (Pxy  Pyz  Pxz)   Puv  (Rxy  Pxy)) Can we express this in first order logic?

NO! Reachability is not first-order u v R Suppose  (u,v) were a first-order formula with predicate R expressing that v is reachable from u. Define  n =  x 1...  x n-1 (Rcx 1 ...  Rx n c') Let D = {  (u,v),  (c=c'),  1,  2,... } D is unsatisfiable, but every finite subset of D is satisfiable. This contradicts the Compactness Theorem. So such a first-order formula  (u,v) cannot exist.