Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passverified 2026-09-08 (gpt-6-astra)
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 φ=C1∧⋯∧Cm.

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 3-SAT consists of the well-formed satisfiable encodings under explicit variable-name and clause-list coding; malformed strings are excluded.

[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.1L2F1givencasesconstruct

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 m≥1, 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,0↔ℓi,1↔ri,1↔si,1↔⋯↔si,m−1↔ℓi,m↔ri,m↔si,m, and we also add the four boundary arcs pi→si,0,pi→si,m,si,0→qi,si,m→qi. 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 1≤i<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,j→cj,cj→ri,j; if the literal ¬xi occurs in Cj, add ri,j→cj,cj→ℓi,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.

2.1L2step 1.1construct

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,j→ri,j on the left-to-right route by the detour ℓi,j→cj→ri,j. If it is a negative occurrence of xi, replace the local edge ri,j→ℓi,j on the right-to-left route by ri,j→cj→ℓi,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φ.

2.2L2F1step 1.1cases

Suppose conversely that Dφ has a directed Hamiltonian path from sφ to tφ. 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 qi from the same end that was just entered from pi. 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 qi are blocked. This is impossible. Every other possible departure is an arc to a clause vertex cj: 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 tφ. 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 pi, 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 xi=true 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.

3.1F1step 2.1step 2.2construct

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φ.

4.1L1L2step 1.1step 2.1step 2.2step 3.1cases-exhaustive∎

Step 1.1 handles the empty formula and gives a polynomial-time construction for every well-formed 3-CNF formula. For m≥1, 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.

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