Semantics: Difference between revisions

From English Grammar
Jump to navigation Jump to search
Line 96: Line 96:
[[File:Negation and connectivesJPG.JPG | 400px]]
[[File:Negation and connectivesJPG.JPG | 400px]]


=== Examples ==
=== Examples ===





Revision as of 09:49, 18 January 2021

Why do semantics?

  • Expressions of natural languages can contain information about the world, i.e. they have meanings.
  • Speakers and listeners have (reliable) intuitions about this meaning relation:
  • The meaning of the name "Angela Merkel" is the person Angela Merkel.
  • The sentence "Angela Merkel is the first female chancellor of Germany." correctly describes the world (= is true).
  • The sentence "Germany lies in Asia." does not correctly describe the world (is false).
  • Speakers and listeners can infer information from the meanings of sentences:
    • From "Lilly is a cat." it follows that "Lilly is an animal."
    • From "Lilly is as old as Fido." it follows that "Fido is as old as Lilly."
    • From "Lilly is asleep." it follows that "Someone is asleep."

On the other hand:

  • From "Lilly is an animal." it does not follow that "Lilly is a cat."
  • From "Lilly is older than Fido." it does not follow that "Fido is older than as Lilly."
  • From "Someone is asleep." does not follow that "Lilly is asleep."

But: there is the ambiguity problem

Taxi.JPG

