10/31 Here are the stats for the in-class exam (out of 85) Undergrad Avg=30.85; Std dev= 16.72; Max=70.5; min= 8.5 Grad Avg=42.10; std dev=17.52; Max=74.5;

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

First-Order Logic Chapter 8.
Predicate Logic Colin Campbell. A Formal Language Predicate Logic provides a way to formalize natural language so that ambiguity is removed. Mathematical.
First-Order Logic.
First-order Logic.
Inference Rules Universal Instantiation Existential Generalization
1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Standard Logical Equivalences
First-Order Logic (FOL) aka. predicate calculus. First-Order Logic (FOL) Syntax User defines these primitives: – Constant symbols (i.e., the "individuals"
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
For Friday No reading Homework: –Chapter 9, exercise 4 (This is VERY short – do it while you’re running your tests) Make sure you keep variables and constants.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
First-Order Logic (FOL) aka. predicate calculus. First-Order Logic (FOL) Syntax User defines these primitives: –Constant symbols (i.e., the "individuals"
Knowledge Representation Methods
Knowledge Representation I Suppose I tell you the following... The Duck-Bill Platypus and the Echidna are the only two mammals that lay eggs. Only birds.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
11/7 Are there irrational numbers p and q such that p q is a rational number? Hint: Suppose p=q= Rational Irrational Why is the set that is the set of.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
10/29 Plan(s) for make-up Class 1.Extend four classes until 12:15pm 2.Have a separate make- up class on a Friday morning.
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
FIRST-ORDER LOGIC FOL or FOPC
Knoweldge Representation & Reasoning
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
3/31. Notice that sampling methods could in general be used even when we don’t know the bayes net (and are just observing the world)!  We should strive.
Prop logic First order predicate logic (FOPC) Prob. Prop. logic Objects, relations Degree of belief First order Prob. logic Objects, relations.
Herbrand Interpretations Herbrand Universe –All constants Rao,Pat –All “ground” functional terms Son-of(Rao);Son-of(Pat); Son-of(Son-of(…(Rao)))…. Herbrand.
10/28 Homework 3 returned Homework 4 socket opened (No office hours today) Where hard problems are Phase Transition.
Propositional Logic Agenda: Other forms of inference in propositional logic Basics of First Order Logic (FOL) Vision Final Homework now posted on web site.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
Why FOPC If your thesis is utter vacuous Use first-order predicate calculus. With sufficient formality The sheerest banality Will be hailed by the critics:
FIRST ORDER LOGIC Levent Tolga EREN.
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
INFERENCE IN FIRST-ORDER LOGIC IES 503 ARTIFICIAL INTELLIGENCE İPEK SÜĞÜT.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
CSE PredLogic 1 Knowledge Representation with Logic: First Order Predicate Calculus Outline –Introduction to First Order Predicate Calculus (FOPC)
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
Theory and Applications
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
Artificial Intelligence 7. Making Deductive Inferences Course V231 Department of Computing Imperial College, London Jeremy Gow.
1 Inference in First Order Logic CS 171/271 (Chapter 9) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Artificial Intelligence First-Order Logic (FOL). Outline of this Chapter The need for FOL? What is a FOL? Syntax and semantics of FOL Using FOL.
CS-554 Part-3: First-Order Logic
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
Inference in First Order Logic. Outline Reducing first order inference to propositional inference Unification Generalized Modus Ponens Forward and backward.
First-Order Logic Reading: C. 8 and C. 9 Pente specifications handed back at end of class.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
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.
Artificial Intelligence Logical Agents Chapter 7.
Knowledge Representation III First-Order Logic
Relational Proofs Computational Logic Lecture 8
Predicates and Quantifiers
Logical and Rule-Based Reasoning Part I
Presentation transcript:

10/31 Here are the stats for the in-class exam (out of 85) Undergrad Avg=30.85; Std dev= 16.72; Max=70.5; min= 8.5 Grad Avg=42.10; std dev=17.52; Max=74.5; min=5 For the overall class here is the distribution Top three scores: 74.5 (g); 70.5 (u); 65(g) >70 (2; 1g; 1u) (1; 1g) (8;6g;2u) (3; 3g) (9;5g;4u) (9;3g;6u) (4;1g;3u) 0-10 (2;1g,1u)

Assertions; t/f Epistemological commitment Ontological commitment t/f/u Deg belief facts Facts Objects relations Prop logic Prob prop logic FOPCProb FOPC

Why FOPC If your thesis is utter vacuous Use first-order predicate calculus. With sufficient formality The sheerest banality Will be hailed by the critics: "Miraculous!"

Apt-pet An apartment pet is a pet that is small Dog is a pet Cat is a pet Elephant is a pet Dogs and cats are small. Some dogs are cute Each dog hates some cat Fido is a dog

Notes on encoding English statements to FOPC You get to decide what your predicates, functions, constants etc. are. All you are required to do it be consistent in their usage. When you write an English sentence into FOPC sentence, you can “double check” by asking yourself if there are worlds where FOPC sentence doesn’t hold and the English one holds and vice versa Since you are allowed to make your own predicate and function names, it is quite possible that two people FOPCizing the same KB may wind up writing two syntactically different KBs If each of the DBs is used in isolation, there is no problem. However, if the knowledge written in one DB is supposed to be used in conjunction with that in another DB, you will need “Mapping axioms” which relate the “vocabulary” in one DB to the vocabulary in the other DB. This problem is PRETTY important in the context of Semantic Web The “Semantic Web” Connection

Caveat: Decide whether a symbol is predicate, constant or function… Make sure you decide what are your constants, what are your predicates and what are your functions Once you decide something is a predicate, you cannot use it in a place where a predicate is not expected! In the previous example, you cannot say

Family Values: Falwell vs. Mahabharata According to a recent CTC study, “….90% of the men surveyed said they will marry the same woman..” “…Jessica Alba.”

Lesson: Order of quantifiers matters “either Fido loves both Fido and Tweety; or Tweety loves both Fido and Tweety” “ Fido or Tweety loves Fido; and Fido or Tweety loves Tweety” Loves(x,y) means x loves y

More on writing sentences Forall usually goes with implications (rarely with conjunctive sentences) There-exists usually goes with conjunctions—rarely with implications Everyone at ASU is smart Someone at UA is smart

Two different Tarskian Interpretations This is the same as the one on The left except we have green guy for Richard Problem: There are too darned many Tarskian interpretations. Given one, you can change it by just substituting new real-world objects  Substitution-equivalent Tarskian interpretations give same valuations to the FOPC statements (and thus do not change entailment)  Think in terms of equivalent classes of Tarskian Interpretations (Herbrand Interpretations) We had this in prop logic too—The real World assertion corresponding to a proposition

10/31 A famous surgeon was a passenger in a car driven by his teenage son. "I'll drop you at the hospital, Dad," said the young man. "Fine, son," said his father. Those were his last words; a wildly careening convertible crossed the center strip and ran headlong into the car. At the emergency room the father was pronounced dead on arrival; the son was taken for emergency surgery. The surgeon called to the scene reached for a scaplel but paused: "I can't operate," the surgeon said; "this is my son."

Connection between Forall & There- exists ~[forall x A(x)] = exists x ~A(x) ~[exists x B(x)] = forall x ~B(x)

Herbrand Interpretations Herbrand Universe –All constants Rao,Pat –All “ground” functional terms Son-of(Rao);Son-of(Pat); Son-of(Son-of(…(Rao)))…. Herbrand Base –All ground atomic sentences made with terms in Herbrand universe Friend(Rao,Pat);Friend(Pat,Rao);Friend(P at,Pat);Friend(Rao,Rao) Friend(Rao,Son-of(Rao)); Friend(son-of(son-of(Rao),son-of(son- of(son-of(Pat)) –We can think of elements of HB as propositions; interpretations give T/F values to these. Given the interpretation, we can compute the value of the FOPC database sentences If there are n constants; and p k-ary predicates, then --Size of HU = n --Size of HB = p*n k But if there is even one function, then |HU| is infinity and so is |HB|. --So, when there are no function symbols, FOPC is really just syntactic sugaring for a (possibly much larger) propositional database Let us think of interpretations for FOPC that are more like interpretations for prop logic

But what about Godel? Godel’s incompleteness theorem holds only in a system that includes “mathematical induction”—which is an axiom schema that requires infinitely many FOPC statements –If a property P is true for 0, and whenever it is true for number n, it is also true for number n+1, then the property P is true for all natural numbers –You can’t write this in first order logic without writing it once for each P (so, you will have to write infinite number of FOPC statements) So, a finite FOPC database is still semi-decidable in that we can prove all provably true theorems

Proof-theoretic Inference in first order logic For “ground” sentences (i.e., sentences without any quantification), all the old rules work directly (think of ground atomic sentences as propositions) –P(a,b)=> Q(a); P(a,b) |= Q(a) –~P(a,b) V Q(a) resolved with P(a,b) gives Q(a) What about quantified sentences? –May be infer ground sentences from them…. –Universal Instantiation (a universally quantified statement entails every instantiation of it) –Existential instantiation (an existentially quantified statement holds for some term (not currently appearing in the KB). Can we combine these (so we can avoid unnecessary instantiations?) Yes. Generalized modus ponens Needs UNIFICATION

UI can be applied several times to add new sentences --The resulting KB is equivalent to the old one EI can only applied once --The resulting DB is not equivalent to the old one BUT will be satisfiable only when the old one is

How about knows(x,f(x)) knows(u,u)? x/u; u/f(u)  leads to infinite regress (“occurs check”)

GMP can be used in the “forward” (aka “bottom-up”) fashion where we start from antecedents, and assert the consequent or in the “backward” (aka “top-down”) fashion where we start from consequent, and subgoal on proving the antecedents.

Apt-pet An apartment pet is a pet that is small Dog is a pet Cat is a pet Elephant is a pet Dogs, cats and skunks are small. Fido is a dog Louie is a skunk Garfield is a cat Clyde is an elephant Is there an apartment pet?