More Theories, Formal semantics - Univerzita...

56
More Theories Formal Semantics A Logical Grammar More Theories, Formal semantics Jirka Hana Parts are based on slides by Carl Pollard Charles University, 2011-11-12 Jirka Hana More Theories, Formal semantics

Transcript of More Theories, Formal semantics - Univerzita...

Page 1: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

More Theories, Formal semantics

Jirka Hana

Parts are based on slides by Carl Pollard

Charles University, 2011-11-12

Jirka Hana More Theories, Formal semantics

Page 2: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Optimality Theory

Universal set of violable constraints:

Faithfulness constraints:surface forms should be as close asto underlying formsMarkedness constraints: work on output (along the lines:CV structure is preferred, voiceless final sounds arepreferred)

Language differ in constraint rankings

Language acquisition = discovering the ranking

Mostly in phonology

Jirka Hana More Theories, Formal semantics

Page 3: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

HPSG

The most widely used grammar framework incomputational linguistics

Fully formalized

Model theoretic approach

Objects: Typed feature structures - directed graph withlabeled edges and nodes

Grammar: set of constraints (a la Prolog + types +negation)

Constraints can be expressed as AVMs

Jirka Hana More Theories, Formal semantics

Page 4: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Expression, Meaning, and Reference

Following Frege (1892), semanticists distinguish betweenthe meaning (or sense) of a linguistic expression and itsreference (or denotation).

We say an expression expresses its meaning, and refersto, or denotes, its reference.

In general, the reference of an expression can becontingent (depend on how things are), while the meaningis independent of how things are (examples coming soon).

Note: Here, we are ignoring the distinction between anexpression and an utterance of an expression.

Jirka Hana More Theories, Formal semantics

Page 5: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Expression, Meaning, and Reference

Following Frege (1892), semanticists distinguish betweenthe meaning (or sense) of a linguistic expression and itsreference (or denotation).

We say an expression expresses its meaning, and refersto, or denotes, its reference.

In general, the reference of an expression can becontingent (depend on how things are), while the meaningis independent of how things are (examples coming soon).

Note: Here, we are ignoring the distinction between anexpression and an utterance of an expression.

Jirka Hana More Theories, Formal semantics

Page 6: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Expression, Meaning, and Reference

Following Frege (1892), semanticists distinguish betweenthe meaning (or sense) of a linguistic expression and itsreference (or denotation).

We say an expression expresses its meaning, and refersto, or denotes, its reference.

In general, the reference of an expression can becontingent (depend on how things are), while the meaningis independent of how things are (examples coming soon).

Note: Here, we are ignoring the distinction between anexpression and an utterance of an expression.

Jirka Hana More Theories, Formal semantics

Page 7: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Expression, Meaning, and Reference

Following Frege (1892), semanticists distinguish betweenthe meaning (or sense) of a linguistic expression and itsreference (or denotation).

We say an expression expresses its meaning, and refersto, or denotes, its reference.

In general, the reference of an expression can becontingent (depend on how things are), while the meaningis independent of how things are (examples coming soon).

Note: Here, we are ignoring the distinction between anexpression and an utterance of an expression.

Jirka Hana More Theories, Formal semantics

Page 8: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Examples

The meaning of a declarative sentence is a proposition,while its reference is the truth value of that proposition.

The meaning of a common noun (e.g. donkey) or anintransitive verb (e.g. brays), is a property, while itsreference is the set of things that have that property.

Names are controversial! Vastly oversimplifying:

Descriptivism (Frege, Russell) the meaning of a name is adescription associated with the name by speakers; thereference is what satisfies the description.Direct Reference Theory (Mill, Kripke) the meaning ofa name is its reference, so names are rigid (their referenceis independent of how things are.)

Jirka Hana More Theories, Formal semantics

Page 9: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Examples

The meaning of a declarative sentence is a proposition,while its reference is the truth value of that proposition.

The meaning of a common noun (e.g. donkey) or anintransitive verb (e.g. brays), is a property, while itsreference is the set of things that have that property.

