Egor Urvanov

P versus NP

Formal verification · P vs NP problem

P versus NP is an unsolved problem of complexity theory: if a finished answer can be checked quickly, can it always be found just as quickly. The class P holds problems that are solved quickly, the class NP holds problems whose finished answer is checked quickly. Quickly means in time that grows no faster than a power of the problem size. Most specialists believe finding is harder than checking, but there is no proof; the Clay Institute set a million dollars for it. For AI agents this is only an analogy: a quality gate works where a check is cheaper than the work itself.

find the answertrying many optionslongcheck the answerfinished answerquickAI agent and gateonly an analogy: a check is cheaper than the work● model, people, systems, data  ● agent and harness  ● risk, stop, boundaryP versus NP: finding an answer takes trying many options, while a finished answer can be checked in one quick look. The question is whether finding is always as easy as checking

Words of the source

  • Clay Institute: the question · “If it is easy to check that a solution to a problem is correct, is it also easy to solve the problem?”
  • Example: the dormitory · “it is easy to check if a given choice of one hundred students proposed by a coworker is satisfactory”, while generating such a list from scratch “seems to be so hard as to be completely impractical”.

Frequently asked questions

What is P versus NP?

An unsolved question: if a finished answer to a problem can be checked quickly, can it always be found just as quickly.

How does class P differ from NP?

P holds problems that are solved quickly. NP holds problems whose finished answer is checked quickly; finding it may take very long.

What do P and NP have to do with AI agents?

Only an analogy: a quality gate relies on checking being usually easier than doing. For tasks without a cheap check a person decides.

Source: Clay Mathematics Institute: P vs NP

Read more: What are quality gates for AI agents

Where it appears · 1

Related terms

Whole glossary

© 2026 Egor Urvanov