# Integration

At the start of the book, I had stated: “Topological convexity, topological measure theory, hyperspaces, and powerdomains will be treated in further volumes.”  The book got out in 2013, but I wrote that in 2011, almost seven years ago now.  What happened?

Well, nothing went according to plan, but I in fact wrote plenty of things during the period. Let me tell you what happened… with a surprise in the middle of the post.

## Version zero

I had been writing on semantic models for mixed probabilistic and non-deterministic choice, and one can still find one of the latest version of my notes on the subject on my Web page.  But that was in French, and there were many things I wanted to do better.

## Version one

I had finished writing the non-Hausdorff topology book in 2011, and I started my new project right away.  I started writing an introductory, motivating example from computer science… and developed it at such a level of detail that I had written more than 50 pages and the book had not even started.  Hence I decided to scrap that version.

## Version two

I decided I should start all over again.  Since I needed a notion of integral, and Choquet integration, which has my preference, is based on the Riemann integral of functions on the real line R, I decided to start with the Riemann integral on R.  However, the Riemann integral is perhaps the worst notion of integral in existence.  So I decided to talk about the Kurzweil-Henstock integral, which is a kind of miracle (see below).  Now, by the time I had finished talking about that, I already had more than 150 pages… and again I had not started touching the real subject of the new book.

I also realized at about that time that there were many books on the subject, including one that had come out during the same period.  Hence I decided to abandon that version as well.  However, I preferred to push it to completion.  But I could not decently publish it—not new enough.  I kept it, not knowing what to do with it.

This is the surprise I promised you: that book is here.  (Login: guest, password: guest.)  Happy New Year 2018!

## Version three

In the meantime, in 2011 or 2012, I realized that I should write the new book with Klaus Keimel, who was one of the best experts on the subject. He agreed, and it took me three years to send him a possible outline. We discussed the contents of the book in early 2015, but nothing really got started for some time: I had more urgent things to do, then he had to finish a paper, then I did not have time, and so on… until Klaus suggested we met for a week in Schloss Dagstuhl, away from all constraints. We finally started it there, in February 2016. However, as soon as we returned home, time escaped me again.  Also, I had refereed Klaus’s paper and therefore given him some more work to do before he could come back to the book.  As a result, the book had not advanced much until Klaus’s sad demise on November 18th, 2017.

I owe a lot to Klaus, and I decided I should give myself a good kick somewhere and start all over again.  Let us hope that version four will be the right one.

## The Kurzweil-Henstock integral

The Riemann integral of a function f : [ab] → R is defined as follows.  We subdivide the interval [ab] by cutting it at points a0=aa1a1 ≤ … ≤ an-1an=b, pick points t1 in [a0a1], t2 in [a1a2], …, and tn in [an-1an].  That data is called a pointed subdivision of [ab].  For such a pointed subdivision D, the Riemann sum of f relatively to D is ∑i=1n (aiai-1) f (ti).  Let us write that as ∫D f.  If ∫D f tends to some number when the width of the intervals [ai-1ai] tends to 0, then the result if the Riemann integral of f on the interval [ab].

Formally, we can cast that as the limit of a net, as follows.  The indexing preorder is given by pairs (D, η) where D is a pointed subdivision as above and such that aiai-1<η for every i.  Moreover, we say that (D, η) ⪯ (D’, η’) if η≥η’.  In other words, we are looking at what happens when the integration step η goes to 0.  We form a net by saying that its element at index (D, η) is ∫D f, and define the Riemann integral as the limit of that net, if the limit exists.

There are other ways of defining the Riemann integral.  Some of you may have heard about Darboux sums—a simpler construction—but that only works to define the Riemann integral of continuous maps.  There are also slightly simpler ways to define the Riemann integral itself, for example by restricting to pointed subdivisions where each interval [ai-1ai] has exactly the same length.

However, the point is that there is a simple modification of this modification, the Kurzweil-Henstock integral, which has much better properties than the Riemann integral.

