TITLE: Is there a purely topological proof that a certain topological space derived from logical compactness is compact?
QUESTION [10 upvotes]: Let $L$ be a first order language, and let $S_{L}=\{\sigma:\sigma\;\mbox{is an $L$-sentence}\}$. Also, by logical compatness I mean the Compactness Theorem of first order logic.
Compactness Theorem: Let $\Sigma$ be a set of $L$-sentences. $\Sigma$ is satisfiable if and only if each finite subset of $\Sigma$ is satisfiable.
Now, we may consider the set $X=\{M:M\;\mbox{is an $L$-structure}\}$ and define a topology on $X$ as follows:
For each $L$-sentence $\sigma$ define a basic open set $U_{\sigma}=\{M\in X:M\vDash\sigma\}$. Open sets in $X$ are arbitrary unions and finite intersections of the basic open sets $U_{\sigma}$.
A few facts we observe are: $X$ does not seem to be Hausdorff (not even $T_{0}$), and the connected components of $X$ appear to be the equivalence classes of structures by the relation $\equiv$ of elementary equivalence of $L$-structures.
In fact, for each $L$-structure $M$ we let $T_{M}=\{\sigma\in S_{L}:M\vDash\sigma\}$, and consider the set $Y=\{T_{M}:M\;\mbox{is an $L$-structure}\}$. We can define a topology on $Y$ by defining open sets in $Y$ to be arbitrary unions and finite intersections of basic open sets $V_{\sigma}$ defined for each $L$-sentence $\sigma$ by $V_{\sigma}=\{T\in Y:\sigma\in T\}$.
With this topology $Y$ is totally separated, and hence totally disconnected and Hausdorff. In fact it seems to be homeomorphic to $X/\negthickspace\equiv$ in the quotient topology.
I believe I can show that the Compactness Theorem is true if and only if $Y$ (resp. $X$) is a compact space. My question is:
Is there a purely topological proof showing that $Y$ (resp $X$) is a compact topological space?
Note: Where does this question come from? From working out the analogous situation for propositional logic (i.e. $L$ is a propositional language) and trying to work out the case for first order logic. For propositional logic the analogously obtained $X$ (space of $L$-valuations) and $Y$ are really homeomorphic, and readily seen to be homeomorphic to $\{0,1\}^{L}$ with the product topology. Hence, the Tychonoff Theorem provides the answer to my question. I have not found such a simple path for the first order situation I have described. Perhaps I should define $X$ and $Y$ differently? Where I am going wrong?

Thanks to the comments by Greg Nisbet and Chris Eagle that pointed out $X$ being a proper class. The $U_{\sigma}$ seem proper classes also. Hence, $X$ is given a topology in which the closed "sets” are proper classes (except for the empty set). Can we speak of $X$ being a compact class? It's quotient by $\equiv$ is indeed a set.
Are there any conditions on $L$ or otherwise that would make $X$ a set? (Chris Eagle points to some in a comment below)

Ok, $X$ is a proper class, it can be given a topology with the basic closed "sets" being the proper classes $U_{\sigma}$. All is well since $U_{\sigma}\cup U_{\tau}=U_{\sigma\vee\tau}$, and every closed subclass is of the form
$$\displaystyle\bigcap_{\sigma\in S} U_{\sigma},$$
for some subset $S$ of $L$-sentences. Now, is this topology compact? Well, in order for logical compactness to say that $X$ is compact we would need that
$$\displaystyle\bigcap_{\sigma\in S} U_{\sigma}\neq\emptyset,$$
whenever $S\subseteq S_{L}$, and that for every finite subset $S_0$ of $S$
$$\displaystyle\bigcap_{\sigma\in S_0} U_{\sigma}\neq\emptyset.$$

I think, one way to make sure $X$ is a set would be to define it to contain only the $L$-structures $M$ satisfying the satisfiable sets of $L$-sentences. That is, for every satisfiable set $S$ of $L$-sentences let $M_{S}$ be an $L$-structure such that $M\vDash S$. Define
$$X=\{M_{S}:S\;\mbox{is a satisf. set of $L$-sentences}\}$$

This question is related, and Noah Scweber provides a very useful answer there as well a here.

REPLY [3 votes]: I think this (very good!) question really begs some additional work, namely a more careful analysis of exactly what was needed for the topological proof of propositional compactness. The semantics for propositional logic is so closely tied to its syntax that it can be a bit tricky to see the analogues of the relevant issues for first-order logic (see also my comments here), so let me be explicit here:

A propositional language is just a set of atomic propositions, $P$. Given a propositional language $P$, a $P$-valuation is just a function $\nu:P\rightarrow\{0,1\}$ (which we extend to $\mathit{Form}_P$ in the usual way).