Names are controversial! Vastly oversimplifying:

Descriptivism (Frege, Russell) the meaning of a name is adescription associated with the name by speakers; thereference is what satisfies the description.Direct Reference Theory (Mill, Kripke) the meaning ofa name is its reference, so names are rigid (their referenceis independent of how things are.)

Jirka Hana More Theories, Formal semantics

Page 10: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Examples

The meaning of a declarative sentence is a proposition,while its reference is the truth value of that proposition.

The meaning of a common noun (e.g. donkey) or anintransitive verb (e.g. brays), is a property, while itsreference is the set of things that have that property.

Names are controversial! Vastly oversimplifying:

Descriptivism (Frege, Russell) the meaning of a name is adescription associated with the name by speakers; thereference is what satisfies the description.

Direct Reference Theory (Mill, Kripke) the meaning ofa name is its reference, so names are rigid (their referenceis independent of how things are.)

Jirka Hana More Theories, Formal semantics

Page 11: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Examples

The meaning of a declarative sentence is a proposition,while its reference is the truth value of that proposition.

The meaning of a common noun (e.g. donkey) or anintransitive verb (e.g. brays), is a property, while itsreference is the set of things that have that property.

Names are controversial! Vastly oversimplifying:

Descriptivism (Frege, Russell) the meaning of a name is adescription associated with the name by speakers; thereference is what satisfies the description.Direct Reference Theory (Mill, Kripke) the meaning ofa name is its reference, so names are rigid (their referenceis independent of how things are.)

Jirka Hana More Theories, Formal semantics

Page 12: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Grammar and Meaning

The grammar of a language specifies meanings ofexpressions.

Grammar says nothing about reference.

Jirka Hana More Theories, Formal semantics

Page 13: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Grammar and Meaning

The grammar of a language specifies meanings ofexpressions.

Grammar says nothing about reference.

Jirka Hana More Theories, Formal semantics

Page 14: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Compositionality

The Principle of Compositionality: The meaning of anexpression is a function of the meanings of its parts and of theway they are syntactically combined.

A grammar specifies

the meaning of words (or morphemes)

how to derive a meaning of a complex expression from itscomponents

Jirka Hana More Theories, Formal semantics

Page 15: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Compositionality

The Principle of Compositionality: The meaning of anexpression is a function of the meanings of its parts and of theway they are syntactically combined.

A grammar specifies

the meaning of words (or morphemes)

how to derive a meaning of a complex expression from itscomponents

Jirka Hana More Theories, Formal semantics

Page 16: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Entailment

John ate a cake.

A cake was eaten.

There was a cake.

Entailment: φ |= ψ iff (if φ is true then ψ must be true)

Jirka Hana More Theories, Formal semantics

Page 17: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Entailment

John ate a cake.

A cake was eaten.

There was a cake.

Entailment: φ |= ψ iff (if φ is true then ψ must be true)

Jirka Hana More Theories, Formal semantics

Page 18: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

A Theory of Meanings and Extensions

Our theory will use the following sets as building blocks:

Prop The propositions (sentence meanings)

Bool The truth values (extensions of propositions)Ind The individuals (meanings of names).World The worlds (ultrafilters of propositions)One The unit set {0}.

It’s conventional to call the member of this set ∗,rather than 0, since the important thing about it isthat it is a singleton and not what its member is.

Jirka Hana More Theories, Formal semantics

Page 19: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

A Theory of Meanings and Extensions

Our theory will use the following sets as building blocks:

Prop The propositions (sentence meanings)Bool The truth values (extensions of propositions)

Ind The individuals (meanings of names).World The worlds (ultrafilters of propositions)One The unit set {0}.

It’s conventional to call the member of this set ∗,rather than 0, since the important thing about it isthat it is a singleton and not what its member is.

Jirka Hana More Theories, Formal semantics

Page 20: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

A Theory of Meanings and Extensions

