There's a famous classical circuit complexity result by Shannon that says almost all languages require exponential circuits [[1]], proven by comparing the number of distinct circuits of $n$ variables versus the number of boolean functions of $n$ variables.
Similarly, there's a result that "almost all" languages are undecidable, because the set of TMs is countable while the set of languages is uncountable.
Question: is there a result of similar flavor about complexity classes? E.g. something like "almost all" decidable languages are not in P
?
The question seems interesting to me because it's much less clear how to even define "almost all". Both sets here are countably infinite so cardinality arguments don't work. We could maybe do something like $$\lim_{n \to \infty} \frac{\text{# of polytime TMs with n states}}{\text{# of total TMs with n states}}$$ ? But that's obviously tremendously complicated and out of reach. Are there simpler definitions that would capture a similar meaning?