Alphabeta Math
Pipeline-generated
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 · 6 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 3 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Counting Complexity and Sharp-P

1 · Prerequisites

2 · Summary

This page develops the assigned conventions and keeps every resource, type, and quantifier explicit.

3 · Logical flowchart

4 · Definitions, theorems and proofs

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

Sharp-P and Gap-P functions

Definition

A #P function maps each input to the number of accepting paths of a binary-branching polynomial-time nondeterministic machine. A GapP function is accepting paths minus rejecting paths of such a machine. Function values are represented in binary.

DefinitionDefinition: AI-adaptedProof: Not applicableverified 2026-09-08 (gpt-6-astra)Open item page →

NumberSAT

Definition

A Boolean formula is a finite expression built from variables, the constants ⊤,⊥, and the connectives ¬,∧,∨. Under an assignment of zeros and ones to its variables, evaluate constants as one and zero, negation as complementation, conjunction as minimum, and disjunction as maximum. An assignment satisfies the formula when its value is one. Fix an effective binary encoding of these expression trees and finite lists of variable names.

An input to NumberSAT is well formed when it encodes a Boolean formula φ together with an ordered list (x1,…,xn) of distinct variables and every variable occurring in φ appears in that list. Its value is the exact number of assignments a:{x1,…,xn}→{0,1} that satisfy φ. Declared variables count even when unused, so the count ranges over all 2n assignments to the list. Every input not having this form is malformed and has value zero.

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

NumberSAT belongs to Sharp-P

Statement

NumberSAT belongs to #P.

Facts & Assumptions

Given: an encoded formula with its ordered declared-variable list.

[L1]

#P counts accepting paths of a binary nondeterministic polynomial-time machine. by Sharp-P and Gap-P functions.

Proof

technique · direct
1.1L1givenconstruct

First check the formula syntax and declared-variable list deterministically; on malformed input reject without making a nondeterministic choice. On a valid input with n declared variables, make exactly n binary choices, interpret them in the declared order as an assignment, evaluate the formula, and accept exactly when it is true.

2.1L1step 1.1

The 2n computation paths are in bijection with the 2n declared assignments, and a path accepts exactly when its assignment satisfies the formula. At n=0 there is one path, corresponding to the empty assignment; malformed input has no accepting path. Thus the accepting-path count is exactly NumberSAT(φ).

3.1L1step 2.1∎

The machine runs in polynomial time, so its counting function belongs to #P by [L1].

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

Parsimonious reductions between counting functions

Definition

A parsimonious reduction f to g is a polynomial-time map r with f(x)=g(r(x)) for every input x. This exact count equality is stronger than a decision many-one reduction, which preserves only nonzeroness.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passverified 2026-09-23 (gpt-6-sol)Open item page →

The Cook--Levin construction can be made parsimonious

Statement

For every fixed polynomial-time nondeterministic machine N, one can compute in polynomial time a formula φN,x together with an ordered list VN,x of all its declared variables, whose satisfying assignments are in bijection with the accepting computation paths of N on x. Consequently x↦(φN,x,VN,x) is a parsimonious reduction from the accepting-path count of N to NumberSAT.

Facts & Assumptions

Given: a fixed nondeterministic polynomial-time machine N.

[L1]

A bounded tableau records one computation branch, including the unique state-tagged head position in each row, by A bounded computation tableau for a nondeterministic Turing-machine run.

[L2]

The standard local tableau constraints are satisfiable exactly when an accepting bounded tableau exists, by The Cook-Levin formula is satisfiable if and only if an accepting bounded tableau exists.

[L3]

The Cook--Levin formula is computable in polynomial time for fixed N, by The Cook-Levin reduction map is computable in polynomial time.

[L5]

NumberSAT counts assignments to the complete ordered declared-variable list, including unused variables, by NumberSAT.

[F1]

