Pathological Periodicity, Part II: The Cage of Continuity

Pathological Periodicity
periodic functions
dense subsets
continuity
Author

Alonso Espinosa Domínguez

Published

March 18, 2026

Modified

October 31, 2026

This is Part II of the series Pathological Periodicity. Start from the beginning with Part I: Relearning the Basics.

Introduction and Preliminaries1

In the previous post, I motivated a series of questions surrounding the sums of periodic functions and the existence of functions with incommensurable periods. Now, we are ready to dive in. We will see that many of the things we intuitively hold to be true (or that I at least held to be true) about periodic functions do indeed hold for continuous functions in particular. We will also start to see, however, that the structural richness of sets of periods leaves much room for pathological behavior deviating starkly from intuitions based on the continuous functions.

To begin, I’ll review the basic definitions and facts about periodic functions that set the stage for our further explorations, revealing the interplay of algebra and topology in the world of periodicity.

Definition 1 (Periodic Function) A function \(f:\mathbb{R}\to\mathbb{R}\) is said to be periodic if there exists a non-zero real number \(p\) such that \(f(x+p)=f(x)\) for all \(x\in\mathbb{R}\). If there exists a smallest positive such \(p\), it is called the fundamental period of \(f\), and we say \(f\) is strictly periodic.

Remark. Note that a function can be periodic without being strictly periodic; for instance, the constant functions are trivially periodic (every number is a period), but they are not strictly periodic. As we will see below, the constant functions are far from the only example.

Definition 2 (The Period Group) For any function \(f:\mathbb{R}\to\mathbb{R}\), we denote by \(P_f\) the set of all periods of \(f\), i.e., \(P_f := \{p\in\mathbb{R}: f(x+p)=f(x) \text{ for all } x\in\mathbb{R}\}\). We call \(P_f\) the period group of \(f\). Also, we say two periodic functions \(f\) and \(g\) are incommensurable if \(P_f\cap P_g = \{0\}\), and they are commensurable otherwise.

(Note: Constant functions are trivially commensurable with any periodic function. Non-periodic functions still have a period group, but it is just \(\{0\}\).)

Also, we say “period group” because this set is literally a group (a subgroup of \(\mathbb R\)) with respect to addition: for any \(f:\mathbb R\to \mathbb R\), the set \(P_f\) is closed under all finite integer linear combinations, as is easily verified. In other words, \(\sum^N n_ip_i\in P_f\) whenever \(N\geq0\) and \(n_i\) are integers and \(p_i\in P_f\). For anyone unfamiliar with group theory: generally whenever we say some subset \(G\subseteq\mathbb R\) is an (additive) group, we will mean it is closed with respect to finite integer linear combinations.

A few more basic and useful facts that follow from these definitions:

  • Fact 1: Two functions \(f, g\) are incommensurable to each other if and only if each nonzero period of \(f\) is incommensurable to every nonzero period of \(g\), meaning their ratio is irrational (hence why we use this terminology for functions as well as numbers). Equivalently, the functions are commensurable iff there exist nonzero numbers \(p\in P_f\) and \(q\in P_g\) that are commensurable (\(p/q\in\mathbb{Q}\)). This holds because \(0\neq p/q\in\mathbb{Q}\) iff there exist nonzero integers \(n, m\) such that \(np = mq\), and thus \(0\neq np\in P_f\cap P_g\), showing that \(f\) and \(g\) are commensurable functions per our earlier definition.
  • Fact 2: Clearly if a function’s period group is cyclic and nontrivial, meaning \(P_f = p\mathbb{Z}:= \{np : n\in\mathbb{Z}\}\) for some number \(p\neq 0\), then \(f\) is strictly periodic with fundamental period \(|p|\). Actually, we can sharpen this: \(f\) is strictly periodic if and only if its period group is nontrivial and cyclic. Where \(p\) is the fundamental period for a strictly periodic \(f\), the inclusion \(p\mathbb Z\subseteq P_f\) is obvious. The other inclusion is established as follows: if \(r\in P_f\), there is a greatest integer \(n\) so that \(np\leq r\). But then \(0\leq r-np< p\), and \(r-np\) must be a period since \(P_f\) is a group. Because \(p\) is the fundamental period, \(r-np\) must be therefore be identically \(0\) so that \(r = np\in p\mathbb Z\).
  • Fact 3: If \(p\in P_f\), and \(S\) contains any half-open interval with length equal to \(|p|\), then \(f(S)\) is equal to the full range \(f(\mathbb R)\) of \(f\). This is because \(f(S)= f(S+np)\) for all integers \(n\), and \(\mathbb R=\bigcup_{n\in \mathbb Z} (S+np)\).

