FOL Practice. Models A model for FOL requires 3 things: A set of things in the world called the UD A list of constants A list of predicates, relations,

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Section 1.3. More Logical Equivalences Constructing New Logical Equivalences We can show that two expressions are logically equivalent by developing.
Exam #3 will be given on Monday Nongraded Homework: Now that we are familiar with the universal quantifier, try
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
Test 4 Review For test 4, you need to know: Definitions the recursive definition of ‘formula of PL’ atomic formula of PL sentence of PL bound variable.
SL Truth value assignments. SL Truth value assignments PL Interpretation.
Section 1.4: Nested Quantifiers We will now look more closely at how quantifiers can be nested in a proposition and how to interpret more complicated logical.
Proofs in Predicate Logic A rule of inference applies only if the main operator of the line is the right main operator. So if the line is a simple statement,
For Wednesday, read chapter 6, section 1. As nongraded HW, do the problems on p Graded Homework #7 is due on Friday at the beginning of class. In.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
For 42 – 47: UD = everything; Ax = x is an apple; Nxy = x is in y; Px = x is a pear; Rx = x is rotten; b = the basket 42There are apples and pears in the.
For Friday, read chapter 6, section 2. As nongraded HW, do the problems on p Graded Homework #7 is due on Friday at the beginning of class.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
March 10: Quantificational Notions Interpretations: Every interpretation interprets every individual constant, predicate, and sentence letter of PL. Our.
Review Test 5 You need to know: How to symbolize sentences that include quantifiers of overlapping scope Definitions: Quantificational truth, falsity and.
March 5: more on quantifiers We have encountered formulas and sentences that include multiple quantifiers: Take, for example: UD: People in Michael’s office.
Proving the implications of the truth functional notions  How to prove claims that are the implications of the truth functional notions  Remember that.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
For Friday, read Chapter 3, section 4. Nongraded Homework: Problems at the end of section 4, set I only; Power of Logic web tutor, 7.4, A, B, and C. Graded.
1Everyone that Michael likes likes either Henry or Sue 2Michael likes everyone that both Sue and Rita like 3Michael likes everyone that either Sue or Rita.
Predicate Logic What is a predicate? A property that can be attributed to --or said of –a thing. Being greenBeing contingent Being four feet tall Being.
Predicates and Quantifiers
Section 1.3: Predicates and Quantifiers
The Foundations: Logic and Proofs
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
Proofs in Predicate Logic A rule of inference applies only if the main operator of the line is the right main operator. So if the line is a simple statement,
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Week 2 - Friday.  What did we talk about last time?  Predicate logic  Negation  Multiple quantifiers.
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
Chapter 1 Logic Section 1-1 Statements Open your book to page 1 and read the section titled “To the Student” Now turn to page 3 where we will read the.
Predicate Logic Splitting the Atom.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
PART TWO PREDICATE LOGIC. Chapter Seven Predicate Logic Symbolization.
Testing Validity With Venn Diagrams
Arguments with Quantified Statements M Universal Instantiation If some property is true for everything in a domain, then it is true of any particular.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
1Everyone that Michael likes likes either Henry or Sue 2Michael likes everyone that both Sue and Rita like 3Michael likes everyone that either Sue or Rita.
CompSci 102 Discrete Math for Computer Science January 24, 2012 Prof. Rodger Slides modified from Rosen.
Lecture 1.2: Equivalences, and Predicate Logic CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph.
80-210: Logic & Proofs July 30, 2009 Karin Howe
Direct Proof and Counterexample I Lecture 12 Section 3.1 Tue, Feb 6, 2007.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
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.
Functions CSRU1400 Spring 2008Ellen Zhang 1 CISC1400, Fall 2010 Ellen Zhang.
McGraw-Hill ©2004 by The McGraw-Hill Companies, Inc. All rights reserved. Testing Validity With Venn Diagrams The aim of this tutorial is to help you learn.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Truth Tables, Continued 6.3 and 6.4 March 14th. 6.3 Truth tables for propositions Remember: a truth table gives the truth value of a compound proposition.
Lecture 1-3: Quantifiers and Predicates. Variables –A variable is a symbol that stands for an individual in a collection or set. –Example, a variable.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
3. The Logic of Quantified Statements Summary
8.1 Symbols and Translation
Testing for Validity with Venn Diagrams
The Finite Universe Method
Predicate Logic Splitting the Atom.
Today’s Topics Universes of Discourse
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Note Taking Goals: I can turn my thoughts and the discussion, into an organized set of notes. I can write a summary based on the notes I took today.
Midterm Discussion.
Proofs in Predicate Logic
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
CS201: Data Structures and Discrete Mathematics I
If there is any case in which true premises lead to a false conclusion, the argument is invalid. Therefore this argument is INVALID.
Validity and Soundness, Again
If there is any case in which true premises lead to a false conclusion, the argument is invalid. Therefore this argument is INVALID.
Presentation transcript:

FOL Practice

Models A model for FOL requires 3 things: A set of things in the world called the UD A list of constants A list of predicates, relations, or functions

