How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
3SAT polynomial-time many-one reduces to directed Hamiltonian cycle
Statement
There is a polynomial-time many-one reduction from -SAT to directed Hamiltonian cycle.
More explicitly, for every -CNF formula one can construct in polynomial time a directed graph with distinguished vertices such that
- is satisfiable if and only if has a directed Hamiltonian path from to ; and
- after adjoining one fresh vertex and the two arcs and , the resulting digraph has a directed Hamiltonian cycle if and only if is satisfiable.
Facts & Assumptions
Given: A -CNF formula
Each clause is a disjunction of exactly three literal occurrences, where a literal is a Boolean variable or its negation; repeated occurrences are allowed. The formula is satisfiable when a truth assignment makes every clause true. The empty conjunction is true. The language -SAT consists of the well-formed satisfiable encodings under explicit variable-name and clause-list coding; malformed strings are excluded.
A polynomial-time many-one reduction is a total polynomial-time function preserving membership in both directions, by Polynomial-time many-one reductions.
A gadget reduction must prove the construction bound and both directions of the witness translation, by Reduction gadgets and interface invariants.
Directed Hamiltonian paths and cycles are the decision problems from Directed and undirected Hamiltonian path and cycle decision problems.
Proof
If , then is the empty conjunction and is satisfiable. Let be the one-vertex digraph and name its unique vertex both and ; it has the required one-vertex Hamiltonian path. Adjoining and the two opposite arcs between and gives a directed Hamiltonian cycle. This is the required constant-size output in the empty case. Assume henceforth that , so at least one variable occurs. Enumerate the variables of as and the clauses as . For each variable , create vertices The crossbar of the gadget is the bidirected path and we also add the four boundary arcs Thus every Hamiltonian path from to inside must enter the crossbar at one end, traverse every crossbar vertex exactly once, and exit from the opposite end; equivalently it is either the left-to-right route through all clause pairs or the right-to-left route through all clause pairs. Identify with for , and write , . For each clause , add one clause vertex . If the literal occurs in , add the two arcs if the literal occurs in , add If both literals occur, add both pairs of arcs. This completely specifies the digraph , which has vertices and arcs and is computable in polynomial time.
Suppose that is satisfiable. In each gadget , choose the left-to-right crossbar route if and the right-to-left route if . Concatenating these routes through the identified vertices already yields a directed path from to visiting every gadget vertex exactly once. Now fix a clause , and choose one literal of that is true under the satisfying assignment. If it is a positive occurrence of , replace the local edge on the left-to-right route by the detour . If it is a negative occurrence of , replace the local edge on the right-to-left route by . Doing this once for each clause visits every clause vertex exactly once and does not revisit any gadget vertex, because each detour leaves and re-enters the same clause pair. Hence has a directed Hamiltonian path from to .
Suppose conversely that has a directed Hamiltonian path from to . Consider the first departure from traversal of successive crossbars in one direction, with optional same-pair clause detours. Until such a departure, the preceding crossbar vertices have been visited and the succeeding ones have not. One possible departure would exit directly to from the same end that was just entered from . This leaves the opposite end unvisited; its only later possible entry is from its crossbar neighbor, after which its exits to that neighbor and to the already visited are blocked. This is impossible. Every other possible departure is an arc to a clause vertex : all other available unvisited successors continue the crossbar or its prescribed gadget connector. If the departure is from the first endpoint of its pair and does not return to the second endpoint, that second endpoint remains unvisited. Its only neighbors are its visited mate, the clause vertex just visited, and its next crossbar neighbor. It can later be entered only from the last of these, after which every exit goes to a visited vertex, although it is not . If instead the departure is from the second endpoint after its mate has already been visited, its next crossbar separator remains unvisited. An interior separator has only its two crossbar neighbors; entering it later from the other neighbor again leaves no unvisited exit. For a separator at the far end, its only possible incoming arcs are from the departed endpoint and , both already visited with their successors fixed, so it cannot be entered later at all. These arguments are unchanged on reversing left and right and also cover clauses containing both signs of a variable. Consequently no first departure exists. Thus every clause visit is a same-pair detour, the gadgets are traversed in order, and each entire crossbar is traversed monotonically. Set exactly for a left-to-right traversal. The detour through every clause vertex has the orientation of a literal made true by this assignment, so every clause is satisfied.
Now add one fresh vertex and the two arcs and . If has a Hamiltonian path from to , then adjoining closes that path to a directed Hamiltonian cycle in . Conversely, any directed Hamiltonian cycle in must pass through the fresh vertex , whose only outgoing arc is to and whose only incoming arc is from . Deleting from the cycle therefore yields a directed Hamiltonian path from to in .
Step 1.1 handles the empty formula and gives a polynomial-time construction for every well-formed -CNF formula. For , steps 2.1 and 2.2 prove the iff for directed Hamiltonian path, and step 3.1 converts that iff to directed Hamiltonian cycle. Extend the map to every input string by checking -CNF syntax in polynomial time and sending any malformed string to the fixed one-vertex loopless digraph, which has no directed Hamiltonian cycle. By [L1] and [L2], the resulting total function is a polynomial-time many-one reduction from -SAT to directed Hamiltonian cycle.
Depends on
Used by
Dependency tree · two levels
9 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- MIT 6.045J / 18.400J, Lecture 16: More NP-completeness (standard reference, not scraped)
- Sanjeev Arora and Boaz Barak, Computational Complexity: A Modern Approach (standard reference, not scraped)