Alphabeta Math
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.

✓ 9 results · all verified · 4 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 5 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

P, NP, coNP, and Polynomial Reductions

1 · Prerequisites

2 · Summary

This page fixes the basic complexity classes and the reduction language that later completeness proofs rely on. It defines P, the verifier form of NP, and coNP, proves that the verifier and nondeterministic formulations of NP agree, and then isolates polynomial-time many-one reductions as the comparison tool that transfers class membership backward along efficient encodings.

The second half turns that framework into the standard complexity consequences: the meaning of NP-hardness and NP-completeness, the consequence that an NP-complete language in P would collapse P and NP, the self-reducibility of SAT at the search-versus-decision level, and the elementary containment picture NP⊆PSPACE⊆EXP. The two false statements close by separating the class names from common slogans that overclaim what is actually proved.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

The class P

Definition

The class P is P:=⋃k≥1DTIME⁡(nk).

Thus a language belongs to P exactly when some deterministic Turing machine decides it in time bounded by a polynomial in the input length.

Remarks

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

Polynomial-time verifiers with polynomially bounded certificates

Definition

Fix the binary pairing ⟨x,u⟩:=1∣x∣0xu for binary words x,u∈{0,1}∗. Let L⊆{0,1}∗ be a language. A polynomial-time verifier with polynomially bounded certificates for L consists of:

  • a binary relation R⊆{0,1}∗×{0,1}∗ whose paired language LR:={⟨x,u⟩:(x,u)∈R} belongs to P, and
  • a polynomial p such that x∈L  ⟺  ∃u∈{0,1}∗ with ∣u∣≤p(∣x∣) and (x,u)∈R.

Any such u is called a certificate or witness for x.

Remarks

  • The verifier checks a paired instance (x,u) in polynomial time, while the polynomial p bounds how long a successful certificate ever needs to be.

  • Allowing the empty certificate is legitimate; that corresponds to the case u=ε.

DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-09-02Open item page →

The class NP via polynomial-time verifiers

Definition

The class NP is the set of languages L⊆{0,1}∗ that admit a polynomial-time verifier with polynomially bounded certificates in the sense of Polynomial-time verifiers with polynomially bounded certificates.

Remarks

  • This is the verifier definition of NP. The equivalent nondeterministic machine definition is proved next.

  • Every statement on this page about complements of NP-languages is taken inside the same ambient space {0,1}∗.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-02Open item page →

The verifier and nondeterministic definitions of NP agree

Statement

For a language L⊆{0,1}∗, the following are equivalent:

  1. L∈NP in the verifier sense of The class NP via polynomial-time verifiers.
  2. There exists k≥1 such that L∈NTIME⁡(nk).

Facts & Assumptions

Given: A language L⊆{0,1}∗.

[L1]

L∈NP means that L has a polynomial-time verifier with polynomially bounded certificates, by The class NP via polynomial-time verifiers.

[L2]

L∈NTIME⁡(nk) means that some nondeterministic Turing machine accepts exactly the words of L and every branch halts within O(nk) steps, by The classes DTIME, NTIME, DSPACE, and NSPACE.

[L3]

A machine that fully reads every input of length n needs at least linear time, by Any machine that fully reads every input of length n needs at least linear time.

Proof

technique · direct
1.1L1L2givenconstruct

Assume item 1. By [L1], choose a verifier relation R and a polynomial certificate bound p. Let DR be a deterministic polynomial-time decider for the paired language LR={⟨x,u⟩:(x,u)∈R}. Build a nondeterministic machine N that, on input x, first guesses a binary word u of length at most p(∣x∣) and then runs DR on ⟨x,u⟩, accepting exactly when DR accepts. Because every branch chooses at most p(∣x∣) guessed bits and then performs one polynomial-time deterministic verification, every branch halts within polynomial time. Since x∈L exactly when some certificate u makes (x,u)∈R, the machine N accepts exactly the words of L. Thus item 2 holds.

1.2L2givenconstruct

