Logika Proposisi,
Variabel Proposisi,
Proposisional
Equivalance
Proposisi?
Proposisi adalah pernyataan atau kalimat deklaratif yang bernilai
benar atau salah tapi tidak keduanya.
Variabel Proposisi?
Proposisi dapat dituliskan menggunakan variabel, biasanya
menggunakan simbol huruf p, q, r, . . . untuk menyatakannya
Mana yang merupakan proposisi?
Negasi ~p bukan p
Konjungsi p ∧ q p dan q
Disjungsi p ∨ q p atau q
Exclusive p⊕q p atau q tetapi tidak keduanya
or
Implikasi p → q jika p maka q
Biimplikasi p ↔ q p jika dan hanya jika q
Tabel Kebenaran
Banyaknya kemungkinan adalah 2^n, dengan n jumlah variabel proposisi
Example
Misalkan,
p : “Ratna memenangkan perlombaan karya tulis”
q : “Ratna memiliki ide inovatif”
r : “Ratna berpengalaman lomba”
p V ~ (p Λ q)
Answer
p V ~ (p Λ q)
p q pΛq ~ (p Λ q) p V ~ (p Λ q)
1 1 1 0 1
1 0 0 1 1
0 1 0 1 1
0 0 0 1 1
Proposisional Equivalance
1 1 0 0 1 0 1
1 0 0 1 0 0 1
0 1 1 0 1 0 1
0 0 1 1 1 1 1
Tentukan propositional form
(p ⋀ q) ⋀ ~ (p V q) merupakan tautologi,
kontradiksi, atau kontingensi dengan tabel
kebenaran
p q p⋀q pVq ~ (p V q) (p ⋀ q) ⋀ ~ (p V q)
1 1 1 1 0 0
1 0 0 1 0 0
0 1 0 1 0 0
0 0 0 0 1 0
Minggu 2
Konsep Logika
(Fungsi Proposisi,
Kuantor, dan
Inferensi)
Nilai kebenaran dari P(X) bisa ditentukan ketika X diberikan suatu nilai.
Contoh:
Kuantor
Kuantor digunakan untuk mengidentifikasi seberapa sering suatu
predikat P(x) bernilai benar :
p q ~p ~q s
1 1 0 0 0 1 0
1 0 0 1 1 0 0
0 1 1 0 0 1 0
0 0 1 1 0 1 0
Minggu 3
Konsep Logika
(Validitas Argumen,
Inferensi Logika dan
Pembuktian)
1. Hipotesa (Premis)
2. Kesimpulan (Konklusi)
1 1 0 0 1 0 1
1 0 0 1 0 0 1
0 1 1 0 1 1 0
0 0 1 1 1 1 1
p→q
q→r
∴p→r
((p → q) ∧ (q → r)) → (p → r)
Argumen tersebut dapat dikatakan valid jika proposisi
((p → q) ∧ (q → r)) → (p → r)
merupakan tautologi
1 1 0 1 0 0 0 1
1 0 1 0 1 0 1 1
1 0 0 0 1 0 0 1
0 1 1 1 1 1 1 1
0 1 0 1 0 0 1 1
0 0 1 1 1 1 1 1
0 0 0 1 1 1 1 1
Example
Susun proposisinya :
p = “Randy works hard”
q = “He is a dull boy”
r = “He will get the job”
Premis 1: "Randy works hard"
Premis 2 :"If Randy works hard, then he is a dull boy”
Premis 3 :"If Randy is a dull boy, then he will not get the job"
Conclusion "Randy will not get the job." = ~r
No Step Reason
1 p Premis
2 p→q Premis
3 q → ~r Premis
Susun proposisinya :
p = “It is rain
q = “It is foggy”
r = “the sailing race is held”
s = “the lifesaving demonstration will go on”
t = “the trophy will be awarded”
Premis 1 : "If it does not rain or if it is not foggy, then the sailing
race will be held and the lifesaving demonstration will go on,"
Premis 2 : "If the sailing race is held, then the trophy will be
awarded,"
No Step Reason
2 r→t Premis
3 ~t Premis