Finally, recall that we say a set \(S\subset \mathbb R\) is dense if its closure is the whole real line. Equivalently, it is dense if every open interval \((a, b)\subset \mathbb R\) contains at least one point of \(S\) (which in fact guarantees every interval contains infinitely many points of \(S\)).

With these preliminary facts and definitions out of the way, we can start to see how closely the nature of a periodic function relates to the topological properties of its period group.

Proposition 1 Let \(f:\mathbb R\to\mathbb R\) be any function. If \(P_f\) is dense, then \(f\) is either constant or else it is nowhere continuous.

Proof. Suppose \(f\) is not constant, let \(x \in \mathbb{R}\), and fix some \(y\neq f(x)\) such that \(y\) is in the range of \(f\). For each integer \(n>0\) let \(a_n = x-1/n\) and \(b_n=x+1/n\). The density of \(P_f\) guarantees the existence of periods \(p_n, q_n \in P_f\) such that \(a_n < p_n < q_n < b_n\). Since \(P_f\) is a group, the difference \(q_n-p_n\) is also a period. The interval \([p_n, q_n)\) has length exactly \(q_n-p_n\). Consequently by Fact 3, the image of \([p_n, q_n)\) under \(f\) is the entire range of \(f\), guaranteeing there is some \(z_n \in [p_n, q_n) \subset (a_n,b_n)\) such that \(f(z_n) =y\). We have therefore constructed a sequence \((z_n)\) converging to \(x\) such that \(f(z_n) = y\neq f(x)\) for all \(n\), meaning \(f\) cannot be continuous at \(x\).

Proposition 2 Let \(f:\mathbb R\to\mathbb R\) be periodic. Then \(P_f\) is dense if and only if \(f\) is not strictly periodic. Thus, if a periodic \(f\) is non-constant and continuous, it must be strictly periodic.

Proof. If \(P_f\) is dense, then the infimum of positive periods must be zero (because every interval \((0, 1/n)\) would have to contain a period of \(f\)), and thus no fundamental period can exist.

Conversely, if no fundamental period exists and \(P_f\neq{0}\), the infimum \(p\) of positive periods must be zero; for otherwise, we could find two distinct periods arbitrarily close to \(p\) such that their positive difference would be a positive period smaller than \(p\), violating the infimum. Thus, any interval around \(0\) must contain nonzero elements of \(P_f\).

Now take any interval \((a, b)\) with \(0\not\in (a, b)\). By the foregoing, we can find a nonzero \(x\in P_f\) with \(0<|x|<\min(\{|b|, |a|, |b-a|\})\). There thus must be some integer \(n\) so that \(nx\in (a, b)\), for otherwise we could find an \(n\) so that \((n-1)x \le a < b \le nx\), which contradicts \(|x| < |b-a|\). But \(nx\in P_f\), showing \(P_f\) is dense in \(\mathbb{R}\). The last part is an immediate consequence of this density and Proposition 1.

Actually, this last proposition is not even really about periodic functions specifically; it is a general fact about subgroups of \(\mathbb R\), as the following corollary makes clear:

Corollary 1 Suppose \(G\) is an additive subgroup of \(\mathbb R\). Then \(G\) is dense if and only if it is not cyclic.

