0-1 Laws in first order logic state that the probability of a FOL sentence $\Phi$, defined as follows: $$P(\Phi) = \frac{|\{\omega \in \Omega^{n}:\omega \models \Phi\}|}{|\Omega^{n}|} $$ where $\Omega^{n}$ is the set of all models on a domain of size $n$, either goes to $0$ or $1$ as $n \rightarrow \infty$.
My questions:
- Is are there fragments of logic where we can compute the asymptotic probability algorithmically ? Any such algorithm is not obvious to me from the linked notes.
- Does undecidability of FO mean that assymptotic probabilities are also undecidable in general ?
- Are there fragments where this can be done ?
- I am specially curious about FO2 (function free FOL with only two variables), C2(function free FOL with only two variables and counting quantifiers) etc.
The reason I am curious about the two variable fragment is that with a single predicates, it seems to be easy for example: $\forall xy. Rxy$ clearly has an assymptotic probability 0, I guess so does $\forall x \exists y Rxy$. But $\exists x \exists y Rxy$ has an asymptotic probability 1.