I was trying to think about what $\pi$ actually is. There are a lot of ways to get $\pi$ for example $4(1-\frac{1}{3}+\frac{1}{5}-\cdots)$.
But there is no one way to define it.
On the other hand a fraction like $\frac{1}{2}$ also has multiple definitions e.g. $\frac{2}{4}$ or $\frac{3}{6}$. Although we generally take the simplest case as the definition. But it is really the class of all pairs $(n,2n)$. We might say that a tuple of the form $(n,2n)$ has the property of half-ness. Two fractions that both have this half-ness property can be set equal.
In the same way, there is not one algorithm to define $\pi$. So $\pi$ must be the class of all algorithms that define it(?). Or the class of all mathematical expressions that define it.
We might say that an expression $4\sum_{n=0}^\infty (-1)^n\frac{1}{2n+1}$ has the property of $\pi$-ness and if two expressions both have this property then they can be set equal.
The difficultly I see is that some expressions, it might be unknown if they have the property of $\pi$-ness.
Also, if this definition was true we could not write that anything is equal to $\pi$ as $\pi$ is just a property. How would we write this? Perhaps we would write that the expression belongs to the set of expressions that have the $\pi$-ness property. Perhaps:
$$\text{Expression}\left\{4\sum_{n=0}^\infty (-1)^n\frac{1}{2n+1} \right\}\subset \pi$$
And then this would work for other irrational numbers too:
$$ \text{Expression}\left\{\sum_{n=0}^\infty \frac{1}{n!}\right\} \subset e$$
But then this is not very convenient if we want to express the numerical value of one of these algorithms we would have to write something like:
$$\text{Expression}\left\{x\right\} \subset \pi \implies x \approx 3.14159$$
The alternative would simply be to have $\pi$ set equal to one of the expressions with the $\pi$-ness property but this seems a bit like cheating.