Proof. If \(G=\{0\}\), it is cyclic and not dense, so there is nothing to prove. Otherwise, let \(f=\mathbb 1_{G}\) be the characteristic function of \(G\) (equal to \(1\) on \(G\), zero elsewhere). Then \(P_f=G\) as the reader can quickly verify, so \(f\) is periodic, and Proposition 2 together with Fact 2 gives us this corollary. (We of course could have proved this first and then Proposition 2)

We see then how analytic facts about the set of continuity points of a real function frequently correspond to topological facts about the subgroups of \(\mathbb R\). We add one more corollary that brings out this correspondence:

Corollary 2 Suppose \(G\) is an additive subgroup of \(\mathbb R\) containing at least two nonzero numbers \(p, q\) that are incommensurable. Then \(G\) is dense. Therefore, any non-constant function with 2 or more incommensurable periods is nowhere continuous.

Proof. Clearly such a \(G\) cannot be cyclic, and hence is dense by Corollary 1, because all nonzero elements of a cyclic group \(p\mathbb Z\) are commensurable with each other (they are of form \(np, mp\) for integers \(n,m\) and \(np/mp = n/m\in \mathbb Q\)). The second part of the corollary then follows immediately from the first part and from Proposition 1, applied to \(G = P_f\).

The Difference Operator and Periodic Sums

Now, we revisit the question of sums of incommensurable functions, and in particular we show that in the continuous case, such sums are never periodic.

For this and for the future posts in this series, we introduce the following operator which is ubiquitously used in discussions of the periodic decomposition problem:

Definition 3 (Difference Operator) For any function \(f:\mathbb{R}\to\mathbb{R}\) and any \(p\in\mathbb{R}\), we define the difference operator in p \(\Delta_p\) by \(\Delta_p f(x) := f(x+p) - f(x)\) for all \(x\in\mathbb{R}\). As the reader can verify, these are linear operators for all \(p\), and they commute with each other, i.e., \(\Delta_p\Delta_q = \Delta_q\Delta_p\) for all \(p, q\in\mathbb{R}\).

This operator measures how much \(f\) changes when we translate by \(p\). In particular, \(\Delta_p f\) is identically zero if and only if \(p\) is a period of \(f\). A few more key facts about difference operators and sums of functions:

  • For any \(f:\mathbb{R}\to\mathbb{R}\) and any \(q\in\mathbb{R}\), we have \(P_f\subseteq P_{\Delta_q f}\). That is, all periods of \(f\) are also periods of \(\Delta_q f\).
  • Given two functions \(f,g\), their sum is periodic if and only if there is an \(r\neq 0\) such that \(\Delta_r f +\Delta_r g=0\). Such an \(r\) is then a period of \(f+g\).
  • Thus, if \(r\) is a period of \(f+g\), then for all \(p\in P_f\) and all \(q\in P_g\) we have: \[0=\Delta_r \Delta_q f = \Delta_r\Delta_p g \tag{1}\] which implies: \[P_{\Delta_q f} \supseteq P_f + P_{f+g} \quad \text{and} \quad P_{\Delta_p g} \supseteq P_g + P_{f+g}\]
  • Hence, if \(f+g\) is periodic, then \(\Delta_q f\) and \(\Delta_p g\) are commensurable for all \(p\in P_f\) and all \(q\in P_g\), even if \(f\) and \(g\) are incommensurable. This however is not a sufficient condition for \(f+g\) to be periodic, as the reader can verify (we will also see this in a later post).
  • When \(f, g\) are incommensurable and their sum is periodic, then the \(r\) above must be incommensurable with all periods of \(f\) and \(g\). In other words, we actually have that for all \(p\in P_{f}\) and \(q\in P_g\), \[P_{\Delta_q f} \supseteq P_f \oplus P_{f+g} \quad \text{and} \quad P_{\Delta_p g} \supseteq P_g \oplus P_{f+g} \tag{2}\]
  • If \(f, g\) are themselves periodic and incommensurable with \(f+g\) periodic, Equation 2 implies \(P_{\Delta_q f}\) and \(P_{\Delta_p g}\) each contain a pair of incommensurable elements (any nonzero element of \(P_f\), resp. \(P_g\), together with any nonzero element of \(P_{f+g}\)), and are therefore dense by Corollary 2, forcing \(\Delta_q f\) and \(\Delta_p g\) to be either constant or nowhere continuous by Proposition 1.

