Is finding harder than checking?

A tour of computational complexity with Python programs and a few short proofs: certificates, SAT, reductions, NP-completeness and subexponential time. We ground it in real agricultural problems —machinery routes, crop rotation, irrigation shifts and harvest crews— and come back to OpenAI’s announcement about ETH to see what changes and what does not.

21 min read
Aerial view of a farm with several crop plots and a central warehouse. A truck follows a route marked with arrows and stops between different fields and harvest crates, illustrating optimal harvest collection planning in agriculture.
Planning a harvest collection route: checking a route is easy; finding the best one, not so much.

On 26 October 2026, OpenAI published a manuscript claiming to refute the Exponential Time Hypothesis (ETH), together with a Lean formalization and a collaboration with Russell Impagliazzo, Ramamohan Paturi and Ryan Williams to review it.1 If it holds up, one of the ideas we have used for decades to think about the limits of computers is gone.

To understand what is at stake, we have to start from an idea we all know, even if we never name it: checking a solution is usually easy, but finding one can be extremely expensive.

Think of a sudoku. If someone hands you a solved one, you check rows, columns and boxes in a moment. If you only get the clues, you have to think. The underlying question is whether that gap is unavoidable or whether we simply haven’t found the shortcut yet. That is, in essence, P versus NP, one of the Clay Mathematics Institute’s Millennium Problems.2 ETH is another, more demanding way of asking the same question. And let me say the important part up front: refuting ETH does not prove that P = NP.

Let’s go step by step. I will treat OpenAI’s result as what it is today: a claim made in their published materials, pending independent review.

#Measuring how much work a program does

An algorithm is a recipe for turning an input into a result. A problem only says which result we want, not how to get it. In The program that cannot exist we asked whether some program can solve a problem at all. Here we add a condition: how much work it needs.

A small example: does a list contain a repeated value?

Program1—Compare every pair
def has_repeats(values):
    for i in range(len(values)):
        for j in range(i + 1, len(values)):
            if values[i] == values[j]:
                return True
    return False

With nn distinct elements, the program makes n(n−1)/2n(n-1)/2 comparisons: 4545 for n=10n=10, 499 500499\,500 for n=1 000n=1\,000. Ten times more data means a hundred times more work. But if we sort the list first and only look at neighbours, we get down to something proportional to nlog⁡nn\log n. Same question, different growth.

Keep this in mind for the whole article: a slow algorithm does not prove that a problem is hard. Maybe we are just missing a better idea.

To compare algorithms we look at how the number of operations grows in the worst case, ignoring constants. That is what OO notation expresses: 3n2+8n+20=O(n2)3n^2+8n+20=O(n^2) because, eventually, the quadratic term dominates. Formally, input size is measured in bits, NN, although in the examples I will talk about elements, variables or cities, nn.3

Growth Name Example
O(n)O(n) Linear Go through the list once.
O(nlog⁡n)O(n\log n) Quasilinear Merge sort.
O(nc)O(n^c), with cc fixed Polynomial A fixed number of nested loops.
O(2n)O(2^n) Exponential Try every string of nn bits.
Table 1. Some common growth rates.

The gap between polynomial and exponential is brutal. With an imaginary machine that checks a billion candidates per second, 2302^{30} candidates take a second; 2602^{60}, about 3636 years; 21002^{100}, about 4⋅10134\cdot10^{13} years. That said, polynomial does not mean fast: N100N^{100} is polynomial and useless in practice. Theory studies how work scales; engineering also cares about the constants.

#Finding versus checking

Back to the sudoku. There are three different tasks: deciding whether it has a solution, finding one, and verifying a grid someone proposes. The third one starts with an advantage: it receives a candidate solution, which we will call a certificate. The name does not mean we trust it; we are precisely going to check it.

Routes work the same way. If someone says they can visit all your plots and come back driving at most KK kilometres, ask for the ordered list. You check that none is missing, none is repeated and the total does not exceed KK. You don’t need to discover the route to verify it.

