Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Completeness and Expressiveness
1 First order theories (Chapter 1, Sections 1.4 – 1.5)
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
First-Order Logic (and beyond)
Working with Discourse Representation Theory Patrick Blackburn & Johan Bos Lecture 3 DRT and Inference.
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.
Knowledge Representation Methods
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.
Review Test 5 You need to know: How to symbolize sentences that include quantifiers of overlapping scope Definitions: Quantificational truth, falsity and.
Predicate Calculus.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
1 First order theories. 2 Satisfiability The classic SAT problem: given a propositional formula , is  satisfiable ? Example:  Let x 1,x 2 be propositional.
Knowledge Interchange Format Michael Gruninger National Institute of Standards and Technology
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
Atomic Sentences Chapter 1 Language, Proof and Logic.
1st-order Predicate Logic (FOL)
November 2003CSA4050: Semantics I1 CSA4050: Advanced Topics in NLP Semantics I What is semantics for? Role of FOL Montague Approach.
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
Pattern-directed inference systems
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Computational Semantics Day 5: Inference Aljoscha.
LDK R Logics for Data and Knowledge Representation PL of Classes.
Semantic Construction lecture 2. Semantic Construction Is there a systematic way of constructing semantic representation from a sentence of English? This.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
1 CA 208 Logic PQ PQPQPQPQPQPQPQPQ
Copyright © Cengage Learning. All rights reserved.
Definition Applications Examples
CS6133 Software Specification and Verification
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
1 CSC384: Intro to Artificial Intelligence Lecture 5.  Knowledge Representation.
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.
ece 627 intelligent web: ontology and beyond
Predicate Logic One step stronger than propositional logic Copyright © Curt Hill.
What’s the Right Logic. What Is Logic? Joe Lau The laws of biology might be true only of living creatures, and the laws of economics are only applicable.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Knowledge Representation Lecture 2 out of 5. Last Week Intelligence needs knowledge We need to represent this knowledge in a way a computer can process.
Formal Modeling Concepts
Logics for Data and Knowledge Representation
Copyright © Cengage Learning. All rights reserved.
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Back to “Serious” Topics…
MA/CSSE 474 More Math Review Theory of Computation
Computer Security: Art and Science, 2nd Edition
Logics for Data and Knowledge Representation
Predicates and Quantifiers
TRUTH TABLES.
Logics for Data and Knowledge Representation
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

Key Concepts Representation Inference Semantics Discourse Pragmatics Computation

Key Concepts Representation a formula of some logic (FOL) Inference –constency checking task; –informativity checking Semantics –language  world

Key Concepts Discourse –anaphora; –time; –rhetorical structure Pragmatics –presupposition Computation –computability –implementability

First Order Logic from a Model-Theoretic Perspective

Fundamental Syntactic Concepts Vocabularies First Order Languages

Vocabulary Example { (love,2), (customer,1), (robber,1), (mia,0), (vincent,0), (honey-bunny,0), (yolanda,0) }

Vocabulary Vocabularies specify the basic elements of te language we are going to use. Items in a vocabulary associated with the number 0 are called constants. For example Items in a vocabulary associated with a number greater than 0 are called relation symbols, (or, sometimes, predicate symbols) For example, love is a relation symbol. In fact, it is a 2-place relation symbol of arity 2.

