Predicate Calculus Syntax Countable set of predicate symbols, each with specified arity  0. For example: clinical data with multiple tables of patient.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

First-Order Logic.
1 CS 391L: Machine Learning: Rule Learning Raymond J. Mooney University of Texas at Austin.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Inference Rules Universal Instantiation Existential Generalization
Standard Logical Equivalences
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.
Chapter Two Symbolizing in Sentential Logic This chapter is a preliminary to the project of building a model of validity for sentential arguments. We.
Inductive Logic Programming: The Problem Specification Given: –Examples: first-order atoms or definite clauses, each labeled positive or negative. –Background.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
Propositional Calculus A propositional calculus formula is composed of atomic propositions, which area simply statements that are either true or false.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Relational Data Mining in Finance Haonan Zhang CFWin /04/2003.
Inference and Resolution for Problem Solving
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 6 The Relational Algebra and Relational Calculus.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 22 Jim Martin.
1 First order theories. 2 Satisfiability The classic SAT problem: given a propositional formula , is  satisfiable ? Example:  Let x 1,x 2 be propositional.
Adapted from Discrete Math
Herbrand Models Logic Lecture 2. Example: Models  X(  Y((mother(X)  child_of(Y,X))  loves(X,Y))) mother(mary) child_of(tom,mary)
Inductive Logic Programming Includes slides by Luis Tari CS7741L16ILP.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
The Relational Model: Relational Calculus
Atomic Sentences Chapter 1 Language, Proof and Logic.
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
CSE314 Database Systems The Relational Algebra and Relational Calculus Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Database Management Systems, R. Ramakrishnan1 Relational Calculus Chapter 4.
1.  Provides the ability to access individual assertions. e.g. in Predicate calculus we may say: P denotes “It rained on Tuesday” but in predicate calculus.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
CSE S. Tanimoto Horn Clauses and Unification 1 Horn Clauses and Unification Propositional Logic Clauses Resolution Predicate Logic Horn Clauses.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
For Monday Finish chapter 19 No homework. Program 4 Any questions?
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Automated Reasoning Early AI explored how to automate several reasoning tasks – these were solved by what we might call weak problem solving methods as.
For Wednesday Read 20.4 Lots of interesting stuff in chapter 20, but we don’t have time to cover it all.
For Monday Finish chapter 19 Take-home exam due. Program 4 Any questions?
Theorem Proving Semantic Tableaux CIS548 November 15, 2006.
Propositional Logic Predicate Logic
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
CS2351 Artificial Intelligence Bhaskar.V Class Notes on Knowledge Representation - Logical Agents.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
Artificial Intelligence CIS 342 The College of Saint Rose David Goldschmidt, Ph.D.
PREDICATE CALCULS In Propositional Calculus, each atomic symbol denotes a proposition. But there is no way to access the components of an individual assertion.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Database Management Systems, R. Ramakrishnan1 Relational Calculus Chapter 4, Part B.
Chap. 10 Learning Sets of Rules 박성배 서울대학교 컴퓨터공학과.
Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet Countable set of predicate symbols, each with specified arity  0. Countable set of function.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Knowledge Representation and Reasoning
The Propositional Calculus
Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet
Rule Learning Hankui Zhuo April 28, 2018.
Back to “Serious” Topics…
Computer Security: Art and Science, 2nd Edition
Predicates and Quantifiers
RESOLUTION.
Predicate Logic: Syntax.
Predicate Logic.
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

Predicate Calculus Syntax Countable set of predicate symbols, each with specified arity  0. For example: clinical data with multiple tables of patient information. Each such table can be a predicate and each record (tuple) is an atomic formula. Table – Patient patient(1,3-3-03,f) – a predicate with arity = 3. IDDOBGender f --

