I was watching this video from Michael Penn where he was showing how standard analysis 1 results fail if we restrict functions to $\mathbb{Q}$.
After I've been thinking about it for a bit, it seems to me that basic results can be rescued with a few modifications, since a real number can be thought of a (equivalence class of) cauchy sequence of rational numbers.
Continuity can be defined as follows: f is continuous if, for every cauchy sequence $x_n, f(x_n)$ is a cauchy sequence as well.
The IVT can be restated as follows: Let f be continous, and assume there are $a \neq b$ s.t. $f(a)f(b) < 0$, then there's a cauchy sequence $c_n$ with $a < c_n < b \ \forall n,$ and $f(c_n) \to 0$.
One potentially important difference I see is that now continuity is not a local property anymore.
Given the above, I was curious if the construction actually fails in some important way, or if the real numbers are, indeed, not indispensable, for doing analysis.
Disclaimer: I'm not claiming that real numbers are useless or should not be used. I believe standard analysis is simpler, and much more intuitive and elegant than "rational" analysis.