Title: Going Formal
1Going Formal
2The Language of Propositional Logic
- Syntax (grammar, internal structure of the
language) - Vocabulary grammatical categories
- Identifying Well-Formed Formulae (WFFs)
- Semantics (pertaining to meaning and truth value)
- Translation
- Truth functions
- Truth tables for the connectives
3The Vocabulary of Propositional Logic
- Sentence Letters A, B, Z
- Connectives (Sentence-Forming Operators)
- negation not, it is not the
case that - conjunction and
- ? disjunction or (inclusive)
- ? conditional if then, implies
- ? biconditional if and only if, iff
- Parentheses (, ), , , , and
4Sentence Letters
- Translate atomic sentences
- Atomic sentences have no proper parts that are
themselves sentences - Examples
- It is raining R
- It is cold C
5Sentential Connectives
- Connect to sentences to make new sentences
- Negation attaches to one sentence
- It is not raining R
- Conjunction, disjunction, conditional and
biconditional attach two sentences together - It is raining and it is cold R C
- If it rains then it pours R ? P
6Parentheses, brackets braces
- Ill go to Amsterdam and Brussels or Calais
- This is ambiguous and we cant tolerate
ambiguity!
OR
OR
Calais
7Parentheses, brackets braces
- Grouping devices avoid ambiguity (for unique
readability) - Ill go to Amsterdam, and then to either Brussels
or CalaisA (B ? C) - Ill either go to Amsterdam and Brussels, or else
to Calais(A B) ? C
8Variables p, q,
- Sometimes we want to talk about all sentences of
a given form, e.g. - A ? (B ? C)
- F ? (M ? X)
- (K ? M) ? (N ? ? O) ? P
- So we use variables as place-holders
- Each of the above sentences is of the form
- p ? (q ? r)
9Plugging into variables
ModusPonens
Substitution Instance of Modus Ponens
?
p ? q p q
(D ? (E ? ? F))
((A ? B) ? C)
((A ? B) ? C)
(D ? (E ? ? F))
- Variables are like expandable boxes
- To do proofs in logic you have to see how
sentences plug into those boxes.
10Plugging into variables
ModusPonens
Substitution Instance of Modus Ponens
?
p ? q p q
((A ? B) ? C)
(D ? (E ? ? F))
((A ? B) ? C)
(D ? (E ? ? F))
- Variables are like expandable boxes
- To do proofs in logic you have to see how
sentences plug into those boxes.
11The Grammar of Propositional Logic
- Constructing WFFs (Well-Formed Formulae)
- Identifying WFFs
- Identifying main connectives
12Rules for WFFs
- A sentence letter by itself is a WFF A B Z
- The result of putting ? immediately in front of
a WFF is a WFF ?A ? B ? ? B ?
(A ? B) ? (? C ? D) - The result of putting ? , ? , ? , or ? between
two WFFs and surrounding the whole thing with
parentheses is a WFF (A ? B) (? ? C ? D)
((? ? C ? D) ? (E ? (F ? ? G))) - Outside parentheses may be dropped A ? B ? ?
C ? D (? ? C ? D) ? (E ? (F ? ? G))
13WFFs
- A sentence that can be constructed by applying
the rules for constructing WFFs one at a time is
a WFF - A sentence which can't be so constructed is not a
WFF - No exceptions!!!
woof
14Main Connective
- In constructing a WFF, the connective that goes
in last, which has the whole rest of the sentence
in its scope, is the main connective. - This is the connective which is the furthest
out. - Examples
- (? ? C ? D) ? (E ? (F ? ? G))
- ? (? C ? D)
15Hints When its not a WFF
- You can't have two WFFs next to one another
without a two-sided connective between
them.BAD! AB C ? D (E ? F)G - Two-sided connectives have to have WFFs attached
to both sides.BAD! ? A (B ? C) ? (? D ?
E) G ? ? H - You can't have more than one two-sided connective
at the same levelBAD! A ? B ? C (? ? C ? D) ?
(E ? F ? ? G)
16Identifying WFFs Main Connectives
?
- 1 (S ? ? T) ? (? U ? W)
- 2 ? (K ? L) ? (? G ? H)
- 3 (E ? F) ? (W ? X)
- 4 (B ? ? T) ? ? (? C ? U)
- 5 (F ? ? Q) ? (A ? E ? T)
X
X
X
17Identifying WFFs Main Connectives
- ? 1 (S ? ? T) ? (? U ? W)
- X 2 ? (K ? L) ? (? G ? H)
- X 3 (E ? F) ? (W ? X)
- ? 4 (B ? ? T) ? ? (? C ? U)
- X 5 (F ? ? Q) ? (A ? E ? T)
18Identifying WFFs Main Connectives
- 6 ? D ? ? ( P ? Q) ? (T ? R)
- 7 (D ? ? Q) ? (P ? E) ? A ? ( ? H)
- 8 M (N ? Q) ? (? C ? D)
- 9 ? (F ? ? G) ? (A ? E) ? ? H
- 10 (R ? S ? T) ? ? (? W ? ? X)
?
X
X
?
X
19Identifying WFFs Main Connectives
- ? 6 ? D ? ? ( P ? Q) ? (T ? R)
- X 7 (D ? ? Q) ? (P ? E) ? A ? ( ? H)
- X 8 M (N ? Q) ? (? C ? D)
- ? 9 ? (F ? ? G) ? (A ? E) ? ? H
- X 10 (R ? S ? T) ? ? (? W ? ? X)
20Why should we care about this?
- Because in formal logic we determine whether
arguments are valid or not by reference to their
form. - And that assumes we can identify the form of
sentences, i.e. that we can identify main
connectives. - In doing formal derivations in particular, we
have be able to immediately see what the forms of
sentences are in order to formulate strategies.
21Translation
22Conditionals Biconditionals
If P then Q P ? Q
P, if Q Q ? P
P only if Q P ? Q
P if and only if Q P ? Q
Note A biconditional is a conditional going
both ways so P ? Q is the conjunction of P ? Q
and Q ? P
23Conditionals
If P then Q P ? Q
P, if Q Q ? P
P only if Q P ? Q
5 If Chanel has a rosewood fragrance then so does
Lanvin. C ? L 6 Chanel has a rosewood fragrance
if Lanvin does. L ? C 8 Reece Witherspoon wins
best actress only if Martin Scorsese wins best
director. W ? S
24Biconditionals
P if and only if Q P ? Q
7 Maureen Dowd writes incisive editorials if and
only if Paul Krugman does. D ? K A biconditional
is a conditional going both ways so P ? Q is
the conjunction of P ? Q and Q ? P. Only if is
only half of if and only if. Be careful!
25Not both and neither/nor
Neither P nor Q ? (P ? Q)
You cant both have your cake and eat it. (H ?
E)
She was neither young nor beautiful. ? (Y ? B)
26Not both and neither/nor
Neither P nor Q ? (P ? Q)
15 Not both Jaguar and Porsche make
motorcycles. (J ? P) 16 Both Jaguar and
Porsche do not make motorcycles. ? J ? P
27Not both and neither/nor
Neither P nor Q ? (P ? Q)
18 Not either Ferrari or Maserati makes economy
cars.19 Neither Ferrari nor Maserati makes
economy cars. ? (F ? M) 20 Either Ferrari or
Maserati does not make motorcycles. ? F ? M
28DeMorgans Laws
- (P ? Q) is equivalent to ? P ? ? Q
- ? (P ? Q) is equivalent to ? P ? ? Q
She was neither young nor beautiful is
equivalent to She was old and ugly - NOT She
was old or ugly. You cant both have your cake
and eat it is equivalent to You either dont
have your cake or you dont eat your cake - NOT
You dont have your cake and you dont eat your
cake.
29So, what do I need for the quiz?
- Identifying WFFs and main connectives
- Translation given an English sentence,which of
the following symbolizedsentences is the
correcttranslation?
30The End
WFF