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.