Computational Semantics Computational semantics Logic First-Order - - PowerPoint PPT Presentation

computational semantics
SMART_READER_LITE
LIVE PREVIEW

Computational Semantics Computational semantics Logic First-Order - - PowerPoint PPT Presentation

Computational Semantics Scott Farrar CLMA, University of Washington far- rar@u.washington.edu Computational Semantics Computational semantics Logic First-Order Scott Farrar Predicate logic CLMA, University of Washington


slide-1
SLIDE 1

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Computational Semantics

Scott Farrar CLMA, University of Washington farrar@u.washington.edu February 12, 2010

1/27

slide-2
SLIDE 2

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Today’s lecture

1

Computational semantics

2

Logic

3

First-Order Predicate logic

2/27

slide-3
SLIDE 3

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Definition

Computational semantics refers to the task whereby the meanings of natural language utterances are automatically computed and manipulated according to some logical system.

3/27

slide-4
SLIDE 4

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Definition

Computational semantics refers to the task whereby the meanings of natural language utterances are automatically computed and manipulated according to some logical system. Key problem areas in computational semantics:

3/27

slide-5
SLIDE 5

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Definition

Computational semantics refers to the task whereby the meanings of natural language utterances are automatically computed and manipulated according to some logical system. Key problem areas in computational semantics: defining a semantic representation (formalism)

3/27

slide-6
SLIDE 6

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Definition

Computational semantics refers to the task whereby the meanings of natural language utterances are automatically computed and manipulated according to some logical system. Key problem areas in computational semantics: defining a semantic representation (formalism) defining algorithms for deriving semantics representations from NL input (semantic analysis)

3/27

slide-7
SLIDE 7

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Definition

Computational semantics refers to the task whereby the meanings of natural language utterances are automatically computed and manipulated according to some logical system. Key problem areas in computational semantics: defining a semantic representation (formalism) defining algorithms for deriving semantics representations from NL input (semantic analysis) defining procedures for performing inferences using those representations (automated inferencing, reasoning)

3/27

slide-8
SLIDE 8

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Definition

Computational semantics refers to the task whereby the meanings of natural language utterances are automatically computed and manipulated according to some logical system. Key problem areas in computational semantics: defining a semantic representation (formalism) defining algorithms for deriving semantics representations from NL input (semantic analysis) defining procedures for performing inferences using those representations (automated inferencing, reasoning) Much overlap with artificial intelligence (AI) research (e.g., SHRDLU, KL-ONE, STRIPS). The task of robust semantic analysis is seen as an AI-complete problem.

3/27

slide-9
SLIDE 9

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

Definition

A semantic representation is an unambiguous expression into which natural language strings are transformed for the purposes of analyzing the meaning of natural language. A good representation language for NLP should be:

4/27

slide-10
SLIDE 10

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

Definition

A semantic representation is an unambiguous expression into which natural language strings are transformed for the purposes of analyzing the meaning of natural language. A good representation language for NLP should be: unambiguous (many to one mapping) Even controlled languages are usually ambiguous: CO attaches to hemoglobin in mammals.

4/27

slide-11
SLIDE 11

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

Definition

A semantic representation is an unambiguous expression into which natural language strings are transformed for the purposes of analyzing the meaning of natural language. A good representation language for NLP should be: unambiguous (many to one mapping) Even controlled languages are usually ambiguous: CO attaches to hemoglobin in mammals. representationally adequate, or expressive enough to handle all natural language phenomena: speaker intention, evidentiality, tense, aspect, coordination, etc.

4/27

slide-12
SLIDE 12

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

Definition

A semantic representation is an unambiguous expression into which natural language strings are transformed for the purposes of analyzing the meaning of natural language. A good representation language for NLP should be: unambiguous (many to one mapping) Even controlled languages are usually ambiguous: CO attaches to hemoglobin in mammals. representationally adequate, or expressive enough to handle all natural language phenomena: speaker intention, evidentiality, tense, aspect, coordination, etc. compatible with natural language (naturalness), but still allow efficient semantic analysis Units of syntax should map onto units of semantic rep. in a straightforward manner.

4/27

slide-13
SLIDE 13

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

A good reasoning procedure for some representation language for NLP should be:

5/27

slide-14
SLIDE 14

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

A good reasoning procedure for some representation language for NLP should be: inferentially adequate, or able to facilitate the kind of reasoning necessary for comp. linguistics The bus almost collided with the small car. The driver looked drunk. (bus driver, car driver?)

5/27