What we do is replace the parameter η, which bounds the width of subintervals [ai-1aiuniformly, by a so-called gauge δ, which is a map which says what the allowed width of the interval is around each point ti.

Formally, a gauge is a map δ : [ab] → (0, ∞).  A pointed subdivision D is δ-fine if and only if aiai-1<δ(ti) for every i.  We now define a net whose index set consists of pairs (D, δ) where D is a δ-fine pointed subdivision, and whose element at index (D, δ) is again ∫D f.  This time, we preorder the index set by (D, δ) ⪯ (D’, δ’) if δ(t)≥δ'(t) for every t in [ab].  The limit of that net, if it exists, is the Kurzweil-Henstock integral of f on [ab].  We write ∫ab f for that integral.

The only difference with the Riemann integral is that we measure how fine a pointed subdivision is by resorting to a gauge, which is allowed to give varying widths of intervals across [ab].  But that makes a huge difference!  Let us list a few:

• The fundamental theorem of analysis: for every differentiable map f on [ab], the Kurzweil-Henstock integral of its derivative f‘ exists, and ∫ab f’= f(b)—f(a); the same theorem is known to hold for Riemann integrals only when f is continuously differentiable, that is, when f’ is continuous (and when f is almost everywhere continuously differentiable if you use the Lebesgue integral).  No such assumption is needed with the Kurzweil-Henstock integral.
• If f has an integral Iover the subinterval [ab-εn] for every n, and In tends to I when εn tends to 0, then f has an integral over the whole interval [ab], and that is just I.  This is called Hake’s theorem, and fails for both the Riemann and the Lebesgue integrals.
• The bounded convergence theorem holds: if fn is a sequence of functions that have Kurzweil-Henstock integrals on the interval [ab], if fn converges to f pointwise (that is, at each point t of [ab]), and if there are two functions g and h whose Kurzweil-Henstock integrals are finite and such that gfn ≤ h for every n, then ∫ab f is the limit of ab fn when n tends to infinity.  The same theorem holds with Lebesgue integrals, although it is usually formulated in a slightly different form, and called the dominated convergence theorem.  With Riemann integrals, the theorem fails at this level of generality, and is only known to hold when fn converges to f uniformly.
• The Kurzweil-Henstock integral generalizes the Lebesgue integral, in the sense that every function that has a Lebesgue integral also has a Kurzweil-Henstock integral, and their values coincide.  (The converse fails.)

I have discovered this fantastic integral by reading some notes due to Jean-Pierre Demailly.  He wrote some other notes to show how this can be generalized to integrals of functions of several real variables instead of just one.

## A final note

Define Riemann or Kurzweil-Henstock integrals through nets requires to show that the indexing preorder is directed.  In the case of Riemann integrals, that is easy.  For the Kurzweil-Henstock integral, that is slightly trickier.  We take two indices (D, δ) and (D’, δ’), namely: D is a δ-fine pointed subdivision, and D’ is a δ’-fine pointed subdivision.  We wish to find an index (D”, δ”) such that δ” ≤ min (δ, δ’), where the min is taken pointwise.  We can simply take δ” = min (δ, δ’)… but what can we take for a pointed subdivision D” here?  That has to be δ”-fine.  What makes it work is Cousin’s Lemma:

Lemma (Cousin).  For every gauge δ on [ab], there is a pointed subdivision D that is δ-fine.

Proof. That relies on the fact that [ab] is compact, really.  The open intervals (t—δ(t)/2, t+δ(t)/2), t ∈ [ab], form an open cover of [ab].  Extract a finite subcover, remove the intervals that are included in other intervals, and sort the points t thus obtained: t1 < t2 < … < tn.  Let a0=a, pick a1 from the intersection of (t1—δ(t1)/2, t1+δ(t1)/2) and (t2—δ(t2)/2, t2+δ(t2)/2), pick a2 from the intersection of (t2—δ(t2)/2, t2+δ(t2)/2) and (t3—δ(t3)/2, t3+δ(t3)/2), and so on.

However, there is a more elementary proof of Cousin’s Lemma.  That proceeds by dichotomy.  Assume that there is no δ-fine pointed subdivision on [ab].  Then there is no δ-fine pointed subdivision on [a, (a+b)/2] or on [(a+b)/2, b], otherwise we could just concatenate the two δ-fine pointed subdivisions we found on each of the subintervals.  We repeat the process, and find smaller and smaller intervals [anbn], n in N, on which there is no δ-fine pointed subdivision.  Each interval is twice smaller than the previous one, so their intersection consists of just one point t.  Look at the open interval (t—δ(t)/2, t+δ(t)/2).  For some large enough n, it must contain [anbn].  (Indeed, t = sup an = inf bn, so an>t—δ(t)/2 and bn<t+δ(t)/2 for n large enough.)  But then [anbn] has a trivial pointed subdivision, consisting of just one interval and the point t in the middle: contradiction.  ☐

Happy New Year 2018!

Jean Goubault-Larrecq (December 31st, 2017)