4.6.19 · D5Theory of Computation

Question bank — Reducibility — many-one reductions

1,739 words8 min readBack to topic

Recall the one definition everything rests on: means there is a computable total function with for every string .

Before the questions, pin down the four facts everyone keeps referring to. These are proven in the parent note; here they are numbered so the reasoning below stays transparent.


True or false — justify

The arrow points from the known-hard problem into the new one
This is the whole engine — to prove hard you need ; hardness flows along the arrow, from source to target.
means is at least as hard as
False; it means is no harder than — read literally as "", so is the (possibly) harder one.
If and is decidable, then is decidable
False; a decidable can reduce to anything, even an undecidable (e.g. map every string to a fixed known-YES or known-NO instance of ). The transfer only runs the other way.
If and is decidable, then is decidable
True; this is Theorem 1 — run (always halts, total) then 's decider (always halts), and the composite always halts and agrees with membership in .
, via the same function
True; is logically identical to , so the very same reduces the complements.
is symmetric: implies
False; is only a preorder (reflexive + transitive). but there is no reason the reverse must hold in general.
The reduction function must be onto (surjective)
False; "many-one" forbids nothing about surjectivity — can miss huge chunks of , it just has to be a total computable function.
The reduction function must be injective
False; that would be a "one-one" reduction. Many-one explicitly allows several inputs to collapse to the same image.
If and is Turing-recognizable, then is Turing-recognizable
True; this is Theorem 3 — the constructed machine accepts exactly when and may loop otherwise, which is precisely a recognizer, not necessarily a decider.
requires to actually simulate machines
False; often just edits a machine description (mechanical text-surgery). Simulation would risk non-termination, which breaks the total-and-halting requirement.

Spot the error

"To show is undecidable I'll reduce ."
Wrong direction — reducing your target into a known-hard problem proves nothing about the target. You must map , source known-hard, arrow into the new problem.
"I checked , so my reduction is valid."
Only half-checked; you must also confirm . If a NO-instance sneaks into , the borrowed decider would falsely accept it.
"My loops forever on a few weird inputs, but it's fine — those inputs are rare."
Not fine; demands be total and halting on every input. A looping makes the constructed decider loop, destroying the decidability transfer.
" is undecidable and , so I conclude is harder than ."
Backwards; says is no harder than . The correct conclusion is that is also undecidable (Theorem 2, the contrapositive of Theorem 1).
"Since identity is a reduction, always holds."
No — identity gives (reflexivity), not . Mapping to its complement needs , which fails for the identity.
" can be any partial computable function that halts on YES-instances of ."
Insufficient; must halt on all inputs including NO-instances, otherwise the reduction property can't even be evaluated.

Why questions

Why must the biconditional have BOTH directions, not just YES→YES?
Because the borrowed -decider answers for every string; if a NO-instance of maps into , the decider says "accept" and lies about membership in .
Why is Theorem 2 (undecidability transfer) literally free once we have Theorem 1?
It is the exact contrapositive of Theorem 1: " decidable ⇒ decidable" flips to " undecidable ⇒ undecidable" — no new work needed.
Why does the reduction preserve recognizability (Theorem 3) but not automatically decidability?
The recognizer version lets 's machine loop on non-members; is still total, so acceptance is faithful, but the composite may loop — giving a recognizer, and only a decider (Theorem 1) upgrades it to a decider.
Why is transitive, and why does that matter?
If and are computable totals, so is , and . It matters because you can chain a whole library of known reductions to reach new problems.
Why is composition of the reduction functions guaranteed total?
Each of and halts on every input, so running then halts on every input — finitely many always-halting steps compose to an always-halting step.
Why does complementing sets keep the same ?
Because negating both sides of an "iff" preserves it; never had to know which set it was serving, it just relates a string to its image.
Why can't we use to conclude is undecidable from being undecidable?
bounds from above by ; a hard says nothing about a possibly-easy . Hardness only propagates from source (given) to target.

Edge cases

What does say when (empty language)?
You need with for no , i.e. every image lands outside ; this works iff , so reduces to any non-universal .
What does say when (all strings)?
Every image must land inside ; possible iff — just map everything to one fixed member of .
Can a trivial (constant) ever be a valid reduction?
Yes, when is decidable: pick a known YES-instance for members and a known NO-instance for non-members — but you must be able to decide to choose which, so this only works for decidable .
Does always hold?
Yes; the identity is a total computable function and trivially satisfies — this is reflexivity.
If both and are empty-or-universal, can every language reduce to ?
If then only reduces to it; if then only does — degenerate targets can accept almost no sources.
What if is total but its output is always the SAME string ?
Then membership of in is a single fixed truth value, so this only reduces languages that are entirely YES or entirely NO — it collapses all inputs to one question.
Is the empty function (defined nowhere) ever a reduction?
Never; it is not total, so it violates the definition immediately regardless of and .
Can hold when is not recognizable but is decidable?
No; decidable forces recognizable (even decidable) by Theorems 1 and 3, contradicting "not recognizable" — so no such reduction can exist.

Recall One-line survival kit

Arrow points FROM known-hard TO new. Check BOTH directions of the iff. is TOTAL and always HALTS. reads as "": source is no harder than target.

See also: A_TM is undecidable, Decidability and the Halting Problem, Turing-recognizable vs Decidable languages, Rice's Theorem, and for the timed cousin Polynomial-time reductions and NP-completeness.