logic notes Flashcards
¬
not, negation
not
¬
∧
And, conjunction
and
∧
conjunction
∧
negation
¬
∨
or, disjunction
or
∨
disjunction
∨
→
if … then, implication
if … then
→
implication
→
↔
if and only if, iff, equivalence
if and only if
↔
equivalence
↔
not premise p
_
p
_
p
not premise p
He has an Ace if he does not have a Knight or a Spade
¬(k ∨ s) → a
or
(¬k ∨ s) → a
exclusive disjunction
⊕
⊕
exclusive disjunction
define the Language of propositional logic
Let P be a set of proposition letters and let p ∈ P
ϕ ::= p | ¬ϕ | (ϕ ∧ ϕ) | (ϕ ∨ ϕ) | (ϕ → ϕ) | (ϕ ↔ ϕ)
syllogism
a logical argument where a quantified statement of a specific form (the conclusion) is inferred from two other quantified statements (the premises).
4 corners of Square of Opposition
All A are B
……..No A are B
Some A are B
……..Not all A are B
syllogistic Q N V
Q: quantifier
N: noun
V: verb
well known tautologies
Double Negation
De Morgan laws
Distribution laws
Double Negation
¬¬ϕ ↔ ϕ
De Morgan laws
¬(ϕ ∨ ψ) ↔ (¬ϕ ∧ ¬ψ)
¬(ϕ ∧ ψ) ↔ (¬ϕ ∨ ¬ψ)
Distribution laws
(ϕ ∧ (ψ ∨ χ)) ↔ ((ϕ ∧ ψ) ∨ (ϕ ∧ χ))
ϕ ∨ (ψ ∧ χ)) ↔ ((ϕ ∨ ψ) ∧ (ϕ ∨ χ)
aristotals inference pattern as human language
Q=Quantifier
NP = noun phrase
CN = Common Noun
VP = verb phrase (Q + CN)
Q1 CN1 VP1
Q2 CN2 VP2
__________
Q3 CN3 VP3
syllogistic form
2 predicates and a conclusion
middle term
the missing class that is in the predicates but not the conclusion
For all A then B
For all B then C
____________
for all A then C
the middle term is B
∈
“is an element of” operation
member of operation
a is an element of a set A
a ∈ A
a ∈ A
a is an element of a set A
a is not an element of a set A
a ∉ A
a ∉ A
a is not an element of a set A
the set of those x that have the property described by ϕ.
{x | ϕ(x)}
the set of all those x in U for which ϕ holds
{x ∈ U | ϕ(x)}
a set of elements sharing multiple properties ϕ1, . . . , ϕn
{x | ϕ1(x), . . . , ϕn(x)}
(Bill Clinton, Hillary Clinton) ∈ A
, (Hillary Clinton,Bill Clinton) ∉ A
A = {(x, y) | x is in the list of presidents of the US , y is married to x}
A ∩ B
intersection
{x | x ∈ A and x ∈ B}
{x | x ∈ A and x ∈ B}
A ∩ B
intersection
intersection
A ∩ B
{x | x ∈ A and x ∈ B}
A ∪ B
union
{x | x ∈ A or x ∈ B}
{x | x ∈ A or x ∈ B}
union
A ∪ B
union
A ∪ B
{x | x ∈ A or x ∈ B}
A \ B (set)
difference
{x | x ∈ A and x ∉ B}
{x | x ∈ A and x ∉ B}
difference
A \ B
difference (set)
A \ B
{x | x ∈ A and x ∉ B}
complement (set)
_
A
{x ∈ U | x ∉ A}
{x ∈ U | x ∉ A}
complement
_
A
_
A
complement
{x ∈ U | x ∉ A}
_
A ∩ B
A \ B
_
_
A
A
de morgans law (in set operations)
______
A ∪ B = A ∩ B
______
A ∩ B = A ∪ B
distributive equations (in set operations)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
definition of a union of 2 sets (using negatives)
______
__ __
A ∪ B = A ∪ B = A ∩ B
number of predicate forms in a sylogism
3
venn diagram inference steps
1) draw skeleton
2) Universal step - cross out All and No
3) Existential step - ◦ in Some and Not all (where not removed by Universal step)
4) Check conclustion, if existential and universal are where they are meant to be then valid, otherwise a counter argument can exist
A syllogism with only universal premises and an existential conclusion is
always invalid, because ..
the situation with all classes empty is a counterexample
predicate logic is the most important system in logic because …
it is a universal language for talking about structure
a,b,c (predicate) are ..
constant / proper names
x,y,z (predicate) are …
variable / indefinite names
A,B,C (predicate) are …
predicate letters
1-place predicate
a predicate with 1 argument , e.g. intransitive verbs (walk) common nouns (boy)
2-place predicate
a predicate with 2 arguments - transitive verbs (see)
3-place predicate
a predicate with 3 arguments - distributive verbs (give(
unary predicates
1-place predicates
binary predicates
2-place predicates
ternary predicates
3-place predicates
sentence combination operators (predicate)
¬, ∧, ∨, →, ↔,∀x,∃x
∃x
Existential operator - “there exists an x”
“there exists an x”
∃x
Existential operator
∃x
∀x
universal operator - “for all x”
universal operator
∀x
“for all x”
∀x
natural language:John walks
W j
natural language:John is a boy
B j