The Lumenary · Early undergraduate
Constructing ℤ, ℚ and ℝ
Name: ______________________
Date: ______________________
You will learn to
- Construct as equivalence classes of pairs of natural numbers, prove that addition and multiplication are well defined, and identify the result with the integers
- Construct as the field of fractions of , and explain exactly where the absence of zero divisors is needed
- Construct 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.
With iff , which pairs of natural numbers lie in the class that represents the integer ? (Choose all that apply.)
- A.
- B.
- C.
- D.
- E.
- 2.
Using , compute . Which integer does the resulting class represent?
- 3.
In the proof that equality of fractions () is transitive, from and we derive . Which step needs the hypothesis that the ring has no zero divisors?
- A.Concluding from and
- B.Rewriting
- C.Substituting
- D.Reflexivity,
- 4.
Each rule below is defined on a representative (or two, and ) of a rational number, with . Which rules are not well defined as functions of the rational numbers? (Choose all that apply.)
- A.
- B.
- C., for
- D.
- E.
- 5.
Which of these subsets of are Dedekind cuts (non-empty, not all of , closed downwards, no greatest element)? (Choose all that apply.)
- A.
- B.
- C.
- D.
- E.
- 6.
Which example shows that is not complete (that not every non-empty, bounded-above subset has a least upper bound in )?
- A.
- B.
- C.
- D.the sequence
- 7.
In the lesson's Lean file,
PairInt.addis defined withQuotient.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
- A.A proof that equivalent inputs give equivalent outputs (here built from
- 8.
Implement the integers as pairs of natural numbers. Write
canonical(p), returning the representative of the class ofpthat has a in at least one coordinate, andmul(p, q)using . Then check, for all pairs with entries up to , thatmulis well defined: equivalent inputs give outputs with the same canonical form.Computational — Practice