A fixed nondeterministic multitape machine has a finite transition table and finitely many tape heads (Multitape and nondeterministic Turing machine variants).

[L4]

A parsimonious reduction preserves the exact numerical count, by Parsimonious reductions between counting functions.

Proof

technique · direct
1.1F1givenconstruct

Replace N by a fixed one-tape simulator N∗. Encode the finitely many simulated tapes as delimiter-separated blocks with marked head cells. To simulate one step, make a deterministic sweep to collect the finitely many scanned symbols, choose exactly one transition of N nondeterministically, record its transition tag in a distinct intermediate state, and make deterministic sweeps to update marked cells and shift blocks if a head enters a new blank cell. The finite transition table from [F1] makes all sweep-control states fixed. After t simulated steps on an input of length n, at most n+O(t) cells are represented, so each sweep costs O(n+t) and the full simulation costs O((n+t)2); the tag step adds constant overhead. Even choices with the same eventual successor yield different tagged tableau rows. Erasing deterministic sweeps and reading tags is a bijection between accepting paths. Choose a polynomial T(n)≥n+1 bounding the running time and every visited tape position on all bounded branches, then deterministically pad every halted branch to time T(n). This supplies [L1]--[L3].

2.1L1L5step 1.1construct

Use one-hot tableau variables for the symbol (including the tagged state) in every time-cell position. The initial-row, exactly-one-symbol, local-transition, and accepting constraints use only those variables. Take their conjunction as φN,x without introducing auxiliary variables. Let VN,x list every cell variable Xt,c,a once, in lexicographic order of time, cell, and a fixed order on the simulator alphabet. Output the encoded pair (φN,x,VN,x), which is well formed for NumberSAT.

3.1L1L2L5step 1.1step 2.1

An accepting path fixes every cell of its padded tableau and therefore one truth value for every tableau variable. Every declared variable is such a cell variable, so none contributes a free choice. Conversely, any satisfying assignment gives exactly one legal accepting tableau by [L2], and the retained choice tags recover exactly one accepting path of N∗, hence exactly one accepting path of N by step 1.1. These maps are inverse, so #acc⁡N(x)=NumberSAT(φN,x,VN,x).

4.1L3L4step 3.1∎

The tableau has polynomial dimensions, its local constraints have polynomial total size, and [L3] supplies the polynomial-time construction. Enumerating the polynomially many declared variable names in the specified order also takes polynomial time. Together with the exact equality in step 3.1, [L4] proves parsimony.

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

NumberSAT is Sharp-P-complete under parsimonious reductions

Statement

NumberSAT is #P-complete under parsimonious reductions.

Facts & Assumptions

Given: an arbitrary function f∈#P.

[L1]

Such an f is the accepting-path count of a fixed polynomial-time nondeterministic machine, by Sharp-P and Gap-P functions.

[L2]

NumberSAT∈#P, by NumberSAT belongs to Sharp-P.

[L3]

The Cook--Levin construction can preserve accepting paths in a bijection with satisfying assignments, by The Cook--Levin construction can be made parsimonious.

[L4]

Parsimony means exact count equality under a polynomial-time map, by Parsimonious reductions between counting functions.

Proof

technique · direct
1.1L1L3givenconstruct

Choose a machine N with f(x)=#acc⁡N(x) as supplied by [L1]. Apply [L3] to compute the formula r(x)=φN,x in polynomial time.

2.1L3L4step 1.1

For every input x, the bijection in [L3] gives the exact chain f(x)=#acc⁡N(x)=#sat⁡(φN,x)=NumberSAT(r(x)). Thus r is a parsimonious reduction by [L4].

3.1L2step 2.1∎

Since f was arbitrary, step 2.1 proves #P-hardness, and [L2] proves membership.

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

The nonnegative function class FP

Definition

On this page FP is the class of total nonnegative integer-valued functions whose binary outputs are computable in deterministic polynomial time.

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

FP is contained in Sharp-P

