Learn
Lesson · Intractability and Approximation · Hardness that travels

What the Solution Map Preserves

The same construction, one clause larger: 9 vertices, 15 edges, 12 independent sets of size 3 and 5 satisfying assignments. Two of the three verdicts are unchanged and one has flipped — every model is now the image of at least one set. A property measured on one instance and reported as a property of the construction is the Subject's hazard, and here it can be watched happening.

3 clauses → 9 vertices, 15 edges, k = 3 12 independent sets of size 3 against 5 satisfying assignments sound yes, on both formulas injective no, on both: 110, 101 and 011 have three preimages each onto NO on the two-clause formula, YES on this one the reduction did not change; the instance did
The same construction on a larger formula, and the verdict that moved

Core ideas

What this lesson establishes

One idea about reductions, one about what makes a property belong to a construction rather than to an instance, and one about the only invariant that the definition of a reduction actually guarantees.

1

A property of the map can depend on the instance

Soundness is a theorem: it is proved for every formula, and the panel's check is a confirmation rather than the evidence. Surjectivity is not. On two clauses one model has no preimage; on three clauses every model has one. The construction is identical in both cases, so whatever caused the difference lives in the formula, and any sentence beginning “this reduction is onto” is missing a quantifier.

2

Why the extra clause closes the gap

An independent set here has one vertex per clause, so k = m literals are chosen and at most m variables are named; every unnamed variable is left false. With two clauses at most two of three variables can be made true, so the all-true model is unreachable. With three clauses three literals are chosen, and there is a way to choose them naming all three variables positively, so the all-true model becomes an image. Nothing was fixed; the budget grew.

3

Only the yes-or-no answer is guaranteed

It is worth being blunt about what survives every instance: the formula is satisfiable exactly when the graph has an independent set of size m. Every other correspondence between the two solution sets is a fact about the pair of instances in front of you. The panel computes all of them and labels each separately, which is the only honest way to present a property that is sometimes true.

The material

One more clause, and which of the three verdicts survives it

The larger construction, the counts on both sides, the three verdicts compared with the smaller formula, and what quantifier each of them needs.

The formula is (x1 or x2 or not x3) and (not x1 or x2 or x3) and (x1 or not x2 or x3): the formula from the previous construction with a third clause added. The graph has 9 vertices — three literal occurrences per clause — and 15 edges: 9 triangle edges and 6 contradiction edges. The target is k = 3.

Counting the edges, so the picture is not taken on trust

triangles 3 clauses × 3 edges 9 contradictions x1 at v1 against ¬x1 at v4 1 x2 at v2, v5 against ¬x2 at v8 2 ¬x3 at v3 against x3 at v6, v9 2 x1 at v7 against ¬x1 at v4 1 total 15

The panel reports 12 independent sets of size 3 and 5 satisfying assignments, and then the three verdicts. Sound: yes, as before and as proved. Injective: no, as before — three of the twelve sets land on 110, three on 101, three on 011, two on 111 and one on 000. Onto: yes, which is the verdict that has moved.

Definition · Sound, injective, onto

For the map carrying each solution of the transformed instance back to a solution of the original: sound means every image really is a solution of the original; injective means no two solutions share an image; onto means every solution of the original is an image. A map with all three is a bijection on solutions, and the definition of a reduction requires none of them — only that one solution set is empty exactly when the other is.

What changed, and what a careful sentence about it looks like

On the two-clause formula the all-true assignment satisfies both clauses and has no preimage, because two chosen literals cannot make three variables true. On the three-clause formula the set consisting of x2 in the first clause, x3 in the second and x1 in the third is independent — the three lie in different clauses and no two contradict — and it names all three variables positively. So the all-true assignment is now an image, and so is every other model.

The correct sentence is therefore: on this formula the induced map is onto. The incorrect sentence, which is shorter and reads better, is that the reduction is onto. Both describe the same measurement; only one of them survives the reader trying it on a different instance, which the panel makes a one-click experiment.

Example · A verdict that holds on every instance, for contrast

Soundness is checked here too, on all twelve sets, and it passes. But the reason to believe it is the proof in “A Reduction Is a Construction”, which quantifies over every formula; the twelve checks are a test of the implementation. Knowing which of the panel's verdicts are theorems under test and which are measurements is the skill this page is training.

There is one more asymmetry worth naming. The failure of injectivity has a structural cause that does hold for every formula: a clause with two or more true literals always admits more than one choice of witness, and every satisfying assignment of a formula with such a clause therefore has several preimages. So “not injective in general” is defensible in a way that “not onto in general” is not — and the difference is not visible in the two panels, which report both as a verdict on an instance.

