First Order Logic Notations Note
First Order Logic Notations Note
Notations
Mattral
March 21, 2025
1 Introduction
First-Order Logic (FOL), also known as Predicate Logic, is a formal system
used in **mathematics, artificial intelligence, and logic programming (e.g., Pro-
log).** It extends Propositional Logic by introducing variables, quantifiers, and
predicates.
This document covers all **important symbols** in FOL, their meanings,
and examples.
¬P (Not P)
P ∧Q
P ∨Q
1
• Implication (IF-THEN, →): If the first statement is true, the second
must also be true.
P →Q
Example: Rain → Wet (If it rains, then the ground is wet)
• Biconditional (IF AND ONLY IF, ↔): Both statements are equiva-
lent.
P ↔Q
Example: Triangle ↔ Three Sides (A shape is a triangle if and only if it
has three sides)
2.2 2. Quantifiers
Quantifiers define whether a statement applies to all elements or just some.
∀x P (x)
∃x P (x)
2
2.4 3. Predicates and Functions
• Predicate: A property or relation applied to objects.
Loves(x, y)
Meaning: x loves y.
Example:
Loves(Romeo, Juliet)
3
3 Common Logical Consequences
3.1 Modus Ponens (Direct Inference)
P → Q, P ⇒ Q
If P is true and P → Q is true, then Q must be true.
3.4.1 Definition
To prove a statement P , we assume the opposite (i.e., ¬P ). If this assumption
leads to an inconsistency or contradiction, then ¬P must be false, meaning P
must be true.
a2
2=
b2
Multiplying both sides by b2 :
4
2b2 = a2
This means that a2 is even, which implies that a must also be even (because
the square of an odd number is always odd). So we can write:
2b2 = (2k)2 = 4k 2
Dividing both sides by 2:
b2 = 2k 2
This shows that b2 is also even, meaning b is even. But if both a and b are
even, they have a common factor of 2, which contradicts our initial assumption
that they have no common factors.
Step 4: Conclusion
√
Since assuming
√ 2 is rational leads to a contradiction, our assumption must
be false. Hence, 2 is irrational.
This method is widely used in mathematics, logic, and computer science for
proving theorems and solving logical problems.