The Marble World UD: Ashley, Clarence, Rhoda, Terry, and their marbles a: Ashley c: Clarence r: Rhoda t: Terry B(x): x is blue G(x): x is green R(x): x is red S(x): x is a shooter C(x): x is a cat’s-eye T(x): x is a steely M(x): x is a marble B(x,y): x belongs to y W(x,y): x wins y G(x, y, z): x gives y to z

Some Examples All the cat’s-eyes belong to Rhoda. All the marbles but the shooters are cat’s eyes. Some, but not all, of the cat’s-eyes are green. All of the shooters that are steelies belong to Terry. (  x)(C(x)  B(x,r)) (  x)[(M(x) & ~S(x))  C(x)] (  x)(C(x) & G(x)) & ~(  y)(C(y)  G(y)) (  x)[(S(x) & T(x))  B(x,t)]

WFFs and Truth in FOL Before we can decide if a sentence in FOL is true, we need to make sure it is well-formed Once this is determined, we can test if a sentence is true in the model. Let’s look at a less complicated model to practice this…

The Positive Integer Model UD: positive integers a: 1 b: 2 E(x): x is even O(x): x is odd L(x,y): x is larger than y Eb & (Ob  Lba) WFF? True? Test for truth by looking at the truth of each sub- sentence Eb: 2 is even (TRUE) Ob: 2 is odd (FALSE) Lba: 2 is larger than 1 (TRUE) T & (F  T) => T & T =>T

More Truth When quantifiers are involved, it is more complicated  x means “No matter what you choose for x…” UD = Giant Bag o’ Stuff A universal statement has to be true for every item in the UD  x means “There is at least one x such that…” An existential statement is true as long as it is true for at least one thing in the UD

Practice Every positive integer is either odd or even and no positive integer is both. Paraphrase: No matter what x you choose, either x is even or x is odd and it is not the case that there is a y such that both y is even and y is odd. Symbolization:  x(Ex  Ox) & ~  y(Ey & Oy)

 x(Ex  Ox) & ~  y(Ey & Oy) Is this true in the model? Remember that &-statements are true if both conjuncts are true. Is  x(Ex  Ox) true? This statement is false if we can find just one item from the UD that makes it false, which we can’t! It’s TRUE. Is ~  y(Ey & Oy) true? This statement is true if  y(Ey & Oy) is false. Is there something in the UD that is both even and odd? There isn’t, so  y(Ey & Oy) is false which makes ~  y(Ey & Oy) TRUE. Therefore, the entire statement is true in the model.

Creating Dummy Models So far, we have looked at whether a sentence is true in a given model. Models don’t have to be complicated things dealing with real properties of real world things. We can create a dummy model using a diagram to help predict if a FOL sentence or argument has particular properties.

What We Can Do with Models True/False on a model We can give a model that makes a sentence true/false True/False on all models We can show that a sentence is true/false on all models or if it is indeterminate Consistency We can check if a set of sentences is consistent by giving a model where they are all true Validity We can check if an argument is invalid by giving a model where the premises are true but the conclusion is false

Strategy for Model Creation Represent constants with a dot Represent properties with a circle Anything that falls in the circle has that property; anything not in the circle doesn’t Represent relations with an arrow Getting a model from the picture Put any dots in the UD List the dots as constants For each predicate, give a set that lists the dots in the predicate’s circle For each relation, give a set of ordered pairs

 Give a model that makes the sentence Iap -> (Ipa -> Iaa) false. Example 1 Give a model that makes the sentence Nad -> ~Nda true. ad ap

Example 2 Show that (Ga &  xBx)   yBy is not true for every model Paraphrase: If both a is in G and there is something in B, then everything is in B. UD: a, b G(x): {a} B(x): {b} a: a b: b GB ab

Example 3 Show that  xGx &  y  z(Fyz  Gz) is not true for every model Paraphrase: There is something in G and everything that is pointed to with F is in G. UD: a, b a: a b: b G(x): {a} F(x,y): {, } G ba

What good are dummy models? Dummy models are quick way to discover a property of a sentence Once we know that property, it will still hold no matter what the model is So, if we can show that a sentence is true on at least one model, we know we can come up with a real world model that it is also true on

Back to Example 2 We know that (Ga &  xBx)   yBy is not true for every model. We can use the dummy model as a template for a real world model UD: a, bUD: Homer, Otis Gx: {a}Gx: x is yellow Bx: {b}Bx: x is black a: aa: Homer b: bb: Otis

Arguments An argument consists of a set of premises and a conclusion An argument is valid if and only if it is not possible to give a model that makes the premises all true and the conclusion false So, to show that an argument is invalid, give a model where the premises are true and the conclusion is false An invalid argument is always invalid! It may be possible to give a model that makes it seem like a good argument (politicians do this all the time!), but you can use the dummy model method to easily figure out if the argument is really any good.

Example 4 Show that the following argument is invalid:  x(Fx  Gx)“Everything in F is in G” ~  xFx“Nothing is in F”  ~  xGx“Nothing is in G” UD: a, bUD: Homer, Shai (the very furry bunny) Fx: {}Fx: x is a cat Gx: {b}Gx: x is furry a: aa: Homer b: bb: Shai FG ab

That’s it! As you are working on the argument you give in your paper, you may want to think about how it might look in FOL Is your argument valid??? Remember: Paper outlines are due on Friday by the end of the day ( before 11:59 pm is OK) No reading for this week!