Korean, Edit

P vs NP Problem

Recommended reading: 【Modern Mathematics】 Table of Contents of Modern Mathematics


1. Exponential Time Hypothesis

2. Valiant Conjecture

3. P vs NP Problem



1. Exponential Time Hypothesis

⑴ 3-SAT: A problem of determining whether there exists an assignment of Boolean variables (true or false) that satisfies all conditions in a logical formula.

① A 3-SAT formula is fundamentally composed of only three logical operations: OR, AND, and NOT: XOR can also be expressed as a combination of these operations.

② Every NP problem can be represented as a 3-SAT problem.

③ Example 1. For $F = (x_1 \lor x_2) \land (\neg x_1 \lor x_3)$, the formula is true when $(x_1, x_2, x_3) = (1, 0, 1)$. With $n$ variables, approximately $2^n$ assignments must be examined by exhaustive search.

⑵ Exponential Time Hypothesis (ETH): The hypothesis that 3-SAT cannot be solved in $2^{o(n)}$ time complexity in the worst case.

① Example 1. $2^n$: Exhaustive search

② Example 2. $2^{0.5n}$: Faster, but still exponential time

③ Example 3. $2^{0.01n}$: Still compatible with ETH

④ Example 4. $2^{n/\sqrt{\log n}}$: Subexponential time, contradicting ETH

⑤ Example 5. $n^{10}$: Polynomial time. Would refute not only ETH but also $P \neq NP$.

⑥ On October 25, 2026, OpenAI (released earlier) and Anthropic (easier to understand and more efficient) independently refuted ETH using different approaches.

⑦ Even if the claims refuting ETH are correct, they do not prove $P = NP$: The time complexities of these algorithms remain much greater than polynomial time.

⑶ Anthropic’s Refutation 📃

① Step 1. Consider #SAT, a problem harder than SAT.

○ SAT: Does there exist at least one satisfying assignment?

○ #SAT: Exactly how many satisfying assignments exist?

○ $[P]$: 1 if $P$ is true, and 0 if $P$ is false.

○ This idea is equivalent to Goldbach’s proof of the primality of the weak conjecture

② Step 2. To represent #SAT, consider tensor contraction, which evaluates sums and products in a tensor network.


스크린샷 2026-10-31 오후 9 39 24


③ Step 3. Cost reduction using 3-bit blocks

○ Eight-square identity (Degen–Graves–Cayley identity)

○ Two-square identity: Corresponds to the complex numbers $\mathbb{C}$

\[(a^2 + b^2)(c^2 + d^2) = (ac - bd)^2 + (ad + bc)^2\]

○ Four-square identity: Corresponds to the quaternions $\mathbb{H}$

○ If both $m$ and $n$ are sums of the squares of four integers, then $mn$ can also be expressed as a sum of the squares of four integers.

○ Let $m = a_1^2 + a_2^2 + a_3^2 + a_4^2$ and $n = b_1^2 + b_2^2 + b_3^2 + b_4^2$.

○ This is because their product can be expressed as

\[mn = (a_1b_1 - a_2b_2 - a_3b_3 - a_4b_4)^2 + (a_1b_2 + a_2b_1 + a_3b_4 - a_4b_3)^2 + (a_1b_3 - a_2b_4 + a_3b_1 + a_4b_2)^2 + (a_1b_4 + a_2b_3 - a_3b_2 + a_4b_1)^2.\]

○ This is used in the proof of Lagrange’s four-square theorem.

○ Eight-square identity: Corresponds to the octonions $\mathbb{O}$

○ Lagrange’s four-square theorem was proved in 1770, and Degen’s eight-square identity was discovered around 1818.

○ For arbitrary real numbers $a_i$ and $b_i$, there exist suitable values $c_i$ such that $(a_0^2 + \cdots + a_7^2)(b_0^2 + \cdots + b_7^2) = c_0^2 + \cdots + c_7^2$

○ Sixteen-square identity

○ Hurwitz’s theorem rules out the existence of a 16-dimensional real bilinear sum-of-squares identity analogous to the eight-square identity.

○ Anthropic uses the octonion multiplication structure to establish the following identity for $x,y,u,v \in {0,1}^3$ and a certain function $\sigma$ that returns either $+1$ or $-1$.

○ $2[x=v][y=u] = [x \oplus y \oplus u \oplus v = 0] \cdot \left(\sigma(x,y)\sigma(v,u) + \sigma(x,u)\sigma(v,y)\right) = R+C$