InputxSearchCerti¯cateyInputxCerti¯cateyVerifyAcceptorreject
Figure 1. Verifying receives the input and a certificate. Searching has to produce that certificate from the input.

Now we can define the two main classes.

Definition1—The class P

A decision problem belongs to P\mathbf P if there is a deterministic algorithm that solves it correctly in time O(Nc)O(N^c), where NN is the length of the input and cc a fixed constant.

Definition2—The class NP

A decision problem AA belongs to NP\mathbf{NP} if there are a polynomial pp and a polynomial-time deterministic verifier VV such that

x∈A⟺∃y,∣y∣≤p(∣x∣) and V(x,y)=1.x\in A\quad\Longleftrightarrow\quad \exists y,\quad |y|\le p(|x|)\ \text{and}\ V(x,y)=1.

In other words: if the answer is “yes”, there is a short certificate the verifier accepts; if it is “no”, no certificate can fool it.4 Careful, NP does not mean “not polynomial”, but nondeterministic polynomial time. In fact, every problem in P is in NP: the verifier can ignore the certificate and solve the problem directly. So P⊆NP\mathbf P\subseteq\mathbf{NP}.

Problem3—P versus NP

Is P=NP\mathbf P=\mathbf{NP}?

Almost everyone believes it isn’t.2 But believing it is not proving it: you would have to rule out every possible polynomial algorithm, including the ones nobody has thought of yet.

#SAT, the common language of certificates

To attack the question we need a problem simple enough to write down in full and expressive enough to represent all the others. That problem is SAT.

Picture three irrigation valves, xx, yy and zz. We need to open at least one of the first two; if we open xx, we have to open zz; and yy and zz cannot be open at the same time because there isn’t enough pressure for both. In Boolean logic:

F=(x∨y)∧(¬x∨z)∧(¬y∨¬z).F=(x\lor y)\land(\neg x\lor z)\land(\neg y\lor\neg z).

Each parenthesis is a clause: an “or” of conditions. The whole formula is an “and” of clauses, which is called conjunctive normal form (CNF). Look at the second one: ¬x∨z\neg x\lor z only fails when x=1x=1 and z=0z=0, so it is another way of writing “if xx, then zz”.

Problem4—SAT and kk-SAT

SAT: given a Boolean formula, is there an assignment of values that makes it true?

kk-SAT: the same, with clauses of at most kk conditions.

With three variables there are only eight combinations, so we can try them all. In Python, we represent each variable with an integer and its negation with the negative:

Program2—Verify an assignment and search by brute force
from itertools import product
 
def verify_cnf(formula, values):
    return all(
        any(values[abs(l) - 1] == (l > 0) for l in clause)
        for clause in formula
    )
 
def search_cnf(formula, n):
    for values in product((False, True), repeat=n):
        if verify_cnf(formula, values):
            return values
    return None
 
formula = [(1, 2), (-1, 3), (-2, -3)]
print(search_cnf(formula, 3))                      # (False, True, False)
print(verify_cnf(formula, (True, False, True)))    # True

Here is the whole story in miniature. Verifying goes through the clauses once: polynomial time. Searching this way repeats that work up to 2n2^n times. But the fact that this program is exponential does not prove that SAT is. In fact, 2-SAT also has 2n2^n assignments and can be solved in linear time by exploiting its structure.5 Nobody has managed that for 3-SAT.

#Translating problems without solving them

Suppose you have a great program for a problem BB and want to solve another problem AA. If you can translate any input of AA into one of BB cheaply and without changing the answer, you’re done: translate and ask BB’s program.

Definition5—Polynomial reduction

We write A≤pBA\le_p B if there is a function ff, computable in polynomial time, such that x∈A⟺f(x)∈Bx\in A \Longleftrightarrow f(x)\in B for every input xx.

A reduction works both ways: it carries algorithms from BB to AA and hardness from AA to BB.6 If BB is in P, so is AA. And if AA is hard, BB cannot be easier.

Definition6—NP-hard and NP-complete

A problem is NP-hard if every problem in NP reduces to it in polynomial time. It is NP-complete if, in addition, it belongs to NP.

