




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























Philipp Koehn
9 March 2017
3
● PRO: Propositional logic is declarative : pieces of syntax correspond to facts
● PRO: Propositional logic allows partial/disjunctive/negated information (unlike most data structures and databases)
● PRO: Propositional logic is compositional : meaning of B 1 , 1 ∧ P 1 , 2 is derived from meaning of B 1 , 1 and of P 1 , 2
● PRO: Meaning in propositional logic is context-independent (unlike natural language, where meaning depends on context)
● CON: Propositional logic has very limited expressive power (unlike natural language) E.g., cannot say “pits cause breezes in adjacent squares” except by writing one sentence for each square
Language Ontological Epistemological Commitment Commitment
Propositional logic facts true/false/unknown First-order logic facts, objects, relations true/false/unknown Temporal logic facts, objects, relations, times true/false/unknown Probability theory facts degree of belief Fuzzy logic facts + degree of truth known interval value
Higher-order logic: relations and functions operate not only on objects, but also on relations and functions
7
● Atomic sentence = predicate(term 1 ,... , termn) or term 1 = term 2
● Term = f unction(term 1 ,... , termn) or constant or variable
● E.g., Brother(KingJohn, RichardT heLionheart)
(Length(Lef tLegOf (Richard)), Length(Lef tLegOf (KingJohn)))
● Complex sentences are made from atomic sentences using connectives
● For instance
- Sibling(KingJohn, Richard) Ô⇒ Sibling(Richard, KingJohn) - >( 1 , 2 ) ∨ ≤( 1 , 2 ) - >( 1 , 2 ) ∧ ¬>( 1 , 2 )
● Object symbols
- Richard → Richard the Lionheart - John → the evil King John
● Predicat symbol
- Brother → the brotherhood relation
● Atomic sentence
- Brother(Richard, John)
true iff Richard the Lionheart and the evil King John are in the brotherhood relation in the model
● Syntax: ∀ ⟨variables⟩ ⟨sentence⟩
● Everyone at JHU is smart: ∀ x At(x, JHU ) Ô⇒ Smart(x)
● ∀ x P is true in a model m iff P is true with x being each possible object in the model
● Roughly speaking, equivalent to the conjunction of instantiations of P
(At(KingJohn, JHU ) Ô⇒ Smart(KingJohn)) ∧ (At(Richard, JHU ) Ô⇒ Smart(Richard)) ∧ (At(Jane, JHU ) Ô⇒ Smart(Jane)) ∧...
● Typically, Ô⇒ is the main connective with ∀
● Common mistake: using ∧ as the main connective with ∀:
∀ x At(x, JHU ) ∧ Smart(x)
means “Everyone is at JHU and everyone is smart”
● Correct ∀ x At(x, JHU ) Ô⇒ Smart(x)
means “For everyone, if she is at JHU, then she is smart”
● Typically, ∧ is the main connective with ∃
● Common mistake: using Ô⇒ as the main connective with ∃:
∃ x At(x, JHU ) Ô⇒ Smart(x)
is true if there is anyone who is not at JHU
● Correct ∃ x At(x, JHU ) ∧ Smart(x)
is true if there is someone who is at JHU and smart
● ∀ x ∀ y is the same as ∀ y ∀ x (why?)
● ∃ x ∃ y is the same as ∃ y ∃ x (why?)
● ∃ x ∀ y is not the same as ∀ y ∃ x
● ∃ x ∀ y Loves(x, y) “There is a person who loves everyone in the world”
● ∀ y ∃ x Loves(x, y) “Everyone in the world is loved by at least one person”
● Quantifier duality: each can be expressed using the other
● ∀ x Likes(x, IceCream) ¬∃ x ¬Likes(x, IceCream)
● ∃ x Likes(x, Broccoli) ¬∀ x ¬Likes(x, Broccoli)