Firstly, the definitions of compactness without the axiom of choice are not equivalent as you may want them to.
Secondly, Tychonoff's theorem is in fact equivalent to the axiom of choice. Indeed in this case where we take products of $[0,1]$ we can relax the demand for weaker choice principles (for example ultrafilter lemma, maybe less for this specific case).
However to define $r$ as $r(n)=0\iff n=2k+1$ you do not need the axiom of choice. Consider $P(\omega)$ under the equivalence relation:
$$A\sim B\iff A=B\lor \left(A=\omega\setminus B\land\left(|A|<\omega\lor |B|<\omega\right)\right)$$
That is two sets are equivalent if one is finite and the other one is its complement, or if they are equal. It is quite simple to see that this is an equivalence relation and every equivalence class is either a singleton of a pair.
We can also take $\mathcal A$ to be all the subsets which are only equivalent to themselves; and the finite sets when the equivalence class is a pair.
Define the bijection $f\colon\mathcal A\to[0,1]$ as: $$f(A)=\sum_{n\in A} 2^{-n}$$
The number $r$ which you seek to define is exactly $f(\{2k\mid k\in\omega\})$. All this, without any choice.