This leads us to the main result of this section:

Theorem 1 (The Cage of Continuity) Let \(f\) be a continuous periodic function, and let \(g\) be any other periodic function. Then \(f+g\) is periodic if and only if \(f, g\) are commensurable.

Proof. Commensurability of \(f, g\) trivially implies periodicity of \(f+g\). For the other direction, suppose for the sake of contradiction \(f+g\) is periodic and \(f, g\) are incommensurable periodic functions. Let \(p\) be a positive period of \(f\). By Fact 3, we know that in the closed interval \(I:=[0, p]\), the periodic function \(f\) achieves every value in its range; thus it is bounded globally if and only if it is bounded locally in \(I\). Since \(f\) is continuous, it must be bounded in \(I\), and hence is globally bounded.

However, assuming incommensurability of \(f\) and \(g\), Equation 2 tells us \(\Delta_q f\) has a dense period group for any nonzero \(q\in P_g\), and is therefore either nowhere continuous or a nonzero constant. If \(\Delta_q f\) is nowhere continuous, then \(f\) must not have been continuous to begin with. If it is a nonzero constant \(c\), then \(f\) must be unbounded, because in this case \(f(x+nq) = nc + f(x)\), and the absolute value of this goes to infinity as \(n \to \pm \infty\). Either way, we contradict the assumption of continuity of \(f\), and we can conclude that \(f\) and \(g\) must actually be commensurable.

The reader may wonder whether Theorem 1 can be strengthened: must incommensurable periodic functions with a periodic sum be not just discontinuous, but nowhere continuous? I initially believed so — after all, the proof above shows that \(\Delta_q f\) and \(\Delta_p g\) are either nowhere continuous or a nonzero constant. In the latter case, if, say, \(\Delta_q f\) is a nonzero constant, then \(f\) must in fact be nowhere bounded, which is even worse than nowhere continuous (see Exercise 1 below). In the remaining case, where \(\Delta_q f\) is nowhere continuous, it might seem like this should force \(f\) to be nowhere continuous as well. But as Exercise 2 shows, this inference is not valid: a function can have points of continuity even when all of its nontrivial difference operators are nowhere continuous. This leaves “open” (for me at least) the question of just how large the set of continuity points can be under these conditions. We formalize this in the next exercises and questions.

[Edit, 04/04/26: I have since found some partial answers to the questions of size of the set of continuity points; namely the Baire Category Theorem forces these sets to be nowhere dense. See the appendix below.]

Let \(\mathcal{C}(f)\) denote the set of points of continuity of a function \(f\).

Exercises.

  1. Let \(f\) be a periodic function and suppose there is a \(q\not\in P_f\) such that \(\Delta_q f\) is a nonzero constant. Show that \(f\) must be unbounded on every open interval, and show this forces \(\mathcal{C}(f) = \emptyset\). (Hint: justify the assertion that, for such a \(q\), \(f(x+nq) = n\Delta_q f(x) + f(x)\). Then argue that \(P_f+ q\mathbb{Z}\) must be dense, and use this to show that \(f\) is nowhere bounded)
  2. Find a periodic function \(f\) with nonempty \(\mathcal{C}(f)\) such that \(\Delta_q f\) is nowhere continuous for all \(q\not\in P_f\). Conclude that the argument used in Theorem 1 does not directly generalize to all functions with nonempty \(\mathcal C(f)\). (Hint: constructing \(f\) so that \(\mathcal{C}(f)\) coincides with \(P_f\) makes things simpler, though note this is not necessary.)

And lastly, the questions which I don’t know how to answer, and whose answers I was not able to find after a bit of searching on the internet:

[Edit, 04/04/26: keep reading to the appendix below for partial answers.]

“Open” questions.

  1. When the conditions of Exercise 2 above are met, how large can \(\mathcal{C}(f)\) be (can it be uncountable? can it have nonzero measure?) What other properties could \(\mathcal C(f)\) have? It turns out it must be nowhere dense and thus topologically quite “small”; see the appendix.
  2. Is it possible to find a non-constant periodic function \(f\) with nonempty \(\mathcal{C}(f)\) such that \(P_{\Delta_q f}\) contains two incommensurable periods for some \(q\not\in P_f\)? How about for all \(q\not\in P_f\)? In either situation, how large can \(\mathcal{C}(f)\) be, in the various senses above?
  3. Does Theorem 1 still hold if “continuous” is replaced by “having at least one point of continuity”? In other words, if \(f\) and \(g\) are incommensurable periodic functions and at least one of them (say \(f\)) has a nonempty set of continuity points, must \(f+g\) fail to be periodic? And if it does not hold, what is the weakest continuity condition on \(f\) that still forces commensurability to be necessary for \(f+g\) to be periodic? See the appendix for two theorems, Theorem 2 and Theorem 3, which strengthen Theorem 1 and thus partially answer this question.

I plan to come back to this in a future post, and would be glad to hear from any readers who have ideas on answers to these questions.

Beyond Continuity: A Preview of Pathology

The above discussion shows that continuity acts as a rigid cage, forcing period groups in the non-constant case to be cyclic, and in particular nowhere dense, while also preventing sums of incommensurable functions from being periodic. In fact, as discussed in the appendix, even a “small” set of continuity points is enough to force these restrictions.

This means any periodic functions with dense period groups and any pair of incommensurable functions whose sum manages to remain periodic must be fairly pathological, at least from the point of view of their pointwise behavior. Namely, their sets of continuity points are nowhere dense, most (perhaps all?) such functions are actually nowhere continuous, and many are even nowhere bounded.

In later installments of Pathological Periodicity, we will explore these examples more closely, including some highly unintuitive functions found using the Axiom of Choice.

Appendix: The Baire Category Theorem and the Size of Sets of Continuity Points

Originally, I had formulated the “open” questions mostly in terms of density (can \(\mathcal C(f)\) be dense, or somewhere dense, while \(\Delta_q f\) is nowhere continuous for all or at least some \(q\not\in P_f\)?). Once again displaying my rustiness, a bit more searching revealed that none of these sets of continuity points can be dense, by the Baire Category Theorem. And in fact, under the conditions most relevant to an attempt to strengthen Theorem 1, they must be nowhere dense.

I will assume some basic familiarity with topology, but to clarify notation and terminology: the closure of a subset \(S\) of a topological space \(X\) we will denote by \(\operatorname{cl}_X{S}\), and the interior by \(\operatorname{int}_X S\). If there is no ambiguity about the underlying topological space we are working with, we drop the subscripts and simply write \(\operatorname{cl}{S}\), etc. We say \(S\) is somewhere dense if \(\operatorname{int}(\operatorname{cl}{S})\neq \emptyset\). Otherwise, it is nowhere dense.

The above definition for somewhere density is equivalent to the requirement that there be some nonempty open set \(V\subset X\) such that \(S\cap V\) is a dense subspace of \(V\) when \(V\) is equipped with the subspace topology; i.e., if \(V = \operatorname{cl}_V(S\cap V) = \operatorname{cl}_X(S)\cap V\). The reader can verify that the second equality holds for open subsets \(V\subset X\).

The main point of this appendix is to show the following:

Theorem 2 Let \(f\) be a periodic function such that \(\mathcal C(f)\) is a somewhere dense subset of \(\mathbb R\), and let \(g\) be any other periodic function. Then \(f+g\) is periodic if and only if \(f, g\) are commensurable.