Our theory will use the following sets as building blocks:

Prop The propositions (sentence meanings)Bool The truth values (extensions of propositions)Ind The individuals (meanings of names).

World The worlds (ultrafilters of propositions)One The unit set {0}.

It’s conventional to call the member of this set ∗,rather than 0, since the important thing about it isthat it is a singleton and not what its member is.

Jirka Hana More Theories, Formal semantics

Page 21: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

A Theory of Meanings and Extensions

Our theory will use the following sets as building blocks:

Prop The propositions (sentence meanings)Bool The truth values (extensions of propositions)Ind The individuals (meanings of names).World The worlds (ultrafilters of propositions)

One The unit set {0}.It’s conventional to call the member of this set ∗,rather than 0, since the important thing about it isthat it is a singleton and not what its member is.

Jirka Hana More Theories, Formal semantics

Page 22: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

A Theory of Meanings and Extensions

Our theory will use the following sets as building blocks:

Prop The propositions (sentence meanings)Bool The truth values (extensions of propositions)Ind The individuals (meanings of names).World The worlds (ultrafilters of propositions)One The unit set {0}.

It’s conventional to call the member of this set ∗,rather than 0, since the important thing about it isthat it is a singleton and not what its member is.

Jirka Hana More Theories, Formal semantics

Page 23: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Propositions

Propositions are primitive notions.

We are agnostic only about their formal nature not abouttheir properties.

Jirka Hana More Theories, Formal semantics

Page 24: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Propositions

Propositions are primitive notions.

We are agnostic only about their formal nature not abouttheir properties.

Jirka Hana More Theories, Formal semantics

Page 25: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

The set of propositions (Prop) forms a pre-lattice:

They are related by entailment:|=: Prop×Prop→ Bool

And the induced equivalence:≡: Prop×Prop→ Bool

Entailment is constrained to be a preorder (i.e., reflexive,transitive, but not antisymmetric)The absence of antisymmetry allows two propositions toentail each other and still be distinct objects. Equalityimplies equivalence but not vice versa.

There are the usual glb/lub, top/bottom, complement,residual operations.

Jirka Hana More Theories, Formal semantics

Page 26: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

The set of propositions (Prop) forms a pre-lattice:

They are related by entailment:|=: Prop×Prop→ Bool

And the induced equivalence:≡: Prop×Prop→ Bool

Entailment is constrained to be a preorder (i.e., reflexive,transitive, but not antisymmetric)The absence of antisymmetry allows two propositions toentail each other and still be distinct objects. Equalityimplies equivalence but not vice versa.

There are the usual glb/lub, top/bottom, complement,residual operations.

Jirka Hana More Theories, Formal semantics

Page 27: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

The set of propositions (Prop) forms a pre-lattice:

They are related by entailment:|=: Prop×Prop→ Bool

And the induced equivalence:≡: Prop×Prop→ Bool

Entailment is constrained to be a preorder (i.e., reflexive,transitive, but not antisymmetric)The absence of antisymmetry allows two propositions toentail each other and still be distinct objects. Equalityimplies equivalence but not vice versa.

There are the usual glb/lub, top/bottom, complement,residual operations.

Jirka Hana More Theories, Formal semantics

Page 28: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

The set of propositions (Prop) forms a pre-lattice:

They are related by entailment:|=: Prop×Prop→ Bool

And the induced equivalence:≡: Prop×Prop→ Bool

Entailment is constrained to be a preorder (i.e., reflexive,transitive, but not antisymmetric)The absence of antisymmetry allows two propositions toentail each other and still be distinct objects. Equalityimplies equivalence but not vice versa.

There are the usual glb/lub, top/bottom, complement,residual operations.

Jirka Hana More Theories, Formal semantics

Page 29: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

The set of propositions (Prop) forms a pre-lattice:

They are related by entailment:|=: Prop×Prop→ Bool

And the induced equivalence:≡: Prop×Prop→ Bool