First Order Languages All symbols in the vocabulary (non-logical symbols). An infinite collection of variables x, y, z, w,... Boolean operators ¬ (negation), → (implication), ∨ (disjunction), and ∧ (conjunction). The quantifiers ∀ (the universal quantifier) and ∃ (the existential quantifier). The equality symbol =. The round brackets ) and ( and the comma.

Terms Terms are the noun phrases of first- order languages. All constants and variables are terms. Nothing else is a term.

Atomic Formula We combine our noun phrases with our predicates to form atomic formulas: If R is a relation symbol of arity n, and τ1,..., τn are terms, then R(τ1,..., τn ) is an atomic (or basic) formula. One special case of this definition is worth drawing attention to: as = is a two place relation symbol, then τ1 = τ2 is an atomic formula.

Well formed formulas All atomic formulas are wffs If φ and ψ are wffs then so are  φ, (φ → ψ), (φ ∨ ψ), and (φ ∧ ψ) If φ is a wff, and x is a variable, then both ∃ xφ and ∀ xφ are wffs (We call φ the matrix of such wffs) Nothing else is a wff

Free and Bound Variables ( customer(x) ∨ ∀ x(robber(x) ∧ ∀ y person(y))) It is useful to think of a free variable as deictic pronoun. A sentence of first-order logic is a formula that contains no free variables.

Proof Theory We now have a formal language We might start by exploring syntactical patterns of inference. In fact, the pioneers of formal logic did precisely this.

Examples Butch is boxer and Butch is happy therefore Butch is happy φ ∧ ψ therefore φ All boxers are brutal, Butch is boxer, therefore Butch is brutal ∀ x(φ(x) → ψ(x)) φ[c/x] therefore ψ[c/x]

Model Theory But around 1930 this syntactic view was broadened with the development of model theory, and the semantic turn The key figure here is Alfred Tarski, a Polish logician who emigrated to the US in He gave his celebrated satisfaction definition and thereby founded the subject that is now known as model theory.

Semantic Perspective Language  World LOGIC  MODEL

Models In a nutshell, models are like little worlds They are mathematical entities that first-order language talk about. The crucial idea is to say exactly how first- order languages talk about models, via Tarski's famous satisfaction definition That is, we are giving a precise model concerning how first-order languages can be about something. Tarski added aboutness.

Model: definition A model is a pair (D, F) where D is a domain containing the set of entities we want to talk about. It must be non-empty. F is the interpretation function. It specifies what each symbol in the vocabulary stands for. F associates each symbol in the vocabulary with an appropriate entity built from items in D.

Example Model D = {d1, d2, d3, d4, d5 } F (mia) = d2 F (honey-bunny) = d1 F (vincent) = d4 F (yolanda) = d1 F (customer) = {d1, d2, d4 } F (robber) = {d3, d5 } F (love) = {(d3, d4 )} NB. not every entity has a name and one entity can have 2 names.

Variable Assignment Functions Suppose we are working with a model M = (D, F ) Then an assignment g of values to variables in M is a function from the set of variables to D Think of g as a context which specifies values for our pronouns (free variables) Assignment functions allows us to define satisfaction for any formula.

Interpretation of Terms Let M = (D, F ) be a model g be an assignment of values to variables in M τ be a term Then by the interpretation of τ with respect to M and g is meant: F (τ ) if τ is a constant g(τ ) if τ is a variable We denote the interpretation of τ by I g F (τ ).

Satisfaction Definition M, g |= R(τ1, · · ·, τn ) iff (I(τ1 ), · · ·, I(τn )) ∈ F(R) M, g |= τ1 = τ2 iff I(τ1 ) = I(τ2 ) M, g |= ¬φ iff not M, g |= φ M, g |= φ ∧ ψ iff M, g |= φ and M, g |= ψ M, g |= φ ∨ ψ iff M, g |= φ or M, g |= ψ M, g |= φ → ψ iff not M, g |= φ or M, g |= ψ M, g |= ∃ xφ iff M, gφ, for some x-variant gM, g |= ∀ xφ iff M, gφ, for all x-variants g

What Does this Buy Us? Fundamental inferential concepts –Consistency –Validity (or Noninformativity) Framework for natural language semantics Precise and intuitively appealing accounts of what these concepts actually are.

Consistency A formula is consistent if it is satisfied in at least one model. So consistent formulas describe conceivable or possible states of affairs. For example, robber(mia) is consistent. A formula that is not consistent is called inconsistent. So inconsistent describes inconceivable or impossible states of affairs: robber(mia) ∧ ¬ robber(mia) is inconsistent. ・

Consistency of a Set of Formulas A finite set of formulas {φ1,..., φn } is consistent if φ1 ∧... ∧ φn is consistent. A finite set of formulas that is not consistent is called inconsistent.

Validity A valid (or uninformative) formula is a formula that is satisfied in all models (under any variable assignment) for example: robber(mia) ∨ ¬robber(mia)). A formula that is not valid is called invalid (or informative).

Validity The notation |= φ means that φ is a valid formula. The notation |/=φ means that φ is not a valid formula. That is, it means that there is at least one model in which φ is false, or to put it another way, at least one model in which ¬φ is true.

Validity of an Argument Suppose φ1,..., φn, and ψ are a finite collection of first-order sentences. The argument with premises φ1,..., φn and conclusion ψ is a valid argument if whenever all the premises are true in some model, the conclusion is true in that model also. The notation φ1,..., φn |= ψ is used to indicate a valid argument. The notation φ1,..., φn |/= ψ is used to indicate a invalid argument.

Deduction Theorem Suppose φ1,..., φn, and ψ is a finite collection of first-order sentences. Then: φ1,..., φn |= ψ iff |= φ1 ∧... ∧ φn → ψ DT shows that the notions of formula validity and argument validity are intimately interrelated. DT says that an argument is valid iff the given sentence is valid.

Informativity/Validity φ is informative (that is, not valid) if and only if ¬φ is consistent. That is, informativity means the opposite really was an option. φ is uninformative (that is, valid) if and only if ¬φ is inconsistent. That is, uninformativity means that the opposite simply was not an option.

The Programme LOGIC MODEL LANGUAGE WORLD

Conclusion We have a map and a method Much work in formal semantics can be seen as filling in aspects of this diagram Computational semantics can be seen as giving the diagram computational content.