EDIT: now asked at MO.
For $\mathcal{X}$ a topological space, let $C(\mathcal{X})$ be the ring of continuous functions $\mathcal{X}\rightarrow\mathbb{R}$. For a first-order sentence $\varphi$ in the language of rings, write $\mathcal{X}\models_{C}\varphi$ iff $C(\mathcal{X})\models\varphi$ in the usual sense. Say that $\varphi$ is C-satisfiable iff $\mathcal{X}\models_C\varphi$ for some topological space $\mathcal{X}$.
I'm generally curious about analogues of classical model-theoretic questions in this context. For example:
What is the least cardinal $\kappa$ such that, if $\varphi$ is $C$-satisfiable, then $\mathcal{X}\models_C\varphi$ for some space $\mathcal{X}$ with cardinality $<\kappa$?
The obvious Lowenheim-Skolem argument doesn't help much here. Roughly speaking, given $\mathcal{X}\models_C\varphi$ we can form a "small" elementary substructure $(\mathcal{Y}, R)$ in the usual first-order sense of (an appropriate version of) the pair $(\mathcal{X},C(\mathcal{X}))$. However, in general we might have $R\subsetneq C(\mathcal{Y})$ (this is similar to the distinction between Henkin and standard semantics for second-order logic).
(Of course number of points isn't the only cardinal invariant for which we could ask a Lowenheim-Skolem flavored question, but it seems the simplest to start with. Another natural thing to do would be to restrict attention to a "nice" class of spaces, e.g. the compact Hausdorff spaces, but again this seems like a better first step.)
One issue here is that I don't know an abstract characterization of which rings are isomorphic to some $C(\mathcal{X})$. Obviously any such ring $R$ must be the underlying ring of a commutative associative unital $\mathbb{R}$-algebra, but beyond that I don't see anything. I recall seeing a very snappy theorem addressing this, but I can't find it at the moment (I think it was more complicated than just "any commutative associative unital $\mathbb{R}$-algebra's underlying ring," but I'm not certain).
My broader interest incidentally is in what happens if we replace $\mathbb{R}$ with some other topological structure (= first-order structure + topology such that all functions are continuous and all relations are closed, as subsets of the appropriate product space). Given a topological structure $\mathcal{A}$ and a topological space $\mathcal{X}$ we can always turn the set of continuous maps from $\mathcal{X}$ to $\mathcal{A}$ into a structure of the same type as $\mathcal{A}$ by defining everything "pointwise." So for each topological structure $\mathcal{A}$ we get an analogue $\models_C^\mathcal{A}$ of the relation $\models_C$ above.
Ultimately my interest is in developing a connection between "coarse" model-theoretic properties (e.g. variants of the Lowenheim-Skolem number) of $\models_C^\mathcal{A}$ and topological algebraic properties of $\mathcal{A}$. While this question specifically asks about $\mathcal{A}=\mathbb{R}$, if anyone has information about a different ("nontrivial") $\mathcal{A}$ or class of $\mathcal{A}$s I'd be very interested.
This is not even close to a complete answer, but it at least shows that $\text{ZFC}\vdash\kappa>2^{\aleph_0}$, so I will record it here. Let $$\varphi\equiv\forall u\left[u^2=u\to(u=0\vee u=1)\right]$$ be the sentence expressing that there are no non-trivial idempotents. Then $\mathcal{X}\models_C\varphi$ if and only if $\mathcal{X}$ is connected. To see this, first suppose $\mathcal{X}$ is disconnected, say with a decomposition $\mathcal{X}=U\sqcup V$ for non-empty open subsets $U,V$; then the map $\alpha:\mathcal{X}\to\mathbb{R}$ defined by $x\mapsto 0$ if $x\in U$ and $x\mapsto 1$ if $x\in V$ is a non-trivial idempotent element of $C(\mathcal{X})$. Conversely, suppose $C(\mathcal{X})$ has a non-trivial idempotent $\alpha$. Since the ring $\mathbb{R}$ has no non-trivial idempotents, we have $\alpha(x)\in\{0,1\}$ for each $x\in\mathcal{X}$; since also $\alpha\neq 0,1$, we have that $\alpha^{-1}(\{0\})$ and $\alpha^{-1}(\{1\})$ are both non-empty. This gives a partition of $\mathcal{X}$ into disjoint non-trivial open subsets, whence $\mathcal{X}$ is not connected.
Now let $\psi\equiv \exists u\left[u\neq 0\wedge\forall v(u\cdot v\neq 1)\right]$. I claim that $\varphi\wedge\psi$ is $C$-satisfiable, but that $\mathcal{X}\not\models_C\varphi\wedge\psi$ for any $\mathcal{X}$ whose cardinality is smaller than $2^{\aleph_0}$. To see that it is $C$-satisfiable, note that, for example, $\mathbb{R}\models_C\varphi\wedge\psi$, where $\mathbb{R}$ has the standard topology. Indeed, $\mathbb{R}$ is connected, so $\mathbb{R}\models_C\varphi$ by the remarks above; furthermore, the function $\alpha:\mathbb{R}\to\mathbb{R}$ given by $x\mapsto 0$ when $x\leqslant 0$ and $x\mapsto x$ when $x\geqslant 0$ is a non-invertible non-zero element of $C(\mathcal{X})$, whence $\mathbb{R}\models_C\psi$ as well.
To see that $\mathcal{X}\not\models_C\varphi\wedge\psi$ for any $\mathcal{X}$ of cardinality smaller than $2^{\aleph_0}$, suppose that $|\mathcal{X}|<2^{\aleph_0}$ and that $\mathcal{X}\models_C\varphi$. Then $\mathcal{X}$ is connected by the remarks in the first paragraph, so for any $\alpha\in C(\mathcal{X})$ the subspace $\alpha(\mathcal{X})\subset\mathbb{R}$ is connected as well. Connected subsets of $\mathbb{R}$ are precisely intervals; since $|\mathcal{X}|<2^{\aleph_0}$, this forces each $\alpha(\mathcal{X})$ to be a singleton. So every element of $C(\mathcal{X})$ is a constant function, whence $C(\mathcal{X})\cong\mathbb{R}$ as rings, whence $\mathcal{X}\models_C\neg\psi$, as desired.