That last point is the reason this lesson exists rather than being a footnote to the previous one. Two verdicts printed in the same style, in the same panel, computed by the same routine, can have completely different logical status. The lab cannot tell you which is which. The proof can.

Interactive

3-SAT to independent set, gadget by gadget

A triangle per clause and an edge between contradictory literals — the graph is built here, a set is carried back, and the map is checked in both directions

3-SAT to independent set, gadget by gadgeta triangle per clause, an edge between contradictory literals, and k = the number of clauses
in the independent set showna clause trianglea contradictory pair

Method

Deciding whether a measured property belongs to the construction

Four questions to ask before writing a property of a reduction down as a fact about it.

1

State the property with its quantifier in front

“For every formula” or “for this formula”. If the sentence reads naturally without one, it is ambiguous, and the ambiguous reading is the stronger claim. This is the whole discipline and the rest of these steps are ways of testing it.

2

Try to derive the property from the construction alone

Soundness follows from the triangles and the contradiction edges, with no reference to any particular formula, so it is general. Try the same for surjectivity and the argument stalls at exactly the place where the clause count and the variable count have to be compared, which is instance data.

3

Find a second instance where the property could fail

Fewer clauses than variables is the shape that breaks surjectivity here, and the two-clause formula is the smallest case of it. A property you cannot attack is one you have not tested; look for the instance that stresses the quantity the argument depended on.

4

Separate a failure that is structural from one that is incidental

Injectivity fails whenever some clause has two true literals, which is a condition on the assignment rather than on the reduction, and is met by almost every interesting formula. Surjectivity fails only when the budget of chosen literals is too small to name the variables a model needs true. One of those generalises and the other does not.

Which verdicts need a quantifier

Score 0 / 0

Twelve independent sets, five models, and who lands where

Vertices 1, 2, 3 hold x1, x2, not x3; vertices 4, 5, 6 hold not x1, x2, x3; vertices 7, 8, 9 hold x1, not x2, x3. The right column is the assignment the set reads back to.

{1, 5, 7} → 110 {2, 5, 7} → 110 {3, 5, 7} → 110 {1, 6, 7} → 101 {1, 6, 8} → 101 {1, 6, 9} → 101 {2, 4, 9} → 011 {2, 5, 9} → 011 {2, 6, 9} → 011 {2, 6, 7} → 111 {1, 5, 9} → 111 {3, 4, 8} → 000 12 sets, 5 models, every model hit at least once the two-clause formula, for comparison: 7 sets, 6 models, and 111 the image of nothing sound yes yes injective no no onto YES no

The set {2, 6, 7} is the one worth reading twice. It takes x2 from the first clause, x3 from the second and x1 from the third; no two of the three lie in one clause and no two contradict, so it is independent; and it names all three variables positively, so it reads back to the all-true assignment. On the two-clause formula there is no set of this kind because there are only two literals to choose.

The single set landing on 000 is the mirror image and is worth the same look. It chooses not x3, not x1 and not x2, one per clause, and every variable it names is made false. It is the only way to reach the all-false model, so that model has exactly one preimage while three others have three each.

For a faded rehearsal, delete the third clause in the box, note the verdict change, then add a fourth clause instead and predict what happens before running it. The supplied first move: more clauses means a larger k, so more variables can be named — but more clauses also means fewer models. Say which of the two effects decides surjectivity, and then check.

Common mistakes

1
Generalising from the instance the panel happened to loadBoth of these formulas are defaults in the same control. Whichever one is on screen when the verdict is read becomes, if you are not careful, the verdict for the reduction. The correction is mechanical: write the instance into the sentence, and then see whether the sentence still says anything interesting.
2
Treating all three verdicts as the same kind of factThey are printed identically and they are not alike. One is a theorem being regression-tested, one fails for a structural reason that generalises, and one is a measurement that goes either way. A page cannot mark that difference in the numbers, so the reader has to.
3
Concluding that a non-bijective reduction is defectiveNothing is wrong. The definition asks for the answers to agree and they do. A reduction that also happened to be a bijection on solutions would be a stronger object with a stronger use — counting solutions, for instance — and this one simply is not that object.

Check your understanding

✓
Finish when you can say, of any property a reduction lab prints, whether it needs the instance named.

You should be able to derive soundness from the construction without naming a formula, explain why the number of chosen literals bounds the number of true variables, produce an instance on which the induced map is not onto, and separate a structural failure from an incidental one.

Note: This has been one reduction looked at twice. “One Structure, Three Problems” goes the other way: a map so tight that it holds on every subset of the vertices rather than only on the solutions, checked on all 32 of them.

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.