Documentation

Atlas.TheoryOfComputation.code.NLSubsetP

If an NTM M recognizing A runs in O(log n) space (with bound g), then A ∈ P. The proof uses the configuration-graph reachability simulation: since the NTM uses log space, it has polynomially many configurations, so a polynomial-time deterministic decider can search the configuration graph.

theorem NLSubsetP.nl_subset_p {Γ : Type} (A : Set (List Γ)) (hA : LogSpace.InNL A) :

Sipser, Lecture 20. NL ⊆ P. Every language decided by a nondeterministic log-space TM is also decided by a deterministic polynomial-time TM.