○ Checking each of $[x=v]$ and $[y=u]$ requires 3 bits.

○ This can be understood as four 3-bit strings $x,y,u,v$ placed at the four corners, with two diagonal equality constraints $x=v$ and $y=u$.

○ $R$ is a term favorable for computation along the row direction, while $C$ is favorable for computation along the column direction: Their actual expressions are complicated, so they are represented in this simplified form.


스크린샷 2026-10-31 오후 9 43 05

Figure 1. Schematic illustration of a triangle consisting of four nodes


○ Cost reduction

○ Original cost: Computing $x=y$ and $u=v$ requires 6 bits.

○ Improved cost: Depending on the partitioning method, either 3 bits or 6 bits are required, resulting in an average of 4.5 bits, which is better than the original cost.


  Row-wise partition $([x,y],[u,v])$ Column-wise partition $([x,u],[y,v])$
$R$ 3 bits 6 bits
$C$ 6 bits 3 bits

Table 1. Connection cost of each term according to the partitioning direction


○ In other words, computational cost is reduced by using an identity that necessarily holds.

④ Step 4. Final refutation of ETH

○ 4-1. Adding selection cost: By spending 1 additional bit to select either a row or a column, the exponential increase in the number of terms is controlled → A total of 5.5 bits is required.

○ ❌ Method A. Expand all $2^t$ terms: Although the connection cost of each term is smaller, exponentially many terms must be computed separately (ultimately requiring exponential time).

\[T_A \approx 2^{t|\mathcal{R}|} \cdot 2^{e(4.5t|\mathcal{R}|+s_0)}\]

○ ✅ Method B. Group the terms into $A_0, \cdots, A_t$ and compute them together: Although the connection cost of each term increases by 1 bit, the number of external terms requiring recursive computation is greatly reduced.

\[T_B \approx (t+1)^{|\mathcal{R}|} \cdot 2^{e(5.5t|\mathcal{R}|+s_0)}\]

○ e.g., with $t=3$,

\[\begin{aligned} A_0 &= R_1R_2R_3 \\[6pt] A_1 &= C_1R_2R_3 + R_1C_2R_3 + R_1R_2C_3 \\[6pt] A_2 &= C_1C_2R_3 + C_1R_2C_3 + R_1C_2C_3 \\[6pt] A_3 &= C_1C_2C_3 \end{aligned}\]

○ The reason 3-bit blocks were chosen initially is that this is the first block size for which the reduction in connection cost from the eight-square identity exceeds the additional cost of selection information.

○ However, more sophisticated tensor-rank analysis may reveal cost reductions even for smaller blocks.

○ 4-2. Recursive gain by a factor of $11/12$: The transformed problem is reconstructed as a tensor network of the same form, achieving an exponential improvement corresponding to a factor of $11/12$ in the exponent.


스크린샷 2026-10-31 오후 9 49 33

Figure 2. Recursive gain by a factor of $11/12$


○ 4-3. Actual algorithm implementation and completion of the refutation