Further Notation…. Variables – start with upper-case letter Predicate/atomic symbols – start with lower-case letter Constant – start with lower-case letter Logical connectives: , , , , ,  We will also use negation by failure (please see Skolemization slides) Limiting ourselves to atomic formulas and (if -then) rules (clauses) Learn Non-recursive rules – predicate in consequent cannot appear in antecedent Can have recursive rules elsewhere (background knowledge)

Examples… 1. p(a,b,c)^p(d,e,f) true if both atomic formulas are true 2. p(a,b,c)  p(d,e,f) true if first atomic formula is false and/or second atomic formula is true 3.  X  Y  Z (q(X,Y)^q(Y,Z)  p(X,Z)) non-recursive rule 4. If a and b are formulas then so are  a, a  b, a  b, a  b, a  b 5. If X is a variable and a is a formula then  Xa and  Xa are formulas. We say that X is quantified in the formulas  Xa and  Xa.

Some Notes Predicates of arity 0 are also called propositions, the only atomic formulas allowed in propositional logic An expression is an atomic formula A sentence is any formula in which all variables are quantified

Skolemization Process is applied to one sentence at a time and applied only to the entire sentence (so outermost quantifier first). Each sentence initially has empty vector of free variables. Replace  X A(X) with A(X), and add X to vector of free variables. Replace  X A(X) with A(x(V)) where x is a new function symbol and V is the current vector of free variables. If no function symbols, don’t need second bullet, and x is just a constant (nullary function) in third bullet

Learning … To learn, summarizing all information (eg. clinical data) and coming up with ,000 features could be one approach; however, we lose information in this process. Another option is a join, but the frequency of subjects in database alters the algorithm results. Inductive logic programming (ILP) can handle these issues by using predicate calculus to represent the database, and by learning rules.

Inductive Logic Programming: The Problem Specification Given: – Examples: first-order atomic formulas (atoms), each labeled positive or negative. – Background knowledge: definite clause (if-then rules) theory. – Language bias: constraints on the form of interesting new rules (clauses).

ILP Specification (Continued) Find: – A hypothesis h that meets the language constraints and that, when conjoined with B, implies (lets us prove) all of the positive examples but none of the negative examples. To handle real-world issues such as noise, we often relax the requirements, so that h need only entail significantly more positive examples than negative examples.

A Common Approach Use a greedy covering algorithm. – Repeat while some positive examples remain uncovered (not entailed): Find a good clause (one that covers as many positive examples as possible but no/few negatives). Add that clause to the current theory, and remove the positive examples that it covers. ILP algorithms use this approach but vary in their method for finding a good clause.

Scoring function MDL – minimum description length Score(R) = Positive R - Negative R -A (# atomic formulas) FOIL – uses information gain as scoring function. Example Labelpredicate +mother(john,sue) +mother(jane,sue) +mother(joe,jane) -mother(sue,jane) - mother(joe,john) -mother(fred,jane) - mother(jane,fred)

Background knowledge parent(john, fred) parent(john,sue) parent(jane,fred) parent(joel,jane) parent(joel,jack) parent(jane,sue) male(john) male(jack) male(fred) male(joel) female(sue) female(jane)

We want to learn predicate ‘mother’ with scoring function S_MDL = S(P,N,A) = P – N - A mother(X,Y) P N A S meaning S(3,4,2)=-2 mother(X,Y)  parent(X,Y) mother(X,Y)  female(X) mother(X,Y)  female(Y) P N A S P N A S P N A S Lattice can grow further by including substitution of variables but generalization is limited in this case and can be misleading. mother(X,sue) P N A S Now see if we can cover all +examples combination of clauses

Building Bottom clause (refinement) Start substituting variables in predicate to generate all ‘+ examples’ and write down atomic formulas from background knowledge which explains the predicate. For example: mother(X,Y)  X = john, Y = sue parent(X,Y)^ male(X)^female(Y) parent(X,Z), Z = fred etc Generate lattice to get these bottom clause for each ‘+ example’. Each example will provide a sub-lattice. Just search the sub-lattice above this bottom clause (only use atoms in this bottom clause).