Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-05
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 3-SAT to directed Hamiltonian cycle.

More explicitly, for every 3-CNF formula φ one can construct in polynomial time a directed graph Dφ with distinguished vertices sφ,tφ such that

  1. φ is satisfiable if and only if Dφ has a directed Hamiltonian path from sφ to tφ; and
  2. after adjoining one fresh vertex zφ and the two arcs zφsφ and tφzφ, the resulting digraph Dφ has a directed Hamiltonian cycle if and only if φ is satisfiable.

Facts & Assumptions

Given: A 3-CNF formula φ=C1Cm.

[L1]

A polynomial-time many-one reduction is a total polynomial-time function preserving membership in both directions, by Polynomial-time many-one reductions.

[L2]

A gadget reduction must prove the construction bound and both directions of the witness translation, by Reduction gadgets and interface invariants.

[F1]

Directed Hamiltonian paths and cycles are the decision problems from Directed and undirected Hamiltonian path and cycle decision problems.

Proof

technique · direct
1.1

If m=0, then φ is the empty conjunction and is satisfiable. Let Dφ be the one-vertex digraph and name its unique vertex both sφ and tφ; it has the required one-vertex Hamiltonian path. Adjoining zφ and the two opposite arcs between zφ and sφ=tφ gives a directed Hamiltonian cycle. This is the required constant-size output in the empty case. Assume henceforth that m1, so at least one variable occurs. Enumerate the variables of φ as x1,,xn and the clauses as C1,,Cm. For each variable xi, create vertices pi, qi, si,0,,si,m, i,1,ri,1,,i,m,ri,m. The crossbar of the gadget Xi is the bidirected path si,0i,1ri,1si,1si,m1i,mri,msi,m, and we also add the four boundary arcs pisi,0,pisi,m,si,0qi,si,mqi. Thus every Hamiltonian path from pi to qi inside Xi 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 qi with pi+1 for 1i<n, and write sφ:=p1, tφ:=qn. For each clause Cj, add one clause vertex cj. If the literal xi occurs in Cj, add the two arcs i,jcj,cjri,j; if the literal ¬xi occurs in Cj, add ri,jcj,cji,j. If both literals occur, add both pairs of arcs. This completely specifies the digraph Dφ, which has O(nm) vertices and arcs and is computable in polynomial time.

L2F1givencasesconstruct
2.1

Suppose that φ is satisfiable. In each gadget Xi, choose the left-to-right crossbar route if xi=true and the right-to-left route if xi=false. Concatenating these routes through the identified vertices qi=pi+1 already yields a directed path from sφ to tφ visiting every gadget vertex exactly once. Now fix a clause Cj, and choose one literal of Cj that is true under the satisfying assignment. If it is a positive occurrence of xi, replace the local edge i,jri,j on the left-to-right route by the detour i,jcjri,j. If it is a negative occurrence of xi, replace the local edge ri,ji,j on the right-to-left route by ri,jcji,j. 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 Dφ has a directed Hamiltonian path from sφ to tφ.

L2step 1.1construct
2.2

Suppose conversely that Dφ has a directed Hamiltonian path from sφ to tφ. We first verify the interface invariant omitted by a merely pictorial gadget argument. If the path enters a clause vertex cj from an occurrence pair in Xi 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 tφ. The same four-case check applies with the crossbar direction reversed and with positive and negative occurrence arcs exchanged. Hence every visit to cj 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 X1,,Xn in order, and within each Xi it traverses the entire crossbar monotonically from one end to the other. Set xi=true 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.

L2F1step 1.1cases
3.1

Now add one fresh vertex zφ and the two arcs zφsφ and tφzφ. If Dφ has a Hamiltonian path from sφ to tφ, then adjoining zφ closes that path to a directed Hamiltonian cycle in Dφ. Conversely, any directed Hamiltonian cycle in Dφ must pass through the fresh vertex zφ, whose only outgoing arc is to sφ and whose only incoming arc is from tφ. Deleting zφ from the cycle therefore yields a directed Hamiltonian path from sφ to tφ in Dφ.

F1step 2.1step 2.2construct
4.1

Step 1.1 handles the empty formula and gives a polynomial-time construction for every well-formed 3-CNF formula. For m1, 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 3-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 3-SAT to directed Hamiltonian cycle.

L1L2step 1.1step 2.1step 2.2step 3.1cases-exhaustive

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