Skip to content
The Lumenary

Each worksheet prints cleanly on A4 or Letter. Answer keys are on a separate page.

The Lumenary · Early undergraduate

Constructing ℤ, ℚ and ℝ

Name: ______________________

Date: ______________________

You will learn to

  • Construct Z\Z as equivalence classes of pairs of natural numbers, prove that addition and multiplication are well defined, and identify the result with the integers
  • Construct Q\Q as the field of fractions of Z\Z, and explain exactly where the absence of zero divisors is needed
  • Construct R\R from Dedekind cuts and prove the least-upper-bound property; describe the alternative construction from Cauchy sequences
  • State the uniqueness of the complete ordered field, prove that such a field is Archimedean, and outline why any two are isomorphic
  • Explain what the constructions prove (that structures with the required properties exist) and what they do not
  1. 1.

    With (a,b)∼(c,d)(a, b) \sim (c, d) iff a+d=c+ba + d = c + b, which pairs of natural numbers lie in the class that represents the integer −2-2? (Choose all that apply.)

    • A.(0,2)(0, 2)
    • B.(5,3)(5, 3)
    • C.(3,5)(3, 5)
    • D.(10,12)(10, 12)
    • E.(2,0)(2, 0)
  2. 2.

    Using [(a,b)]⋅[(c,d)]=[(ac+bd, ad+bc)][(a, b)] \cdot [(c, d)] = [(ac + bd,\, ad + bc)], compute [(3,5)]⋅[(4,1)][(3, 5)] \cdot [(4, 1)]. Which integer does the resulting class represent?

  3. 3.

    In the proof that equality of fractions (ad=cbad = cb) is transitive, from ad=cbad = cb and cf=edcf = ed we derive (af)d=(eb)d(af)d = (eb)d. Which step needs the hypothesis that the ring has no zero divisors?

    • A.Concluding af=ebaf = eb from (af)d=(eb)d(af)d = (eb)d and d≠0d \neq 0
    • B.Rewriting (af)d=(ad)f(af)d = (ad)f
    • C.Substituting ad=cbad = cb
    • D.Reflexivity, ab=abab = ab
  4. 4.

    Each rule below is defined on a representative a/ba/b (or two, a/ba/b and c/dc/d) of a rational number, with b,d≠0b, d \neq 0. Which rules are not well defined as functions of the rational numbers? (Choose all that apply.)

    • A.(a/b,c/d)↦(a+c)/(b+d)(a/b, c/d) \mapsto (a + c)/(b + d)
    • B.(a/b,c/d)↦(ad+cb)/(bd)(a/b, c/d) \mapsto (ad + cb)/(bd)
    • C.a/b↦b/aa/b \mapsto b/a, for a≠0a \neq 0
    • D.a/b↦a+ba/b \mapsto a + b
    • E.a/b↦a2/b2a/b \mapsto a^2/b^2
  5. 5.

    Which of these subsets of Q\Q are Dedekind cuts (non-empty, not all of Q\Q, closed downwards, no greatest element)? (Choose all that apply.)

    • A.{q:q<3}\{q : q < 3\}
    • B.{q:q≤3}\{q : q \le 3\}
    • C.{q:q2<2}\{q : q^2 < 2\}
    • D.{q:q3<2}\{q : q^3 < 2\}
    • E.∅\varnothing
  6. 6.

    Which example shows that Q\Q is not complete (that not every non-empty, bounded-above subset has a least upper bound in Q\Q)?

    • A.{q∈Q:q2<2}\{q \in \Q : q^2 < 2\}
    • B.N⊆Q\N \subseteq \Q
    • C.{q∈Q:q<1}\{q \in \Q : q < 1\}
    • D.the sequence (−1)n(-1)^n
  7. 7.

    In the lesson's Lean file, PairInt.add is defined with Quotient.map₂ (fun p q => (p.1 + q.1, p.2 + q.2)) (proof). What is the second argument, and what happens if you leave it out?

    • A.A proof that equivalent inputs give equivalent outputs (here built from add_respects); without it the definition does not type-check
    • B.A proof of commutativity of addition; without it Lean assumes addition is not commutative
    • C.An optional hint for the simplifier; leaving it out only makes proofs slower
    • D.The decidability of the relation; without it Lean cannot compute
  8. 8.

    Implement the integers as pairs of natural numbers. Write canonical(p), returning the representative of the class of p that has a 00 in at least one coordinate, and mul(p, q) using (a,b)(c,d)=(ac+bd,ad+bc)(a, b)(c, d) = (ac + bd, ad + bc). Then check, for all pairs with entries up to 55, that mul is well defined: equivalent inputs give outputs with the same canonical form.

    Computational — Practice

Code: Apache-2.0 · Content: CC BY-SA 4.0