Predicate Logic Notes
Predicate Logic Notes
if all elements s = T ,
S C- T , S is subsets of T .
SCT ,
s is proper subsets of T
P =
{
,
1) 21 A✗ B
F B. ✗ A
p( s) = { { 11 ,
{ 2} , { 1 , I } '
⑨ } a :{ v25
B =
{ c, ☐ 3
Set of difference
D- ✗ B =
{ ( 1 C)
, , (2) C) , 21 D)
> ,
A- B = A1 B- ( 2 / D) }
Logic
① Proposition logic
③ Predicate logic
③ Proof
Proposition :
statement that either is
( AND ) ( n)
|
-
Conjunction
-
disjunction ( OR ) ( v)
operate r
-
negation I -
)
① Conditional ④ Bi conditional
proposition proposition
c
p→q
/ thenarconsequence p q
→
if p
antecedent
P if and only if or
iff
.EE?:...........-T:::::::
p q
÷÷÷
T
f-
→
→
F
T
(F)
IT ) Converse
inverse -
q →
p → -9
p →
every output
Contradiction
is TRUE
is False
→
every output
→ neither tautologies
nor contradiction
Logical Equivalence p→q= >
pvq
-
pc-sqn-rgum-e.int
→
-
validation depends on
pattern ( Rule of inference )
( Every statements that is true]
{
" " " " ""
"
µ
Modus Ponens : P → 9 Disjunction : P i.
Affirming the
P Introduction :-P V9 consequence
i.
q p →
q
{ Ipv4
Disjunction :P V9 a
Modus Tokens :
P → 9 syllogism
7
or :-p
sq :p ; q
:-p 2. Denying antecedent
:P
Hypothetical →
9 p→q
Conjunction : PA 9 Syllogism 9. → r -
p
elimination :p :p → r q
-
.
:
q
i.
,.mn . . p ,
p →r
q → s
: . rvs
Predicates? ( Quantification at
Logie >
"
"
blue
dog
some has the of being
object property a
dog .
'
Predicates : A / B. C. 2-
not gonna
Terms : -
Constants : a. b. c. d ,
. .
- t ←
change
variables : m
,y , z
,
-
-
w ← generic
connective : n , v , n ,
→
, →
Quantifiers :
y , F
all exist
at
Universal Quantifier : Y
Tx ( DX Bx )
"
"
All
dogs are blue →
"
"
All man like cake and pie
Mx : ✗ is a man Fx / Mx → ( Lxcnlxp ) )
Lxy : ✗ likes y
c : cake for all ✗ , if ✗ is a man ,
then ✗
p :
pie like cake and pie
"
some Fx ( Mxn ( LXCALXP ) )
"
man like cake and pie
There is an ✗ / such that ✗ is
Mx : ✗ is a man
a man , and this ✗ likes cake
Lxy : ✗ likes y and ✗ Likes pie
c : cake
p :
pie
Specific connective depending on the quantifier
" "
All men are happy
mark
happy
-
I 0
f- txlmx Hx ) F tx ( Mx → Hx ) ✓
John →
sad
Steve Fx ( Mxn Hx ) F
I 0
is T
everyone here man
" "
All men are happy
mark
happy
-
0 I
#
Jane txlmx → Hx ) T
Steve
sad
u
4- ✗ ( Mxn
o
Hx
1
) F
is
every element that F is
-
O
we
looking are a man
↳ No not airmen
?⃝
"
"
some is
men happy
mark
happy
-
Jane
Steve
# sad
Fxlmx
Fxlnfxnltx )
→ Hx )
T
FxlMx^H× )
T
and some person that is a
✗
,
Jane F×lM%→H× )
(
-1
sad 0
Stacy Fxlmxnltx )
there is a man -0 F
There is an ✗ that is happy
-
I
predicate Logic and quantifiers :
%%"¥° Gay ] =
n is greater than y
✓
6712,11 greater than True !
aged {
• = 2 is 1
"
Quantifiers :
" "
tx Pen) :
For all n ,
✗ is P
"
Fx Plm )
"
:
for some n ,
✗ is P
For real number there is real number such that
every
2 =
n
n , a m
Hn t 112 ,
Fm t IR : MEN
/ Pimm ) : m2=n
V-x.us c- ☒ ,
JMJE Q1
Negating Quantifiers :
•
Define tx , Fx for a universe with elements { 112 ,
.
. -
in }
-
f- ✗ Pcx ]
= 7 / Pcl ) ^ P (2) 1 . . .
n Pln ) )
= → Pll ] V 7 P (2) V - . . v
-
Pcn )
=
Fx [ 7Pa 5)
\ Pcl ) P( 2) Pcn )
Fx PCX ) = ✓ v. . .
v .
ltxpcx ) ⇐s -
7×[-17×1]
1- ✗ Pix ) <=) 7th [ -
Pix ) ]
n
th Pix ) 1- ✗ [ Pix ) ]
'
-
Fx Pix ) # ltx f- Pix ) ]
Negate the
following :
b- [ Fy [ Pcxiy ) Qly ) ) ) )
-
✗ ^
= Fx -
[ Fy / pin , y) ^ Q ly ) ) )
= 3- ✗
try
-
[ Pin , g) ^
Qly ) )
Q ly ) )
7- thy [ PA y) V
- -
= ✗ ,
Rule of inference :
Universal Instantiations :
Tx PCX ] → Pcc )
Universal Generalisation :
P (c) → V- ✗ Pcxi
Existential Instantiations :
1- ✗ PCX )
→ Pcc )
Existential Generalisation :
Pcc ) → Fx PCX )
Proof argument
:
An that establish the truth of a
theorem
disprove by counterexample .
③ Proof by contrapositive : if P →
Q true ,
-
a → -
P is true
-
i -
prove
-
Q → -
P is true
④ Proof by cases :
exhaustive proof ( prove one by one )
Q true
proof both
}
P → is ,
are true
Q→ P is true .
apply methods
above
-
Function .
fcx ) =
y
°
"et°man9→nid
non
number of function :
-
one to one function .
if ,
The number
✓
③ Bijective injective " """
:
✓
"
surjective function is
""
non -
surjective
( bijective )
?⃝
?⃝
?⃝