Assume item 2. By [L2], fix a nondeterministic machine N and an exponent k such that every branch on inputs of length n halts within cnk steps for some constant c. Let b be the maximum number of available nondeterministic choices in any one local configuration of N, and choose an integer r≥1 with 2r≥b. An accepting branch is then determined by a finite sequence d1,…,dt of at most cnk choice numbers from {0,…,b−1}. Encode that sequence as the binary word u:=1t0β1⋯βt, where each βi is the r-bit binary expansion of di. The initial unary header recovers t, and then the decoder reads exactly t consecutive blocks of length r, so this branch description is effectively decodable.

2.1L1L2step 1.2construct

Define a deterministic verifier for L as follows. On input ⟨x,u⟩, first decode u by reading its unary header and then the declared number of r-bit choice blocks; reject malformed encodings. Next simulate N on x while forcing those choices in order, reject if the certificate requests a nonexistent choice or ends before acceptance, and accept exactly when the forced run ends in an accepting state after consuming the full encoded branch description. Step 1.2 guarantees that x∈L yields some accepting-branch certificate, and any accepting certificate describes a genuine accepting branch. The certificate length is polynomial in ∣x∣ because it has one unary header bit per simulated choice and each choice uses the fixed block length r, with at most cnk choices. The verifier runtime is therefore polynomial in ∣x∣+∣u∣ because it only decodes u and replays that many steps of N. Therefore item 1 holds by [L1].

3.1L3step 1.1step 2.1∎

Steps 1.1 and 2.1 prove both directions, so the verifier and nondeterministic definitions of NP agree. The lower bound in [L3] is compatible with these polynomial bounds: reading the whole input and certificate is already only linear in their lengths.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

The class coNP

Definition

The class coNP is coNP:={L⊆{0,1}∗:{0,1}∗∖L∈NP}.

Remarks

  • The complement is taken inside the same ambient language space {0,1}∗.

  • Saying that L∈coNP is therefore equivalent to saying that nonmembership in L has polynomially checkable certificates.

PropositionStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

P⊆NP∩coNP

Statement

Every language in P belongs to both NP and coNP.

Facts & Assumptions

Given: A language L⊆{0,1}∗ in P.

[L1]

L∈P means that some deterministic Turing machine decides L in polynomial time, by The class P.

[L2]

L∈NP means that L has a polynomial-time verifier with polynomially bounded certificates, by The class NP via polynomial-time verifiers and Polynomial-time verifiers with polynomially bounded certificates.

[L3]

L∈coNP means that the complement of L belongs to NP, by The class coNP.

Proof

technique · direct
1.1L1L2givenconstruct

By [L1], choose a polynomial-time decider D for L. Use the empty certificate u=ε and define the verifier relation RL by (x,ε)∈RL exactly when D accepts x, with no other certificates allowed. Then the paired language for RL is decidable in polynomial time by running D on the first component and checking that the second component is empty. Thus [L2] gives L∈NP.

2.1L1L2L3step 1.1construct

Swap the accepting and rejecting halting states of D to obtain a polynomial-time decider for the complement {0,1}∗∖L. Repeating step 1.1 with the same empty-certificate idea shows that the complement belongs to NP. Therefore [L3] gives L∈coNP.

3.1step 1.1step 2.1∎

Steps 1.1 and 2.1 show that every language in P lies in NP∩coNP.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

Polynomial-time many-one reductions

Definition

Let A⊆Σ∗ and B⊆Γ∗ be languages over finite alphabets. A polynomial-time many-one reduction from A to B is a total function f:Σ∗→Γ∗ such that:

  • f is computable by a deterministic Turing machine in polynomial time, and
  • for every x∈Σ∗, x∈A  ⟺  f(x)∈B.

When such an f exists, write A≤pB.

Remarks

  • "Many-one" means that the source instance is transformed once into a single target instance.

  • This is not the same notion as an oracle or Turing reduction, where later queries may depend on earlier answers.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

Polynomial-time many-one reductions compose

Statement

If A≤pB and B≤pC, then A≤pC.

Facts & Assumptions

Given: Languages A,B,C with A≤pB witnessed by a total map f and B≤pC witnessed by a total map g, in the sense of Polynomial-time many-one reductions.

[L1]

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

Proof

