Characterization of Memoryless Distributions
Let $X$ be a random variable on $\mathbb{R}$. Suppose there exists a Borel-measurable set $S \subseteq \mathbb{R}$ satisfying the following conditions:
- Support: $\mathbf{P}(X \in S) = 1$
- Semigroup Property: For any $a, b \in S$, $a + b \in S$
- Memorylessness: For any $a, b \in S$ with $\mathbf{P}(X > b) > 0$,
$$ \mathbf{P}(X > a) = \mathbf{P}(X > a + b \mid X > b) $$
Define the set of "right-limit" points of $S$ as:
$$ S^* \triangleq \{ \inf(S \cap [a, \infty)) : a \in \mathbb{R} \} $$
Equivalently, $S^*$ is the set of all points $a$ in $\mathbb{R}$ such that there exists a sequence $(a_n) \to a$ in $S \cap [a, \infty)$.
Then, exactly one of the following statements holds:
$S^* \subseteq [0, \infty)$, and there exists $\lambda > 0$ such that
$$ \mathbf{P}(X > x) = e^{-\lambda x} \quad \forall x \in S^* $$
$X$ is a degenerate random variable with a non-negative value, i.e., there exists $c \geq 0$ such that
$$ \mathbf{P}(X = c) = 1 $$
Remarks
This characterization encompasses not only the exponential and geometric distributions but also other distributions satisfying the memorylessness property. The key constraint on $S$ is that it must be a semigroup of $\mathbb{R}$. While the memorylessness property further restricts the possible choices of $S$, any "right-closed" semigroup $S \subseteq [0, \infty)$ (i.e., $S = S^*$) is admissible. For instance, $S = \{1,\frac{4}{3},2,\frac{8}{3}\}\cup[3,\infty)$ is a valid choice. This result does not contradict the findings in Nelsen (1987), where memorylessness is examined under less stringent conditions.
The only continuous (atomless) distributions satisfying the memorylessness property are the exponential distributions. This follows from the fact that any right-closed semigroup $S \subseteq [0, \infty)$ for which $0$ is an accumulation point must be equal to $[0, \infty)$. However, it is possible to construct mixtures of singular and atomic distributions that exhibit the memorylessness property.
Proof. For simplicity, we introduce the survival function $R(\cdot)$ defined by
$$ R(x) \triangleq \mathbf{P}(X > x). $$
Note that $R(\cdot)$ is right-continuous. Moreover, the memorylessness property reads in terms of $R(\cdot)$ as:
$$ R(a) = \frac{R(\max\{0, a\} + b)}{R(b)} \qquad \forall a, b \in S \text{ with } R(b) > 0. \tag{1}\label{e:mem0} $$
Now we make a series of observations on $S$ and $R(\cdot)$ that leads to the proof of the main claim:
$S \subseteq [0, \infty)$.
Suppose there exists $a \in S \cap (-\infty, 0)$. Then $R(na) > 0$ for some $n \in \mathbb{Z}_{>0}$, hence
$$ R(a) = \frac{R(\max\{0,a\}+na)}{R(na)} = \frac{R(na)}{R(na)} = 1. $$
Now let $b \in S$ be arbitrary. Then we can choose $m \in \mathbb{Z}_{>0}$ such that $b+ma < a$. Since $R(ma) = R(b+ma) = 1$, it follows that
$$ R(b) = \frac{R(\max\{0,b\}+ma)}{R(ma)} = 1. $$
Let $\beta = \sup S$. Then for any $b < \beta$, there exists $b' \in (b, \beta] \cap S$, hence
$$ \mathbf{P}(X \leq b) \leq \mathbf{P}(X \leq b') = 1 - R(b') = 0. $$
Letting $b \nearrow \beta$, we get $\mathbf{P}(X < \beta) = 0$. Together with $\mathbf{P}(X \in S) = 1$, this forces that $\mathbf{P}(X = \beta) = 1$, and in particular, $\beta \in S$. However, this contradicts $R(\beta) = 1$. Therefore $S$ cannot contain negative numbers.
The above observation resolves the degenerate case. From this point on, we assume $X$ is nondegenerate.
$R(0) = 1$.
Recall the assumption that $\mathbf{P}(X \neq 0) > 0$. Since $\mathbf{P}(X \geq 0) = 1$, this implies that $R(0) = \mathbf{P}(X > 0) > 0$. Now assume $R(0) < 1$ for the sake of contradiction. Then $\mathbf{P}(X = 0) = 1 - R(0) > 0$, hence $0 \in S$. However, this then implies that $R(0) = \frac{R(0)}{R(0)} = 1$, a contradiction.
Now, we define $h$ by
$$ h \triangleq \inf\{a \in S : R(a) < 1\}. $$
We will see that the value of $h$ plays an important role throughout the proof, and in particular, it determines the distribution of $X$.
$R(a) > 0$ for all $a \in \mathbb{R}$, and the following identity holds:
$$ R(a + b) = R(a)R(b) \qquad \forall a, b \in S^*. \tag{2}\label{e:mem} $$
Since $R$ is right-continuous, the memorylessness property $\eqref{e:mem0}$ holds for any $a, b \in S^*$ such that $R(b) > 0$, and so, it suffices to prove that $R(a) > 0$ for all $a \in \mathbb{R}$. If $R(h) = 0$, then $h > 0$ and $R(a) = 1$ for all $a \in [0, h)$, meaning
$$ \mathbf{P}(X = h) = \lim_{a \nearrow h} (R(a) - R(h)) = 1 $$
This contradicts the nondegeneracy assumption. Hence, $R(h) > 0$ and there exists $a > 0$ such that $R(a) > 0$. (If $h > 0$, simply set $a = h$. Otherwise, $h = 0$ is the right-limit point of $S$ and we can invoke the right-continuity of $R(\cdot)$ to choose such $a$.) Then $R(na) = R(a)^n > 0$ for all $n \in \mathbb{Z}_{>0}$ and hence the desired claim follows.
$R(a) < 1$ for all $a \in S^* \cap (0, \infty)$.
If $a \in S^* \cap (0, \infty)$ and $R(a) = 1$, then by $\eqref{e:mem}$, $R(na) = 1$ for all positive integer $n$, leading to a contradiction.
$R(x) = e^{-\lambda x}$ for all $x \in S^*$ for some $\lambda > 0$.
First consider the case $h = 0$, then for any $\varepsilon > 0$, there exists $a \in S \cap (0, \infty)$ such that $a\mathbb{Z}_{>0} \subseteq S$, and it is easy to check that this implies $S^* = [0, \infty)$. Then this and $\eqref{e:mem}$ together imply that $X$ has an exponential distribution.
Next, assume $h > 0$. Then $R(h) \in (0, 1)$. Set
$$ \lambda = -\frac{1}{h}\log R(h) \in (0, \infty), $$
so that $R(h) = e^{-\lambda h}$. We claim that $R(a) = e^{-\lambda a}$ for any $a \in S^*$. Since this is trivial when $a = 0$, we may assume $a > 0$. Choose a sequence $p_n/q_n$ of rational numbers with $p_n, q_n \in \mathbb{Z}_{>0}$ that approximates $\frac{a}{h}$ from below, i.e., $\frac{p_n}{q_n} \nearrow \frac{a}{h}$. Then $ p_n h \leq q_n a$, and
$$ R(a)^{q_n}
= R(q_n a) \leq R(p_n h) = R(h)^{p_n} = e^{-\lambda p_n h} $$
Hence
$$ R(a) \leq e^{-\lambda p_n h / q_n} \to e^{-\lambda a} $$
Likewise, approximating $\frac{a}{h}$ from above, we get $R(a) \geq e^{-\lambda a}$ and hence the desired claim follows.