Math 2.0

Mathematical logic and foundations Theorem

Decidable iff recognizable and co-recognizable

Builds on Decidable languageRecursively enumerable language

Statement

Let Σ\Sigma be an alphabet and let L⊆Σ∗L \subseteq \Sigma^* be a language. Then LL is decidable if and only if both LL and its complement Σ∗∖L\Sigma^* \setminus L are recursively enumerable.

Remarks

If a machine decides LL, it recognises LL; swapping its accepting and rejecting states gives a machine that decides, and so recognises, the complement. Conversely, let M1M_1 recognise LL and M2M_2 recognise its complement. On input ww, run M1M_1 and M2M_2 alternately, one step at a time. Exactly one of them accepts ww after finitely many steps, so the combined machine always halts, and it accepts when M1M_1 is the one that accepts. The halting language HH shows that both halves of the condition are needed: HH is recursively enumerable, but HH is not decidable, so its complement is not recursively enumerable. The same statement for subsets of ℕ\N says that a set is computable exactly when it and its complement are computably enumerable.

Going deeper

For a student

The theorem is the standard tool to show that a language is not recursively enumerable. Since the halting problem is recognizable but undecidable, the theorem shows that its complement is not recognizable. In the arithmetical hierarchy, it says that the sets in both Σ1\Sigma_1 and Π1\Pi_1 are exactly the computable sets.

Reading path

To understand this page from the ground up, read these 30 pages in order. The foundations come first.

Show the path as a graph
Element, definition, no evidence levelElementdefinitionFunction, concept, no evidence levelFunctionconceptMonoid, concept, no evidence levelMonoidconceptProposition, concept, no evidence levelPropositionconceptSet, concept, no evidence levelSetconceptSet, definition, no evidence levelSetdefinitionTuring machine, definition, no evidence levelTuring machinedefinitionImplication, definition, no evidence levelImplicationdefinitionPredicate, definition, no evidence levelPredicatedefinitionOrdered pair, definition, no evidence levelOrdered pairdefinitionExistential quantifier, definition, no evidence levelExistential quantifierdefinitionUniversal quantifier, definition, no evidence levelUniversal quantifierdefinitionCartesian product, definition, no evidence levelCartesian productdefinitionSubset, definition, no evidence levelSubsetdefinitionUniqueness quantifier, definition, no evidence levelUniqueness quantifierdefinitionBinary relation, definition, no evidence levelBinary relationdefinitionFunction, definition, no evidence levelFunctiondefinitionCodomain, definition, no evidence levelCodomaindefinitionInjective function, definition, no evidence levelInjective functiondefinitionFree monoid, definition, no evidence levelFree monoiddefinitionSurjective function, definition, no evidence levelSurjective functiondefinitionBijective function, definition, no evidence levelBijective functiondefinitionEquinumerous sets, definition, no evidence levelEquinumerous setsdefinitionFinite set, definition, no evidence levelFinite setdefinitionAlphabet, definition, no evidence levelAlphabetdefinitionString, definition, no evidence levelStringdefinitionFormal language, definition, no evidence levelFormal languagedefinitionDecidable language, definition, no evidence levelDecidable languagedefinitionRecursively enumerable language, definition, no evidence levelRecursively enumerabl…definitionDecidable iff recognizable and co-recognizable, statement, no evidence levelDecidable iff recogni…statement
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Element definition
  2. Function concept
  3. Monoid concept
  4. Proposition concept
  5. Set concept
  6. Set definition
  7. Turing machine definition
  8. Implication definition
  9. Predicate definition
  10. Ordered pair definition
  11. Existential quantifier definition
  12. Universal quantifier definition
  13. Cartesian product definition
  14. Subset definition
  15. Uniqueness quantifier definition
  16. Binary relation definition
  17. Function definition
  18. Codomain definition
  19. Injective function definition
  20. Free monoid definition
  21. Surjective function definition
  22. Bijective function definition
  23. Equinumerous sets definition
  24. Finite set definition
  25. Alphabet definition
  26. String definition
  27. Formal language definition
  28. Decidable language definition
  29. Recursively enumerable language definition
  30. Decidable iff recognizable and co-recognizable statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Recursively_enumerable_language
About this page
TagEZ6Z9V91C2
URIm2://EZ6Z9V91C2
Kindstatement, theorem
WritingW0 stub
MSC03D25, 68Q04
StatusThis copy of the site has no build data. Run m2 status EZ6Z9V91C2.
AboutDecidable language, Recursively enumerable language
UsesDecidable language, Recursively enumerable language
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.