Lectures onType Theory
Chapter 211
Chapter 211Core route

Completions and the Real Numbers

The real numbers

Constructively, a sequence of equivalence classes need not have a sequence of representatives. Thus the ordinary quotient of Cauchy sequences may require countable choice, while Dedekind cuts do not. We construct the two real types and identify the hypothesis under which they agree; the Cauchy construction generates limits and equality simultaneously rather than first quotienting representatives.

Convention 74.60 — The ambient propositions

Fix a set SProp of mere propositions containing 0 and 1 and closed under , , and existential quantification over N (hence over countable sets). Cuts below are SProp-valued predicates. One may obtain such a SProp by tracking universes, by propositional resizing, or, classically, from 2 under LEM.

Remark 74.61 — The rationals

Z is constructed from N and Q from Z by the set quotients of definition 68.38 (pairs modulo cross-multiplication), or quotient-free via canonical representatives. Equality on Q is decidable, so Q is a set already by Hedberg’s theorem (theorem 66.29); it is a discrete, archimedean ordered field with decidable order. We write Q+:=q:Q(q>0).

Definition 74.62 — Dedekind reals

A Dedekind cut is a pair (L,U) of predicates L,U:QSProp satisfying four conditions:

  1. it is inhabited: q.L(q) and r.U(r);

  2. it has roundedness: membership persists through a strictly closer rational bound, expressed by L(q)r.(q<r)L(r), and U(r)q.(q<r)U(q);

  3. it is disjoint: ¬(L(q)U(q)) for all q;

  4. it is located: (q<r)L(q)U(r) for all q,r,

where quantifiers range over Q and , denote the truncated connectives of chapter 66. Writing isCut(L,U) for the conjunction, the type of Dedekind reals is Rd:=(L,U):(QSProp)×(QSProp)isCut(L,U). Each q:Q determines the cut Lq(r):=(r<q), Uq(r):=(q<r), giving an embedding QRd.

Lemma 74.63

Rd is a set.

Proof of Lemma 74.63

Proof. isCut is a mere proposition and QSProp is a set (a product of sets, by theorem 65.18); a subtype of a set is a set. ◻

Definition 74.64

For x=(Lx,Ux) and y:Rd define (x<y):=q:Q. Ux(q)Ly(q),(xy):=q:Q. Lx(q)Ly(q),Lx+y(q):=r,s. Lx(r)Ly(s)(q=r+s),Ux+y(q):=r,s. Ux(r)Uy(s)(q=r+s), Negation and the lattice operations are defined by Lx(q):=Ux(q),Ux(q):=Lx(q),Lxy(q):=Lx(q)Ly(q),Uxy(q):=Ux(q)Uy(q),Lxy(q):=Lx(q)Ly(q),Uxy(q):=Ux(q)Uy(q). Put |x|:=x(x). For example, roundedness of Lx follows from upper roundedness of Ux: from Ux(q) choose t<q with Ux(t), set r:=t>q, and obtain Lx(r).

Theorem 211.6 — Dedekind-real additive structure

The operations of definition 74.64 have the following properties.

  1. Addition and negation make Rd a lattice-ordered abelian group, and the rational-cut map is an order-reflecting group embedding. The order is archimedean in the exact sense that, if 0<x, then for every y there merely is n:N with y<nx.

  2. If x<y, then there merely is a rational q with x<q<y.

Proof of Theorem 211.6 — Dedekind-real additive structure

Proof. The cut axioms for x+y follow directly from rational witnesses. For example, if Lx+y(q) has witnesses r,s, lower roundedness of x gives r>r in Lx; then q=r+s>q witnesses roundedness of the sum. If both Lx+y(q) and Ux+y(q) held, their witnesses would give r<r and s<s but r+s=r+s=q, a contradiction. Given q<q, choose rational a<b and c<d around x and y with (ba)+(dc)<qq. Either q<a+c, which gives Lx+y(q) by lower closure, or a+cq. In the second case the width inequality gives b+d<q, hence Ux+y(q) by upper closure.

We first prove cut extensionality. Equality of lower predicates implies equality of cuts: upper roundedness and disjointness give Ux(q)r<q.¬Lx(r), while locatedness at r<q proves the converse. Propositional and function extensionality therefore recover the upper predicate from the lower one. Cut extensionality now reduces associativity, commutativity, and the zero laws to reassociation and commutation of rational witnesses. For the inverse law, the implication Lx+(x)(q)q<0 follows from r<x<s and q=r+s. Conversely, for q<0 choose a rational bracket r<x<t with tr<q; then r<x<rq and q=r+(qr), so r and qr witness Lx+(x)(q). The upper cuts are dual, hence x+(x)=0.