technique · direct
1.1L1givenconstruct

Define h:=g∘f. Because both f and g are total by [L1], the composite h is also total.

2.1L1step 1.1

For every source word x, [L1] gives x∈A  ⟺  f(x)∈B  ⟺  g(f(x))∈C. So x∈A  ⟺  h(x)∈C.

3.1L1step 1.1step 2.1∎

The function f runs in polynomial time and can output only polynomially many symbols, so the length of f(x) is polynomially bounded in ∣x∣. Running g on that output therefore still takes polynomial time in ∣x∣. Hence h is a polynomial-time many-one reduction from A to C.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-02Open item page →

Polynomial-time many-one reductions transfer P-, NP-, and coNP-membership

Statement

Let A,B⊆{0,1}∗ and suppose that A≤pB.

  1. If B∈P, then A∈P.
  2. If B∈NP, then A∈NP.
  3. If B∈coNP, then A∈coNP.

Facts & Assumptions

Given: Binary languages A,B⊆{0,1}∗ and a fixed total polynomial-time map f witnessing A≤pB.

[L1]

A polynomial-time many-one reduction is a total polynomial-time membership-preserving map, by Polynomial-time many-one reductions.

[L2]

Composites of polynomial-time many-one reductions are again polynomial-time many-one reductions, by Polynomial-time many-one reductions compose.

[L3]

P is the class of polynomial-time decidable languages, by The class P.

[L4]

NP is the class of languages with polynomial-time verifiers and polynomially bounded certificates, by The class NP via polynomial-time verifiers and Polynomial-time verifiers with polynomially bounded certificates.

[L5]

coNP consists of complements of NP-languages, by The class coNP.

Proof

technique · direct
1.1L1L3givenconstruct

Assume B∈P, and let DB be a polynomial-time decider for B from [L3]. On input x, compute the fixed map f(x) and then run DB on that output. By [L1], the answer is correct because x∈A iff f(x)∈B, and the whole procedure is polynomial-time because both stages are. Thus A∈P.

1.2L1L4givenconstruct

Assume B∈NP. By [L4], choose a verifier relation RB and polynomial certificate bound p for B. Using the fixed reduction map f, define a verifier for A by declaring that (x,u) is accepted exactly when (f(x),u)∈RB. The output length ∣f(x)∣ is polynomial in ∣x∣, so the bound p(∣f(x)∣) is still polynomial in ∣x∣. Correctness follows from x∈A  ⟺  f(x)∈B  ⟺  ∃u with ∣u∣≤p(∣f(x)∣) and (f(x),u)∈RB. Therefore A∈NP.

2.1L1L2L5step 1.2given

Assume B∈coNP. Then Bc∈NP by [L5]. The fixed reduction map f also witnesses Ac≤pBc, because x∈Ac  ⟺  x∉A  ⟺  f(x)∉B  ⟺  f(x)∈Bc. Applying step 1.2 to the reduction Ac≤pBc gives Ac∈NP, and then [L5] yields A∈coNP. The composition principle [L2] guarantees that chaining such transfers remains inside the same reduction class.

3.1step 1.1step 1.2step 2.1∎

Steps 1.1, 1.2, and 2.1 prove the three transfer clauses.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

NP-hard and NP-complete languages

Definition

Let C⊆{0,1}∗ be a language.

  • C is NP-hard when for every language L∈NP one has L≤pC.
  • C is NP-complete when C is NP-hard and C∈NP.

Remarks

  • NP-hardness is a lower-bound comparison class, not a membership class.

  • NP-completeness depends on the chosen reduction notion; on this page that notion is many-one polynomial-time reducibility.

PropositionStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

An NP-complete language in P forces P=NP

Statement

If some NP-complete language belongs to P, then P=NP.

Facts & Assumptions

Given: An NP-complete language C with C∈P.

[L1]

NP-complete means both C∈NP and every language in NP reduces to C in polynomial time, by NP-hard and NP-complete languages.

[L2]

Polynomial-time many-one reductions transfer P-membership backward: if A≤pB and B∈P, then A∈P, by Polynomial-time many-one reductions transfer P-, NP-, and coNP-membership.

