Baire Category & Nowhere Differentiable Functions (Part One)

The Baire Category Theorem is a powerful result that relates a metric space to its underlying topology. (And sadly no, it has nothing to do with category theory!) Informally, the theorem says that ifyou can find a metric with respect to which your topological space is complete, then that space cannot be written as a countable union of nowhere dense sets. In other words, a metric can put a restriction on the topology. Here's the formal statement:
The Baire Category Theorem: Let be a complete metric space and let be a collection of open, dense subsets. Then is dense in , that is, .
"Now wait a sec," you might be thinking, "how is this equivalent to your 'informal' statement above?" I'm so glad you asked! Notice that " is dense in " implies that that . (Otherwise we could conclude that the closure of the empty set is the whole space, which, assuming is nonempty, is bogus*.) By De Morgan's law, this is equivalent to saying where each - being the complement of an open, dense set - is a closed and nowhere dense set. And this is precisely what our informal statement said above.
A quick word on what it means to be nowhere dense: As you might guess, nowhere density is the exact opposite of density. If a set is nowhere dense, it exists but there's not much to it. Sort of like an atom, which is mostly empty space, or a spider web. Technically, we say a set is nowhere dense if the interior of its closure is empty, i.e. if
To see the Baire Category Theorem in action, we'll sketch the proof that there exists a continuous function which is not differentiable on . In fact, we'll discover that most continuous functions on are NOT differentiable! This may be surprising since most of the continuous functions encountered in the classroom are differentiable. Baire Category tells us that those functions are the exception rather than the rule. To avoid writing an overwhelmingly long post, I'll postpone the proof until next week. In the mean time, I'll leave you with two warm-up exercises:
Warm-up #1
Prove that the irrationals are a dense subset of .
Proof. Let be an enumeration of the rationals and for each define . Then is open (since singleton sets in a metric space are closed) and dense (since the closure of is ). Then is the set of all irrationals and, by the Baire Category Theorem, this is dense.
Warm-up #2
Prove that cannot be written as a countable intersection of open sets (i.e. prove is not a G set).
Proof. Suppose to the contrary that where each is open. Since for each and since is dense, we know that each is dense. Thus can be written as a countable intersection of open dense sets.
Let be an enumeration of the rationals. Then we can write the irrationals as which is also a countable intersection of open dense sets (for the same reason as in #1 above).
Thus by the Baire Category Theorem, is dense in , which is a contradiction.*

Footnotes:
*The closure of the empty set is itself. This is because it's already closed (since its complement, , is open).