Inference Tasks and Computational Semantics. Key Concepts Inference tasks Syntactic versus semantic approach to logic Soundness & completeness Decidability.

Slides:



Advertisements
Similar presentations
1 Knowledge Representation Introduction KR and Logic.
Advertisements

Automated Theorem Proving Lecture 1. Program verification is undecidable! Given program P and specification S, does P satisfy S?
Completeness and Expressiveness
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Working with Discourse Representation Theory Patrick Blackburn & Johan Bos Lecture 3 DRT and Inference.
Automated Reasoning Systems For first order Predicate Logic.
Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 11.
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.
Week 11 Review: Statistical Model A statistical model for some data is a set of distributions, one of which corresponds to the true unknown distribution.
Logic Concepts Lecture Module 11.
Copyright © Cengage Learning. All rights reserved.
Philosophy 120 Symbolic Logic I H. Hamner Hill CSTL-CLA.SEMO.EDU/HHILL/PL120.
CPSC 322 Introduction to Artificial Intelligence September 15, 2004.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Existential Graphs and Davis-Putnam April 3, 2002 Bram van Heuveln Department of Cognitive Science.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Knoweldge Representation & Reasoning
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
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.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
Introduction Algorithms and Conventions The design and analysis of algorithms is the core subject matter of Computer Science. Given a problem, we want.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
0 What logic is or should be Propositions Boolean operations The language of classical propositional logic Interpretation and truth Validity (tautologicity)
Lecture 18. Unsolvability Before the 1930’s, mathematics was not like today. Then people believed that “everything true must be provable”. (More formally,
Course Overview and Road Map Computability and Logic.
Computational Semantics Day 5: Inference Aljoscha.
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Correctness Proofs and Counter-model Generation with Authentication-Protocol Logic Koji Hasebe Mitsuhiro Okada Department of Philosophy, Keio University.
More on Description Logic(s) Frederick Maier. Note Added 10/27/03 So, there are a few errors that will be obvious to some: So, there are a few errors.
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
Great Theoretical Ideas in Computer Science.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Great Theoretical Ideas in Computer Science.
Naïve Set Theory. Basic Definitions Naïve set theory is the non-axiomatic treatment of set theory. In the axiomatic treatment, which we will only allude.
CS6133 Software Specification and Verification
Lecture 5 1 CSP tools for verification of Sec Prot Overview of the lecture The Casper interface Refinement checking and FDR Model checking Theorem proving.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
TRUSTED FLOW: Why, How and Where??? Moti Yung Columbia University.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Copyright 1999Paul F. Reynolds, Jr. Foundations of Logic Programming.
The Church-Turing Thesis Chapter Are We Done? FSM  PDA  Turing machine Is this the end of the line? There are still problems we cannot solve:
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Gödel's Legacy: The Limits Of Logics
Axiomatic Number Theory and Gödel’s Incompleteness Theorems
Discrete Mathematics for Computer Science
Knowledge Representation and Reasoning
Great Theoretical Ideas in Computer Science
Lecture 2 Propositional Logic
Logical Agents Chapter 7.
On Kripke’s Alleged Proof of Church-Turing Thesis
Presentation transcript:

Inference Tasks and Computational Semantics

Key Concepts Inference tasks Syntactic versus semantic approach to logic Soundness & completeness Decidability and undecidability Technologies: Theorem proving versus model building

INFERENCE TASKS QUERYING CONSISTENCY CHECKING INFORMATIVITY CHECKING

QUERYING Definition: –Given: Model M and formula P –Does M satisfy P? P is not necessarily a sentence, so have to handle assignments to free variables. Computability: yes if models are finite

Consistency Checking Definition: Given a formula P, is P consistent? Idea: consistent iff satisfiable in a model M, so task becomes discovering whether a model exists. This is a search problem. Computationally undecidable for arbitrary P.

Informativity Checking Definition: given P, is P informative or uninformative? Idea (which runs counter to logician's view) –informative = invalid –uninformative = valid (true in all possible models) Informativity: is genuinely new information being conveyed? Useful concept from PoV of communication Computability: validity worse than consistency checking since all models need to be checked for satisfiability.

Relations between Concepts P is consistent (satisfiable) iff –P is informative (invalid) P is inconsistent (unsatisfiable) iff –P uninformative (valid). P is informative (invalid) if –P is consistent (satisfiable). P is uninformative (valid) if –P is inconsistent (unsatisfiable).

Consistency within Discourse Mia smokes. Mia does not smoke. Should be possible to detect the inconsistency in such discourses To avoid detecting inconsistency in superficially similar discourses such as Mia smokes. Mia did not smoke

Consistency of Discourse w.r.t. Background Knowledge Discourse: Mia is a beautiful woman. Mia is a tree Background Knowledge: All women are human All trees are plants -Ex: human(x) and plant(x)

Consistency Checking for Resolving Scope Ambiguity Every boxer has a broken nose 1.Ax(boxer(x) -Ey(broken-nose(y) & has(x,y))) 2.Ey(broken-nose(y) & Ax(boxer(x) → has(x,y))) Second reading is inconsistent with world knowledge What world knowledge? How represented and used?

Informativity Checking Make your contribution as informative as is required (for the current purposes of the exchange). H. P. Grice. Mia smokes. Mia smokes Is not informative Informativity checking also wrt background knowledge

Informativity a `soft' signal Mia is married She has a husband Superficially uninformative wrt background knowledge. But nevertheless we can imagine contexts when such a discourse makes sense. Technically uninformative utterances can be used to “make a point”

Consistency Checking Task (CCT) in FOL Let Φ be the FOL semantic representation of the latest sentence in some ongoing discourse Suppose that the relevant lexical knowledge L, world knowledge W, natural language metaphysical assumption M, and the information from the previous discourse D has been represented in FOL CCT can be expressed: L U W U M U D |= ¬Φ

To put it another way… All-Our-Background-Stuff |= ¬Φ hence |= All-Our-Background-Stuff → ¬Φ (Deduction Theorem) Consequence: we can reduce CCT to deciding the validity of a single formula.

Informativity Checking Task (ICT) in FOL Let Φ be the FOL semantic representation of the latest sentence in some ongoing discourse Suppose that the relevant lexical knowledge L, world knowledge W, natural language metaphysical assumption M, and the information from the previous discourse D has been represented in FOL ICT can be expressed: L U W U M U D |= Φ

To put it another way… All-Our-Background-Stuff |= Φ hence |= All-Our-Background-Stu → Φ (Deduction Theorem) Consequence: we can also reduce ICT to deciding the validity of a single formula.

Yes but … This definition is semantic, i.e. given in terms of models. This is very abstract, and defined in terms of all models. There are a lot of models, and most of them are very large. So is it of any computational interest whosoever?

Proof Theory Proof theory is the syntactic approach to logic. It attempts to define collections of rules and/or axioms that enable us to generate new formulas from old That is, it attempts to pin down the notion of inference syntactically. P |- Q versus P |= Q

Examples of Proof Systems Natural deduction Hilbert-style system (often called axiomatic systems) Sequent calculus Tableaux systems Resolution Some systems (notably tableau and resolution) are particularly suitable for computational purposes.

Connecting Proof Theory to Model Theory Nothing we have said so far makes any connection between the proof theoretic and the model theoretic ideas previously introduced. We must insist on working with proof systems with two special properties Soundness Completeness.

Soundness Proof Theoretic Q is provable in proof theoretic system |- Q. Model Theoretic Q is valid in model theoretic system |= Q A PT system is sound iff |- Q implies |= Q Every theorem is valid

Remark on Soundness Soundness is typically an easy property to prove. Proofs typically have some kind of inductive structure. One shows that if the first part of proof is true in a model then the rules only let us generate formulas that are also true in a model. Proof follows by induction

Completeness Proof Theoretic Q is provable in proof theoretic system |- Q. Model Theoretic Q is valid in model theoretic system |= Q A PT system is sound iff |= Q implies |- Q Every valid formula is also a theorem

Remark on Completeness Completeness is a much deeper property that soundness,and is a lot more difficult to prove. It is typically proved by contraposition. We show that if some formula P is not provable then is not valid. This is done by building a model for ¬P The 1st completeness proof for a 1st-order proof system was given by Kurt Godel in his 1930 PhD thesis.

Sound and Complete Systems So if a proof system is both sound and complete (which is what we want) we have that: |=Φ if and only if |-Φ That is, syntactic provability and semantic validity coincide. Sound and complete proof system, really capture the our semantic reality. Working with such systems is not just playing with symbols.

Blackburn’s Proposal Deciding validity (in 1st-order logic) is undecidable, i.e. no algorithm exists for solving 1st-order validity. Implementing our proof methods for 1st-order logic (that is, writing a theorem prover only gives us a semi- decision procedure. If a formulas is valid, the prover will be able to prove it, but if is not valid, the prover may never halt! Proposal –Implement theorem provers, –but also implement a partial converse tool: model builders.

Computational Tools Theorem prover: A tool that, when given a 1st- order formula Φ attempts to prove it. If Φ is in fact provable a (sound and complete) 1 st -order prover can (in principle) prove it. Model builder: a tool that, when given a 1st- order formula Φ, attempts to build a model for it. It cannot (even in principle) always succeed in this task, but it can be very useful.

Theorem Provers and Model Checkers Theorem provers: a mature technology which provides a negative check on consistency and informativity Theorem provers can tell us when something is not consistent, or not informative. Model builders: a newer technology which provides a (partial) positive check on consistency and informativity That is, model builders can tell us when something is consistent or informative.

A Possible System Let B be all our background knowledge, and Φ the representation of the latest sentence: Partial positive test for consistency: give MB B & Φ Partial positive test for informativity: give MB B & ¬Φ Negative test for consistency: give TP B → Φ Negative test for informativity: give TP B → ¬ Φ And do this in parallel using the best available software!

Clever Use of Reasoning Tools (CURT) Baby Curt No inference capabilities Rugrat Curt: negative consistency checks (naive prover) Clever Curt: negative consistency checks (sophisticated prover) Sensitive Curt: negative and positive informativity checks Scrupulous Curt: eliminating superfluuous readings Knowledgeable Curt: adding background knowledge Helpful Curt: question answering

Baby Curt computes semantic representations Curt: 'Want to tell me something?' > every boxer loves a woman Curt: 'OK.' > readings 1 forall A (boxer(A) > exists B (woman(B) & love(A, B))) 2 exists A (woman(A) & forall B (boxer(B) > love(B, A)))

Baby Curt accumulates information > mia walks Curt: 'OK.' > vincent dances Curt: 'OK.' > readings 1 (walk(mia) & dance(vincent))

But Baby Curt is stupid > mia walks Curt: 'OK.' > mia does not walk Curt: 'OK.' > ?- readings 1 (walk(mia) & - walk(mia))

Add Inference Component Key idea: use sophisticated theorem provers and model builders in parallel. The theorem prover provides negative check for consistency and informativity. The model builder provides positive check for consistency and informativity. The 1st to find a result, reports back, and stops the other

Example > Vincent is a man Message (consistency checking): mace found a result. Curt: OK. > ?- models 1 model([d1], [f(1, man, [d1]), f(0, vincent, d1)])

Example continued > Mia likes every man. Message (consistency checking): mace found a result. Curt: OK. > Mia does not like Vincent. Message (consistency checking): bliksem found a result. Curt: No! I do not believe that!

Example 2 > ?- every car has a radio Message (consistency checking): mace found a result. Message (consistency checking): bliksem found a result. Curt: 'OK.' > ?- readings 1 forall A (car(A) > exists B (radio(B) & have(A, B)))

Issues Is a logic-based approach to feasible? How far can it be pushed? Is 1st-order logic essential? Are there other interesting inference tasks? Is any of this relevant to current trends in computational linguistics, where shallow processing and statistical approaches rule? Are there applications?