4.1 Logical reasoning
Argument: hypotheses followed by conclusion
Hypotheses: a sequence of propositions
Conclusion: a final proposition
Valid argument: the conclusion is true for every truth assignment to the variables that causes all of the hypotheses to be true ( is a tautology)
Invalid argument: not valid argument
Argument:
4.2 Rules of inference with propositions
| Rule of inference | Name |
|---|---|
| Modus ponens | |
| Modus tollens | |
| Addition | |
| Simplification | |
| Conjunction | |
| Hypothetical syllogism | |
| Disjunctive syllogism | |
| Resolution | |
| Logical proof of an argument: a sequence of steps, each consisting of a proposition and a justification |
4.3 Rules of inference with quantifiers
Element: a value that can be plugged in for variable
An arbitrary element of a domain has no special properties other than those shared by all the elements of the domain
A particular element of the domain may have properties that are not shared by all the elements of the domain
NOTE: both arbitrary and particular elements must belong to the domain
The rules existential instantiation and universal instantiation replace a quantified variable with an element of the domain
The rules existential generalization and universal generalization replace an element of the domain with a quantified variable
| Rule of Inference | Name |
|---|---|
| is an element (arbitrary or particular) | Universal instantiation |
| is an arbitrary element | Universal generalization |
| Existential instantiation | |
| is an element (arbitrary or particular) | Existential generalization |
NOTE: each use of existential instantiation must define a new element with its own name
NOTE: an element defined in a hypothesis is always a particular element
NOTE: different quantifiers bind variables independently, even when the variables have the same name. Existential quantifiers may refer to different elements, while universal quantifiers apply to every element in the domain
4.4 Mathematical definitions
Even:
Odd:
where
Every integer is either even or odd, but never both
Same parity: both even or both odd
Opposite parity: one even, one odd
The choice of and is not unique
Rational: , where and .
: divides if and only if and for some
: does not divide
If , then is a multiple of , and is a factor (divisor) of
Prime: , with only two positive divisors: and .
Composite: , with some integer divisor such that .
Note: is neither prime nor composite.
Exactly one holds: , , or .
Positive: ; Negative: .
Nonnegative: ; Nonpositive: .
4.5 Introduction to proofs
Theorem: a statement can be proven to be true
Proof: a series of steps that follow logically from assumptions or from previously proven statements, with a final step that results in the statement of the theorem being proven
Axiom: a statement assumed to be true
Consecutive integers: if one of the numbers is equal to 1 plus the other number
Universal statements:
Proof by exhaustion: proving the statement by checking each element individually
Counterexample: an assignment of values to variables that shows that a universal statement is false
Counterexamples for conditional statements: hypotheseses are true and conclusion is false
Existential statements:
Existence proof: a proof that shows that an existential statement is true
Constructive proof of existence: a specific example of an element in the domian or a set of directions to construct an element in the domain that has the required proerties
Nonconsecutive proof of existence: proves that an element with the required properties exists without giving a specific example
4.6 Best practices and common errors in proofs
The rules of algebra:
For example, if , , and are real numbers and , then .
The set of integers is closed under addition, multiplication, and subtraction:
In other words, sums, products, and differences of integers are also integers.
Every integer is either even or odd:
This fact is proven elsewhere in the material.
If is an integer, there is no integer between and :
In particular, there is no integer between and .
The relative order of any two real numbers:
For example, or .
The square of any real number is greater than or equal to :
This fact is proven in a later exercise.
Every real number is positive, negative, or equal to :
That is, for every real number , exactly one of the following expressions is true: , , or .
Algebraic facts about inequalities:
For any real numbers , , and , if , then .
For any real numbers , , and , if and , then .
For any real numbers , , and , if and , then .
Thus and therefore:
A statement that follows from the previous statement or previous few statements can be started with “Thus” or “Therefore.”
- and are integers. Therefore, is also an integer.
- is a positive integer. Thus, .
Other words that serve the same purpose are “it follows that,” “then,” “hence”.
Let:
New variable names are often introduced with the word “let”. For example, “Let be a positive integer.”
Suppose:
The word “suppose” can also be used to introduce a new variable. For example: “Suppose that is a positive integer.” Suppose is also used to introduce a new assumption, as in: “Suppose that is odd,” assuming that has already been introduced as an integer earlier in the proof.
Since:
If a statement depends on a fact that appeared earlier in the proof or in the assumptions of the theorem, remind the reader of that fact before the statement. The phrase “because we know that” serves the same purpose. For example, assuming that the facts and have been established earlier, a proof could say: - “Since and , then .”
- “Because we know that and , then .”
We will prove … and We will show …:
It is important in mathematical proofs to give readers an indication of where the proof is leading, by saying what will be proven in the upcoming steps of the proof. In the context of a mathematical proof, “showing” a mathematical fact means the same thing as “proving” a mathematical fact.
By definition:
A fact that is known because of a definition can be started with the phrase “By definition”. For example: “The integer is even. By definition, for some integer .”
By assumption:
A fact that is known because of an assumption can be started with the phrase “By assumption”. For example: “By assumption, is positive. Therefore, .”
In other words:
Sometimes rephrasing a statement in a more specific way is useful. The phrase “in other words” is useful in this context. For example: “We must show that the average of and is positive. In other words, we must show that .”
gives and yields:
Sometimes a proof is clearer if even an algebraic step is justified. The words “gives” and “yields” say that one equation or inequality follows from another.
- Multiplying both sides of the inequality by gives .
- Substituting into yields .
- Since , we can multiply both sides of the inequality by to get .
Indicate when the proof starts and ends:
In this material, every proof begins with the word Proof: and ends with the symbol .
Write proofs in complete sentences:
A proof should read like English text. In mathematical proofs, English sentences often contain mathematical expressions but those should read naturally as part of the sentence. For example: “If is an integer that is greater than , then .”
Give the reader a roadmap of what has been shown, what is assumed, and where the proof is going:
The beginning of a proof should always state what facts are assumed and ideally inform the reader what will be proven in the proof. If a proof is long, it is helpful to indicate at one or more points in the middle what has been proven and what has yet to be proven. For example: “We have shown that is a positive integer. Now we must establish that is composite.”
Introduce each variable when the variable is used for the first time:
Here are some examples of the introduction of a new variable:
- “Let be a positive integer.”
- “Since we know that divides , there is an integer such that .” This sentence introduces the variable . Variables and should already have been introduced.
- “Let be the average of and : .” This sentence introduces the variable . Variables and should already have been introduced.
A block of equations should be introduced with English text and each step that does not follow from algebra should be justified:
In the example below, the facts that and should be previously stated assumptions in the proof or previously proven facts:
Plugging in into :
If the justification for a step does not fit easily on the line of the equation, the justification can be provided right after the block of equations.
NOTE: each use of existential instantiation must introduce a fresh variable name, but the elements represented by different names are not necessarily distinct
Common mistakes:
Generalizing from examples
Skipping steps
Circular reasoning
Assuming facts that have not yet been proven
4.7 Writing direct proofs
Direct proof of a conditional statement: the hypothesis is assumed to be true and the conclusion is proven as da direct result of the assumption
4.8 Proof by contrapositive
- Original Statement:
- Contrapositive:
- De Morgan’s Law:
- Implication Law:
- De Morgan’s Law:
- Implication Law:
4.9 Proof by contradiction
Proof by contradiction: indirect proof
| Proof Pattern | Description |
|---|---|
| Direct Proof | Assume . Follow a series of steps to conclude . |
| Proof by Contrapositive | Assume . Follow a series of steps to conclude . |
| Proof by Contradiction | Assume . Follow a series of logical steps to conclude for some proposition . |
NOTE:
QUESTIONS: definition of rational numbers includes common factor/coprime?
https://learn.zybooks.com/zybook/WISCCOMPSCI240MATH240Fall2026/chapter/4/section/9
| Original | Negation |
|---|---|
| At least one | None |
| At least two | At most one |
| More than one | At most one |
| All | At least one is not |
4.10 Proof by cases
Proof by cases of a universal set (): breaks the domain for the variable into different classes and gives a different proof for each class
Case: the proof fore each class
Every value in the domain must be included in at least one class
Without loss of generality (WLOG): used in mathematical proofs to narrow the scope of a proof to one special case in situations when the proof can be easily adapted to apply to the general case
TEMPLATE:
THEOREM:
PROOF.
We proceed by mathematical induction on n. State the assumptions and what will be proven. Use the definition to express the assumption. Substitute, argue, and use definition to make the final proof.
Complete sentences.
Roadmap.
Introduct variables.
BASE CASE:
We first show that P(n₀) holds.
Thus, the base case holds.
INDUCTIVE HYPOTHESIS:
Assume that P(k) holds for some arbitrary integer k ≥ n₀.
INDUCTIVE STEP:
We want to show that P(k+1) holds.
Therefore, P(k+1) holds.
CONCLUSION:
By PMI, P(n) holds for all integers n ≥ n₀. ∎