Theorem7—Cook–Levin theorem

SAT is NP-complete. So is 3-SAT.78

The idea is beautiful: any polynomial-time verifier can be written as a circuit, and any circuit as a Boolean formula whose variables are the bits of the certificate. The formula has a solution exactly when there is a certificate the verifier accepts. SAT speaks the language of every certificate: routes, grids, schedules or proofs.

The consequence is huge: if a single NP-complete problem had a polynomial algorithm, every problem in NP would have one, and P would equal NP.

IfP6=NPIfP=NPPNPNP-hardNP-completeP=NPNP-hardNP-completeNoNP-completeproblemwouldbeinP.EveryNP-completeproblemwouldbeinP.
Figure 2. The two possible scenarios. The overlap of NP with the NP-hard problems is the NP-complete problems. Region sizes measure nothing; the picture does not decide which scenario is the true one.

#From sudoku to the shortest route

A 9×99\times9 sudoku has a fixed size, so it makes no sense to ask how it grows. Theory talks about generalized sudoku, with r2×r2r^2\times r^2 cells, and Yato and Seta proved that deciding whether it has a solution is NP-complete.9 Translating it to SAT is direct: a variable Xi,j,dX_{i,j,d} for “cell (i,j)(i,j) holds symbol dd” and clauses for each rule. That is, by the way, how many people solve sudokus with a SAT solver.

More interesting for us is the travelling salesperson problem, because it sits behind almost every routing problem.

Problem8—Travelling salesperson, decision version

Input: nn cities, integer costs d(i,j)d(i,j) between them and a threshold KK.

Question: is there a tour that visits each city once, returns to the start and costs at most KK?

Verifying is trivial: check it is a permutation and add up the costs. To see that it is hard, a very short reduction from the Hamiltonian cycle problem is enough (is there a cycle in the graph that passes through every vertex once?), which is NP-complete.10

Proposition9

The decision version of the travelling salesperson problem is NP-complete, even if costs are only 11 or 22.

Proof

Given a graph GG with n≥3n\ge3 vertices, we create one city per vertex, with cost 11 if the vertices are connected in GG and 22 otherwise, and set K=nK=n. A tour makes nn moves of cost at least 11, so it costs at most nn if and only if every move costs 11: that is, if it only uses edges of GG. That is exactly a Hamiltonian cycle. The construction is polynomial.

∎

This is a real reduction: we haven’t said the two problems “look alike”, we have proved their answers coincide. It is the tool Karp popularized in 1972 to chain together dozens of combinatorial problems.10

#Farming is full of NP-hard problems

This is the part closest to home for me, because I run into these problems often at work. When you plan a farm they show up everywhere, almost always in their optimization version (“find the best one”), which is NP-hard even though it is not a decision problem. And their difficulty grows exponentially with the size of the farm or the number of variables. Some of the most common ones:

Tractor and harvester routes. Covering a field with obstacles —trees, poles, ditches— while minimizing distance, fuel and soil compaction. It is a coverage path planning problem, closely related to the travelling salesperson.11

Collecting perishable harvests. Coordinating a fleet of trucks that picks up olives, grapes or stone fruit from different plots and brings them to the olive mill, the winery or the packing house before they lose quality. It is the vehicle routing problem with time windows (VRPTW).12 With a single truck and no schedules it is already the travelling salesperson, so it cannot be easier.

Crop rotation. Deciding what to sow in each plot over several years without repeating botanical families (to avoid encouraging pests), while balancing soil nitrogen, market demand and available water. It mixes a multidimensional knapsack with graph colouring: plots or seasons that cannot “take the same colour”.

Planting layouts. Fitting as many trees as possible into an irregular plot while respecting minimum distances for light and roots. It is a packing problem of circles or rectangles in the plane. In a rectangular plot a grid is enough; the hard part is the edges and odd shapes.

Irrigation shifts. In an irrigation community, the network doesn’t have the pressure to water everything at once. You need to schedule which sectors open and when, minimizing evaporation and electricity costs under peak and off-peak tariffs. It is a job shop scheduling problem.13