Statement

FP⊆#P for the page's nonnegative integer-valued function convention.

Facts & Assumptions

Given: f∈FP.

[L1]

An FP function is total, nonnegative, binary-valued, and computable in polynomial time, by The nonnegative function class FP.

[L2]

A #P function counts accepting paths of a binary-branching polynomial-time nondeterministic machine, by Sharp-P and Gap-P functions.

Proof

technique · direct
1.1L1givenconstruct

On input x, compute m=f(x) using [L1] and let k=max⁡(1,∣bin⁡(m)∣). Make exactly k binary nondeterministic choices, producing one path for every integer u∈[0,2k). Accept iff u<m.

2.1step 1.1algebra

Exactly the m values u=0,…,m−1 accept; all power-of-two padding values reject. This remains correct at m=0, when no path accepts. The output length and hence k are polynomially bounded by the running time in [L1].

3.1L2step 2.1∎

The constructed machine runs in polynomial time and has accepting-path count f(x), so f∈#P by [L2].

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

Sharp-P is closed under sum and product

Statement

If f,g∈#P, then f+g and fg belong to #P.

Facts & Assumptions

Given: polynomial-time nondeterministic machines Mf,Mg whose accepting-path counts are f,g.

[L1]

#P functions are accepting-path counts. by Sharp-P and Gap-P functions.

Proof

technique · direct
1.1L1givenconstruct

For the sum, make one initial binary choice. On its 0 branch simulate Mf(x) and on its 1 branch simulate Mg(x). The accepting paths are a disjoint tagged union, so their number is f(x)+g(x).

1.2L1givenconstructalgebra

For the product, simulate Mf(x); after each accepting path, independently simulate Mg(x), while every rejecting Mf path rejects. Each of the f(x) accepting first-stage paths has exactly g(x) accepting continuations, so the total is f(x)g(x). This also covers either count being zero.

2.1L1step 1.1step 1.2∎

Both composite machines run in polynomial time, so [L1] puts their two counting functions in #P.

DefinitionDefinition: Literature-sourcedProof: Not applicableverified 2026-09-26 (gpt-6-sol)Open item page →

MajoritySAT

Definition

On a well-formed NumberSAT input consisting of a formula φ and a declared list (x1,…,xn) of n distinct variables, MajoritySAT asks whether NumberSAT(φ,(x1,…,xn))>2n−1. Every malformed input is a no-instance. At n=0 the inequality is equivalent to the empty assignment satisfying φ.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passverified 2026-09-23 (gpt-6-sol)Open item page →

PP is strict sign testing for Gap-P

Statement

A language L lies in PP if and only if there is a g∈GapP such that x∈L  ⟺  g(x)>0.

Facts & Assumptions

Given: the PP and GapP conventions.

[L1]

A GapP value is the difference between accepting and rejecting path counts, by Sharp-P and Gap-P functions.

[L2]

PP uses a strict acceptance-probability threshold of 1/2, by The classes RP, coRP, ZPP, BPP, and PP.

Proof

technique · direct
1.1L1L2given

Let a PP machine use exactly p(∣x∣) random bits, padding unused bits if necessary, and let a(x) and r(x) be its accepting and rejecting choice-string counts. Then g=a−r is in GapP by [L1], and g(x)>0 exactly when a(x)>2p(∣x∣)−1, the strict PP condition in [L2].

1.2L1L2givenconstruct