Entailment is constrained to be a preorder (i.e., reflexive,transitive, but not antisymmetric)The absence of antisymmetry allows two propositions toentail each other and still be distinct objects. Equalityimplies equivalence but not vice versa.

There are the usual glb/lub, top/bottom, complement,residual operations.

Jirka Hana More Theories, Formal semantics

Page 30: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

(Hyper)intensional types

Meaning, the kind of hyperintensional types is defined asfollows:

Prop, Ind,One ∈Meaning.

If A,B ∈Meaning then

A×B ∈Meaning.A→ B ∈Meaning

Nothing else is a hyperintensional type.

Jirka Hana More Theories, Formal semantics

Page 31: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Examples of word meanings

syntax semantics

proper name Chiquita Chiquita’ : Indcommon noun donkey donkey’:Ind→ Propsentential adverb obviously obvious’:Prop→ Propdummy pronoun itd ∗ ∈ One

It is obvious that . . .

Jirka Hana More Theories, Formal semantics

Page 32: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

References

Meanings can be mapped to extensions (references).

meaning type maps to reference typeInd IndProp BoolProp→ Prop Prop→ Booletc.

meaning referenceChiquita’: Ind Chiquita’: Ind∗ : One ∗ : Onedonkey’ : Ind→ Prop f : Ind→ Bool; f(i)⇔ (i is a donkey)obviously : Prop→ Prop g : Prop→ Bool; g(p)⇔ (p is obvious)

Jirka Hana More Theories, Formal semantics

Page 33: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

References

Meanings can be mapped to extensions (references).

meaning type maps to reference typeInd IndProp BoolProp→ Prop Prop→ Booletc.

meaning referenceChiquita’: Ind Chiquita’: Ind∗ : One ∗ : Onedonkey’ : Ind→ Prop f : Ind→ Bool; f(i)⇔ (i is a donkey)obviously : Prop→ Prop g : Prop→ Bool; g(p)⇔ (p is obvious)

Jirka Hana More Theories, Formal semantics

Page 34: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

References

Meanings can be mapped to extensions (references).

meaning type maps to reference typeInd IndProp BoolProp→ Prop Prop→ Booletc.

meaning referenceChiquita’: Ind Chiquita’: Ind∗ : One ∗ : Onedonkey’ : Ind→ Prop f : Ind→ Bool; f(i)⇔ (i is a donkey)obviously : Prop→ Prop g : Prop→ Bool; g(p)⇔ (p is obvious)

Jirka Hana More Theories, Formal semantics

Page 35: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Categorial Grammar

logical formalism, several implications (usually written as /and \)small number of language independent rules (e.g., modusponens = function application), the rest of grammar is inthe lexicon (radical lexicalism)

syntactic structure is an equivalence set of proofs

Usually, surface form and semantics are derived in parallel.

Jirka Hana More Theories, Formal semantics

Page 36: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Categorial Grammar

we can say that verbs are functions taking noun phrases astheir arguments

john:NP sleeps:NP\Sjohn sleeps:S

application

If there is an object john of type NP and an object sleepsof type NP\S then there is an object john sleeps of type S.Note that john sleeps is a syntactical object, not the actualsurface form. We could have written x123 for john.

Jirka Hana More Theories, Formal semantics

Page 37: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Recall

currying – transformation of a function with multipleparameters into a function taking a single argument (the first ofthe arguments of the original function) and returning a newfunction which takes the remainder of the arguments.

uncurried curriedplus : (Int× Int)→ Int plus’ : Int→ (Int→ Int)plus(3, 4) plus’(3)(4)

inc = plus’(1)

Jirka Hana More Theories, Formal semantics

Page 38: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Recall

currying – transformation of a function with multipleparameters into a function taking a single argument (the first ofthe arguments of the original function) and returning a newfunction which takes the remainder of the arguments.

uncurried curriedplus : (Int× Int)→ Int plus’ : Int→ (Int→ Int)plus(3, 4) plus’(3)(4)

inc = plus’(1)