Sensor placement. What is the minimum number of soil moisture probes or weather stations that cover all the variability of the farm? It is literally set cover, one of Karp’s 21 problems:10 each sensor covers a subset of zones and we want to cover them all with at most bb sensors.

Harvest calendar. Assigning crews and machinery to lots according to the optimal ripening point of each variety, minimizing idle time and travel.

That last one is a good place for an important warning. If the problem were just “assign nn crews to nn lots minimizing total cost”, it would be an assignment problem, and the Hungarian method solves it in polynomial time.14 What makes it NP-hard are the ripening windows, the chained trips and the discrete decisions piled on top. The difficulty lies in the rules, not in the topic. That is why you have to model carefully before saying “this is NP-complete”.

#The knapsack and the size of numbers

The knapsack deserves a moment, because it hides a trap. In its decision version: given items with weights wiw_i and values viv_i, a capacity WW and a target VV, is there a subset that fits and is worth at least VV? Think of plots, crops with their water use and expected margin, and a limited irrigation allowance. It is NP-complete.10

And yet there is a classic dynamic programming algorithm that solves it in O(nW)O(nW). A contradiction? No. WW is the value of the capacity, but the input only takes the bits needed to write it. With bb bits you can write capacities close to 2b2^b, so O(nW)O(nW) is exponential in the real size of the input. In practice, with small numbers (whole hectares, rounded cubic metres) that algorithm works perfectly well.

This connects with what we see day to day: a problem being NP-hard does not mean we cannot solve it. Real instances have structure, and integer programming solvers, heuristics and local search give very good solutions, often optimal ones, in reasonable time. What theory tells us is that there is no general guarantee: there may always be instances that blow up.

#Between polynomial and exponential: what ETH claimed

So far we have pitted ncn^c against 2cn2^{cn}. But there is life in between. Look at

T(n)=2n.T(n)=2^{\sqrt n}.

For any c>0c>0, it eventually becomes smaller than 2cn2^{cn}, because n/n→0\sqrt n/n\to0. But it also eventually overtakes any polynomial ndn^d, because n/log⁡2n→∞\sqrt n/\log_2 n\to\infty. It is subexponential and superpolynomial at the same time. In general, we say a running time is subexponential if it is 2o(n)2^{o(n)}: the exponent, divided by nn, tends to zero.

Function Polynomial? Subexponential, 2o(n)2^{o(n)}?
n3n^3 Yes Yes
2n2^{\sqrt n} No Yes
2n/10002^{n/1000} No No: the exponent is still a fixed fraction of nn.
1.3n1.3^n No No
Table 2. What is subexponential and what isn’t.

That middle band is the key to the news: you can break an exponential barrier without becoming polynomial.

P versus NP asks whether 3-SAT has a polynomial algorithm. ETH says something stronger: not only is it not polynomial, it has to be exponential in the number of variables.

Definition10—Exponential Time Hypothesis

There is a constant c>0c>0 such that no deterministic algorithm decides 3-SAT in time O(2cn(n+m)d)O(2^{cn}(n+m)^d), for any fixed dd, where nn is the number of variables and mm the number of clauses.15

ETH does not say you have to try all 2n2^n assignments: an algorithm running in 1.3n1.3^n is perfectly compatible with it. What it rules out is making the exponential rate as small as we like. That is why an algorithm in 2o(n)2^{o(n)} would refute it. And that is what OpenAI’s manuscript claims.

Proposition11

ETH implies P≠NP\mathbf P\ne\mathbf{NP}. Equivalently, if P=NP\mathbf P=\mathbf{NP}, ETH is false.

Proof

If P=NP\mathbf P=\mathbf{NP}, 3-SAT has an algorithm that is polynomial in the size of the formula, and therefore in n+mn+m. That algorithm satisfies the bound O(2cn(n+m)d)O(2^{cn}(n+m)^d) for every c>0c>0, so ETH’s barrier does not exist.