slide-15
SLIDE 15

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

A good reasoning procedure for some representation language for NLP should be: inferentially adequate, or able to facilitate the kind of reasoning necessary for comp. linguistics The bus almost collided with the small car. The driver looked drunk. (bus driver, car driver?) sound: new knowledge actually follows from old knowledge, and is not simply created on the fly (truth preserving)

5/27

slide-16
SLIDE 16

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

A good reasoning procedure for some representation language for NLP should be: inferentially adequate, or able to facilitate the kind of reasoning necessary for comp. linguistics The bus almost collided with the small car. The driver looked drunk. (bus driver, car driver?) sound: new knowledge actually follows from old knowledge, and is not simply created on the fly (truth preserving) complete: each and every correct inference can be made (more difficult to achieve than soundness) incomplete reasoning is still useful

5/27

slide-17
SLIDE 17

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

A good reasoning procedure for some representation language for NLP should be: inferentially adequate, or able to facilitate the kind of reasoning necessary for comp. linguistics The bus almost collided with the small car. The driver looked drunk. (bus driver, car driver?) sound: new knowledge actually follows from old knowledge, and is not simply created on the fly (truth preserving) complete: each and every correct inference can be made (more difficult to achieve than soundness) incomplete reasoning is still useful tractable, or be able to make inferences in a reasonable amount of time.

5/27

slide-18
SLIDE 18

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Semantic representation language

A good reasoning procedure for some representation language for NLP should be: inferentially adequate, or able to facilitate the kind of reasoning necessary for comp. linguistics The bus almost collided with the small car. The driver looked drunk. (bus driver, car driver?) sound: new knowledge actually follows from old knowledge, and is not simply created on the fly (truth preserving) complete: each and every correct inference can be made (more difficult to achieve than soundness) incomplete reasoning is still useful tractable, or be able to make inferences in a reasonable amount of time. There is always a trade-off between inferential adequacy and tractability (FOL is intractable).

5/27

slide-19
SLIDE 19

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Today’s lecture

1

Computational semantics

2

Logic

3

First-Order Predicate logic

6/27

slide-20
SLIDE 20

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Logic

Definition

A logic is an unambiguous formal language with:

7/27

slide-21
SLIDE 21

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Logic

Definition

A logic is an unambiguous formal language with: a well defined syntax,

7/27

slide-22
SLIDE 22

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Logic

Definition

A logic is an unambiguous formal language with: a well defined syntax, a precisely defined semantics that defines what the formulas mean,

7/27

slide-23
SLIDE 23

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Logic

Definition

A logic is an unambiguous formal language with: a well defined syntax, a precisely defined semantics that defines what the formulas mean, and an accompanying proof theory whereby formulas are manipulated according to certain rules.

7/27

slide-24
SLIDE 24

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Logic

Definition

A logic is an unambiguous formal language with: a well defined syntax, a precisely defined semantics that defines what the formulas mean, and an accompanying proof theory whereby formulas are manipulated according to certain rules. Logics are often used to study valid reasoning and the properties of rational thought.

7/27

slide-25
SLIDE 25

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Review for this lecture

Chap 1 of ForAllX

You should have a grasp of this material: logical sentence validity of logical arguments truth values logical truth

8/27

slide-26
SLIDE 26

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Review for this lecture

Chap 2,3 of ForAllX

You should have a grasp of this material: formal language Sentential Logical logical connectives of sentential logical how to write sentential logical forms for simple English sentences wff truth tables for logical connectives logical equivalence, tautology, contradiction, consistency, validity,

9/27

slide-27
SLIDE 27

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Sentential logical

Sentential logic is a logic in which the smallest (atomic) units are sentences themselves: John knows Jill. Jill knows Sue. John knows Sue. A → B A ∧ B A ∨ C

10/27

slide-28
SLIDE 28

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Today’s lecture

1

Computational semantics

2

Logic

3

First-Order Predicate logic

11/27

slide-29
SLIDE 29

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantified logic

FOPL

First-Order Predicate Logic (FOPL) refers to a family of logics.

QL

Let’s start with a simple version of one such logic, called QL for quantified logic (see ForAllX chap 4).

12/27

slide-30
SLIDE 30

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Universe of Discourse

Definition

The universe of discourse is the world that a formal logic refers to: individuals, properties, relations, etc.

13/27

slide-31
SLIDE 31

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Universe of Discourse

Definition

The universe of discourse is the world that a formal logic refers to: individuals, properties, relations, etc.

UD