[L3]

Every language in P belongs to NP, by P⊆NP∩coNP.

Proof

technique · direct
1.1L1L2given

Let L∈NP be arbitrary. By [L1], because C is NP-hard, there is a polynomial-time many-one reduction L≤pC. Then [L2] and the hypothesis C∈P give L∈P.

2.1L3step 1.1∎

Step 1.1 shows NP⊆P. By [L3], every language in P also lies in NP, so P⊆NP. Therefore P=NP.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

The search problem attached to an NP verifier

Definition

Let L⊆{0,1}∗ be a language in NP, witnessed by a verifier relation R and a polynomial certificate bound p as in Polynomial-time verifiers with polynomially bounded certificates. The search problem attached to R is:

  • input: a word x∈L,
  • output: any certificate u∈{0,1}∗ such that ∣u∣≤p(∣x∣) and (x,u)∈R.

Equivalently, it asks not merely whether a witness exists, but to produce one.

Remarks

  • On inputs x∉L, no valid certificate exists, so the search problem has no required output there.

  • The output need not be unique; any witnessing certificate is acceptable.

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passaudited 2026-09-02Open item page →

SAT search polynomial-time Turing reduces to SAT decision

Statement

Let SAT be the language of satisfiable Boolean formulas over finitely many variables, and let the associated search problem ask for a satisfying assignment of a satisfiable formula. Then there is a deterministic polynomial-time oracle algorithm that solves the search problem using queries to the decision language SAT.

Facts & Assumptions

Given: A satisfiable Boolean formula φ(x1,…,xn) and oracle access to the decision language SAT.

[L1]

The search version of an NP verifier asks for an explicit witness, not merely a yes/no answer, by The search problem attached to an NP verifier.

[L2]

Polynomially bounded witnesses are the relevant certificate regime on this page, by Polynomial-time verifiers with polynomially bounded certificates.

Proof

technique · direct
1.1givenconstruct

Query the SAT oracle on φ itself. If the answer is "no", halt and report that no satisfying assignment exists. If the answer is "yes", initialize the current residual formula to ψ0:=φ.

2.1step 1.1givenconstruct

For i=1,…,n, form the two residual formulas obtained from ψi−1 by substituting xi=1 and xi=0. Query the oracle on the first one. If it is satisfiable, record xi=1 and set ψi equal to that first residual formula. Otherwise record xi=0 and set ψi equal to the second residual formula. At least one branch is satisfiable, because any satisfying assignment of ψi−1 gives one of the two values to xi.

3.1L1step 2.1

By induction on i, the maintained residual formula ψi is satisfiable and is obtained from φ by fixing the first i variables to the recorded values. After the final stage, every variable has been assigned, so the recorded bits form a satisfying assignment for φ. This is exactly the witness demanded in [L1].

4.1L2step 1.1step 2.1step 3.1∎

The algorithm makes at most n+1 oracle calls, and each intermediate substitution and formula rewrite is polynomial in ∣φ∣. Since the satisfying assignment itself has length n≤∣φ∣, this stays within the polynomial witness regime of [L2]. Therefore SAT search polynomial-time Turing reduces to SAT decision.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

The classes EXP and NEXP

Definition

The exponential-time classes are EXP:=⋃k≥1DTIME⁡(2nk),NEXP:=⋃k≥1NTIME⁡(2nk).

Remarks

  • The exponent k is fixed per language, just as in the definition of P and NP.

  • The point is asymptotic growth: exponential time allows bounds of the form 2nk up to the usual multiplicative constants hidden in the class notation.

PropositionStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-02Open item page →

NP⊆PSPACE⊆EXP

Statement

Let PSPACE:=⋃k≥1DSPACE⁡(nk). Then NP⊆PSPACE⊆EXP.

Facts & Assumptions

Given: The classes NP, PSPACE, and EXP.

[L1]

A language in NP has a polynomial-time verifier with polynomially bounded certificates, by The class NP via polynomial-time verifiers.

[L2]

The class notation DSPACE records deterministic polynomial-space deciders, and DTIME records deterministic time-bounded deciders, by The classes DTIME, NTIME, DSPACE, and NSPACE.

