1. Propositional Logic
Propositional Logic is the foundational system in formal reasoning where statements are expressed as simple propositions that can be either true or false. Each proposition is treated as an indivisible unit. These statements cannot be broken down into smaller parts. Often represented with symbols like
These symbols and connectives allow us to combine these propositions and build more complex expressions. However, propositional logic does not look inside the structure of a statement—it only works with entire sentences as atomic entities.
Example 1 – Weather:
Example 2 – Classroom:
Here, we only know whether each full sentence is true or false, but we cannot talk about which object is raining on, or who is giving the lecture.
2. First-Order Logic (FOL)
First-Order Logic (FOL), also known as Predicate Logic, extends this framework by allowing reasoning about the internal structure of statements. First-Order Logic expands on propositional logic by introducing objects, predicates, and quantifiers. Instead of treating each sentence as indivisible, FOL introduces:
→ Universal quantifier (∀): “For all”
→ Existential quantifier (∃): “There exists”
Example 1 – Mortality of Humans:
This shows how FOL can reason about individuals, not just whole sentences.
Example 2 – Classroom Relation:
Example 3 – Library System:
This richer representation allows us to capture knowledge more precisely. For example:
Thus, while propositional logic deals only with true/false values of entire sentences, first-order logic enables reasoning about individuals, their properties, and their relationships—making it far more powerful for knowledge representation and problem solving in fields such as mathematics, computer science, and artificial intelligence.
Key Difference (with Examples):
| Aspect | Propositional Logic | First-Order Logic |
|---|---|---|
| Basic unit | Whole statements (true/false) | Objects + Predicates |
| Quantification | Not possible | Uses ∀ and ∃ |
| Example | P: "Socrates is mortal." | ∀x, Human(x) → Mortal(x)) |
| Limitation | Cannot express relations or general rules | Can express rules, properties, and relationships |