3SAT ∈ ⟹ SUBSET-SUM ∈
Suppose satisfies . Choose the numbers:
- for each : if take , otherwise .
- for each : let be the number of literals of that satisfies (at least , since satisfies , and at most ). Take of the slack numbers of — that is , , or of them. This is possible since and there are two slack numbers.
Variable columns. In column exactly one number ( or ) contributed digit ; the slack numbers contribute there, and other variables' numbers contribute in column . The total is — as required.
Clause columns. In column the chosen variable numbers contribute exactly (the number of satisfied literals of ), and the chosen slack numbers contribute . The total is — as required.
Column totals are bounded: at most in a variable column and at most in a clause column, so nothing carries and digits may be read one by one. The overall sum is exactly .