Hum chahte hain ek algorithm EVAL(ψ) jo truth value return kare. Isse leading quantifier ke meaning se banao.
Base case. Agar ψ mein koi quantifier nahi hai, toh yeh ek closed Boolean expression hai jisme saare variables fixed hain → bas plug in karo aur compute karo. Cost: polynomial space.
Existential step.ψ=∃xψ′. Definition ke anusaar ∃xψ′ true hai iff ψ′x=0 ke liye YAx=1 ke liye true hai:
EVAL(∃xψ′)=EVAL(ψ′[x=0])∨EVAL(ψ′[x=1]).
Universal step.ψ=∀xψ′ true hai iff ψ′dono values ke liye hold kare:
EVAL(∀xψ′)=EVAL(ψ′[x=0])∧EVAL(ψ′[x=1]).
What does a fully-quantified Boolean formula evaluate to (no free vars)?
Ek single truth value — true ya false.
SAT is which special case of TQBF?
Saare quantifiers existential: ∃x1⋯∃xnϕ.
How is ∃xψ′ evaluated recursively?
EVAL(ψ′[x=0])∨EVAL(ψ′[x=1]).
How is ∀xψ′ evaluated recursively?
EVAL(ψ′[x=0])∧EVAL(ψ′[x=1]).
Why is TQBF in PSPACE despite exponential time?
Recursion dono branches mein same memory reuse karta hai; space =O(n⋅∣ψ∣).
What is TQBF's complexity-class status?
PSPACE-complete (PSPACE ka canonical complete problem).
In the PSPACE-hardness reduction, why add ∀(u,v) in REACHt?
REACHt−1 sirf ek baar aaye → polynomial-size formula (Savitch folding).
What goes wrong with ∃m[R(a,m)∧R(m,b)]?
Rt−1 do baar aata hai → formula size har level par double hoti hai → exponential reduction.
Game interpretation of a true QBF?
∃-player ke paas ∀-player ke against winning strategy hai.
Why isn't ∃x∀yϕ=∀y∃xϕ?
∀y∃x mein, xy par depend kar sakta hai; swap karne se ek x sabhi y ke liye force ho jata hai.
Recall Feynman: ek 12-saal ke bacche ko samjhao
Socho ek tug-of-war switches ke saath khela ja raha hai. Player YES chahta hai bulb ON rahe; player NO chahta hai OFF rahe. Woh ek fixed order mein baari-baari switches flip karte hain. Chhota word "exists" matlab YES ki baari hai — YES ko sirf ek acchi flip chahiye. "for all" matlab NO ki baari hai, aur YES tabhi jitega jab bulb chahe NO kuch bhi kare ON rahe. Sawaal "kya yeh QBF true hai?" bas poochta hai: kya YES hamesha yeh game jeet sakta hai? Check karne ke liye computer har possible game khelkar dekhta hai — lekin chalaki se wahi scratch paper erase karke reuse karta hai har branch ke liye, toh use zyada paper nahi chahiye (= kam memory), chahe bahut time lage.