We want to exhibit a polynomial reduction from 3-SAT to IND-SET. That is, given a black box to solve IND-SET, we want to show how we could use it to solve 3-SAT, using only a polynomial amount of additional work.
Given a set of 3-SAT clauses, we want to find a satisfying assignment, which has to make each clause true. In order to make a clause true it suffices to choose exactly one term from each clause which will be set to \mathsf {T}. (Note that “setting \overline {x_i} to True” of course means setting x_i to \mathsf {F}.) However, we have to choose consistently: we can never pick both x_i and \overline {x_i}.
We start by constructing a graph G with 3k vertices arranged in k triangles, like so:
Each triangle corresponds to a clause, and each vertex corresponds to a term; in particular, label v_{ij} by the jth term from clause C_i. So, for example, given the clauses (x_1 \lor \overline {x_3} \lor x_4), (x_2 \lor x_1 \lor x_3), (\overline {x_1} \lor x_3 \lor \overline {x_4}), we would start by constructing the graph
This graph always has independent sets of size k (but no bigger): just pick exactly one node from each triangle. However, we don’t want to allow picking just any old combination of nodes. So we add more edges: in particular, add an edge between every pair of nodes labelled by x_i and \overline {x_i} for some i. So our example graph becomes:
An independent set can’t contain both endpoints of an edge. These edges therefore encode the constraint that we have to choose variables consistently: we can never choose both x_i and \overline {x_i}.
The claim is now that this graph has an independent set of size \geq k iff the original 3-SAT instance is satisfiable—and hence we can solve the original 3-SAT instance by asking our black box for whether this graph has an independent set of size \geq k. If the graph has an independent set of size \geq k, it must in fact have size exactly k and consist of a choice of one term from each clause. Just making these terms \mathsf {T} will result in a satisfying assignment (variables which do not correspond to any chosen term can be set to anything, say, \mathsf {F}); this is well-defined because we will never have both x_i and \overline {x_i} selected (because of the extra edges we added). Conversely, if there is a satisfying assignment, just choose one vertex from each triangle whose label is \mathsf {T} under the assignment (since it is a satisfying assignment, each clause must have at least one term which is \mathsf {T}). Any two vertices connected by an edge are either in the same triangle (and we only pick one vertex from each triangle) or are labelled with inverse terms (and hence can’t both be labelled \mathsf {T}), so this is an independent set of size k.
Finally, this reduction does only a polynomial amount of work: given k clauses we construct a graph with \Theta (k) vertices and O(k^2) edges.