Sam, Houston, Sue, Moe, ‘being tired’, ‘jumping’, ‘breaking’, ‘knowing the answer’, etc.

13/27

slide-32
SLIDE 32

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Universe of Discourse

Definition

The universe of discourse is the world that a formal logic refers to: individuals, properties, relations, etc.

UD

Sam, Houston, Sue, Moe, ‘being tired’, ‘jumping’, ‘breaking’, ‘knowing the answer’, etc.

UD for NL

In NL the universe of discourse is essentially everything that we can talk about (the world and our experiences). In formal logic, we usually restrict UD to be some well-definted subset

  • f the “everything we can talk about”: the world of physical
  • bjects and spatial relations, people and kinship relations,

etc..

13/27

slide-33
SLIDE 33

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Components of QL

QL

constants variables predicates quantifiers wff’s

14/27

slide-34
SLIDE 34

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Constant terms

Definition

A constant symbolizes an indivual entity within the UD. In fact, it must pick out one and only one member of the UD. In NL, a singular term refers to specific element of our UD, which can be of the form proper name or definite description.

proper names

  • Dr. Phil

Diane Saywer Hamburg

15/27

slide-35
SLIDE 35

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Constant terms

Definition

A constant symbolizes an indivual entity within the UD. In fact, it must pick out one and only one member of the UD. In NL, a singular term refers to specific element of our UD, which can be of the form proper name or definite description.

proper names

  • Dr. Phil DOCPHIL

Diane Saywer DIANE Hamburg HAMBURG

15/27

slide-36
SLIDE 36

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Constant terms

definite description

the depot that cat the largest continent

16/27

slide-37
SLIDE 37

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Constant terms

definite description

the depot LOCX1 that cat BILL the largest continent ASIA

16/27

slide-38
SLIDE 38

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Constant terms

Of course not all phrases with definite determiners denote a single entity in the UD:

17/27

slide-39
SLIDE 39

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Constant terms

Of course not all phrases with definite determiners denote a single entity in the UD: the elephants (plural)

17/27

slide-40
SLIDE 40

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Constant terms

Of course not all phrases with definite determiners denote a single entity in the UD: the elephants (plural) the wolf is a stealthy animal (generic)

17/27

slide-41
SLIDE 41

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Constant terms

Of course not all phrases with definite determiners denote a single entity in the UD: the elephants (plural) the wolf is a stealthy animal (generic) My roommate just bought a laborador. Those laboradors make great pets. (generic)

17/27

slide-42
SLIDE 42

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Variables

Definition

We can use variables to stand in for constant symbols: x, y, z Taken together, variables and contants (and functions) compose the set of terms in the logic.

18/27

slide-43
SLIDE 43

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Predicates

Definition

The simplest kind of predicate is a property of an individual: tired(DIANE) mean(BILL) tall(EVEREST)

19/27

slide-44
SLIDE 44

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Predicates

Definition

The simplest kind of predicate is a property of an individual: tired(DIANE) mean(BILL) tall(EVEREST) Predicates can also represent relations: know(SAM, DIANE) bit(BILL, SAM) climbed(BILL, EVEREST)

19/27

slide-45
SLIDE 45

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Predicates

A predicate may apply to some, all, or no members of the UD. jumps(x) may not apply to any individual in UD. If that is the case, then given UD = {DIANE, BILL, EVEREST} jump(DIANE) = False jump(BILL) = False jump(EVEREST) = False

20/27

slide-46
SLIDE 46

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Logical operators

Definition

The logical vocabulary (operators or connectives) are the “closed class” elements of FOL—the function words.

21/27

slide-47
SLIDE 47

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Logical operators

Definition

The logical vocabulary (operators or connectives) are the “closed class” elements of FOL—the function words. Jill runs and Jack falls. run(JILL) ∧ fall(JACK) Jill is a woman or Jill is not a woman. woman(JILL) ∨ ¬woman(JILL)

21/27

slide-48
SLIDE 48

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Logical operators

Definition

The logical vocabulary (operators or connectives) are the “closed class” elements of FOL—the function words. Jill runs and Jack falls. run(JILL) ∧ fall(JACK) Jill is a woman or Jill is not a woman. woman(JILL) ∨ ¬woman(JILL) Review ForAllX.

21/27

slide-49
SLIDE 49

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers

Definition

Quantifiers are also operators, but they bind variables: they set restrictions on how a variable may be interpreted.

22/27

slide-50
SLIDE 50

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers

Definition