Let $\mathcal{X}_P$ be the space of $P$-valuations topologized via formulas as usual. Note that if $P=\bigsqcup_{i\in I}Q_i$ then there is a homeomorphism $\mathcal{X}_P\cong \prod_{i\in I}\mathcal{X}_{Q_i}$. This utterly trivial observation is one of the two key points that drives the topological proof of propositional compactness. The other trivial-but-key point is that the spaces of valuations on single atoms are compact (which is obvious, since they're finite); this gives us the desired compactness of all $\mathcal{X}_P$s via Tychonoff.
Actually there is a third trivial-but-key point, which will come up later - it's a fun exercise to try to guess what it is ahead of time! :P

OK, now on to the first-order setting:
The first trivial-but-key observation is a bit annoying for first-order logic since "gluing" structures is more complicated than "gluing" valuations, but it's not too annoying. For simplicity, let's say we just care about the special case of theories in a countable language which contain the sentence $\exists x_1,...,x_n\bigwedge_{1\le i<j\le n}x_i\not=x_j$ for each $n$ (= have no finite models). In this case we can without issue restrict attention to structures with underlying set $\mathbb{N}$. For a countable first-order language $\Sigma$, let $\mathcal{Y}_\Sigma$ be the space of $\Sigma$-structures with domain $\mathbb{N}$; then as before we get $$\mathcal{Y}_\Sigma\cong\prod_{i\in I}\mathcal{Y}_{\Sigma_i}$$ whenever $\Sigma=\bigsqcup_{i\in I}\Sigma_i$.
Exercise: what goes wrong if we don't assume $\Sigma$ is countable here?
Aaaaaand that's the end of the good news. In order to conclude that $\mathcal{Y}_\Sigma$ is compact for any (countable) $\Sigma$ we need to know that $\mathcal{Y}_{\{R\}}$ is compact for each individual symbol $\Sigma$. In the propositional case this was hard not to know, but in the first-order case this is ... as difficult as the full compactness theorem! The problem is that $\mathcal{Y}_{\{R\}}$ is already extremely complicated for $R$ a single binary relation symbol (for example). Not only are there lots of non-isomorphic countable $\{R\}$-structures, there are lots of inequivalent $\{R\}$-sentences (= distinct basic open sets for $\mathcal{Y}_{\{R\}}$).

If we want to pursue a topological approach, then, we're faced with the following sub-question:

Is there a way to "break $\mathcal{Y}_{\{R\}}$ into a product (or similar) of compact (ideally finite) spaces"?

Very much with loss of generality, let's assume $R=R^1$ is a unary relation symbol for simplicity. This is absolutely drastic - unlike a single binary relation symbol, there's very little we can do with a single unary relation symbol - but it will give us a useful first example to consider.
Good news - in this case there is an obvious decomposition! Each $\mathfrak{M}\in\mathcal{Y}_{\{R^1\}}$ can be identified in a natural way with a tuple $(\mathfrak{M}_i)_{i\in\mathbb{N}}$ of one-element $\{R^1\}$-structures - namely, $\mathfrak{M}_i$ is the substructure of $\mathfrak{M}$ with domain $\{i\}$. This is where the assumption of unarity is crucial: if $R$ were (say) binary, then we'd need to talk about building $\mathfrak{M}$ from "overlapping" pieces, which is just annoying.
ABSOLUTELY HORRIFYING NEWS: the basic open sets do not "line up properly!" For example, regardless of what $\mathfrak{M}$ is, each $\mathfrak{M}_i$ will (boringly) satisfy the $\{R^1\}$-sentence $$\forall x_1,x_2(R^1(x_1)\wedge R^1(x_2)\implies x_1=x_2),$$ but some-but-not-all $\mathfrak{M}$s satisfy that sentence. The culprit here of course is quantification. And this brings us to the above-hinted-at third trivial-but-key point. In propositional logic each valuation is built from its sub-valuations in a "basic-open-set-respecting" way. This was also true for first-order logic ... according to the above, too-coarse-to-be-useful decomposition/reconstruction idea. When we start talking about breaking up even the $\mathcal{Y}_{\{R\}}$s, even in the most boring case we run into trouble.
This, I think, is the key negative point:

Propositional logic, semantically speaking, really does reduce to combining obviously-compact spaces in simple ways, while first-order-logic does not.

Incidentally, this suggests a follow-up exercise: consider the extension of propositional logic by a new nullary connective $\star$, where $\star$ is true in a valuation $\nu$ iff $\nu$'s vocabulary is finite. We know that $\star$ adds no real expressive power, since either the vocabulary is finite or it isn't, but this does break the "basic-open-set-respecting" point. Can you modify the topological proof to smoothly accommodate $\star$?