Materi Logika
Materi Logika
Proposisi adalah pernyataan yang bernilai True (1) atau False (0)
Operator Logika
A not A
True False
False True
A B A and B
Operator or (∨)
Hasil operasi “A or B” bernilai True saat ada dari dari keduanya bernilai True
A B A or B
A B A xor B
A B if A, then B
Hukum Logika
Idempotent Law
A or A = A
A and A = A
Identity Law
A or False = A
A and True = A
Domination Law
A and False = False
A or True = True
Complement Law
A and not(A) = False
A or not(A) = True
Commutative Law
A or B = B or A
A and B = B and A
Associative Law
(A or B) or C = A or (B or C)
(A and B) and C = A and (B and C)
Distributive Law
A and (B or C) = (A and B) or (A and C)
A or (B and C) = (A or B) and (A or C)
De Morgan’s Law
not(A and B) = not(A) or not(B)
not(A or B) = not(A) and not(B)
Absorption Law
A and (A or B) = A
A or (A and B) = A
Conditional Identities
if A, then B = not(A) or B
a iff B = (if A, then B) and (if B, then A)
Kaidah Inferensi
Modus Ponens
Premis 1 : if A, then B
Premis 2 : A
Kesimpulan : B
Modus Tollens
Premis 1 : if A, then B
Premis 2 : not(B)
Kesimpulan : not(A)
Hypothetical Syllogism
Premis 1 : if A, then B
Premis 2 : if B, then C
Kesimpulan : if A, then C
Disjunctive Syllogism
Premis 1 : A or B
Premis 2 : not(A)
Kesimpulan : B
Resolution
Premis 1 : A or B
Premis 2 : not A or C
Kesimpulan : B or C