Quantifiers are also operators, but they bind variables: they set restrictions on how a variable may be interpreted. All students are male. ∀x [student(x) → male(x)]

22/27

slide-51
SLIDE 51

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers

Definition

Quantifiers are also operators, but they bind variables: they set restrictions on how a variable may be interpreted. All students are male. ∀x [student(x) → male(x)]

Definition

The universal quantifier formalizes the notion that something may be true for everything (within a particular scope). Basically, ∀x. means something like “for all individuals in the universe of discourse the following holds”.

22/27

slide-52
SLIDE 52

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers

There is a female student. ∃y [student(y) ∧ female(y)]

23/27

slide-53
SLIDE 53

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers

There is a female student. ∃y [student(y) ∧ female(y)]

Definition

The existential quantifier concerns the notion where at least one member of domain is relevant (given a particular scope). Basically, ∃x. means something like “for at least one individual in the universe of discourse the following holds”.

23/27

slide-54
SLIDE 54

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers

There is a female student. ∃y [student(y) ∧ female(y)]

Definition

The existential quantifier concerns the notion where at least one member of domain is relevant (given a particular scope). Basically, ∃x. means something like “for at least one individual in the universe of discourse the following holds”. The symbol ∃ means “at least one”, but sometimes you’ll see ∃! which means exactly one (uniqueness quantification): ∃!x [star(x) ∧ loc(x, SSYST)]

23/27

slide-55
SLIDE 55

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers: General form

QUANTIFIER VARIABLE SCOPE all tigers some tiger all man-eating tigers

Definition

We say that the quantifier binds a given variable in a quantified expression.

24/27

slide-56
SLIDE 56

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers: General form

QUANTIFIER VARIABLE SCOPE all tigers ∀ some tiger ∃ all man-eating tigers ∀

Definition

We say that the quantifier binds a given variable in a quantified expression.

24/27

slide-57
SLIDE 57

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers: General form

QUANTIFIER VARIABLE SCOPE all tigers ∀ t some tiger ∃ t all man-eating tigers ∀ t

Definition

We say that the quantifier binds a given variable in a quantified expression.

24/27

slide-58
SLIDE 58

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers: General form

QUANTIFIER VARIABLE SCOPE all tigers ∀ t tiger(t) some tiger ∃ t tiger(t) all man-eating tigers ∀ t [tiger(t) ∧ maneater(t)]

Definition

We say that the quantifier binds a given variable in a quantified expression.

24/27

slide-59
SLIDE 59

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers: General form

QUANTIFIER VARIABLE SCOPE all tigers ∀ t tiger(t) some tiger ∃ t tiger(t) all man-eating tigers ∀ t [tiger(t) ∧ maneater(t)]

Definition

We say that the quantifier binds a given variable in a quantified expression.

24/27

slide-60
SLIDE 60

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers: General form

QUANTIFIER VARIABLE SCOPE all tigers ∀ t tiger(t) some tiger ∃ t tiger(t) all man-eating tigers ∀ t [tiger(t) ∧ maneater(t)]

Definition

We say that the quantifier binds a given variable in a quantified expression.

24/27

slide-61
SLIDE 61

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Quantifiers: General form

QUANTIFIER VARIABLE SCOPE all tigers ∀ t tiger(t) some tiger ∃ t tiger(t) all man-eating tigers ∀ t [tiger(t) ∧ maneater(t)]

Definition

We say that the quantifier binds a given variable in a quantified expression.

24/27

slide-62
SLIDE 62

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Towards a formal definition of QL

See ForAllX for a formal definition of QL.

25/27

slide-63
SLIDE 63

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

Identity

The equality symbol is used to indicate that two constants are the same in the UD. That is, they are identical.

Example

Hillary is Mrs. Clinton. HILLARY = CLINTON The evening star is Hesperus. EVESTAR = HESPERUS

26/27

slide-64
SLIDE 64

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

A more complex example

The car is red.

∃x [car(x) ∧ ¬∃y [car(y) ∧ x = y] ∧ red(x)] The formula makes three claims:

27/27

slide-65
SLIDE 65

Computational Semantics Scott Farrar CLMA, University

  • f Washington far-

rar@u.washington.edu Computational semantics Logic First-Order Predicate logic

A more complex example

The car is red.

∃x [car(x) ∧ ¬∃y [car(y) ∧ x = y] ∧ red(x)] The formula makes three claims:

1 There is a car. (an existence claim) 2 At most one thing is a car. (a uniqueness claim) 3 This car is red. (a claim of predication) 27/27