"매 computation 의 mathematical model". Alan Turing (1936) "On Computable Numbers" — 매 modern CS 의 theoretical foundation, 매 Church-Turing thesis 의 underpin (any "effective computation" = TM-computable, including 2026 LLMs / quantum computers in the strong CT extension).
매 핵심
매 Definition
TM = (Q, Σ, Γ, δ, q₀, q_accept, q_reject):
Q = finite states.
Σ = input alphabet.
Γ = tape alphabet (Σ ⊂ Γ, blank ∈ Γ).
δ: Q × Γ → Q × Γ × {L, R}. transition function.
q₀ = start state. q_accept, q_reject = halt states.
매 Operation
Infinite tape, head reads/writes one cell, moves L/R.
Configuration = (state, tape contents, head position).
Computation = sequence of configurations from start to halt.
delta={('q0','0'):('q1','X','R'),# mark first 0('q0','Y'):('q3','Y','R'),# all 0s done, check 1s('q1','0'):('q1','0','R'),('q1','Y'):('q1','Y','R'),('q1','1'):('q2','Y','L'),# mark matching 1('q2','0'):('q2','0','L'),('q2','Y'):('q2','Y','L'),('q2','X'):('q0','X','R'),('q3','Y'):('q3','Y','R'),('q3','_'):('accept','_','R'),}tm=TM({'q0','q1','q2','q3','accept','reject'},{'0','1'},{'0','1','X','Y','_'},delta,'q0','accept','reject')asserttm.run("0011")==Trueasserttm.run("001")==False
Halting problem proof sketch
# Suppose H(M, w) decides if M halts on w.# Construct D(M):defD(M):ifH(M,M):loop_forever()else:return# halt# What does D(D) do?# If H(D,D)=True (D halts on D), D loops forever — contradiction.# If H(D,D)=False (D loops on D), D halts — contradiction.# Therefore H cannot exist.
Church-Turing equivalence (λ-calc to TM)
# Church numerals (λ-calc) → TM-computable# 0 = λf.λx. x# 1 = λf.λx. f x# n = λf.λx. f^n x# Successor: λn.λf.λx. f (n f x)# Both λ-calc and TM compute same functions# Modern proof: encode λ-term as tape string, β-reduce step by step
Universal Turing Machine concept
# UTM takes encoding <M, w> and simulates M on wdefUTM(encoding):M_desc,w=decode(encoding)M=parse_TM(M_desc)returnM.run(w)# Modern equivalent: any general-purpose CPU running an interpreter
매 결정 기준
질문
Tool
매 problem 의 decidable?
Reduce to/from halting
매 lang 의 regular vs CFL vs RE?
Pumping lemma / TM construction
매 algorithm 의 complexity?
TM time/space hierarchy
매 model 의 power?
Compare to TM (Turing-complete?)
기본값: Standard 1-tape deterministic TM as reference; multi-tape for clarity.