The four displayed predicates for xy and xy satisfy the cut axioms. For example, locatedness of xy follows by applying locatedness first to x and then to y: either a lower predicate holds, or both upper predicates hold. Roundedness of the conjunctions uses a common rational refinement, and disjointness follows from disjointness of the selected component. Pointwise inclusion of lower predicates proves xxy,yxy,(xzyz)xyz, and the dual three laws for xy. Thus the displayed cuts are the join and meet. Translation by z preserves , and translation by z reflects it; hence translation is an order isomorphism and preserves joins and meets. This proves the lattice-ordered group laws. The formulas for rational cuts preserve and reflect order, addition, and negation.

For the second clause, a witness to x<y is precisely a rational q satisfying Ux(q)Ly(q), which says x<q<y.

To prove the Archimedean clause, let 0<x. The rational-density result gives q:Q with 0<q<x. Choose a rational upper bound r for y from inhabitedness of Uy, and then choose n:N with 0<n and r<nq by the Archimedean property of Q. Order preservation under finite sums gives y<r<nq<nx. These arguments are the constructive additive part of [Uni13]; no multiplicative inverse or field structure for Rd is asserted here. ◻

Definition 74.66 — Cauchy approximation

For an archimedean lattice-ordered abelian group F, a Cauchy approximation is a map x:Q+F with |xδxϵ|<δ+ϵ for all δ,ϵ; a limit of x is :F with |xϵ|<ϵ+θ for all ϵ,θ. F is Cauchy complete if every Cauchy approximation has a limit. We take a sequence modulus to be antitone in the requested precision. Any modulus can be put in this form by passing to dyadic precisions and taking finite running maxima; a Cauchy sequence with such an explicit modulus determines a Cauchy approximation, and conversely approximations retain their moduli.

Theorem 74.67

The Dedekind reals are Cauchy complete. A Cauchy approximation x has the limit cut Ly(q):=ϵ,θ:Q+. Lxϵ(q+ϵ+θ),Uy(q):=ϵ,θ:Q+. Uxϵ(qϵθ).

Proof of Theorem 74.67

Proof. For the first clause, choose a rational interval around one xϵ to see that Ly and Uy are inhabited; moving an endpoint by a smaller positive rational proves roundedness. If both Ly(q) and Uy(q) held, their witnesses would put xδ strictly more than δ+ϵ below xϵ, contradicting the Cauchy inequality. For locatedness, given q<r, choose ϵ>0 with 4ϵ<rq. Locatedness of xϵ at q+2ϵ<r2ϵ gives Lxϵ(q+2ϵ)orUxϵ(r2ϵ), hence Ly(q) or Uy(r). Finally, by rational density, for each ϵ,θ>0 there are endpoints xϵϵθ<q<xϵϵθ/2<xϵ<xϵ+ϵ+θ/2<r<xϵ+ϵ+θ. The definitions of Ly and Uy give q<y<r, and therefore |xϵy|<ϵ+θ. This proves exactly Cauchy completeness; no finality or Dedekind-completion idempotence theorem is used below. ◻

Exercise 74.17

★★★ Verify that (Lq,Uq) of definition 74.62 is a cut, and that q(Lq,Uq) is injective, order-preserving, and order-reflecting.

Exercise 74.18

★★★ Define x for x:Rd, verify the cut conditions, and prove x+(x)=0. Where is locatedness of x used?

Suggested first pass.

None of these problems is a prerequisite for a later chapter. Begin with exercise 211.3, then complete exercise 211.4.

Exercise 211.3

★★★ For the cut (Ly,Uy) in theorem 74.67, prove inhabitedness and roundedness of both halves. Then give the complete contradiction that rules out Ly(q)Uy(q), naming the two approximation indices and the strict rational inequality that contradicts the Cauchy bound.

Exercise 211.4

★★★ Practical project.dedekind-bracket-refiner Implement in Agda or Kappa dyadic bisection for 2, representing a bracket by natural numbers (l,u,d) with l2<2d2<u2. One step compares (l+u)2 with 2(2d)2 and returns a bracket of half the width. Starting from (1,2,1), print three refinements and check the invariant after each one. Mutation test: omit the factor 2 on the right side of the midpoint comparison; an invariant check must fail. The executable establishes only these finite arithmetic checks, not the existence of a Dedekind real or the chapter’s completeness theorem.

Bibliographic notes

The Dedekind definitions follow Chapter 11 of the HoTT Book [Uni13]. The exact free-completion, extension, field, and Cauchy-to-Dedekind embedding theorems used on the optional route are imported from Gilbert’s paper and accompanying formalization [Gil17]. The inductive–inductive Cauchy construction is motivated by the failure of the ordinary sequential quotient to have the desired choice-free universal property; the Dedekind side follows constructive analysis. General categorical semantics for the quotient and truncation constructions are treated in [Jac99]. The optional construction uses the QIIT/QWI elimination principle from chapter 68; no theorem in the core Dedekind development depends on that route.

Search the book

Type to search the local edition.