Unit 1 - Notes
MTH401
Unit 1: Logic and Proofs
1. Propositional Logic
Logic forms the basis of all mathematical reasoning and automated reasoning (computing).
1.1 Basic Definitions
- Proposition: A declarative sentence that is either true (T) or false (F), but not both.
- Example: "Paris is in France" (Proposition, True).
- Example: "" (Not a proposition; depends on variable ).
- Atomic Proposition: A proposition that cannot be broken down into simpler propositions.
- Compound Proposition: Formed by combining atomic propositions using logical operators.
1.2 Logical Operators (Connectives)
Given propositions and :
| Connective | Name | Notation | Meaning | Truth Condition |
|---|---|---|---|---|
| Negation | NOT | "It is not the case that p" | True when is False. | |
| Conjunction | AND | "p and q" | True only if both and are True. | |
| Disjunction | OR | "p or q" | True if at least one of or is True. (Inclusive). | |
| Exclusive OR | XOR | "p or q, but not both" | True if exactly one of or is True. | |
| Implication | IMPLIES | "If p, then q" | False only when is True and is False. | |
| Biconditional | IFF | "p if and only if q" | True when and have the same truth value. |
1.3 The Conditional Statement ()
This is often the source of confusion. In :
- is the hypothesis (antecedent/premise).
- is the conclusion (consequence).
- Crucial Concept: The statement is considered true if the hypothesis is false (Vacuous Truth). "If pigs can fly, then I am the King of England" is a true statement logically.
Related Conditionals:
- Converse:
- Inverse:
- Contrapositive:
- Note: A conditional statement and its contrapositive are logically equivalent.
2. Propositional Equivalences
2.1 Classification of Compound Propositions
- Tautology: A compound proposition that is always true, regardless of the truth values of its variables (e.g., ).
- Contradiction: A compound proposition that is always false (e.g., ).
- Contingency: A proposition that is neither a tautology nor a contradiction.
2.2 Logical Equivalence
Two propositions and are logically equivalent (denoted ) if is a tautology. They have identical truth tables.
2.3 Important Laws of Logic
These laws are used to simplify complex logical expressions algebraically.
- Identity Laws: ;
- Domination Laws: ;
- Idempotent Laws: ;
- Double Negation Law:
- Commutative Laws: ;
- Associative Laws:
- Distributive Laws:
- De Morgan's Laws (CRITICAL):
- Absorption Laws: ;
- Implication Equivalence:
3. Predicates and Quantifiers
3.1 Predicates
A predicate is a statement involving variables, such as .
- is the predicate logic.
- is the subject.
- The statement becomes a proposition only when a value is assigned to .
3.2 Quantifiers
Quantifiers define the "scope" of the variables in a predicate.
-
Universal Quantifier ():
- Notation:
- Meaning: "For all , is true."
- True if is true for every element in the domain.
- False if there is at least one for which is false (Counterexample).
-
Existential Quantifier ():
- Notation:
- Meaning: "There exists an such that is true."
- True if there is at least one in the domain for which is true.
- False if is false for every in the domain.
3.3 De Morgan's Laws for Quantifiers
When negating a quantified expression, flip the quantifier and negate the predicate.
3.4 Nested Quantifiers
When multiple quantifiers are used (e.g., ):
- Order matters if the quantifiers are different ( vs ).
- : For every , you can find a specific .
- : There is one specific that works for every single .
4. Introduction to Proofs
4.1 Terminology
- Theorem: A mathematical statement that can be shown to be true.
- Proof: A valid argument that establishes the truth of a theorem.
- Axioms/Postulates: Statements assumed to be true without proof.
- Lemma: A "helper" theorem used to prove a larger theorem.
- Corollary: A result that follows almost immediately from a theorem.
- Conjecture: A statement believed to be true but not yet proven.
4.2 Rules of Inference
Proofs rely on valid argument forms. The most common is Modus Ponens:
- Premise 1:
- Premise 2:
- Conclusion:
5. Methods of Proof
5.1 Direct Proof
Used to prove implications of the form .
- Method:
- Assume that (hypothesis) is true.
- Use axioms, definitions, and logical rules to deduce that must also be true.
- Example: Prove "If is an odd integer, then is odd."
- Assume is odd. By definition, for some integer .
- .
- This is of the form , which is the definition of an odd integer.
5.2 Proof by Contraposition (Indirect Proof)
Based on the equivalence .
- Method:
- Assume (negation of conclusion) is true.
- Show that (negation of hypothesis) must be true.
- Usage: Useful when "not " provides more algebraic structure than "".
- Example: Prove "If is odd, then is odd."
- Contrapositive: If is even (not odd), then is even (not odd).
- Assume . Then .
- This is logically even. Since the contrapositive is true, the original statement is true.
5.3 Vacuous Proof
Used to prove when is known to be False.
- Since an implication is only false when , if is False, the statement is automatically True.
- Example: proving a property for the empty set.
5.4 Trivial Proof
Used to prove when is known to be True.
- If the conclusion is true, the implication is true regardless of the hypothesis.
- Example: "If it is raining, then ." Since is always true, the implication holds.
5.5 Proof by Contradiction
Based on the fact that a proposition cannot be both true and false.
- Method:
- To prove , assume is true.
- Show that this assumption leads to a logical contradiction (e.g., or ).
- Conclude that must be false, so implies true.
- Classic Example: Prove is irrational.
- Assume is rational ( in lowest terms).
- Algebra leads to both and being even, which contradicts the "lowest terms" assumption.
5.6 Proof of Equivalence (Biconditionals)
To prove "p if and only if q" ():
- Method: You must prove two parts:
- (The converse)
5.7 Counterexamples
Used to disprove a universal statement ().
- Method: Find a single element in the domain where is false.
- Example: Disprove "For all real numbers , ."
- Counterexample: Let . .
- $0.25$ is not greater than $0.5$. The statement is false.
6. Proof Strategy
6.1 Forward Reasoning
Starting with the premises and moving toward the conclusion. This is the standard method for Direct Proofs.
6.2 Backward Reasoning
Starting with the conclusion and asking "What is required to prove this is true?" Work backward until you reach the hypothesis.
- Warning: Ensure the steps are reversible when writing the final proof.
6.3 Proof by Cases (Exhaustion)
If the domain is finite or can be divided into distinct categories (e.g., is strictly positive, negative, or zero), prove the theorem separately for each case.
- You must prove
7. Common Mistakes in Proofs
- Affirming the Consequent (Fallacy):
- Assuming is true and is true, then concluding is true.
- Error: "If I have the flu, I cough. I am coughing. Therefore, I have the flu." (Incorrect; you could have a cold).
- Denying the Antecedent (Fallacy):
- Assuming is true and is true, then concluding is true.
- Error: "If I have the flu, I cough. I do not have the flu. Therefore, I am not coughing." (Incorrect; you could be choking).
- Begging the Question (Circular Reasoning):
- Using the statement you are trying to prove as an assumption in the proof steps.
- Arithmetic/Algebraic Errors:
- Simple calculation mistakes that invalidate the logic chain.
- Generalizing from Specific Examples:
- Showing is true and is true does not prove .