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
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 . We first verify the interface invariant omitted by a merely pictorial gadget argument. If the path enters a clause vertex from an occurrence pair in and leaves toward a different occurrence pair, then the unused vertex of the first pair can subsequently be entered only from its other crossbar neighbour; after that entry, every possible exit goes to that already visited neighbour, the visited mate, or the already visited clause vertex. The path is therefore stuck before reaching . The same four-case check applies with the crossbar direction reversed and with positive and negative occurrence arcs exchanged. Hence every visit to leaves through the mate in the same occurrence pair: a clause visit only replaces one crossbar edge by its two-edge detour. It follows that the path cannot jump between variable gadgets through a clause vertex. The remaining connections force it through in order, and within each it traverses the entire crossbar monotonically from one end to the other. Set exactly for a left-to-right traversal. Every clause vertex is visited by a same-pair detour whose orientation exists only for a literal made true by this assignment. Thus every clause has a true literal and is satisfiable.
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)