More precisely:
Definition.
A subset $S \subset \Bbb R$ is called good if the following hold:
- if $x, y \in S$, then $x + y \in S,$ and
- if $(x_n)_{n = 1}^\infty \subset S$ is a sequence in $S$ and $\sum_{n = 1}^\infty x_n$ converges, then $\sum_{n = 1}^\infty x_n \in S$.
In other words, a good subset is closed under finite sums and countable sums whenever the sum does exist.
Question: What are all the good subsets of $\Bbb R$?
Origin
This question was asked recently and Conifold had commented how the only subsets of $\Bbb R$ closed under countable summations are $\varnothing$ and $\{0\}$. It was then natural to ask "closed under countable summation, assuming it exists".
My thoughts
Here are some examples of familiar sets which are good: $\varnothing$, $\{0\}$, $\Bbb Z_{\geq 0}$, $\Bbb Z_{> 0}$, $\Bbb Z$, $n\Bbb Z$, $\Bbb R$.
We even have the following:
$$r \Bbb Z := \{rn : n \in \Bbb Z\},$$
where $r$ is any real number.
But the examples apart from $\Bbb R$ are good for a trivial reason: Those are sets that are closed under finite summation and have the property that they are discrete enough so that the only convergent sums are those where the terms are eventually $0$. (In the case of $\Bbb Z_{> 0}$, there is no such sum.)
On the same note, intervals of the form $[a, \infty)$ and $(a, \infty)$ are good for $a > 0$.
In general, suppose that $S$ satisfies the following: $S$ is closed under finite sums and there exists $\epsilon > 0$ such that $|s| > \epsilon$ for all $s \in S$. Then, $S$ and $S \cup \{0\}$ are good.
Another example: $[0, \infty)$ and $(0, \infty)$ are good and do not follow the criteria above.
The following are some examples of not good sets: $\Bbb Q$, $\Bbb R \setminus \Bbb Q$, $\Bbb R \setminus \Bbb Z$, a proper cofinite subset of $\Bbb R$, any bounded set apart from $\{0\}$ and $\varnothing$. In fact, excluding $\Bbb Q$, the other ones are not even closed under finite sums.
In the same vein as $\Bbb Q$, we also have the set of real algebraic numbers which is not good (but is indeed closed under finite sums).
Here's a nontrivial one: Consider the set $$B = \left\{\frac{1}{2^k} : k \in \Bbb Z_{> 0}\right\}.$$ Then, any countable subset of $\Bbb R$ that contains $B$ is not good.
Proof. $(0, 1]$ is uncountable and every element in it can be written as a sum of elements of $B$. (Binary expansions.) $\Box$
A bit more thought actually shows that more is true: Since $(0, 1]$ is contained in the set of all possible sums, any good set containing $B$ must contain all of $(0, \infty)$.
Another one: let $(a_n)_{n \ge 1}$ be any real sequence such that $\sum a_n$ converges conditionally. Then, the only good subset containing $\{a_n\}_{n \ge 1}$ is $\Bbb R$, by the Riemann rearrangement theorem.
Additional comments
There are some variants that come to mind. Not sure if any of them are any more interesting. But I'd be happy with an answer that answers only one of the following variants as well.
- What if I exclude point 1. from my definition? Let's call such a set nice.
In that case, the set $\{1\}$ is nice but not good. (Of course, if $0 \in S$, then nice is equivalent to good.) What are the nice subsets of $\Bbb R$? What are the nice subsets which are not good? - What if I consider only those sums which have converge absolutely?
More observations
(These are edits, which I'm adding later)
Here are some additional observations:
- Arbitrary intersection of good sets is good and $\Bbb R$ is good. Thus, it makes sense to talk about the smallest good set containing a given subset of $\Bbb R$.
So, given a subset $A \subset \Bbb R$, let us call this smallest good set to be the good set generated by $A$ and notationally denote it as $\langle A \rangle$.
(In particular, $A$ is good iff $A = \langle A \rangle$.) - $A \subset B \implies \langle A \rangle \subset \langle B \rangle$.
- $\langle (0, \epsilon) \rangle = (0, \infty)$ and similar symmetric results.
- Suppose $S \subset (0, \infty)$ is dense in $(0, \infty)$, then $\langle S \rangle = (0, \infty)$.
Indeed, pick $a_0 \in (0, \infty)$.
Then, there exists $s_1 \in (a_0/2, a_0)$.
Put $a_1 := a - s_1$. Then, $a_1 \in (0, a_0/2)$.
Now pick $s_2 \in (a_1/2, a_1)$ and so on. Then, $\sum s_n = a_0$.
Symmetric results apply. In particular, the only dense good subset of $\Bbb R$ (or $\Bbb R^+$ or $\Bbb R^-$) is the whole set. - Suppose $S \subset (0, \infty)$ contains arbitrarily small elements (i.e., $S \cap (0, \epsilon) \neq \varnothing$ for all $\epsilon > 0)$), then $\langle S \rangle = (0, \infty)$.
To see this, let $a > 0$ be arbitrary. Pick $s_1 \in (0, a)$.
Let $n_1$ be the largest positive integer such that $n_1 s_1 < a$.
Then pick $s_2 \in (0, a - n_1s_1)$. Let $n_2$ be the largest such $n_2s_2 < a - n_1s_1$ and so on.
Then, $$\underbrace{s_1 + \cdots + s_1}_{n_1} + \underbrace{s_2 + \cdots + s_2}_{n_2} + \cdots = a.$$