← Student tools · Problem 4 · Lecture 5 · Round 1 (30 pts)

Decidable / Recognizable / co-Recognizable

Place classic languages in the right region of the Venn diagram.

CLO-1R1·30 ptsL5
🔊 Listen

This Venn diagram is the map of computability. Once you have proved a few landmark theorems (ATM recognizable but undecidable; co-ATM not even recognizable; EQTM neither), every other classification result is about placing new languages into the right region of this diagram.

Pedagogically, this is the cleanest organizing picture in the course. When a student asks "what does it mean for a language to be undecidable?", the answer is a finger pointing at the recognizable-but-not-decidable crescent.

The four regions
  • Decidable · TM always halts with correct answer. Closed under complement, union, intersection.
  • Recognizable \\ Decidable · TM accepts yes-inputs, may loop on no-inputs (e.g. ATM, HALTTM).
  • co-Rec \\ Decidable · complement is recognizable (e.g. ¬ATM, ¬HALTTM).
  • Neither · neither L nor L̅ is recognizable (e.g. EQTM).
🔊 Listen

The central observation that organizes everything:

Bridge theorem

L is decidable ⇔ both L and L̅ are recognizable.

Proof (⇐): run the recognizers in parallel; one of them must accept. Whichever fires first tells you the answer. (⇒) trivial.

Contrapositive form: if L is undecidable but recognizable, then L̅ is not recognizable. This is how we locate co-ATM in the diagram: ATM sits in "recognizable \\ decidable" ⇒ co-ATM sits in "co-rec \\ decidable", and ¬ATM ∉ recognizable at all.

🔊 Listen
  1. Can you give a TM that always halts? → Decidable. Done.
  2. Can you give a TM that accepts yes-inputs (may loop on no)? → Recognizable.
  3. Can you give a TM that accepts no-inputs (may loop on yes)? → co-Recognizable.
  4. Both 2 and 3? → Decidable (bridge theorem) — go back to 1.
  5. Neither? → Neither region.

The tricky step is always #5 — proving non-recognizability typically requires a reduction from co-ATM or similar.

🔊 Listen
Cycle through languages, watch the placement Auto-plays
🔊 Listen

Let's place ¬ETM = {⟨M⟩ : L(M) ≠ ∅} in the diagram. Is it recognizable?

Recognizer for ¬ETM

N = "on input ⟨M⟩:
  1. enumerate strings w1, w2, … in shortlex order;
  2. for k = 1, 2, …:
    simulate M on w1, …, wk for k steps each;
    if any simulation accepts: accept ⟨M⟩."

This dovetailing trick is the canonical way to show "exists w such that M(w) accepts" languages are recognizable. So ¬ETM is recognizable. ETM itself is not (it would be decidable by the bridge theorem, which it isn't — see Problem 6).

🔊 Listen
Language Region Reason
ADFA, EDFA, EQDFADecidableSimulate / graph reachability
ACFG, ECFGDecidableCYK / emptiness checking
ATM, HALTTMRec \\ DecUniversal TM; diagonal kills decider
¬ATM, ¬HALTTMco-Rec \\ DecBridge theorem
ETMco-Rec \\ Dec¬ETM recognizable (dovetail)
EQTMNeitherTwo reductions (Problem 8)
All non-trivial properties≥ Rec \\ DecRice's theorem (Problem 14)
🔊 Listen
  1. "Recognizable means decidable." No — recognizable allows looping. Decidable requires halting on every input.
  2. Forgetting closure properties differ. Decidable is closed under complement; recognizable is not.
  3. Mixing up "L is recognizable" with "L̅ is recognizable". They are different statements. The bridge theorem says both together is equivalent to decidability.
  4. "Empty language is recognizable but not decidable." No — ∅ is decidable (the TM that always rejects).
  5. Calling something "not recognizable" without proof. Non-recognizability usually needs a reduction from co-ATM.
🔊 Listen
🔊 Listen

Total time: 10 minutes.