PROPOSITIONAL LOGIC
🧠 PROPOSITIONAL LOGIC — GEN Z REVIEWER
1. What is a Proposition?
👉 This part is important kasi ito ‘yung foundation ng topic.
A proposition is:
A declarative statement
Can be True (T / 1) or False (F / 0)
Hindi pwedeng both, at hindi rin pwedeng wala
✅ Examples
“Today is January 1.” → Proposition (True or False)
“Chickens can fly.” → Proposition (False)
“Please keep your phones on silent.” → ❌ NOT a proposition (request siya)
“x > 10” → ❌ NOT always a proposition (depende sa value ng x)
📌 Rule of thumb
If may clear truth value, proposition yan.
If command, question, or depende sa variable, hindi.
🧠 Quick mnemonic:
P = Plain statement na may True or False
2. Laws of Thought (Base ng Propositional Logic)
Think of these as rules ng utak kapag naglo-logic ka.
🔹 Law of Identity
P = P
Kung ano ang isang bagay, yun na ‘yon.
🧠 Example:
If water is water, then water ≠ juice. Period.
🔹 Law of Excluded Middle
Every proposition is either true OR false
Walang in-between, walang “medyo”
🧠 Example:
“Today is January 1” → either yes or no, hindi “kinda”
🔹 Law of Non-Contradiction
A statement cannot be true and false at the same time
🧠 Example:
Hindi pwedeng “Umuulan” at “Hindi umuulan” sabay.
🧠 Mnemonic:
ID – EX – NO
Identity, Excluded Middle, Non-Contradiction
3. Truth Values & Symbols
Symbol | Meaning |
|---|---|
T / 1 | True |
F / 0 | False |
P, A, B | Propositions |
Used ito sa truth tables and logical expressions.
4. Truth Table (Levin)
👉 Ito ‘yung pinaka-exam favorite.
A truth table:
Lists all possible combinations of truth values
Helps you decide kung true or false ang compound statement
🧠 Real-life example:
Condition:
“You can go out if you are 18–65 years old AND fully vaccinated”
Age Range | Vaccinated | Can Go Out? |
|---|---|---|
T | T | ✅ Yes |
T | F | ❌ No |
F | T | ❌ No |
F | F | ❌ No |
📌 AND = kailangan parehong true
5. Compound Propositions
When you combine propositions, you get a compound proposition.
Example:
P: You are 18 years old
Q: You are vaccinated
➡ P AND Q
6. Logical Connectives (SUPER IMPORTANT)
1⃣ Negation (NOT)
Symbol: ~P or ¬P
Flips the truth value
P | ~P |
|---|---|
T | F |
F | T |
🧠 Example:
P: It is raining
~P: It is not raining
🧠 Mnemonic:
NOT = baliktad
2⃣ Conjunction (AND)
Symbol: ^
True only if BOTH are true
A | B | A ^ B |
|---|---|---|
T | T | T |
T | F | F |
F | T | F |
F | F | F |
🧠 Example:
“May ID AND may ticket”
🧠 Mnemonic:
AND = lahat pasado
3⃣ Disjunction (OR)
Symbol: v
True if at least one is true
A | B | A v B |
|---|---|---|
T | T | T |
T | F | T |
F | T | T |
F | F | F |
🧠 Example:
“Pwede cash OR GCash”
4⃣ Implication (IF–THEN)
Symbol: →
Form: If A, then B
A | B | A → B |
|---|---|---|
T | T | T |
T | F | ❌ F |
F | T | T |
F | F | T |
⚠ Only false when:
True → False
🧠 Example:
“If umuulan, then may payong”
Umuulan pero walang payong? ❌
Related Forms
Type | Form |
|---|---|
Converse | B → A |
Inverse | ~A → ~B |
Contrapositive | ~B → ~A |
📌 Contrapositive ang laging equivalent sa original
5⃣ Biconditional (IF AND ONLY IF)
Symbol: ↔
True if same truth value
A | B | A ↔ B |
|---|---|---|
T | T | T |
T | F | F |
F | T | F |
F | F | T |
🧠 Example:
“Pass ka iff complete requirements”
6⃣ XOR (Exclusive OR)
Symbol: ⊕
True if exactly one is true
A | B | A ⊕ B |
|---|---|---|
T | T | F |
T | F | T |
F | T | T |
F | F | F |
🧠 Example:
“Either ikaw OR ako, pero hindi both”
Used a lot in computer science & circuits 💻
7. Precedence of Logical Operators
👉 Parang PEMDAS pero logic version
Order | Operator |
|---|---|
1 | Negation (~) |
2 | AND (^) |
3 | OR (v) |
4 | Implication (→) |
5 | Biconditional (↔) |
🧠 Mnemonic:
N-A-O-I-B
(Not And Or If Biconditional)
8. Tautology, Contradiction, Contingency
✅ Tautology
Always TRUE
Example: A v ~A
❌ Contradiction
Always FALSE
Example: A ^ ~A
⚖ Contingency
Mix of true and false
Example: A → ~A
🧠 Mnemonic:
T = True always
C = Cancelled (always false)
C = Combination (mix)
9. Logical Equivalence
Two statements are logically equivalent if:
Same truth values in all cases
Symbol: ≡
Example:
A ≡ ~~A
📌 Double negation cancels out.
🔁 FINAL RECAP & MEMORY TRICKS
🧠 Core Concepts
Proposition = may true or false
Truth tables = lahat ng possibilities
AND = both true
OR = at least one
XOR = isa lang
Implication = false lang kapag T → F
🔑 Exam Hack
If nalilito ka:
Gawa ng truth table
Follow precedence order
Check patterns (tautology / contradiction)
🧠 One-line Summary
Propositional Logic is about breaking down statements into truth values and checking how they behave when combined.