Let L be context-free language.
There exists m > 0 st for every word w ∈ L with |w| ≥ m, w = uwxyz. Constraints |vxy| ≤ m, |vy| ≥ 1, $uvixyiz \in L$ for every i ≥ 0.
As a formula:
Contradiction of the lemma for specific values of m, u, v, x, y, or z is not sufficient.
To contradict the lemma, prove the negation, i.e. show that ∃i ≥ 0, $uvixyiz \notin L$.
As a ‘game’:
If L₁ and L₂ are context-free, then so are $L_1 \cup L_2$, $L_{1}{R}$, $L_{1}L_{2}$, $L_{1}{*}$.
Proof:
$L_1 \cap L_2$ and $L_1 \setminus L_2$ are context-free if $L_1$ is context-free and $L_2$ is regular.
$L \setminus { \lambda }$ is context-free if L is context-free.
${an bn | n \geq 1000 }$ is context-free.
Turing machines can read and write input word. Input is written on tape with a read-write-head.
In each step, the head:
Tape is two-sided infinite, i.e. unlimited memory (now if only that worked with actual computers).
Initial tape consists of word and blank symbols: □ □ □ input word □ □ □
Finite set of states Q, finite tape alphabet Γ, final accepting states.
Transition function δ: Q × Γ → Q × Γ × {L,R}. It’s partial, δ(q,a) may be undefined.
δ(q,a) = (q’, b, X) means:
configuration: a word vqw (q a state, v,w from the tape alphabet)
A halting state is a configuration where a transition on the next symbol is undefined. In other words, a configuration $vqw$ with $q \in F$. Formally, a configuration $vqaw$ or $vq\lambda$ st $\delta(q,a)$ or $\delta(q,\square)$ is undefined.
An execution can be infinite!
some example computations:
Language is recursively enumerable if it’s accepted by a (deterministic) Turing machine.
Church-Turing thesis: every computation of a computer can be simulated by a deterministic Turing machine.