The set of problems which are computationally decidable has measure 0

Fix a finite alphabet Σ . View each language L ⊆ Σ * as its characteristic function

χ L : Σ * → { 0 , 1 } ,

or, after fixing an effective enumeration of Σ * (say w 0 , w 1 , w 2 , … ), as an infinite binary sequence

x L = ( χ L ( w 0 ) , χ L ( w 1 ) , χ L ( w 2 ) , … ) ∈ { 0 , 1 } ℕ .

Equip the space { 0 , 1 } ℕ (Cantor space) with the standard product (fair-coin) probability measure μ defined on basic cylinder sets by

μ ( { x ∈ { 0 , 1 } ℕ : x 0 = a 0 , … , x n - 1 = a n - 1 } ) = 2 - n .

Claim. The set of decidable languages (equivalently, the set of characteristic sequences of decidable languages) has μ -measure 0 .


Proof

  1. Countability of decidable languages.

    There are only countably many Turing machines (or any fixed model of effective computation), because each machine can be encoded by a finite string over a finite alphabet. Every decidable language is decided by at least one (total, halting-on-all-inputs) Turing machine, so the collection of decidable languages is the image of a countable set under the map “machine ↦ language it decides.” The image of a countable set is at most countable. Hence the set D of decidable languages is countable:

    D = { L 0 , L 1 , L 2 , … } .

  2. Singletons have measure zero.

    Fix any binary sequence x ∈ { 0 , 1 } ℕ . For each n let [ x ↑ n ] denote the cylinder set of all sequences beginning with the length- n prefix of x . By definition μ ( [ x ↑ n ] ) = 2 - n . Clearly

    { x } = ⋂ n = 1 ∞ [ x ↑ n ] ,

    so by countable continuity (or monotone continuity) of measure,

    μ ( { x } ) = lim n → ∞ μ ( [ x ↑ n ] ) = lim n → ∞ 2 - n = 0 .

  3. Countable union of measure-zero sets has measure zero.

    Since D is countable we can write

    X D = { x L : L ∈ D } = ⋃ k = 0 ∞ { x L k } .

    Each singleton { x L k } has measure 0 by step 2, so the countable union has measure 0 :

    μ ( X D ) ≤ ∑ k = 0 ∞ μ ( { x L k } ) = ∑ k = 0 ∞ 0 = 0 .

Therefore the set of decidable languages (viewed as points in Cantor space) has measure 0.


Remarks, alternatives, and possible objections


Conclusion

With the natural identification of languages with infinite binary sequences and with the standard fair-coin product measure on Cantor space, the collection of decidable languages is countable, hence a countable union of singletons each of measure 0; therefore the set of decidable problems has measure 0. This formalizes and proves the intended claim.