A Baire space is any topological space in which the intersection of countably many dense open sets is dense. The Baire Category Theorem states that any complete metric space (like \(\mathbb{R}\)) is a Baire space. I had embarrassingly forgotten this theorem and the fact that, for any function \(f:\mathbb R\to\mathbb R\), the set \(\mathcal C(f)\) of continuity points is always a \(G_\delta\) set — an intersection of countably many open sets.

The implications of the Baire category theorem are most apparent if we first analyze the case where \(\mathcal C(f)\) is dense (its closure is all of \(\mathbb R\)), not just somewhere dense. In this case, it is necessarily the case that the set \(\mathcal C(f)-q\) is also a dense \(G_\delta\) for any \(q\in\mathbb R\), and thus by Baire, the intersection \(\mathcal C(f)\cap (\mathcal C(f)-q)\) must also be dense. But this intersection is contained in \(\mathcal C(\Delta_q f)\), since \(\Delta_q f(x) = f(x+q)-f(x)\) is continuous at any point where both \(f(x)\) and \(f(x+q)\) are continuous. Thus, if \(\mathcal C(f)\) is dense, then \(\mathcal C(\Delta_q f)\) must be dense as well for any and all \(q\in \mathbb{R}\), and thus \(\Delta_q f\) can never be nowhere continuous. This shows that the conditions of Exercise 2 above cannot be met when \(\mathcal C(f)\) is dense.

Combining this with Exercise 1, we get that if \(f, g\) are incommensurable periodic functions such that \(\mathcal C(f)\) is dense, then \(f+g\) cannot be periodic. But Theorem 2 states that this is true not just for dense \(\mathcal C(f)\) but for somewhere dense \(\mathcal C(f)\), which is a strictly weaker condition. Extending to this weaker condition is not very difficult but it is also not entirely automatic: unlike the case for “absolute” density, if \(\mathcal{C}(f)\) is only somewhere dense, then there can exist many \(q\) such that \(\Delta_q f\) is nowhere continuous. In other words, when we relax the conditions of Exercise 2 to only require some (rather than all) \(q\notin P_f\) to have \(\Delta_q f\) nowhere continuous, we can find examples whose points of continuity are in fact equal to a union of open intervals:

Example 1 Define \(f\) on \((-1, 1]\) by \(f(x) = x\cdot\mathbf{1}_{\mathbb{Q}}(x)\) on \((-1, -1/4]\cup[1/4, 1]\) and \(f(x) = 0\) on \((-1/4, 1/4)\), then extend to all of \(\mathbb{R}\) with period \(p = 2\). Then \(f\) is strictly periodic, and \(\mathcal{C}(f) = (-1/4, 1/4) + 2\mathbb{Z}\), which is a union of open intervals and is therefore somewhere dense. For any \(q\) with \(1/2 \leq |q| \leq 3/2\), the translate \(\mathcal{C}(f)-q\) is disjoint from \(\mathcal{C}(f)\), and one can verify that \(\Delta_q f\) is nowhere continuous.

This example, though it slightly complicates things, does not contradict Theorem 2. What saves us is that, even when we can find some “bad” numbers \(q\) for which \(\Delta_q f\) is nowhere continuous, we can never do so for all periods of any other function (i.e., all the elements of any subgroup of \(\mathbb R\)). In fact, for every “bad” \(q\) there is an integer \(n\) for which \(nq\) is “good”; in the example above, if we multiply a “bad” \(q\in [1/2, 3/2]\) by \(2\), then \(\mathcal{C}(f)-2q\) is no longer disjoint from \(\mathcal{C}(f)\), and so \(\Delta_{2q} f\) is not nowhere continuous, unlike \(\Delta_{q} f\). This motivates the next lemma, which is precisely what we need in order to extend the Baire argument to the somewhere dense case:

Lemma 1 Suppose \(f:\mathbb R\to \mathbb R\) is periodic and \(\mathcal{C}(f)\) is somewhere dense. Then for any \(q\in \mathbb R\), there exists a nonzero integer \(n\) such that \(\mathcal C(\Delta_{nq}f)\) is nonempty, and in fact somewhere dense.