∎
ETHtrueP6=NPP=NPETHfalse
Figure 3. The implications that do hold. No arrow is an equivalence.

The implication does not reverse. ETH can be false and 3-SAT can still lack a polynomial algorithm: think of something like 2n2^{\sqrt n}.

And why did a hypothesis matter so much? Because it has been the basis of a huge number of results of the form “if ETH is true, problem BB has no algorithm faster than such and such”.16 If ETH falls, those theorems don’t become false, but they stop telling us anything: we have to review which limits were real and which depended on the hypothesis.

#What exactly OpenAI says

According to their materials, OpenAI presents a deterministic algorithm that, for each fixed k≥2k\ge2, exactly counts the assignments satisfying a kk-CNF formula.17 If you can count, you can decide: just check whether the result is greater than zero. The documentation of their Lean formalization states this bound, with nn variables and NN the length of the formula:18

(N+1)O(1) 2O ⁣(n(log⁡log⁡n)2/log⁡n).(N+1)^{O(1)}\, 2^{O\!\left(n(\log\log n)^2/\sqrt{\log n}\right)}.

Let’s call the exponent g(n)g(n). Dividing by nn leaves (log⁡log⁡n)2/log⁡n(\log\log n)^2/\sqrt{\log n}, which tends to zero. So g(n)=o(n)g(n)=o(n) and the algorithm is subexponential: ETH falls. (For fixed kk, there are also only polynomially many distinct clauses, so the factor in NN is absorbed too.)

But g(n)g(n) grows much faster than log⁡n\log n, so the bound is not polynomial and does not settle P versus NP. Nor does it promise anything practical: the hidden constants may be huge. Knocking down a theoretical barrier is very valuable even if tomorrow we don’t have a better solver.

There is a subtle detail that matters a lot for agricultural problems. A subexponential improvement for 3-SAT does not automatically carry over to all of NP. Reductions preserve polynomial time, but not subexponential time: if an input of size NN is translated into a formula with n=N2n=N^2 variables, an algorithm in 2n2^{\sqrt n} becomes 2N2=2N2^{\sqrt{N^2}}=2^N. Back to exponential. To know whether the result helps plan routes or irrigation shifts, you have to look at how much each translation grows.

And about Lean: a formalization checks that the proof is valid, but there is another question: whether the formal statement says exactly what we care about (machine model, encoding, resources counted).19 Finding a proof, verifying it and understanding why it works are three different tasks. Very much in the spirit of this article.

#What if P were equal to NP?

Let’s assume something much stronger than ETH falling: a polynomial algorithm for SAT, and a practical one too. What would happen?

First, we would not only know whether there is a solution, we could also find it. Fix the first variable to 00 and ask whether the formula still has a solution; if not, fix it to 11. Repeat with each variable: n+1n+1 questions and we have a full assignment.20 With binary search over the target value, the same trick lets us optimize: the best crop rotation, the optimal irrigation schedule, the shortest route for the collection fleet. Exact optima, guaranteed, for any instance.

Second, a good part of cryptography would collapse. It needs the opposite: searches that are hard for whoever tries to break the system. If P=NPP=NP, we could rebuild a key bit by bit with the same trick as before.21 Refuting ETH, on the other hand, does not by itself break any particular system.

Third, it would change how we do mathematics. Searching for a proof of bounded length is an NP problem: the proof is the certificate. With P=NPP=NP we could find them efficiently. That would not erase Gödel’s theorems: as we saw in A truth that cannot be proved, there are truths with no proof in the system, and no search, however fast, can find what does not exist.

#Final thoughts

If OpenAI’s result is confirmed, one specific barrier falls: that 3-SAT has to be exponential with a fixed rate. But the big question, whether we can get to polynomial time, is still open.

And on the farm, for now, nothing changes: we will keep modelling each problem carefully, exploiting the structure of each farm and settling for very good solutions when the optimal one is too expensive to find.

#Learn more

If this caught your curiosity, here are a few resources I would start with:

And if you’re interested in the other side of the limits of computation —not how much it costs to solve a problem, but which problems cannot be solved at all—, there is the Intro to incompleteness series on this same blog.

Footnotes

  1. OpenAI (26 October 2026). Working with academic communities to build scientific understanding, section “The Exponential Time Hypothesis is false”.

    ↩
  2. Cook, S. A. (2006). The P versus NP Problem. In J. Carlson, A. Jaffe and A. Wiles (eds.), The Millennium Prize Problems. Clay Mathematics Institute / American Mathematical Society, pp. 87–104.

    ↩ ↩2
  3. Barak, B. Introduction to Theoretical Computer Science, ch. 13, “Modeling running time”.

    ↩
  4. Barak, B. Introduction to Theoretical Computer Science, ch. 15, “NP, NP completeness, and the Cook–Levin Theorem”.

    ↩
  5. Aspvall, B., Plass, M. F. and Tarjan, R. E. (1979). A linear-time algorithm for testing the truth of certain quantified Boolean formulas. Information Processing Letters, 8(3), 121–123. DOI: 10.1016/0020-0190(79)90002-4.

    ↩
  6. Barak, B. Introduction to Theoretical Computer Science, ch. 14, “Polynomial-time reductions”.

    ↩
  7. Cook, S. A. (1971). The complexity of theorem-proving procedures. Proceedings of the Third Annual ACM Symposium on Theory of Computing, 151–158. DOI: 10.1145/800157.805047.

    ↩
  8. Levin, L. A. (1973). Universal sequential search problems. Problems of Information Transmission, 9(3), 265–266. Record at Math-Net.Ru.

    ↩
  9. Yato, T. and Seta, T. (2003). Complexity and completeness of finding another solution and its application to puzzles. IEICE Transactions on Fundamentals, E86-A(5), 1052–1060.

    ↩
  10. Karp, R. M. (1972). Reducibility among combinatorial problems. In R. E. Miller and J. W. Thatcher (eds.), Complexity of Computer Computations, 85–103. Plenum Press. DOI: 10.1007/978-1-4684-2001-2_9. Includes Hamiltonian cycle, set cover and subset sum.

    ↩ ↩2 ↩3 ↩4
  11. Galceran, E. and Carreras, M. (2013). A survey on coverage path planning for robotics. Robotics and Autonomous Systems, 61(12), 1258–1276. DOI: 10.1016/j.robot.2013.09.004.

    ↩
  12. Solomon, M. M. (1987). Algorithms for the vehicle routing and scheduling problems with time window constraints. Operations Research, 35(2), 254–265. DOI: 10.1287/opre.35.2.254.

    ↩
  13. Garey, M. R. and Johnson, D. S. (1979). Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman. Catalogue of NP-complete problems, including scheduling and packing.

    ↩
  14. Kuhn, H. W. (1955). The Hungarian method for the assignment problem. Naval Research Logistics Quarterly, 2(1–2), 83–97. DOI: 10.1002/nav.3800020109.

    ↩
  15. Impagliazzo, R. and Paturi, R. (2001). On the complexity of k-SAT. Journal of Computer and System Sciences, 62(2), 367–375. DOI: 10.1006/jcss.2000.1727.

    ↩
  16. Impagliazzo, R., Paturi, R. and Zane, F. (2001). Which problems have strongly exponential complexity? Journal of Computer and System Sciences, 63(4), 512–530. DOI: 10.1006/jcss.2001.1774.

    ↩
  17. OpenAI (2026). The Exponential Time Hypothesis is False. Manuscript revised on 25 October 2026; theorem 1.1, p. 2. Cited as a manuscript, without a completed independent review.

    ↩
  18. OpenAI (2026). The Exponential Time Hypothesis is False: scope of the Lean formalization. Stated scope: exact counting, a bound with (log⁡log⁡n)2(\log\log n)^2 and polynomial space.

    ↩
  19. The Lean Community. Theorem Proving in Lean 4, “Axioms and Computation”.

    ↩
  20. Barak, B. Introduction to Theoretical Computer Science, ch. 21, “Cryptography”.

    ↩