**Preliminaries**

Consider the expectations described in [this paper][4], which is an extension of the Lebesgue density theorem; [this paper][5], which is an extension of the Hausdorff measure using Hyperbolic Cantor sets; and [this paper][6], which applies a Henstock-Kurzweil type integral
on a measure Metric Space. We also use [conditional expectation][7]; however, the output of this expectation depends on the choice of the "condition". Moreover, there is no "known" choice function choosing "conditions" which "naturally" extend the expected values of the previous sentences to be unique and finite.

**Motivation**

According to an article in Quanta Magazine [Wood][1] writes, "No known mathematical procedure can meaningfully average an infinite number of objects covering an infinite expanse of space in general. The path integral is more of a physics philosophy than an exact
mathematical recipe."

I want to represent Wood's example with functions—I'm looking for two examples:

1. A function that matches Wood's description, such the expected values w.r.t any measure in the **preliminaries** is infinite or undefined. 

2. A "non-fractal" function where none of the expected values in the **preliminaries** gives a unique, finite, expected value.

One example of 2. is $f:\mathbb{Q}\to\mathbb{R}$, where:

\begin{equation}
f(x)=\begin{cases}
1 & x\in A_1:=\left\{r/q:r\in\text{odd }\mathbb{Z},q\in\text{even }\mathbb{Z},q\neq 0,\gcd(r,q)=1\right\}\\
0 & x\in A_2:=\left\{r_1/(q_1):r_1\in\mathbb{Z},q_1\in\text{odd }\mathbb{Z},\gcd(r_1,q_1)=1\right\}
\end{cases}
\end{equation}   

where we could find a unique average using                                                                                                                                                                                                                                                                                                                                                                [conditional expectation][7] of $f$ given a sequence of sets with a set-theoretic limit of $\mathbb{Q}$; however, the expectation depends on the sequence chosen. (Hence, the expected value can be any value and is undefined.) 

**Questions:** Does there exist an explicit function which answers 1. and 2.?

[This post][8] might be able to help.


  [1]: https://www.quantamagazine.org/mathematicians-prove-2d-version-of-quantum-gravity-really-works-20210617/
  [2]: https://en.wikipedia.org/wiki/Hausdorff_measure
  [3]: https://golem.ph.utexas.edu/category/2020/11/the_uniform_measure.html
  [4]: https://www.ime.usp.br/~afisher/ps/Analogues.pdf
  [5]: https://arxiv.org/pdf/math/9405217.pdf
  [6]: https://iris.unipa.it/retrieve/handle/10447/91249/100570/Tesi%20di%20dottorato%20G_Corrao.pdf
  [7]: https://en.wikipedia.org/wiki/Conditional_expectation
  [8]: https://mathoverflow.net/q/451452/504799