A Prepostition is a declarative statement which is either true or false but not both(e.g. , Delhi is the capital of India (true) → Prepostition)
Let P be a Proposition, then its negation is denoted by ̅P or ~P.
P | ~P |
---|---|
True | False |
False | True |
~(~P) = P
~(~(~P)) = ~P
Let P and Q are two prepostions then their conjuction is denoted by P∧Q and it is true if both are true , false otherwise
P | Q | P ∧ Q | Q ∧ P |
---|---|---|---|
True | True | True | True |
True | False | False | False |
False | True | False | False |
False | False | False | False |
∧ is commutative i.e, p ∧ q = q ∧ p
Let P and Q are two prepostions then their disjuction of P and Q is denoted by P ∨ Q .It is false only if both statements are false.
P | Q | P ∨ Q | Q ∨ P |
---|---|---|---|
True | True | True | True |
True | False | True | True |
False | True | True | True |
False | False | False | False |
∨ is both commutative and associative .
p ∨ q = q ∨ p (commutative)
p ∨ (q ∨ r) = (p ∨ q) ∨ r (associative)
If is true only if exaclty one input is true otherwise false. It is denoted by ⊕ symbol.
p | q | p ⊕ q |
---|---|---|
True | True | False |
True | False | True |
False | True | True |
False | False | False |
A conditional statement is denoted by p → q , which means "if p then q." . The implication is false only when p is true and q is false — true in all other cases.
p | q | p → q |
---|---|---|
True | True | True |
True | False | False |
False | True | True |
False | False | True |
The converse of a conditional statement p → q is q → p, meaning "if q, then p." . The converse just swaps the positions of p and q in the implication, so q → p instead of p → q.
p | q | q → p |
---|---|---|
True | True | True |
True | False | True |
False | True | False |
False | False | True |
The inverse of a conditional statement p → q is ~ p → ~ q, meaning "if not p, then not q." The inverse flips both p and q with their negations, so it checks the truth value for ~p → ~q.
p | q | ~p | ~q | ~p → ~q |
---|---|---|---|---|
True | True | False | False | True |
True | False | False | True | True |
False | True | True | False | False |
False | False | True | True | True |
The contrapositive of a conditional statement p → q is ~ q → ~p, meaning "if not q, then not p."
p | q | ~q | ~p | ~q → ~p |
---|---|---|---|---|
True | True | False | False | True |
True | False | True | False | False |
False | True | False | True | True |
False | False | True | True | True |
~(p ∧ q) ≡ ~p ∨ ~q
p | q | p ∧ q | ~(p ∧ q) | ~p | ~q | ~p ∨ ~q |
---|---|---|---|---|---|---|
True | True | True | False | False | False | False |
True | False | False | True | False | True | True |
False | True | False | True | True | False | True |
False | False | False | True | True | True | True |
~(p ∨ q) ≡ ~p ∧ ~q
p | q | p ∨ q | ~(p ∨ q) | ~p | ~q | ~p ∧ ~q |
---|---|---|---|---|---|---|
True | True | True | False | False | False | False |
True | False | True | False | False | True | False |
False | True | True | False | True | False | False |
False | False | False | True | True | True | True |
A biconditional statement is denoted by p ↔ q meaning "p if and only if q" (p IFF q) — true when both p and q are the same.
p | q | p ↔q |
---|---|---|
True | True | True |
True | False | False |
False | True | False |
False | False | True |
A tautology is a logical statement that is always true, regardless of the truth values of its components. For example, p ∨ ~p is a tautology.
p | ~p | p ∨ ~p |
---|---|---|
True | False | True |
False | True | True |
A predicate is a logical statement that contains variables and becomes true or false depending on the values of those variables. It is denoted as P(x), where P is a property and x is the subject.
Let P(x) be "x is an even number."
x | P(x): "x is even" |
---|---|
2 | True |
3 | False |
4 | True |
5 | False |
Predicates often use quantifiers:
Let Q(x) be "x is greater than 0."
A proof is a sequence of logical steps that show a statement is true, based on axioms, definitions, and previously proven theorems.
Prove: If n is an even number, then n² is even.
Prove: √2 is irrational.
A vacuous proof shows a statement is true because the hypothesis is always false. Since an implication (p → q) is true when p is false, the statement holds vacuously.
Prove: "If 3 is even, then 3² is negative."
A trivial proof shows a statement is true because the conclusion is always true, no matter the hypothesis. Since an implication (p → q) is true when q is true, the statement is automatically true.
Prove: "If 5 is prime, then 2 + 2 = 4."
When constructing proofs, it's easy to make mistakes that lead to incorrect conclusions. Let’s explore some common errors!
This happens when the conclusion is used as part of the proof itself.
Prove: If n is even, then n² is even.
Fix: Start from the definition of even numbers, not the conclusion.
Remember: p → q is not the same as q → p. Confusing these leads to incorrect conclusions.
Prove: If n is divisible by 4, then n is even.
Fix: Understand the difference between a statement and its converse.
Failing to consider special or boundary cases can make a proof incomplete.
Prove: If n² is positive, then n is positive.
Problem: What about n = -1? n² = 1 is positive, but n is negative.
Fix: Account for negative numbers and refine the statement.
Be careful with universal (∀) and existential (∃) quantifiers — swapping them changes the meaning of a statement.
∀x ∃y (x + y = 0) is true. (For every x, there exists a y such that x + y = 0)
∃y ∀x (x + y = 0) is false. (There’s no single y that works for all x!)
Fix: Understand how quantifiers affect logical statements.
Skipping important logical steps or making unjustified leaps can make a proof invalid.
Prove: If n is an even integer, then n + 1 is odd.
Fix: Fill in the missing step: n = 2k, so n + 1 = 2k + 1 (definition of an odd number).
A counterexample is a specific example that disproves a statement. If a single example makes a statement false, the entire statement is false.
Statement: "If a number is odd, then its square is even."
Let n = 3.
Since we found an example where the statement fails, it is false by counterexample.
To prove two statements are logically equivalent (p ↔ q), you need to show both directions:
Prove: "n is even ↔ n² is even."
If n is even, then n = 2k for some integer k.
If n² is even, we show that n must also be even.
Both directions are true, so n is even ↔ n² is even. ️
You can also use a truth table to check if two statements are logically equivalent.
Prove: p ∨ q is equivalent to q ∨ p (Commutativity of OR).
p | q | p ∨ q | q ∨ p |
---|---|---|---|
True | True | True | True |
True | False | True | True |
False | True | True | True |
False | False | False | False |
Since the columns for p ∨ q and q ∨ p are identical, they are logically equivalent. ️