Conversely take a GapP machine for g, let f count its accepting paths, and let h count its rejecting paths (the latter is a #P count after exchanging final labels), so g=f−h. Choose a common polynomial bound p(∣x∣) on the number of binary choices. Encode each original path by its actual choice bits followed by only zeroes to length p; reject a nonzero unused suffix. This gives exactly one full-length encoding per original path and does not multiply either count when a branch halts early. Each normalized machine has 2p total full-length paths. Construct a machine with one leading choice: on branch 0 run the machine for f with its labels unchanged; on branch 1 run the machine for h with accept and reject exchanged. It has f(x)+(2p−h(x)) accepting paths out of 2p+1, a strict majority exactly when f(x)−h(x)>0.

2.1step 1.1step 1.2∎

Steps 1.1 and 1.2 prove the two implications, including the strict zero boundary.

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

MajoritySAT is PP-complete

Statement

MajoritySAT is PP-complete under polynomial-time many-one reductions.

Facts & Assumptions

Given: the declared-variable convention for formulas.

[L1]

MajoritySAT uses the strict threshold NumberSAT(φ)>2n−1, including its n=0 interpretation, by MajoritySAT.

[L2]

PP is strict sign testing for GapP, by PP is strict sign testing for Gap-P.

[L3]

Cook--Levin can preserve accepting paths exactly, by The Cook--Levin construction can be made parsimonious.

Proof

technique · direct
1.1L1given

On a well-formed formula with n declared variables, a probabilistic machine chooses the n assignment bits uniformly and accepts exactly on a satisfying assignment. Its acceptance probability is NumberSAT(φ)/2n, so [L1] gives membership in PP; for n=0 the unique random string is the empty assignment.

1.2L2L3givenconstructalgebra

For hardness, normalize a PP machine to 2p paths with p≥1, a of them accepting. By [L3] obtain a formula φ with exactly a satisfying assignments. Add uniquely forced variables until its declared count q obeys q≥p, preserving its count. For u=(uq−1,…,u0) let T(u)=uq−1∨⋯∨up−1; exactly 2q−2p−1 assignments satisfy T. With a fresh selector z, put θ=(¬z∧φ)∨(z∧T). Then #θ=a+2q−2p−1>2q  ⟺  a>2p−1. The formula and its declared list are produced in polynomial time.

2.1L1step 1.1step 1.2∎

Step 1.2 is a membership-preserving reduction from every PP language to MajoritySAT, and step 1.1 gives membership; hence MajoritySAT is PP-complete.

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

PP is closed under complement

Statement

If L∈PP, then its complement belongs to PP.

Facts & Assumptions

Given: L∈PP.

[L1]

GapP values are integer differences of accepting and rejecting path counts, by Sharp-P and Gap-P functions.

[L2]

A language is in PP exactly when membership is strict positivity of a GapP function, by PP is strict sign testing for Gap-P.

Proof

technique · direct
1.1L2givenalgebra

By [L2], choose g∈GapP with L={x:g(x)>0}. Since g is integer-valued, x∉L  ⟺  g(x)≤0  ⟺  1−g(x)>0.

2.1L1step 1.1construct

If g is witnessed by a machine, exchanging its accepting and rejecting labels witnesses −g in GapP. A deterministic accepting machine witnesses the constant-one gap, and a leading tagged branch adds two gap functions. Hence 1−g∈GapP by [L1].

3.1L2step 1.1step 2.1∎

Applying [L2] to 1−g shows that L‾∈PP. The added 1 is exactly what turns the non-strict condition g≤0 into strict positivity, including g=0.

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

Polynomial time with a Sharp-P oracle

Definition

P#P is deterministic polynomial time with oracle access to the fixed #P-complete function NumberSAT of NumberSAT is Sharp-P-complete under parsimonious reductions. The machine may make polynomially many adaptive queries of polynomial length, each answered by the binary expansion of the integer value rather than by a membership bit. Equivalently, one may use any fixed #P function complete under polynomial-time parsimonious reductions; completeness makes the resulting class independent of that choice.

PropositionStatement: Literature-sourcedProof: AI-generatedverified 2026-09-26 (gpt-6-sol)Open item page →

NP is contained in P with a Sharp-P oracle

Statement

NP⊆P#P.

Facts & Assumptions

Given: L∈NP with polynomial-time verifier R(x,u) and a polynomial witness-length bound p, so witnesses may have any length at most p(∣x∣) (The class NP via polynomial-time verifiers).

[L1]

P#P uses a fixed NumberSAT oracle returning its exact binary integer value, by Polynomial time with a Sharp-P oracle.

[L2]

#P functions count accepting paths, by Sharp-P and Gap-P functions.

[L3]

Every #P function has a polynomial-time parsimonious reduction to NumberSAT, by NumberSAT is Sharp-P-complete under parsimonious reductions.

Proof

technique · direct
1.1L2givenconstruct

Enlarge p if needed to a nonnegative integer-valued polynomial bound, and put m=p(∣x∣). Define h(x)=∣{u∈{0,1}∗:∣u∣≤m, R(x,u)=1}∣. A binary-branching polynomial-time machine guesses a word y of length m+1. It rejects if y has no zero; otherwise it writes y=1m−∣u∣0u using the first zero, and accepts exactly when R(x,u)=1. This encoding is a bijection between words u of length at most m and guessed words y with a zero. Thus the accepting-path count is exactly h(x), so h∈#P.

2.1L1L3step 1.1

By [L3], compute in polynomial time a formula r(x) with h(x)=NumberSAT(r(x)). A deterministic oracle machine queries r(x) and accepts iff the returned binary integer is nonzero. Since h(x)≤2m+1−1, the answer has at most m+1 bits. By the verifier definition, h(x)>0 exactly when x∈L.

3.1step 2.1∎

This oracle machine decides L, proving the containment.

5 · Examples, counterexamples and false statements

False statementConstruction: Literature-sourcedVerification: AI-generatedprecheck passaudited 2026-09-07Open item page →

Sharp-P is a language class

Statement

#P is a class of languages, so every member has only a Boolean yes/no value on each input.

Facts & Assumptions

Given: formulas φ(x,y)=x∨y and ψ(x,y)=(x∨y)∧(¬x∨¬y), each with declared list (x,y).

[L1]

#P is defined as a class of numerical functions. by Sharp-P and Gap-P functions.

Refutation

technique · direct
1.1L1givenalgebra

By direct enumeration, NumberSAT(φ)=3 and NumberSAT(ψ)=2. NumberSAT is a #P function, while neither 2 nor 3 is a Boolean membership value.

2.1step 1.1

The associated decision language SAT retains only the predicate NumberSAT(θ)>0; it answers yes on both displayed formulas and forgets their distinct counts.

3.1L1step 1.1step 2.1∎

Thus, under [L1], #P is a numerical function class rather than a language class.

False statementConstruction: Literature-sourcedVerification: AI-generatedverified 2026-09-26 (gpt-6-sol)Open item page →

Every decision many-one reduction is parsimonious

Statement

Every polynomial-time many-one reduction between decision problems preserves the exact number of witnesses.

Facts & Assumptions

Given: On binary inputs w, let f(w) count the sole witness ε and let g(w) count the two witnesses 0 and 1. These are counting functions with f(w)=1 and g(w)=2 for every w; their associated decision languages, defined by positive count, are both {0,1}∗.

[L1]

A decision many-one reduction need preserve only membership, by Polynomial-time many-one reductions.

[L2]

A parsimonious reduction preserves exact counts, by Parsimonious reductions between counting functions.

Refutation

technique · direct
1.1L1givenconstruct

Let r(w)=w for every binary word w. This is a total linear-time map. The two positive-count decision languages are both {0,1}∗, so r is a many-one reduction between them by [L1].

2.1L2givenstep 1.1

For every w, the source has exactly one accepting witness ε, whereas the target has exactly the two accepting witnesses 0,1. Hence f(w)=1≠2=g(r(w)), so r is not parsimonious under [L2]. Both witness relations are decidable in constant time once their witness is read.

3.1step 1.1step 2.1∎

This one polynomial-time decision reduction refutes the universal claim.

Sources