The real scalar illustrations in this section use familiar Archimedean real arithmetic as an input. The nonnegative square-root existence used in the real inverse example is proved in §4.1, and the natural-number unboundedness used to choose an integer above a real bound is proved in §5.1. These illustrative inputs are not used to prove the integer construction in §3.1; the finite example below also avoids square roots.
1. Audit the dependency graph, not just the last line
For each claimed proof, ask:
- What exactly is quantified, over which domain, and in what order?
- Which facts are assumptions, and which are the conclusion being sought?
- Does every constructed expression exist on the stated domain?
- Does each inference follow from an earlier established fact?
- If a candidate is obtained, has it been substituted back to prove existence?
- If uniqueness is claimed, what counts as the same object: literal equality, order-independent factors, or an equivalence class?
A counterexample disproves a claim, while locating the first invalid inference diagnoses a proof. Both are useful, but they answer different questions. A true claim can have an invalid proof; finding a faulty argument does not itself make its conclusion false.
Worked audit: circular parity reasoning. To prove “if is even, then is even,” a student writes, “Let ; then , so the assertion follows.” The first line assumes the conclusion: an arbitrary integer with even square has not yet been shown to equal twice an integer. The calculation proves the reverse implication, even implies even square.
A valid repair uses the contrapositive. If is odd, for an integer , so is odd. This rules out odd when its square is even. The representation now follows from the stated assumption rather than from the desired conclusion.
Worked audit: solving is not constructing. From , division formally suggests . That gives a candidate only when ; substitution then proves it solves the equation. To prove uniqueness, if , subtract to obtain , and cancel nonzero . If , the conclusion splits: no solution when , every real number a solution when . A derivation that silently divides by misses both cases.
Worked example 3.4.1
(Squaring produces candidates, not solutions)
Find all real with , where denotes the nonnegative square root.
A typical solution squares both sides: , so and . Audit it with question 5 of the checklist. Squaring is an implication, not an equivalence: it shows that every solution lies in , which is necessity only. Substitute each candidate back into the original equation:
So the solution set is . The extra candidate entered because and have the same square: solves instead. The repair can also be made in advance by recording the condition , which any solution must satisfy because the left side is nonnegative; then squaring is reversible on that domain.
2. Witness dependence is mathematical content
For real numbers, allows the witness to depend on . It does not prove . A useful audit draws arrows from earlier choices to later permitted choices. An existential witness may use already selected inputs but not variables that are quantified only afterwards.
A less immediate example. Let and for each positive integer define if , and zero otherwise. For each fixed , the function is bounded by . For each fixed , the numbers are also bounded as varies: at most one is nonzero. Yet there is no bound valid for every and every , since .
Thus both statements and are true, while is false. Taking a supremum without proving it finite would hide precisely the missing uniformity. Continuity is not assumed or needed in this logical example.
3. Induction needs every transition, not just a plausible pattern
Consider the false assertion “every finite nonempty set of real numbers has all its elements equal.” A purported induction says: the one-element case is true; for an -element set, remove one element to get equal elements, remove a different one to get another equal elements, and use their overlap to make the two common values agree.
For , the two -element subsets do overlap. But in the crucial first step , the two singleton subsets of a two-element set have empty intersection. There is no shared element to connect their values. The induction implication was not proved for every required . The counterexample confirms falsity, while the empty overlap identifies the exact failed transition.
This is different from strong induction, where assuming all smaller cases is legitimate inside the step. Strong induction still requires a valid base and a proof covering every next index. A recursive construction must decrease to an established base; merely invoking “smaller” without specifying a decreasing positive integer does not prove termination.
4. Normalization and prime factors
Here .
Theorem 3.4.2
(Division algorithm)
Let with . Then there exist unique integers and such that
The integer is the quotient and is the remainder.
The condition is not decoration. It is what makes the remainder unique. For example,
has an allowed remainder , while
does not count as the division algorithm because is not smaller than .
For existence, first take and . The set
contains , so well-ordering supplies a least member . If , then would be a smaller nonnegative member. Hence . If and , the integer is nonnegative. Divide by the case just proved; rearranging gives with the same allowed remainder. For , divide by and replace the resulting quotient by . Thus no sign case requires a negative remainder.
For uniqueness, suppose with both remainders in range. Then , but . A nonzero integer multiple of has absolute value at least , so . Since , the remaining equality forces . The strict upper bound proves uniqueness; merely requiring a nonnegative remainder would not.
Theorem 3.4.3
(Gcd step)
If , then
Proof: Preserve the entire set of common divisors
The target is equality of two gcds. A stronger intermediate statement makes the proof direct: an integer divides both exactly when it divides both . In the forward direction use ; in the reverse direction use . Both steps use closure under integer linear combinations.
The two divisor sets therefore have the same greatest element when the inputs are not both zero. If , then and both gcds equal by convention. The identity itself does not need a remainder bound; the bound is needed to make the algorithm progress.
Concept lensAlgorithmic
An invariant and a decreasing computation
The gcd is the quantity preserved by each replacement . The remainder is the quantity made smaller. These serve different purposes: preservation proves that the final answer is the original gcd, while strict decrease proves that a final step will occur. Start with absolute values, swap to put the larger positive input first, and stop immediately if the other input is zero. In every remaining division the divisor is positive.
The algorithm must terminate because the remainders form a strictly decreasing sequence of nonnegative integers:
A strictly decreasing sequence of nonnegative integers cannot continue forever.
Back-substitution can also be organized forward. For positive inputs put , , and keep coefficients , starting with and . If , then
Substituting the two known linear combinations proves this update. Every coefficient remains integral, and the row for the last nonzero remainder supplies the required coefficients of the gcd.
Theorem 3.4.4
(Bézout's identity)
For any integers , there exist integers such that
For signed nonzero inputs, compute using and absorb their signs into the resulting coefficients. If one input is zero, use or its counterpart for ; for use . This proves all cases of the identity.
When the inputs are not both zero, the gcd is also the smallest positive integer linear combination. It is such a combination by the identity, and every positive combination is a positive multiple of the gcd, hence at least as large. For there is no positive combination.
Theorem 3.4.5
(Euclid's lemma)
Let be prime. If , then or .
If , then , so there exist integers with
Multiplying by gives
Since , both terms on the left are divisible by , so .
Counterexample mode
Without primality the lemma fails
The claim “if , then or ” is false for composite . Take , , : then , yet and . The proof breaks at its first step: does not give , because that gcd is . The repair keeps the hypothesis the proof really uses: if and , then , by the same Bézout argument.
Theorem 3.4.6
(Fundamental theorem of arithmetic)
Every positive integer greater than can be written as a product of primes, and this product is unique up to the order of the factors.
Existence follows from the same least-counterexample strategy used earlier. If there were a least integer greater than that could not be written as a product of primes, it would not be prime, so it would split into smaller factors, and those smaller factors would already have prime factorizations.
Uniqueness uses Euclid's lemma. If
then divides the right-hand product, so must divide one of the prime factors . Hence . Cancel and repeat.
Repeating Euclid's lemma reduces divisibility of a finite product to one factor. Cancellation cannot exhaust only one prime list: that would leave equal to a nonempty product of primes, which is greater than . Thus the lists have the same length and the same factors with multiplicity.
For negative nonzero integers, include an overall factor and factor the positive magnitude. The number one has an empty prime product, and zero has no prime factorization of this type. These cases belong to the theorem's domain, not to hidden exceptions.
Proof X-ray
Which fact each step of the uniqueness proof spends
Euclid's lemma is used in its finite-product form, obtained by induction on the number of factors: a prime dividing a product divides some factor. Primality is then used a second time, on the other list: with prime and forces . Cancelling is legitimate because every factor is nonzero. The argument closes because each round shortens both lists by one factor, so it stops after finitely many rounds, and a leftover nonempty list is impossible.
5. Uniqueness of reduced rational representation
Suppose integers and positive integers satisfy , with . Then and .
Proof. Cross multiplication gives . Since , Bezout supplies with . Multiply by : , showing . Reversing the two fractions similarly gives . As both denominators are positive, they must be equal. The cross-product equality then gives equal numerators. This argument handles numerator zero: coprimality forces its positive denominator to be one.
Existence is a separate argument. From any integer fraction with nonzero denominator, first make the denominator positive, then divide numerator and denominator by their positive gcd. The quotient integers exist because the gcd divides both, the value is preserved, and no common factor remains. Only after this construction does the uniqueness theorem justify the phrase “the reduced fraction.”
Worked example 3.4.7
(A finite one-sided inverse)
Question. Can and satisfy while is not injective and is not onto ?
Construction and check. Take , , and define , , , . Then and , checking the identity at every element of . But and , so is not injective; is missing from , so is not onto . All domains and outputs are finite and explicit.
Worked example 3.4.8
(Reading a gcd from factorizations needs uniqueness)
Factor and . A positive common divisor can contain each prime at most to the smaller of its two exponents, so
Check: , and the Euclidean algorithm agrees, since , , .
The phrase “the exponent of in ” is meaningful only because of the uniqueness half of the fundamental theorem: if had a second prime factorization with a different power of , the recipe would not define a number. Existence alone would supply some factorization but not this well-defined exponent. The Euclidean computation, by contrast, needs no factorization at all, which is why it is the method used in proofs and in practice for large numbers.
Quick check
(A student writes: “ is even for every , because , and .” Audit the argument and give a proof.)
Locate the universal step that is missing, then factor .
Solution · Answer
Three instances do not cover every ; the argument proves nothing beyond them. A proof: . If , the product is ; if , then and the product is . In both cases it is twice an integer, so it is even.
Quick check
(Find the reduced fraction equal to , and say which result on this page makes it the only one.)
Divide by the positive gcd and keep the denominator positive.
Solution · Answer
, so , with and positive denominator. By the uniqueness of reduced rational representation in Section 5, any fraction equal to it with and has and .
Quick check
(Why does the fundamental theorem of arithmetic not count as a prime?)
Test the uniqueness statement on if were allowed as a prime factor.
Solution · Answer
If were prime, would be different prime factorizations, not just reorderings, and uniqueness would fail. Excluding , and treating it as the empty product, keeps the theorem true as stated.
Graded proof tasks
- Direct and converse. Prove for integers that is odd if and only if .
- Repair. Audit “if , divide by to get ” over real numbers. State a correct theorem, prove it, and classify the exceptional case.
- Uniformity. For the functions above, write the negation of a common bound and exhibit witnesses in the required order.
- Existence versus uniqueness. Explain why the prime-factor uniqueness argument alone does not prove that every has a prime factorization. Supply the strong-induction existence argument in full.
- Normalization. What fails in reduced-fraction uniqueness if denominators may be negative? State and prove the appropriate corrected uniqueness description.
- One-sided inverse. If is the identity on , prove is onto and is injective. Must be injective and be onto their other declared sets? Give a verified counterexample.
Full solutions
- If , then . One of consecutive integers is even, so and . Conversely that congruence makes odd. An even integer has even square, so cannot be even and is odd. Each direction is explicit.
- The division requires . Under that assumption multiplication by proves . If , the premise becomes and places no restriction on ; for example disproves the unrestricted assertion. The first invalid step is division by an unverified nonzero number.
- The negation is . Given , choose an integer , then choose . This produces . The integer depends on the proposed bound, and the point depends on that integer; no fixed point must defeat all bounds.
- Uniqueness starts with two already supplied factorizations and cannot create either one. For existence, use base , prime itself. Suppose every integer from two through is a prime product. If is prime, stop. Otherwise with . The hypothesis supplies prime products for both, whose concatenation factors . Every recursive argument uses smaller positive integers, and strong induction proves all cases.
- Even with coprime numerator and denominator, gives two sign choices, such as . Normalizing each denominator to positive yields the unique normalized pair by the theorem. Therefore without the sign convention the two pairs must be equal or simultaneous negatives. Conversely simultaneous negation always preserves the rational value and coprimality, proving that exact ambiguity description.
- For any , , so is onto. If , applying gives , so is injective. The other conclusions need not hold: let be and be . Then is the identity, but and never takes negative values. Thus is not injective and is not onto .
Summary and terms
A circular argument assumes what it is meant to prove. A dependency records which earlier data a choice may use. A normalization removes an allowed ambiguity, such as factor order or denominator sign. Uniqueness up to reordering differs from uniqueness of an ordered list. Audit the first invalid inference, then repair the precise missing condition or construction; a persuasive last line is not a substitute for those steps.