Jirka Hana More Theories, Formal semantics

Page 39: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

Recall

currying – transformation of a function with multipleparameters into a function taking a single argument (the first ofthe arguments of the original function) and returning a newfunction which takes the remainder of the arguments.

uncurried curriedplus : (Int× Int)→ Int plus’ : Int→ (Int→ Int)plus(3, 4) plus’(3)(4)

inc = plus’(1)

Jirka Hana More Theories, Formal semantics

Page 40: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

All together now

Words, phrases and sentences are modeled as signs.

Signs are the combinations of phonological, syntactic, andsemantic objects that makes sense.

The phonological component of a sign is the pronunciationof the syntactic component and the semantic component isthe meaning of it.

The type Sign is a subtype of the following tuple type phon Phon∗

syn Synsem Meaning

Syn is the kind of syntactic types, i.e., set of basic types(NP, N, S, . . . ) closed under syntactic constructors (×,⇒, . . . ).

Jirka Hana More Theories, Formal semantics

Page 41: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

All together now – Lexicon

Lexicon consists of axioms of the form:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

In abbreviated form:[boI]: Phon∗ boy: N boy’: Ind⇒ Prop[sno:rz]: Phon∗ snores: NP⇒ S snore’: Ind⇒ Prop[sli:ps]: Phon∗ sleeps: NP⇒ S sleep’: Ind⇒ Prop[laUdlI]: Phon∗ loudly: VP⇒ VP loud’: (Ind⇒ Prop)⇒ (Ind⇒ Prop)[EvrI]: Phon∗ every: N⇒ NP every’ = λq, p.λx.(q(x)⇒ p(x)) :