(https://examples.yourdictionary.com/reference/examples/examples-of-ambiguity.html)

MouseJPG.JPG

(https://jennirodd.com/tag/ambiguity-resolution/)

Bike.JPG

(https://laptrinhx.com/three-comic-rabbits-for-december-2812179095/)

Further examples:

  • The word "punch" can either refer to a drink or to a boxing movement.
  • Does it then follow from "Ethel's punch was impressive." that "Ethel's drink was impressive."?
  • It depends on the meaning of "punch" whether this follows. Hence: the entailment relationship cannot be a relation between forms. It must be a relationship between forms depending on their meanings.
  • Thus, from "Ethel's punch was impressive." interpreted in such a way that "punch" is a drink, it does follow that "Ethel's drink was impressive."
  • But from "Ethel's punch was impressive." interpreted in such a way that "punch" is a boxing movement, it does not follow that "Ethel's drink was impressive."
  • The sentence "Sherlock saw the man with binoculars." can describe two different situations:
Sherlock.JPG
(https://twitter.com/sritag/status/327236234210582528/photo/1)
  • Thus, from the form "Sherlock saw the man with binoculars." alone it does not follows that that the man had binoculars and it also does not follow that Sherlock had binoculars. As in the first example, we need to know the meaning of the sentence in order to know what follows from it.

The solution: Logic

From Wikipedia:

Logic is the systematic study of valid rules of inference, i.e. the relations that lead to the acceptance of one proposition (the conclusion) on the basis of a set of other propositions (premises).

Logics are designed to differ from natural languages in that they are languages that impose the following crucial reqirement:

Each logical expression has at most a single meaning.
  • Consequence: logical languages do not suffer from the ambiguity problem in entailment that natural languages display.

How to do inferencing with English

  • To every grammatical and meaningful expression of English we assign one or more expressions of a logical language. This process is called translation.
  • To every expression of the logical language we assign one and only one meaning. This process is called interpretation or more precisely interpretation in a model.
PTQ-structure.JPG
  • The interpretation of an expression is called its denotation.
  • The denotations of the translations of an English expressions are (indirectly) also denotations of the English expression.
  • We can now say things like the following:
  • From "Ethel's punch was impressive." where "punch" denotes a drink, it follows that "Ethel's drink was impressive."
  • From "Ethel's punch was impressive." where "punch" denotes a boxing movement, it does not follow that "Ethel's drink was impressive."
  • From "Sherlock saw the man with binoculars." where the denotation of "with binoculars" applies to the denotation of "man", it follows that "The man with with binoculars was seen by Sherlock."
  • From "Sherlock saw the man with binoculars." where the denotation of "with binoculars" applies to the denotation of "saw", it does not follow that "The man with with binoculars was seen by Sherlock."

The language of first order logic

Fpl1-gw.JPG

Extending the language: Connectives

So far, we only have a single rule for forming formulas, namely the rule that makes an atomic formula from an n-place predicate and n names. This language is so constrained that it does not allow us to express many things we would like to express.

For this reason, we now add a new type of rule, namely a rule which takes 1 or 2 formulas and combines them into a new formula. Each rule makes use of the negation symbol or one of four so-called connectives.

We repeat the rule that we already have and then add the new rules:

Atomic formulasJPG.JPG

The new rules:

Negation and connectivesJPG.JPG

Examples

x (cat(x) : ∃y(likes(y, x)) 
 ⊃  ∧ ¬  ∨ ≡ ∀   ∃ æ ⊕ Ø ⇒ Unterstrichen → ⇒ 

The vocabulary that we introduced above and the rule for atomic formulas license the following two atomic formulas:

(1) love2(the-cat,peter)
(2) love2(peter,the-cat)

With the new rules, we can form the following non-atomic formulas (= formulas containing other formulas). Each type of formula is named after the negation or the connective used.

Negated formulas

(3) ¬love2(the-cat,peter)
(4) ¬love2(peter,the-cat)

Note that because (3) and (4) are formulas, the negation rule can apply to them as well, so that (5) and (6) are also well formed formulas:

(5) ¬¬love2(the-cat,peter)
(6) ¬¬love2(peter,the-cat)

As a result, the following is a well formed formula as well:

(7) ¬¬¬¬¬¬love2(the-cat,peter)

By adding the negation rule alone, our grammar of first-order logic now licenses infinitely many well formed formulas!

Notation: besides "¬", the tilde "~" is also often used as the negation symbol.

Conjunctions

The conjunction rule licenses all the following formulas:

(8) (love2(the-cat,peter) ∧ love2(peter,the-cat))
(9) (love2(peter,the-cat) ∧ love2(the-cat,peter))

(8) is called "the conjunction of formulas (1) and (2)". (9) is the conjunction of (2) and (1).

These formulas consist of 5 pieces each. The pieces of (8), for instance, are:

a. the opening parenthesis: (
b. the atomic formula: (love2(the-cat,peter)
c. the conjunction connective: ∧
d. the atomic formula: love2(peter,the-cat). e. the closing parenthesis: )

Important: the opening and closing parentheses are part of the expression. Without them, the expression is not well formed!

Further conjunctions:

(10) ((love2(the-cat,peter) ∧ love2(peter,the-cat)) ∧ (love2(peter,the-cat) ∧ love2(the-cat,peter)))

(10) is the conjunction of (8) and (9).

(11) ¬(love2(the-cat,peter) ∧ love2(peter,the-cat))
(12) ¬(love2(the-cat,peter) ∧ ¬love2(peter,the-cat))
(13) ¬(¬love2(the-cat,peter) ∧ ¬love2(peter,the-cat))


Disjunctions, Implications, and the Equivalence

The three remaining connectives create formulas with the following names:

Disjunction: (love2(the-cat,peter) ∨ love2(peter,the-cat))
Implication: (love2(the-cat,peter) ⊃ love2(peter,the-cat))
Equivalence: (love2(the-cat,peter) &eqiv; love2(peter,the-cat))

Note, again, that the surrounding parenthesis are part of the formula!

The following is a schema of a well formed formula that contains a negation and all four connectives. We use capital letters to represent formulas in order to make the overall formula readable:

(14) ¬(A ∧ (B ∨ (C ⊃ (D ≡ E))))

(14) is the negation of a conjunction of a disjunction of an implication of an equivalence. All other expression in which the negation and the four connectives are mixed are well formed as well, as long as at each step exactly one of the 5 rules for making formulas into formulas are applied.

Parentheses

Study the following expression:

(15) A ∧ B ∨ C

This is not a well formed expression because it contains the connectives ∧ and ∨ but not the parentheses that the rules for these connectives insert into the well formed formulas.

There are two ways to repair (15):

(16) ((A ∧ B) ∨ C)

This is the disjunction of the formulas (A ∧ B) and C.

(17) (A ∧ (B ∨ C))

This is the conjunction of the formulas A and (B ∨ C).

Not only are these formulas syntactically different, they also mean different things, as we will see. The parentheses thus have a disambiguing function and are thus crucial! By this reasoning, there is one case where we are allowed to leave out parentheses, namely when they don't serve the function to disambiguate:

Convention: The outermost parentheses of a non-atomic proposition may be dropped for easier readability.

Techniqually speaking, the resulting expressions are not well formed, but everybody accepts them as useful abbreviations.

Notation: In some systems, the