Proof. First, a somewhere dense set is in particular nonempty, so \(f\) has at least one point of continuity. By Proposition 1, either \(f\) is constant or \(P_f\) is not dense. If \(f\) is constant, then \(\Delta_q f = 0\) for every \(q\), and there is nothing to prove. Otherwise \(P_f\) is not dense, so by Proposition 2 \(f\) is strictly periodic, and by Fact 2 we have \(P_f = p\mathbb Z\), where \(p>0\) is the fundamental period of \(f\). We fix this \(p\) for the rest of the proof.

If \(q/p\in\mathbb Q\), we are done: there is a nonzero integer \(n\) with \(nq\in p\mathbb Z\), so \(nq\) is a period of \(f\) and \(\Delta_{nq}f = 0\) is continuous everywhere.

Suppose then that \(p\) and \(q\) are incommensurable. The basic strategy is to find \(n\neq 0\) so that the closures of \(\mathcal{C}(f)\) and \(\mathcal{C}(f)-nq\) intersect in a set with nonempty interior; in other words, we want both of these sets to be dense with respect to a common nonempty open subset of \(\mathbb R\).

First observe that in general for any period \(r\in P_f\), we have \(r+ \mathcal C(f) = \mathcal C(f)\), and so actually \(P_f+ \mathcal C(f) = \mathcal C(f)\). This is because a sequence \((x_k)\) converges to \(x+r\) if and only if the sequence \(y_k=x_k-r\) converges to \(x\), and since \(r\) is a period, \[f(x_k) = f(y_k) \textnormal{ and } f(x) = f(x+r),\] meaning that \(f(x_k)\to f(x+r)\) if and only if \(f(y_k)\to f(x)\), and thus \(x+r\) is a point of continuity if and only if \(x\) is.

The \(P_f\)-invariance of \(\mathcal C(f)\) naturally extends both to its closure and to the interior of its closure (as the reader can verify). Say \(U := \operatorname{int}(\operatorname{cl}\mathcal C(f))\); by hypothesis, this is a nonempty open set in \(\mathbb R\). Therefore, we can find an open interval \((a,b)\subset U\), and every translate \(mp+(a, b)\) with \(m\in\mathbb Z\) is also a subset of \(U\).

Next, since \(p\) and \(q\) are incommensurable, the subgroup \(\mathbb Z_{p,q} = p\mathbb Z + q\mathbb Z\) is dense in \(\mathbb R\) by Corollary 2. In fact so is \(\mathbb Z_{p,q}\setminus p\mathbb Z\), because \(p\mathbb Z\) is closed with empty interior. Every element of this latter set has the form \(mp+nq\) with \(n\neq 0\), since \(n=0\) would put it in \(p\mathbb Z\).

So fix \(0<\epsilon<b-a\). By the density just established, there are integers \(m\) and \(n\neq 0\) with \(|mp+nq|<\epsilon\). The intervals \(mp+(a,b)\subset U\) and \((a,b)-nq\subset U-nq\) have the same length \(b-a\), and their left endpoints differ by \(|mp+nq|<b-a\), so they overlap. Hence \(V:= U\cap (U-nq)\) is open and nonempty.

To clean up notation, let’s write \(A:=\mathcal C(f)\) and \(B:= \mathcal C(f)-nq\). Observe that \(\operatorname{int}(\operatorname{cl}(B)) = U-nq\), so \(V = \operatorname{int}(\operatorname{cl}(A))\cap \operatorname{int}(\operatorname{cl}(B))\). In particular, \(\operatorname{int}\operatorname{cl}A \supset V\) and \(\operatorname{int}\operatorname{cl}B \supset V\). This of course tells us \(\operatorname{cl}A \supset V\) and \(\operatorname{cl}B \supset V\). So, using openness of \(V\), we obtain \[\operatorname{cl}_V (A\cap V) = \operatorname{cl}_\mathbb{R}(A)\cap V = V = \operatorname{cl}_\mathbb{R}(B) \cap V = \operatorname{cl}_V (B\cap V).\]

