Documentation

CslibFrontier.Computability.Complexity.Classes.P.Countable

There are countably many problems in P #

Problems in P are decidable (Cslib.Complexity.isDecidable_of_mem_P), and there are countably many decidable problems (Turing.MultiTapeTM.countable_setOf_isDecidable), so P is countable (Cslib.Complexity.countable_P). Diagonalization over P needs only this count: the existence of complexity cores (CslibFrontier.Computability.Complexity.Classes.Immune.Core) is an example.

Main results #

theorem Cslib.Complexity.isDecidable_of_mem_P {α : Type u_1} {enc : α ↪ List Bool} {A : Set α} (hA : A ∈ P enc) :

Problems in P are decidable.

theorem Cslib.Complexity.countable_P {α : Type u_1} (enc : α ↪ List Bool) :
(P enc).Countable

There are countably many problems in P.