\[\begin{aligned} K_0 &= 64, \qquad e_0 = 1 \\[8pt] K_\ell &= 9K_{\ell-1}^{16} \\[8pt] e_\ell &= \left(\frac{11}{12}+\frac{2}{K_{\ell-1}}\right)e_{\ell-1}+\frac{5}{K_{\ell-1}} \\[8pt] \therefore\ e_\ell &\le 1.12\left(\frac{11}{12}\right)^\ell \\[8pt] \therefore\ \forall \delta &> 0,\qquad T(\#3\mathrm{SAT}) \le O(2^{\delta n}) \end{aligned}\]

⑤ Remarks

○ All 3-SAT problems $\subseteq$ generalized tensor networks: In a tensor network, $W_a$ does not necessarily have to be a logical formula and may instead be an arbitrary integer-valued function.

○ Any logical formula can be represented as a tensor network with equality connections, and the identity can be applied to locally restructure those connections.

○ Since the specific content of the logical formula remains encoded in the node functions, the applicability of the identity does not restrict the types of original logical formulas.

○ The critical point that must actually be verified is whether the tensor network can be rearranged into a rectangular structure suitable for the eight-square identity without causing an excessive increase in computational cost.

⑷ OpenAI’s Refutation** 📃

① Step 1. Convert 3-SAT into a problem of counting the number of satisfying assignments.

② Step 2. Polynomial transformation.

③ Step 3. Separate groups using a small number of shared summary values: These summary values represent an exact conditional decomposition rather than an approximation.

④ Step 4. Recover the original number of satisfying assignments through interpolation.

⑸ Conclusion

① Anthropic is ahead in terms of Lean formal verification: This is understandable given the exponent factor of $11/12$ in the proof above.

○ OpenAI (Lean verification): $O\left(2^{\frac{n(\log\log n)^2}{\sqrt{\log n}}}\right)$

○ OpenAI (paper): $O\left( 2^{\frac{n\log\log n}{\sqrt{\log n}}} \right)$

○ Anthropic (paper and Lean verification): $O\left( 2^{\min\left\lbrace\frac{m}{\sqrt{\log m}},\frac{n\log\log n}{\sqrt{\log n}}\right\rbrace} \right)$

② The strongest upper bound on time complexity in OpenAI’s paper is also obtained through tensor-network computation in Appendix D, similarly to Anthropic’s approach.

③ Although the number of possible variable assignments is $2^n$, the intrinsic degrees of freedom of 3-SAT itself may not be that large (e.g., due to the octonion multiplication structure), which seems to explain why the time complexity can be reduced below $2^n$.

④ The fact that the number of clauses $m$ appears in the time complexity of Anthropic’s algorithm also supports this interpretation.

⑤ If the problem representation of 3-SAT, whose solutions can be verified in polynomial time (= NP), is much smaller than expected and can be described by a polynomial-time algorithm, then solutions could also be found in polynomial time (= P), thereby proving $P = NP$.



2. Valiant Conjecture

⑴ Overview

\[\sum_{b\in\{0,1\}^n}\prod_{i=1}^{n} X_{i,b_i} = \prod_{i=1}^{n}\left(X_{i,0}+X_{i,1}\right).\]

① Computation method 1. $\mathrm{VNP}$ : A family of polynomials obtained by summing over all choices, where the contribution of each choice can be computed by a small arithmetic circuit. The number of choice bits $m(n)$ is polynomially bounded in $n$, and $g_n$ can be computed by a polynomial-size arithmetic circuit.

\[f_n(X) = \sum_{b \in \{0,1\}^{m(n)}} g_n(X,b), \qquad g_n(X,b) = \prod_{i=1}^{n} \left((1-b_i)X_{i,0}+b_iX_{i,1}\right)\]

② Computation method 2. $\mathrm{VP}$ : A family of polynomials for which the entire sum over all choices can be computed by a polynomial-size arithmetic circuit. The example above can be computed using $n$ additions and $n-1$ multiplications.

③ A polynomial in $\mathrm{VP}$ can be viewed as using zero choice bits, so $\mathrm{VP}\subseteq\mathrm{VNP}$.

○ The example above belongs to both $\mathrm{VNP}$ and $\mathrm{VP}$.

④ Valiant’s conjecture : $\mathrm{VP}\subsetneq\mathrm{VNP}$

○ The refutation of ETH concerns the time required to solve 3-SAT.

○ Valiant’s conjecture states that some polynomial family in $\mathrm{VNP}$ cannot be computed by polynomial-size arithmetic circuits.

⑵ Proof 1. A proof using the directed Hamiltonian cycle polynomial : Anthropic’s proof (released on November 23, 2026)

① Overview

○ Permanent polynomial : The permanent was conjectured to witness $\mathrm{VP}\ne\mathrm{VNP}$ over fields of characteristic other than $2$.

\[\mathrm{Per}_m(X) = \sum_{\sigma \in S_m} \prod_{i=1}^{m} x_{i,\sigma(i)}\]

○ Directed Hamiltonian cycle polynomial (HC polynomial) : This polynomial had also been conjectured to witness $\mathrm{VP}\ne\mathrm{VNP}$.

\[\mathrm{HC}_m(X) = \sum_{\substack{\sigma \in S_m \\ \sigma \text{ is an } m\text{-cycle}}} \prod_{i=1}^{m} x_{i,\sigma(i)}\]

○ The problem lies in graph theory, and its technical difficulties had prevented a deeper analysis.

③ Step 1. View the HC polynomial as a tensor network polynomial on a complete graph : Express the cost of the wires representing equality constraints (see Fig. 1) in terms of distances.

④ Step 2. Assume that the HC polynomial has a small circuit : $\mathrm{VP}=\mathrm{VNP}$

⑤ Step 3. Split the proof into two cases according to the distances.

○ Both Case 1 and Case 2 lead to a contradiction, so any intermediate case would presumably also lead to a contradiction.

⑥ Case 1. The flat case : The distances allow Euclidean configurations to be realized to any desired precision.

○ This case is fairly straightforward, so an inequality for Step 1 follows readily.

○ $\text{Cost savings}=\text{Original wiring cost}-\text{Endpoint-to-hub wiring cost}\leq\text{Cost of summing the terms}+\text{Cost of connecting the two hubs}$

○ A small circuit gives terms of low rank, so the cost of connecting the two hubs is also low.

○ In a complete graph, many wires cross the boundary of every balanced partition, so the Euclidean placement yields substantial savings.

○ For the inequality to hold, the cost of connecting the hubs must therefore be large. This gives a lower bound on circuit size.

○ The lower bound is superpolynomial, giving a contradiction.

⑦ Case 2. The contracting case : In a certain matrix space, distances associated with large changes are smaller than the Euclidean benchmark by a fixed factor.

○ 2-1. Poincaré inequality : Obtain an identity that breaks the computation into pieces. The inequality applies to every cost metric derived from a spectral point.

○ 2-2. Contraction condition : On the Cayley graph of the upper triangular matrix group, bound the average squared distance between pairs of vertices in terms of the squared distances between neighbors.

○ 2-3. Strassen’s asymptotic spectrum duality : Turn a cost comparison that holds at every spectral point into a decomposition identity for sufficiently high tensor powers. This is analogous to using the eigenvalues of a graph’s Laplacian to analyze its structure.

○ 2-4. Decomposition : Rewire the network representing the computation and express its value as a sum of values of several tree networks. The trees can then be split into short computational pieces while keeping the cost of connections across the boundaries low.

○ 2-5. Assumption from Step 1 : If the HC polynomial has a sufficiently small circuit, we can build an accelerator that quickly computes the sum of the weights of accepting execution paths for each short computational piece.

○ 2-6. Perturbation trick : Repeatedly decomposing and accelerating the computation lets us use the same circuit constants to accelerate computations at larger scales. Similar tricks appear in work on the Navier–Stokes equations and proofs of the Riemann hypothesis.

○ 2-7. Construct a program $P$ at a sufficiently large scale : Given input $x$, one branch of $P$ halts with weight $1$, and the other uses the accelerator to compute the sum of the weights obtained by running program $x$ on input $x$.

○ 2-8. Let $V$ be the sum of the weights of $P(P)$. The first branch contributes $1$, and the second contributes $V$ by the correctness of the accelerator. Thus $V=V+1$, a contradiction.

⑶ Proof 2. A proof using a grid polynomial : OpenAI’s proof (released on November 24, 2026)

① Connection to ETH : The crossing-wire decomposition from the earlier ETH refutation is used here to express tensor costs in terms of distances.

② Step 1. If the vertices of an $r\times r$ grid are partitioned so that each side contains at least one third of all vertices, at least $r/3$ edges cross the boundary.

○ For each such edge, the vertices at both ends must read the same label.

○ $A$ and $B$ read the same label $\Longleftrightarrow$ $A$ and $B$ share a bit $\Longleftrightarrow$ $A$ and $B$ take the same binary variable $x$ as input $\Longleftrightarrow$ $\sum_{x\in{0,1}} A_xB_x=A_0B_0+A_1B_1$.

③ Step 2. In a separate theorem on Euclidean costs, OpenAI shows that over any field, the cost of two endpoints sharing one of $q$ possible labels can be measured as $\text{Euclidean distance between the endpoints}\times\log_2 q$. The theorem guarantees that this distance can be used to measure the cost of the tensor itself.

④ Step 3. Give each edge its own coordinate axis and place its two endpoints opposite each other on either side of the origin.

⑤ Step 4. Divide the grid into two parts and add only the position vectors of the endpoints on the left side.

○ When both endpoints are on the left, as with $A$–$B$, their vectors cancel. An edge lying entirely on the right contributes nothing to the sum.

○ When an edge crosses the boundary, as with $C$–$D$, only the vector of its left endpoint $C$ remains in the sum.

○ Moving the left hub slightly in the direction of that sum reduces the total wire length from the hub to the endpoints on the left.

○ The endpoints stay fixed while the hub can move for each partition. This lets us compare costs on the same basis even when different terms use different partitions, as with $R+C$ in the earlier ETH refutation.

⑥ Step 5. Apply the same reasoning as in the flat case of Proof 1.

○ $\text{Cost savings}=\text{Original wiring cost}-\text{Endpoint-to-hub wiring cost}\leq\text{Cost of summing the terms}+\text{Cost of connecting the two hubs}$

○ Decomposing the output of a small circuit into a sum gives terms that each have low rank across their own balanced partition.

○ A small circuit gives terms of low rank, so the cost of connecting the two hubs is also low.

○ In a square grid, many wires cross the boundary of every balanced partition, so the Euclidean placement yields substantial savings.

○ For the inequality to hold, the cost of connecting the hubs must therefore be large. This gives a lower bound on circuit size.

○ The lower bound is superpolynomial, giving a contradiction.


스크린샷 2026-11-27 오전 1 27 52

Figure 3. OpenAI’s proof of Valiant’s conjecture


⑥ Similarly, 3D or 4D grids are fine.

⑦ In its stronger quantitative lower bounds for the Hamiltonian cycle polynomial and the permanent, OpenAI also considers two cases depending on whether the expansion condition holds. (ref)



3. P vs NP Problem

⑴ Overview

① Deterministic algorithm: An algorithm that considers only one possible choice at each step of computation

② Nondeterministic algorithm: An algorithm that considers two or more possible choices at each step of computation

○ Nondeterministic algorithms are theoretical concepts and cannot be directly implemented on actual computers.

○ They can simultaneously consider multiple possible paths at each step and are assumed to “luckily” select the correct path among them.

○ One can imagine an adventurer using clones of themselves to explore the optimal path at each step.

○ Even without the ability to create clones, the adventurer could still find the optimal path if someone provided a hint about which direction to take at every junction and the adventurer could verify that hint.

○ Therefore, a nondeterministic algorithm can be regarded as equivalent to a deterministic algorithm that verifies a given hint in polynomial time.

③ P problems = Problems that can be solved by deterministic algorithms in polynomial time

○ Here, the inability to solve a problem is interpreted as the impossibility of solving it with a deterministic algorithm in polynomial time.

④ NP problems = Problems that can be solved by nondeterministic algorithms in polynomial time = Problems whose solutions can be verified by deterministic algorithms in polynomial time

⑤ NP-hard: A problem to which every problem in NP is polynomial-time many-one reducible

○ It can be regarded as a problem that is at least as difficult as every problem in NP.

⑥ NP-complete: The class of problems that belong to NP and to which every problem in NP is polynomial-time many-one reducible

⑵ Definition

① Since deterministic algorithms $\subseteq$ nondeterministic algorithms (e.g., one correct choice and one random choice at each step), $P \subseteq NP$ holds.

② The P vs. NP problem asks whether NP problems are identical to P problems or whether NP contains strictly more problems, and whether this relationship can be proved.

③ NP problems = (P problems) + (NP-complete problems) + (NP problems that are not NP-complete if $P \neq NP$)


스크린샷 2026-10-31 오후 9 38 02

Figure 4. P vs. NP Problem


⑶ Examples

① Shortest path problem between two cities: A P problem. Solvable using Dijkstra’s algorithm, the Floyd algorithm, etc.

② Greatest common divisor problem: A P problem. Solvable using the Euclidean algorithm

③ Sorting problem: A P problem. Solvable using bubble sort, quicksort, etc.

④ Prime factorization: It has not been proved whether it is NP-complete, not NP-complete, or whether such a classification is unprovable.

⑤ Traveling salesman problem (TSP): An NP-complete problem. Given multiple cities and the distances between them, the objective is to find the shortest route that visits every city exactly once and returns to the starting point.

⑥ Fragment orientation problem (FOP): NP-complete. A problem in bioinformatics that involves correctly determining the orientations of DNA fragments.

⑦ Super Mario Bros.: NP-hard

⑧ RNA structure prediction allowing pseudoknots or long-range constraints: NP-complete or NP-hard

⑨ Finding a subset that is as widely distributed and as informative as possible: NP-hard

⑩ Steiner tree problem: NP-hard

⑷ Valiant conjecture



Posted: 2026.10.31 14:10

results matching ""

    No results matching ""