In other words, both \(A\cap V\) and \(B\cap V\) are dense subsets of \(V\) (with respect to the subspace topology). Moreover, they are both \(G_\delta\) sets in the topology of \(V\). But \(V\) is a Baire space, since it is an open subspace of a Baire space, meaning that we must conclude that \((A\cap V)\cap(B\cap V)\) is dense in \(V\), i.e., \(A\cap B\) is somewhere dense (and nonempty).

As before, however, \[\mathcal C(\Delta_{nq} f)\supset A\cap B = \mathcal C(f)\cap (\mathcal C(f)-nq),\] so we have finished the proof.

Finally, note that any function with at least one point of continuity must be bounded on some interval containing that point of continuity. Theorem 2 then follows immediately from Lemma 1 and the following theorem, which itself follows from Exercise 1:

Theorem 3 Suppose \(f\) is a periodic function that is bounded in at least one interval, and such that \(\mathcal C(\Delta_q f) \neq \emptyset\) for at least one nonzero \(q\in \mathbb R\). Then, for any \(g\) with period \(q\), \(f+g\) is periodic if and only if \(f, g\) are commensurable.

Proof. The proof follows the same structure as that of Theorem 1. If \(f, g\) are incommensurable and \(f+g\) is periodic, then for any nonzero \(q\in P_g\), the function \(\Delta_q f\) is nonzero and has a dense period group (because in this case its period group is given by Equation 2) and is thus either nowhere continuous or a nonzero constant. Under our hypothesis, there is one such \(q \in P_g\) such that \(\Delta_q f\) has points of continuity, and must therefore be a nonzero constant. But Exercise 1 shows \(f\) is nowhere bounded, a contradiction. Thus \(f, g\) cannot be incommensurable under our hypotheses.

Whether we can strengthen these theorems any further remains “open,” to me at least. Although, as we will see later, there do exist bounded incommensurable periodic functions whose sums are periodic, which significantly limits how much more we can strengthen Theorem 3.

Footnotes

  1. Like most of my posts, this one has seen many lives. I generally find it difficult to resist the urge to go back and make changes to my writing, in any context. When it comes to this post, often the edits have been mostly cosmetic. But on two occasions I have made substantial revisions worth highlighting since they are part of the “story” of how this post has come together. The first was the appendix, which I added on 4/04/26. Then on 10/31/26 I looked back at it and found myself distinctly dissatisfied. So, I rewrote a good chunk of it to make it somewhat more detailed and rigorous; the underlying ideas didn’t change, but it is now I hope clearer (and free of sign errors). I then also significantly rewrote the introduction in ways that impact the overall presentation of the material. In particular, earlier versions leaned on the notion of the rank of a subgroup \(G\) of the reals, which coincides with the dimension of the \(\mathbb Q\)-vector subspace spanned by \(G\). I used rank as an indicator of whether the group is dense (if rank \(> 1\), then it is dense, though converse doesn’t hold), and so I used it in discussing strict periodicity. But this is clunky for various reasons, not least of which is that actually these notions of rank and dimension do not quite work in most choiceless models of ZF (models where the axiom of choice as such fails even if perhaps some consequences of it do still hold). More exactly, in any model without a Hamel basis, an arbitrary \(\mathbb Q\)-subspace of \(\mathbb R\) that isn’t finite dimensional might not have a well defined dimension at all. So the corresponding notion of rank also falls apart in those cases. A big part of the raison d’être for this series is to investigate what results about periodicity and periodic decomposition survive in choiceless set theories, so it seemed best to part with this notion for now. I will return to a discussion of rank and dimension in a separate post.↩︎

Stay in touch

If you enjoyed this post or spotted an error, I'd love to hear from you. You can reach me at alonso@mathadventures.blog

Subscribe

You can follow this blog via RSS feed.

Share

If you found this useful, consider sharing it with someone who might enjoy it too.