Intuition The one core idea
A Turing Machine reading an input can do three things — accept , reject , or run forever — and that third option splits problems into "we can always answer" versus "we can only ever confirm a yes." Everything in this topic is bookkeeping about which strings a machine says yes to, and whether it always stops .
Before you can read the parent note, you must be able to read every squiggle it uses without pausing. This page introduces them one at a time , each with a picture and a reason it exists. Nothing later uses a symbol from earlier that you have not already seen defined.
Definition Symbol and alphabet
Σ
An alphabet is a finite bag of allowed characters. We name it with the Greek capital letter Σ (say "sigma"). Each item inside is a symbol .
Picture it as a small box of fridge-magnet letters. If the box holds only 0 and 1 , then Σ = { 0 , 1 } .
Why does the topic need Σ ? Because a machine can only read characters it was built to recognize. Fixing Σ first is like agreeing on the language before writing sentences.
A string is a finite row of symbols laid left-to-right, e.g. 0110 . The empty row (no symbols at all) is written ε (Greek "epsilon"). Its length , written ∣ w ∣ for a string w , is how many magnets are in the row: ∣0110∣ = 4 , and ∣ ε ∣ = 0 .
Definition The Kleene star
Σ ∗
Σ ∗ (say "sigma star") is the set of all possible strings you can build from Σ , of every length including zero.
Picture an endless shelf: on shelf 0 sits only ε ; on shelf 1 sit 0 and 1 ; on shelf 2 sit 00 , 01 , 10 , 11 ; and so on forever.
Why the star? The topic constantly needs to talk about "any input whatsoever." Σ ∗ is exactly "the universe of all inputs." Note it is infinite even though Σ is finite — this infinity is where all the drama lives.
Intuition Why finite alphabet but infinite
Σ ∗
A finite box of magnets still lets you spell infinitely many different words, because words can be arbitrarily long. That is the whole reason a machine with a fixed, finite design can face infinitely many different inputs.
∈ and non-membership ∈ /
w ∈ L reads "==w is in L ==" — the string w is one of the things collected in L . The slash version w ∈ / L reads "w is not in L ."
Picture L as a fenced field. w ∈ L means the string w stands inside the fence; w ∈ / L means it stands outside .
⊆ and proper subset ⊊
A ⊆ B reads "A is a subset of B ": everything inside fence A is also inside fence B (they may even be equal).
A ⊊ B (called proper subset) adds "…and B has at least one extra thing A lacks" — A is strictly smaller.
Why does the topic need ⊊ ? The headline result is Decidable ⊊ Recognizable : every decidable language is recognizable, but some recognizable languages are not decidable. The little slash on ⊊ is the entire punchline — it says the two classes are not equal.
L
A language L is just a set of strings, all drawn from the same universe: L ⊆ Σ ∗ .
Picture it as a fenced-off region on that endless shelf — some strings are inside the fence, all the rest are outside.
Here is the mental leap the topic depends on. A yes/no problem ("does DFA B accept string w ?") becomes a language : put every input whose honest answer is "yes" inside the fence, and everything else outside .
Intuition Why turn problems into sets
Once a problem is a set of strings, "can a computer solve it?" becomes the crisp question "can a machine sort every string into inside-fence or outside-fence?" We traded a fuzzy word ("solve") for a precise one (membership testing). That trade is the founding move of the whole subject.
L
L (say "L -bar" or "complement of L ") is ==everything in the universe that is not in L ==: L = Σ ∗ ∖ L , where ∖ means "remove these."
Picture flipping the fence's meaning: what was inside is now outside, and vice versa. Every string sits in exactly one of L or L — never both, never neither.
Why is L a star player? The crown-jewel theorem of the topic — "L is decidable iff both L and L are recognizable" — is a statement about a language and its complement together . Without the bar you cannot even write it down.
L just means the complicated inputs."
Why it feels right: "not in L " sounds like the hard leftovers.
The fix: L is a perfectly ordinary language — it is the "no" instances of the same problem. If L = "M accepts w ", then L = "M does not accept w ." Both are just fenced regions of Σ ∗ .
Definition Turing Machine
M
M is our name for a Turing Machine — the simplest complete model of "any computer." Feed it a string w ; it grinds away and eventually accepts , rejects , or loops (never stops).
Picture a robot reading a paper tape one cell at a time, allowed to rewrite cells and move left or right, following a fixed rulebook.
Definition Encoding brackets
⟨ ⋅ ⟩
⟨ M ⟩ (angle brackets) means "==the string that describes M ==" — the machine's own blueprint written out as characters, so it can itself be fed to another machine as input. Likewise ⟨ B , w ⟩ is one string packing together a description of B and a string w .
Picture printing a robot's full instruction manual onto the tape, so a second robot can read and simulate the first.
Why does the topic need ⟨ ⟩ ? Because its deepest questions are about machines examining machines — e.g. "⟨ M , w ⟩ : does M accept w ?". You can only put a machine inside a language (a set of strings) if you first turn the machine into a string. The Universal Turing Machine is exactly the robot that reads these encodings.
Definition Accept · Reject · Loop
Accept : M halts in a special "yes" state.
Reject : M halts in a special "no" state.
Loop : M never halts — it computes forever, giving no answer at all.
Picture three doors at the end of the run: green (accept), red (reject), and a corridor with no exit (loop).
Intuition Why the "loop" corridor changes everything
Green and red are both final answers . The endless corridor is not "no" — it is no answer . Crucially, while watching, you cannot tell "still working, almost done" from "stuck forever." This single blind spot is what separates a machine that decides (never uses the corridor) from one that only recognizes (may use it on non-members). Every theorem in the parent note traces back to this picture.
Definition Iff — the double arrow
⟺
P ⟺ Q reads "P if and only if Q ": the two statements are true in exactly the same situations — each forces the other. Picture two light switches wired so they are always both on or both off.
Proving an ⟺ means proving it both ways (⇒ and ⇐ ), like checking a two-way wire in both directions.
Definition Closed under an operation
A class of languages is closed under an operation if applying that operation to members always lands you back inside the class. Picture a room where a certain machine (say "take the complement") never lets you walk out the door — you always end up back in the room.
The topic asks: is the decidable class closed under complement? (Yes.) Is the recognizable class? (No.) Answering needs the bar L from §4 and the outcomes from §6.
Language L a set of strings
Three outcomes accept reject loop
Decidable strictly inside Recognizable
Decidability topic 4.6.17
Every arrow says "you need the left box before the right box makes sense." The two boxes that feed straight into the topic — proper subset and the loop outcome — are the ones the parent note leans on hardest.
Cover the right side and test yourself. If any answer is fuzzy, re-read that section.
What is Σ and why must it be finite? A finite bag of allowed symbols; a machine can only read characters it was built for, so we fix the alphabet first.
What does Σ ∗ contain, and is it finite? All strings of every length (including ε ) built from Σ ; it is infinite even though Σ is finite, because strings can be arbitrarily long.
Write the meaning of w ∈ L in plain words. The string w stands inside the fenced region L — it is one of the strings the language collects.
What does ⊊ add over ⊆ ? "Strictly smaller" — everything in the left set is in the right set, and the right set has at least one extra element.
A yes/no problem becomes a language how? Collect every input whose honest answer is "yes" into the language; all other inputs stay outside.
What is L , and can a string be in both L and L ? Everything in Σ ∗ not in L ; every string is in exactly one of them — never both, never neither.
Why do we need the encoding ⟨ M ⟩ ? To turn a machine into a string so it can be an input to another machine, letting languages contain machines.
Name the three things a Turing Machine can do on an input. Accept (halt yes), reject (halt no), or loop (never halt).
Why is "loop" different from "reject"? Reject is a final "no"; loop gives no answer at all, and you cannot tell it apart from "still working."
What does it take to prove a statement of the form P ⟺ Q ? Prove both directions: P ⇒ Q and Q ⇒ P .