[L3]

Worst-case space counts visited tape cells and worst-case time counts executed steps, by Worst-case time and space complexity of a machine.

[L4]

EXP is the union of the classes DTIME⁡(2nk), by The classes EXP and NEXP.

[L5]

A configuration records a machine state, head positions, and finite tape data, and tape contents have finite support, by Configurations of a deterministic one-tape Turing machine and Right-infinite tapes as finite-support functions.

Proof

technique · direct
1.1L1L2L3givenconstruct

To prove NP⊆PSPACE, let L∈NP. By [L1], choose a verifier for L with runtime bounded by a polynomial q(n) and certificate length bounded by a polynomial p(n). A deterministic decider for L can enumerate all certificates u of length at most p(∣x∣) in lexicographic order, run the verifier on (x,u), and accept as soon as one certificate succeeds. It stores only the input x, the current certificate u, and the verifier workspace, so the total space used is polynomial in ∣x∣. Hence L∈PSPACE by [L2] and [L3].

1.2L3L5given

To prove PSPACE⊆EXP, let L∈PSPACE. Then by definition there exists k≥1 and a deterministic machine M deciding L while using at most cnk tape cells on inputs of length n, for some constant c. Fix such an input length n. Because of [L5], a configuration of M is determined by one of finitely many states, the head positions on the finitely many tapes, and the contents of at most cnk visited cells. Therefore the total number of possible configurations is at most ∣Q∣⋅(cnk+1)d⋅∣Γ∣dcnk=2O(nk) for a constant d depending only on the fixed number of tapes.

2.1L2L4step 1.2

Since M is deterministic and halts on every input, it cannot visit the same configuration twice on one accepting or rejecting run: a repeated configuration would force an infinite loop from that point onward. So the running time on inputs of length n is bounded by the number of reachable configurations from step 1.2, hence by 2O(nk). Enlarging the exponent if necessary, there exists m with 2O(nk)≤2nm for all sufficiently large n. Therefore L∈EXP by [L2] and [L4].

3.1step 1.1step 2.1∎

Steps 1.1 and 2.1 prove NP⊆PSPACE⊆EXP.

5 · Examples, counterexamples and false statements

False statementConstruction: AI-adaptedVerification: AI-generatedprecheck passaudited 2026-09-02Open item page →

FALSE: NP means not polynomial-time solvable

Statement

NP means "not polynomial-time solvable."

Facts & Assumptions

Given: The classes P and NP.

[L1]

Every language in P also lies in NP, by P⊆NP∩coNP.

[L2]

NP is a language class defined by polynomially checkable certificates, by The class NP via polynomial-time verifiers.

Refutation

technique · direct
1.1L1given

By [L1], any language already known to be in P is automatically also in NP.

2.1L2step 1.1∎

Step 1.1 contradicts the slogan in the statement: a polynomial-time solvable language can still belong to NP. By [L2], NP is about efficiently verifiable yes-certificates, not about being known outside polynomial time.

False statementConstruction: AI-adaptedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-02Open item page →

FALSE: NP-complete means proven not to lie in P

Statement

If a language is NP-complete, then it has already been proved not to belong to P.

Facts & Assumptions

Given: An NP-complete language C.

[L1]

NP-complete means that C lies in NP and every NP-language reduces to it, by NP-hard and NP-complete languages.

[L2]

If an NP-complete language lies in P, then P=NP, by An NP-complete language in P forces P=NP.

[F1]

The question whether P=NP remains unsolved; the Clay Mathematics Institute lists P versus NP as an unsolved Millennium Prize Problem.

Refutation

technique · direct
1.1L1given

The definition quoted in [L1] contains no clause asserting C∉P. It says only that C is in NP and is hard for NP under the chosen reductions.

2.1L1L2F1step 1.1∎

If C∉P had already been proved, then [L1] would give a language in NP∖P and hence prove P≠NP. But [F1] records that this question remains unsolved. Conversely, [L2] says that finding C∈P would prove P=NP. Thus NP-completeness does not mean that exclusion from P has already been proved; it identifies the consequence either kind of resolution would have.

Sources