(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop[ænd]: Phon∗ and: ∀A.A×A⇒ A and’: ∀A.A×A⇒ A

Jirka Hana More Theories, Formal semantics

Page 42: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

All together now – Lexicon

Lexicon consists of axioms of the form:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

In abbreviated form:[boI]: Phon∗ boy: N boy’: Ind⇒ Prop

[sno:rz]: Phon∗ snores: NP⇒ S snore’: Ind⇒ Prop[sli:ps]: Phon∗ sleeps: NP⇒ S sleep’: Ind⇒ Prop[laUdlI]: Phon∗ loudly: VP⇒ VP loud’: (Ind⇒ Prop)⇒ (Ind⇒ Prop)[EvrI]: Phon∗ every: N⇒ NP every’ = λq, p.λx.(q(x)⇒ p(x)) :

(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop[ænd]: Phon∗ and: ∀A.A×A⇒ A and’: ∀A.A×A⇒ A

Jirka Hana More Theories, Formal semantics

Page 43: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

All together now – Lexicon

Lexicon consists of axioms of the form:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

In abbreviated form:[boI]: Phon∗ boy: N boy’: Ind⇒ Prop[sno:rz]: Phon∗ snores: NP⇒ S snore’: Ind⇒ Prop[sli:ps]: Phon∗ sleeps: NP⇒ S sleep’: Ind⇒ Prop

[laUdlI]: Phon∗ loudly: VP⇒ VP loud’: (Ind⇒ Prop)⇒ (Ind⇒ Prop)[EvrI]: Phon∗ every: N⇒ NP every’ = λq, p.λx.(q(x)⇒ p(x)) :

(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop[ænd]: Phon∗ and: ∀A.A×A⇒ A and’: ∀A.A×A⇒ A

Jirka Hana More Theories, Formal semantics

Page 44: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

All together now – Lexicon

Lexicon consists of axioms of the form:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

In abbreviated form:[boI]: Phon∗ boy: N boy’: Ind⇒ Prop[sno:rz]: Phon∗ snores: NP⇒ S snore’: Ind⇒ Prop[sli:ps]: Phon∗ sleeps: NP⇒ S sleep’: Ind⇒ Prop[laUdlI]: Phon∗ loudly: VP⇒ VP loud’: (Ind⇒ Prop)⇒ (Ind⇒ Prop)

[EvrI]: Phon∗ every: N⇒ NP every’ = λq, p.λx.(q(x)⇒ p(x)) :(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop

[ænd]: Phon∗ and: ∀A.A×A⇒ A and’: ∀A.A×A⇒ A

Jirka Hana More Theories, Formal semantics

Page 45: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

All together now – Lexicon

Lexicon consists of axioms of the form:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

In abbreviated form:[boI]: Phon∗ boy: N boy’: Ind⇒ Prop[sno:rz]: Phon∗ snores: NP⇒ S snore’: Ind⇒ Prop[sli:ps]: Phon∗ sleeps: NP⇒ S sleep’: Ind⇒ Prop[laUdlI]: Phon∗ loudly: VP⇒ VP loud’: (Ind⇒ Prop)⇒ (Ind⇒ Prop)[EvrI]: Phon∗ every: N⇒ NP every’ = λq, p.λx.(q(x)⇒ p(x)) :

(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop

[ænd]: Phon∗ and: ∀A.A×A⇒ A and’: ∀A.A×A⇒ A

Jirka Hana More Theories, Formal semantics

Page 46: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

All together now – Lexicon

Lexicon consists of axioms of the form:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

In abbreviated form:[boI]: Phon∗ boy: N boy’: Ind⇒ Prop[sno:rz]: Phon∗ snores: NP⇒ S snore’: Ind⇒ Prop[sli:ps]: Phon∗ sleeps: NP⇒ S sleep’: Ind⇒ Prop[laUdlI]: Phon∗ loudly: VP⇒ VP loud’: (Ind⇒ Prop)⇒ (Ind⇒ Prop)[EvrI]: Phon∗ every: N⇒ NP every’ = λq, p.λx.(q(x)⇒ p(x)) :

(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop[ænd]: Phon∗ and: ∀A.A×A⇒ A and’: ∀A.A×A⇒ A

Jirka Hana More Theories, Formal semantics

Page 47: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

All together now – Grammar

function application in syntax corresponds to:

function application in semanticsconcatenation in phonology

Possibly other rules in individual sub-grammars. Forexample, phonotactic constraints in phonology.

Jirka Hana More Theories, Formal semantics

Page 48: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

every boy:

Relevant lexicon:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

`

phon [EvrI] : Phon∗

syn every : N⇒ NPsem every′ = λq, p.λx.(q(x)⇒ p(x)) :(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop

`

phon [EvrI boI] : Phon∗

syn every(boy) : NPsem every’(boy’) : (Ind⇒ Prop)⇒ Prop

every’(boy’) =

[λq, p . λx.(q(x)⇒ p(x))](λx . boy’(x))λp . λx(boy’(x)⇒ p(x))

Jirka Hana More Theories, Formal semantics

Page 49: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

every boy:

Relevant lexicon:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

`

phon [EvrI] : Phon∗

syn every : N⇒ NPsem every′ = λq, p.λx.(q(x)⇒ p(x)) :(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop

`

phon [EvrI boI] : Phon∗

syn every(boy) : NPsem every’(boy’) : (Ind⇒ Prop)⇒ Prop

every’(boy’) =

[λq, p . λx.(q(x)⇒ p(x))](λx . boy’(x))λp . λx(boy’(x)⇒ p(x))

Jirka Hana More Theories, Formal semantics

Page 50: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

every boy:

Relevant lexicon:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

`

phon [EvrI] : Phon∗

syn every : N⇒ NPsem every′ = λq, p.λx.(q(x)⇒ p(x)) :(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop

`

phon [EvrI boI] : Phon∗

syn every(boy) : NPsem every’(boy’) : (Ind⇒ Prop)⇒ Prop

every’(boy’) =[λq, p . λx.(q(x)⇒ p(x))](λx . boy’(x))λp . λx(boy’(x)⇒ p(x))

Jirka Hana More Theories, Formal semantics

Page 51: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

every boy:

Relevant lexicon:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

`

phon [EvrI] : Phon∗

syn every : N⇒ NPsem every′ = λq, p.λx.(q(x)⇒ p(x)) :(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop

`

phon [EvrI boI] : Phon∗

syn every(boy) : NPsem every’(boy’) : (Ind⇒ Prop)⇒ Prop

every’(boy’) =

[λq, p . λx.(q(x)⇒ p(x))](λx . boy’(x))

λp . λx(boy’(x)⇒ p(x))

Jirka Hana More Theories, Formal semantics

Page 52: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

every boy:

Relevant lexicon:

`

phon [boI] : Phon∗

syn boy : Nsem boy′ : Ind⇒ Prop

`

phon [EvrI] : Phon∗

syn every : N⇒ NPsem every′ = λq, p.λx.(q(x)⇒ p(x)) :(Ind⇒ Prop)× (Ind⇒ Prop)⇒ Prop

`

phon [EvrI boI] : Phon∗

syn every(boy) : NPsem every’(boy’) : (Ind⇒ Prop)⇒ Prop

every’(boy’) =

[λq, p . λx.(q(x)⇒ p(x))](λx . boy’(x))λp . λx(boy’(x)⇒ p(x))

Jirka Hana More Theories, Formal semantics

Page 53: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

every boy sleeps and snores loudly

`

phon [EvrI boI sli:ps ænd sno:rz laUdlI] : Phon∗

syn and(sleeps, loud(snore))(every(boy)) : Ssem and’(sleep’, loud’(snore’))(every’(boy’)) : Prop

and’(sleep’, loud’(snore’))(every’(boy’)) =

[λp.λx(boy’(x)⇒ p(x))](λs.and’(sleep’, loudly’(snore’))(s)) =

λx.(boy’(x)⇒ and’(sleep’, loud’(snore’))(x))

Jirka Hana More Theories, Formal semantics

Page 54: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

every boy sleeps and snores loudly

`

phon [EvrI boI sli:ps ænd sno:rz laUdlI] : Phon∗

syn and(sleeps, loud(snore))(every(boy)) : Ssem and’(sleep’, loud’(snore’))(every’(boy’)) : Prop

and’(sleep’, loud’(snore’))(every’(boy’)) =[λp.λx(boy’(x)⇒ p(x))](λs.and’(sleep’, loudly’(snore’))(s)) =

λx.(boy’(x)⇒ and’(sleep’, loud’(snore’))(x))

Jirka Hana More Theories, Formal semantics

Page 55: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

every boy sleeps and snores loudly

`

phon [EvrI boI sli:ps ænd sno:rz laUdlI] : Phon∗

syn and(sleeps, loud(snore))(every(boy)) : Ssem and’(sleep’, loud’(snore’))(every’(boy’)) : Prop

and’(sleep’, loud’(snore’))(every’(boy’)) =

[λp.λx(boy’(x)⇒ p(x))](λs.and’(sleep’, loudly’(snore’))(s)) =

λx.(boy’(x)⇒ and’(sleep’, loud’(snore’))(x))

Jirka Hana More Theories, Formal semantics

Page 56: More Theories, Formal semantics - Univerzita Karlovaufal.mff.cuni.cz/~hana/teaching/ling1/07-semantics... · 2018-12-08 · More Theories Formal Semantics A Logical Grammar Expression,

More TheoriesFormal Semantics

A Logical Grammar

every boy sleeps and snores loudly

`

phon [EvrI boI sli:ps ænd sno:rz laUdlI] : Phon∗

syn and(sleeps, loud(snore))(every(boy)) : Ssem and’(sleep’, loud’(snore’))(every’(boy’)) : Prop

and’(sleep’, loud’(snore’))(every’(boy’)) =

[λp.λx(boy’(x)⇒ p(x))](λs.and’(sleep’, loudly’(snore’))(s)) =

λx.(boy’(x)⇒ and’(sleep’, loud’(snore’))(x))

Jirka Hana More Theories, Formal semantics