$A, B$ is a partition of $\mathbb{R}$, and both $A$ and $B$ are dense. Is there a function $f: \mathbb{R} \to \mathbb{R}$, that is essentially discontinuous ($\lim f$ does not exist) at everywhere in $B$, and continuous at everywhere in $A$?
(I mean if there exists $A,B,f$ as a combination that satisfies the condition. In other words, I want either a proof about “for any partition such f does not exists”, or a positive example.)
The popcorn function (aka. Thomae's function) is discontinuous on $\mathbb{Q}$ and continuous on $\mathbb{R} \setminus \mathbb{Q}$, but not a positive example: Those are all removable discontinuities, because $\forall x_0\in \mathbb{R},\, \lim_{x \to x_0} f(x) \equiv 0$.
My attempt
I guess such a function does not exist, so I am trying to prove “continuous on $A$ $\implies \lim f$ exists on $B$”.
There exists a list of sequences $\{\beta_{ab}\}$, where
- $\beta_{ab} \in B$,
- $\lim_{b \to +\infty} \beta_{ab} = \alpha_a \in A$,
- $\lim_{a \to+\infty} \alpha_a = \beta \in B$.
I try to construct another sequence $\{\beta_{a_n,b_n}\}_{n}$ whose limit is $\beta$. $$ |\beta_{a_n,b_n} - \beta| \leq |\beta_{a_n,b_n} - \alpha_{a_n}| + |\alpha_{a_n} - \beta| \leq \varepsilon' + \varepsilon. $$ I get stuck here…
Relevant questions
real analysis - Continuous on rationals, discontinuous on irrationals - Mathematics Stack Exchange:
There is no function that is continuous on the rationals and discontinuous on the irrationals.