Consider the segment $[0,1]\subset\mathbb{R}$ and the standard Lebesgue measure $\mu$ on $\mathbb{R}$. I wonder
if we can find such decomposition $A\sqcup B=[0,1]$, that for any subsegment $[a,b]\subset[0,1]$ we'd have $\mu(A\cap [a,b])=\mu(B\cap [a,b])$?
More particular case is that for any $x\in[0,1]$ we have $\mu(A\cap [0,x])=\mu(B\cap [0,x])$ and hence $\mu(A\cap [0,x])=\frac{x}{2}$.
Metaphor. Such decomposition can be assosiated with mixture of liquids. Suppose we have two liquids of equal amount. We bottle them, shake them up and then pour some into the glass. No matter how much we pour, the glass will contain equal amount of both liquids.
Ideas. We can decompose $[0,1]$ as $X\sqcup Y$ where $X=[0,1]\setminus\mathbb{Q}$ and $Y=[0,1]\cap\mathbb{Q}$. Here we have $\mu(X)=1$ and $\mu(Y)=0$. Maybe it's possible to describe a procedure of moving points from $X$ to $Y$ (i.e. excluding them from $X$ and including in $Y$) that will lead to desired decomposition. Another thought is to set $A_n=\bigsqcup_{k=0}^{2^{n-1}-1}[2k\cdot2^{-n},\ (2k+1)\cdot2^{-n})$ and $B_n=[0,1]\setminus A_n$ for all $n\in\mathbb{N}$. Then for any $n\in\mathbb{N}$ we'll have
$A_n\sqcup B_n=[0,1]$
$\mu(A_n)=\mu(B_n)$
$|\mu(A\cap [a,b])-\mu(B\cap [a,b])|\leq 2^{-n}$ for any $[a,b]\subset[0,1]$
I wonder if we can take some kind of limit here raising $n\longrightarrow\infty$.
Origin. This question arose after I read this post. It's interesting whether the condition of Riemann integrability is crucial there or we could weaken it with Lebesgue integrability. In attempts to find counterexample I thought of above mentioned decomposition. If it exists then we could define $f(x)=1$ if $x\in A$ and $f(x)=-1$ if $x\in B$. That would be our counterexample because $\int_I f\,d\mu$ would be zero for any interval $I\in[0,1]$.
Generalization. Suppose $W\subset\mathbb{R}^n$ is a Lebesgue measurable set, and $\{r_i\}_{i=1}^k\subset\mathbb{R}_+$ such that $r_1+\ldots+r_k=\mu(W)$. Is it possible to choose such decomposition $A_1\sqcup\ldots\sqcup A_k=W$ that for any measurable $V\subset W$ we'd have $\mu(A_i \cap V)=r_i\cdot\frac{\mu(V)}{\mu(W)}$ for any $1\leq i\leq k$.
In other words, can we uniformly "blend" measurable subsets of a measurable set in any proportions? It seems to me like a very interesting result, provided it's true.