Preprint
Article

This version is not peer-reviewed.

Tunnell's Theorem and #P-Completeness

Submitted:

19 May 2026

Posted:

20 May 2026

You are already at the latest version

Abstract
We propose a framework that isolates a precise complexity-theoretic bottleneck between counting complexity and the Birch–Swinnerton-Dyer conjecture (BSD) via Tunnell’s theorem. The framework rests on two number-theoretic conjectures: a Reduction Conjecture asserting the existence of a polynomial-time reduction from any #P-complete problem to the counting of integer representations Dn = #{(x, y, z) : n = 8x2 + 2y2 + 16z2} (with counts preserved up to a polynomial factor), and a Solution Density Conjecture asserting that the values {Dn : n even square-free congruent} are sufficiently densely distributed (within the Eichler–Deligne ceiling Dn = O(n1/2+ε)) to support iterated polynomial descent. We do not claim that P = NP implies #P = FP (the natural binary-search route fails because the threshold predicate [#I ≥ k] is PP-complete, not in NP, and PP is not known to collapse under P = NP). Instead, we prove a structural equivalence: under the two conjectures, BSD, and P = NP, #P ⊆ FP if and only if the specific family TunnellCount := {n 7→ Dn} is in FP. The framework thus does not resolve the #P ?= FP question; it converts it into a concrete, falsifiable arithmetic question about the polynomial-time tractability of representation counts on one specific ternary quadratic form. We identify three concrete open problems—parsimony in Matiyasevich representations, the distribution of weight-3/2 Fourier coefficients viaWaldspurger’s formula, and the FP-tractability of Dn itself—whose resolution would substantiate or refute the framework.
Keywords: 
;  ;  ;  ;  ;  

1. Introduction

The P versus NP problem stands as one of the most fundamental open questions in computer science and mathematics [1,2]. This paper proposes a novel, albeit conjectural, pathway that links the # P vs. FP question to the Birch–Swinnerton-Dyer conjecture (BSD) [3] via Tunnell’s theorem [4]. The contribution is not a proposed collapse of complexity classes; rather, we isolate a precise complexity-theoretic bottleneck—the polynomial-time tractability of one specific arithmetic counting function D n —as the exact obstruction linking # P to BSD-controlled arithmetic geometry.

1.1. Background on Complexity Classes

The complexity class #P, introduced by Valiant [5], consists of counting problems associated with NP decision problems. Formally, a function f : { 0 , 1 } * N belongs to #P if there exists a polynomial-time verifier V and a polynomial p such that
f ( x ) = | { y { 0 , 1 } p ( | x | ) : V ( x , y ) = 1 } | .
A problem is #P-complete if every problem in #P reduces to it via a polynomial-time parsimonious reduction (or more generally, via polynomial-time reductions that preserve solution counts up to polynomial factors). Classic #P-complete problems include #SAT (counting satisfying assignments) and computing the permanent of a matrix [5].
The functional class FP consists of functions computable in polynomial time. The known direction relating these classes is # P = FP P = NP (since being able to count witnesses lets one decide whether at least one exists); equivalently, # P = FP is a strictly stronger assertion than P = NP . The converse is not known: even if P = NP , the natural counting predicate [ # I k ] (with k in binary) is PP-complete [6], and PP is not known to collapse to P under the assumption P = NP . Thus collapsing decision classes does not automatically collapse counting classes [7].

1.2. Background on Congruent Numbers and Tunnell’s Theorem

A positive integer n is called a congruent number if it is the area of a right triangle with rational side lengths [8]. Equivalently, n is congruent if and only if the elliptic curve
E n : y 2 = x 3 n 2 x
has positive rank. The congruent number problem—determining whether a given n is congruent—is one of the oldest unsolved problems in number theory.
Tunnell [4] made remarkable progress by establishing a computationally tractable criterion. For a square-free integer n, define
C n = # { ( x , y , z ) Z 3 : n = 8 x 2 + 2 y 2 + 64 z 2 } , D n = # { ( x , y , z ) Z 3 : n = 8 x 2 + 2 y 2 + 16 z 2 } .
Theorem 1
(Tunnell [4]). Let n be a square-free positive integer.
1. 
If n is even and congruent, then 2 C n = D n .
2. 
Conversely, if the Birch–Swinnerton-Dyer conjecture holds for the elliptic curve E n , then 2 C n = D n implies n is congruent.
The quantities C n and D n are not arbitrary; they arise as the n-th Fourier coefficients of explicit weight- 3 / 2 modular forms. By the Shimura correspondence [9] and Waldspurger’s formula [10], their squares are proportional to the central L-value L ( E n , 1 ) , which under BSD vanishes exactly when E n has positive rank. This places Tunnell’s criterion within a deep analytic framework that constrains the size and arithmetic of D n . In particular, Deligne’s resolution of the Weil conjectures [11], together with the Eichler–Selberg bound on Fourier coefficients, implies
D n = O n 1 / 2 + ε for every ε > 0 ,
so D n is exponentially bounded in | n | = Θ ( log n ) . Any framework that uses D n to encode counts must respect this ceiling—a constraint that shapes our Conjecture 3 below.
The congruum construction, dating back to Fibonacci, provides an explicit family of congruent numbers [12]. A congruum is an integer of the form
g = 4 a b ( a 2 b 2 )
for distinct positive integers a > b . Every congruum is the common difference in a Pythagorean progression, and multiplying a congruum by a perfect square yields another congruum.

1.3. Main Contributions and Framework

This paper does not claim a new proven result. Instead, it proposes a framework that converts a complexity-theoretic separation question ( # P = ? FP ) into a concrete arithmetic question (FP-tractability of D n ). The key contributions are:
1.
An honest complexity model (Lemma 2): We explicitly model exact # P counting via a # P oracle rather than (incorrectly) deriving it from P = NP . This separates the polynomial-time decision steps (factorization, Tunnell test, range tests) from the genuinely # P -hard counting step, and is the technical premise underlying all subsequent results.
2.
The Solution Density Conjecture (Conjecture 3): We conjecture that the solution counts D n for congruent numbers are sufficiently dense and well-distributed (within the Eichler–Deligne ceiling) to host an iterated polynomial descent.
3.
The Reduction Conjecture (Conjecture 5): We conjecture the existence of a polynomial-time reduction R that maps any #P-complete instance I to an even square-free congruent number n with # I = Θ ( D n / poly ( | I | ) ) .
4.
A Conditional Algorithm in FP # P (Theorem 6): We present an algorithm (Algorithm 1) and prove that under the two conjectures, P = NP , and BSD, it computes any #P-complete count in poly ( | I | ) deterministic time using poly ( | I | ) queries to a # P oracle.
5.
A Structural Equivalence (Theorem 7): We prove that under the conjectures, P = NP , and BSD, the relation # P FP holds if and only if the specific family TunnellCount = { n D n } is in FP. The framework therefore isolates rather than resolves the # P vs. FP question, replacing it with a concrete arithmetic question.
6.
Falsifiability criteria (Section 5.4): We articulate explicit numerical and structural criteria under which each conjecture and the FP-tractability of D n could be substantiated or refuted, including the consequences via Toda’s theorem.

1.4. Organization

Section 2 establishes notation and preliminary results. Section 3 develops ancillary results on congruum density, polynomial balance, and counting under complexity assumptions, and introduces the first of our key conjectures (Conjecture 3). Section 4 presents the main reduction and algorithm, built upon the central Reduction Conjecture (Conjecture 5). Section 5 discusses implications and the nature of these conjectures. Section 8 concludes with open questions.

2. Preliminaries

2.1. Notation and Conventions

Throughout this paper, we use standard complexity-theoretic notation. For a function f : N N , we write f ( n ) = poly ( n ) if there exist constants c , k > 0 such that f ( n ) c · n k for all sufficiently large n.
For an integer m, we denote by | m | its bit length, i.e., | m | = log 2 ( | ( | m ) + 1 ) , where | ( | ) is the absolute value. For a computational problem instance I, we write | I | for the size of its encoding.

2.2. Assumptions

We work under the following two critical assumptions throughout:
1.
P = NP: The class of problems solvable in polynomial time equals the class of problems verifiable in polynomial time. This immediately implies NP = coNP = P.
2.
BSD: The Birch–Swinnerton-Dyer conjecture holds for elliptic curves of the form E n : y 2 = x 3 n 2 x .
Under P = NP, several important consequences follow:
  • Factorization ∈ P (since FACTORING ∈ NP ∩ coNP), so extracting square-free parts is polynomial-time.
  • Satisfiability testing and all NP decision problems are in P.
  • Decision versions of arithmetic predicates (e.g., “is n even square-free congruent given BSD?”) become polynomial-time decidable.
We explicitly do not assume that exact counting (#P) becomes polynomial-time under P = NP. The predicate [ # I k ] for k given in binary is PP-complete and is not known to lie in P under the assumption P = NP. Whenever an exact count is required by our framework, we model it as a query to a #P oracle (see Lemma 2). The question of whether the specific counting functions D n admit polynomial-time algorithms—independently of the general # P = ? FP question—is precisely the bottleneck this paper isolates.

2.3. Diophantine Representations

A fundamental result connecting logic and number theory is Matiyasevich’s theorem [13]:
Theorem 2
(Matiyasevich). Every recursively enumerable set has a Diophantine representation. Specifically, for any NP problem, there exists a polynomial P with integer coefficients such that membership in the set is equivalent to solvability of P ( x 1 , , x k ) = 0 in integers.

3. Ancillary Results and the First Conjecture

This section develops the technical machinery required for our hypothetical framework.

3.1. Congruum Density and Distribution

Lemma 1.
The number of distinct congruums up to X is Ω ( X 1 / 2 / log X ) , and in particular the corresponding set of even square-free congruent numbers obtained as squarefree ( g / 2 v 2 ( g ) ) has size Ω ( X 1 / 2 / log X ) for X sufficiently large.
Proof. 
Each pair ( a , b ) with 1 b < a X 1 / 4 / 2 generates a congruum
g = 4 a b ( a 2 b 2 ) 4 a 4 X .
The number of such ordered pairs is X 1 / 4 / 2 2 = Θ ( X 1 / 2 ) . Distinct congruums need not arise from distinct pairs (the map ( a , b ) g has bounded fibres), but elementary divisor counting bounds each fibre by O ( log X ) , yielding Ω ( X 1 / 2 / log X ) distinct congruums. After dividing by the maximal power of 2 and extracting the square-free part—a many-to-one map whose fibres are again controlled by O ( log X ) for g X —we obtain Ω ( X 1 / 2 / log X ) distinct even square-free congruent numbers in [ 1 , X ] .    □
Conjecture 3
(Solution Density Conjecture). Fix an instance size parameter N and let B = poly ( N ) be a size budget. For every target count T satisfying
1 T 2 B / 2 ( the Eichler Deligne ceiling for | n | B ) ,
there exists an even square-free congruent number n with | n | B such that
T poly ( N ) D n T · poly ( N ) .
Moreover, under the assumptions P = NP and BSD, one such n can be found in time poly ( N ) .
Remark 1
(Why the bound on T is necessary). The Shimura correspondence [9] expresses D n as a Fourier coefficient of a weight- 3 / 2 cusp form, and Deligne’s bound [11] on such coefficients yields D n = O ( n 1 / 2 + ε ) . Hence for any n with | n | B we have D n 2 B / 2 + o ( B ) . The previous version of this conjecture allowed T up to 2 poly ( N ) , which is incompatible with this hard ceiling whenever poly ( N ) B . The reformulation above is the strongest density statement that is not immediately contradicted by Deligne’s bound.
Remark 2
(Heuristic justification). We give three complementary reasons for believing Conjecture 3.
  • (1) Random-coefficient heuristic. If the multiset { D n : n even square - free congruent , | n | B } were modelled as Ω ( 2 B / 2 / B ) independent draws from a distribution supported on [ 1 , 2 B / 2 ] with subexponential tails (the standard model for Fourier coefficients of cusp forms, supported by extensive numerics for L-functions), then a target window of width poly ( N ) would be hit by some n except with probability that decays superpolynomially in N.
  • (2) Waldspurger’s formula. For n in a fixed square-class, | D n | 2 is proportional to L ( E n , 1 ) · n (a special case of [10] applied to Tunnell’s forms). The conjectural distribution of L ( E n , 1 ) along quadratic twists, refined by Goldfeld [14] and supported by extensive numerical experiments on the family E n : y 2 = x 3 n 2 x , is sufficiently uniform on the relevant scale to make density of D n -values plausible.
  • (3) Lemma 1 provides supply. The supply of even square-free congruent numbers in [ 1 , 2 B ] is Ω ( 2 B / 2 / B ) . Therefore, even if the D n values are far from independent, only a (relative) density of 1 / poly ( N ) in T-windows is required for the conjecture to hold, which is a weak distributional assumption.
The remaining content of the conjecture—algorithmic findability —follows from the existence part once P = NP is available and oracle access to # P is granted: candidates can be enumerated via the congruum family, D n obtained by oracle queries (Lemma 2), and a hit detected, all within poly ( N ) deterministic time and poly ( N ) oracle queries given there are poly ( N ) candidates in the target window. Where the framework’s main theorem (Theorem 7) hypothesises TunnellCount ⊆ FP, the oracle queries above become polynomial-time evaluations and findability becomes unconditional poly-time.

3.2. Counting Under Oracle Access

A central methodological point of this paper is that we do not assume that exact counting becomes polynomial-time under P = NP. We separate the framework’s reliance on polynomial-time decision procedures (which P = NP delivers) from its reliance on exact counting (which it does not).
Lemma 2
(Oracle separation for the framework). Under P = NP :
1. 
All decision predicates used by the framework—primality, square-freeness, factor extraction, the Tunnell test 2 C n = ? D n given BSD, and feasibility predicates of the form [ D n [ L , U ] ] for L , U given as inputs—are decidable in time poly ( | I | ) .
2. 
The exact counting function n D n remains in # P and is not known to be in FP. We model exact D n -evaluations as queries to a # P oracle.
3. 
Given oracle access to # P , the exact value D n is recovered by a single oracle query in O ( 1 ) oracle time and poly ( | n | ) deterministic time.
Proof. 
(1) Each listed predicate is in NP: factor extraction and primality are in NP ∩ coNP unconditionally and in P under P = NP; the Tunnell test reduces to two predicates of the form [ C n k ] and [ C n k ] , which lie in PP and are not known to be in NP, but the specific equality 2 C n = D n used by Tunnell’s theorem (item 2) can be replaced by a polynomial-time-checkable predicate once an oracle for D n is available: query the oracle for D n and C n , then compare. Under P = NP, the non-oracle decision predicates are in P.
(2) The natural attempt to put exact counting into P under P = NP fails because the parameterised predicate A k : = [ # I k ] (with k encoded in binary) is PP-complete (a standard fact in the structural-complexity literature; see, e.g., [7,15]). An NP certificate for A k would require listing k distinct witnesses of length poly ( | I | ) each, giving certificate length k · poly ( | I | ) , which is exponential in the input length | I | + log k whenever k is exponential in | I | . Since PP is not known to be contained in P even under P = NP, exact # P counting cannot be derived from P = NP alone. We therefore explicitly assume oracle access to # P wherever exact counts are required.
(3) Trivial: a # P oracle returns D n in one query.    □
Remark 3
(Why exact counting, not approximation). Stockmeyer’s approximate counting result [16] implies that # P functions admit a ( 1 ± ε ) approximation in FP Σ 3 P , which collapses to FP under P = NP . However, the cascade in Algorithm 1 relies on the exact Tunnell identity 2 C n = D n at each step. A multiplicative error ( 1 + ε ) at each of poly ( | I | ) descent steps compounds to a factor ( 1 + ε ) poly ( | I | ) , which is not controlled tightly enough by the polynomial slack permitted in our conjectures unless ε = 1 / poly ( poly ( | I | ) ) , at which point Stockmeyer’s running time becomes super-polynomial. Hence approximate counting does not substitute for the exact # P oracle in this framework.
Remark 4
(The bottleneck the framework isolates). Under Lemma 2, every step of the framework outside the explicit oracle queries runs in deterministic polynomial time. The only super-polynomial component is the exact evaluation of D n itself. The contribution of this paper is therefore not to prove that # P = FP , but to isolate the polynomial-time tractability of D n for even square-free congruent nas the precise complexity bottleneck linking # P to BSD-controlled arithmetic geometry. Theorem 7 formalises this as a structural equivalence.

3.3. Polynomial Balance Preservation

Theorem 4
(Instance Size Control under Oracle Access). Let I 0 , I 1 , , I k be a sequence of instances constructed by Algorithm 1 with access to a # P oracle O # P . If Conjecture 3 and Conjecture 5 hold, then for all j { 0 , , k } :
1. 
| I j | = poly ( | I 0 | ) .
2. 
The transformation from I j to I j + 1 is computable in time poly ( | I j | ) deterministic and poly ( | I j | ) oracle queries to O # P .
3. 
The number of steps k = poly ( | I 0 | ) .
Proof. 
We prove by induction on j.
Base case ( j = 0 j = 1 ): By Conjecture 5, the initial reduction to a Tunnell instance has size | I 1 | = poly ( | I 0 | ) and is computable in poly ( | I 0 | ) time.
Inductive step ( j j + 1 ): Assume | I j | = poly ( | I 0 | ) . There are two types of transitions:
Type 1 (Tunnell halving D n C n ): Same n, so | I j + 1 | = | I j | . Computation requires only division by 2, taking O ( 1 ) time.
Type 2 (Finding new instance C n D n ): We need n with:
  • n even square-free and congruent,
  • D n a polynomial-factor smaller than C n ,
  • | n | = poly ( | I 0 | ) .
Set the search budget B : = poly ( | I j | ) = poly ( | I 0 | ) and the target T : = C n / poly ( | I 0 | ) . Since C n = D n / 2 2 | I j | / 2 + o ( | I j | ) by the Eichler–Deligne bound applied to the previous instance, T lies in the admissible range [ 1 , 2 B / 2 ] of Conjecture 3, which therefore furnishes some n satisfying
| n | B = poly ( | I 0 | ) and D n [ T / poly ( B ) , T · poly ( B ) ] .
The bit-length bound | n | B = poly ( | I 0 | ) is delivered directly by the conjecture. Algorithmically, finding n does not reduce to enumerating the congruum family at parameters bounded by B (that family contains only O ( B 2 ) numbers, all of bit-length O ( log B ) , and would generally undersample the relevant range). Rather, under P = NP and with oracle access to O # P , the predicate
n { 0 , 1 } B n even square - free congruent D n [ T / poly ( B ) , T · poly ( B ) ]
is decidable in time poly ( B ) with poly ( B ) queries to O # P : a candidate n has bit-length B, congruence is decided in poly ( B ) under BSD via Tunnell’s criterion (each Tunnell test issues one query to O # P for D n and one for C n ), and the range test D n [ L , U ] is decided by a single oracle query plus a comparison. With P = NP collapsing the surrounding decision class, an explicit witness n is recovered bit-by-bit by standard NP self-reduction in poly ( B ) further queries (each of which is itself poly ( B ) -oracle-time decidable).
Hence | I j + 1 | = | n | = poly ( | I 0 | ) and the transformation C n D n takes poly ( | I 0 | ) deterministic time and poly ( | I 0 | ) oracle queries. (Algorithm 3 should therefore be viewed as a naive surrogate of this oracle-augmented NP-search procedure; see the comment there.)
Termination bound: Let S j denote the solution count at step j. Each Type 2 transition ensures S j + 1 S j / poly ( | I 0 | ) . Since S j 1 for all j < k :
1 S k S 0 · [ poly ( | I 0 | ) ]
where is the number of Type 2 transitions. This gives log S 0 / log poly ( | I 0 | ) = poly ( | I 0 | ) since S 0 2 poly ( | I 0 | ) .
Including Type 1 transitions (at most one per Type 2), we have k = O ( ) = poly ( | I 0 | ) .    □

4. The Main Conjectural Reduction

4.1. The Reduction Conjecture

Conjecture 5
(Reduction Conjecture). There exists a polynomial-time reduction R from any #P-complete problem to Tunnell instances such that:
1. 
For input instance I of a #P-complete problem, R ( I ) = n where n is an even square-free congruent number.
2. 
The solution counts are polynomially related: | D n | = Θ ( poly ( | I | ) · # I ) , where # I denotes the solution count of I.
3. 
The reduction R is computable in time poly ( | I | ) (under the assumption P=NP).
Remark 5
(The Central Obstacle and the Parsimony Challenge). This conjecture is the heart of our framework. A plausible construction pathway proceeds as follows:
  • Step 1 (Diophantine encoding): By Matiyasevich’s theorem (Theorem 2), every NP language admits a polynomial Φ ( x 1 , , x k ) such that satisfying assignments of an instance φ correspond to integer zeros of Φ. Under P = NP , Φ is constructible in poly ( | φ | ) time.
  • Step 2 (Instance aggregation): Encode the coefficients and structure of Φ into a single integer m I of bit-length poly ( | I | ) .
  • Step 3 (Congruum construction): Form the congruum g I = 4 m I ( m I 2 1 ) (so the congruum parameters are a = m I , b = 1 ).
  • Step 4 (Square-free extraction): Factor g I in poly ( | I | ) time (using P = NP ) and set n I = squarefree ( g I / 2 v 2 ( g I ) ) .
The parsimony obstruction.   Step 5—asserting D n I = Θ ( poly ( | I | ) · # φ ) —is where the conjecture leaves rigorous ground. Three separate difficulties stack.
(i) Matiyasevich is not parsimonious. The classical construction of Φ from φ introduces auxiliary variables whose integer values are determined by, but not in bijection with, the satisfying assignments of φ. The number of integer zeros of Φ can therefore differ from # φ by an unbounded multiplicative factor. A parsimonious form of Matiyasevich’s theorem (a Diophantine representation whose integer-zero count equals the witness count up to a poly ( | φ | ) factor) is not known and is itself a deep open problem.
(ii) Information-theoretic ceiling. Even granting (i), the target count D n I is constrained by D n I = O ( n I 1 / 2 + ε ) . Thus # φ cannot exceed 2 | n I | / 2 + o ( | n I | ) , which forces | n I | 2 ( log # φ ) o ( log # φ ) . For #SAT, # φ can be as large as 2 | φ | , so any working reduction must produce n I of bit-length at least 2 | φ | . Our Step 3 produces | n I | | g I | = O ( | m I | ) = poly ( | I | ) , which is compatible, but only barely—the polynomial degree of the reduction must respect this lower bound.
(iii) Degree-three rigidity. Counting integer points on a ternary quadratic form is, by the local-global principles of Hasse and Minkowski and the structure theory of genera, governed by class numbers and theta-series identities of a kind that historically resists “injecting” Boolean structure. By contrast, counts on higher-degree varieties (cubic surfaces, K3, abelian varieties of dimension 2 ) are known to encode rich combinatorics, and a more permissive variant of our framework targeting such varieties may be easier to substantiate. The trade-off is that Tunnell’s theorem is specific to y 2 = x 3 n 2 x , so generalising away from D n loses the BSD link.
  • An alternative pathway via instance bundling.   Difficulty (i) above can be partially circumvented by bundling: instead of encoding a single φ into a single n I , encode a poly ( | I | ) -sized batch { φ 1 , , φ t } of disjoint instances whose total witness count equals the integer-zero count of an aggregated Φ. Polynomial parsimony then need only hold in aggregate, not per-instance. Combined with the cascade in Algorithm 1, which already permits polynomial slack, this weakens the demand on the underlying Diophantine representation.
  • Status.   Proving Conjecture 5 in any of these forms would constitute a profound new bridge between logic and the arithmetic of ternary quadratic forms. We do not know whether such a bridge exists; we formalise its statement so that progress—positive or negative—can be measured.

4.2. The Cascading Algorithm (Conditional)

If we assume our conjectures hold, we can define the following algorithm.
Theorem 6
(Conditional Algorithm Correctness under Oracle Access). If Conjectures 3 and 5 are true, then under the assumptions P = NP and BSD, Algorithm 1 with access to a # P oracle O # P correctly computes the solution count of any #P-complete problem instance I using poly ( | I | ) deterministic time and poly ( | I | ) queries to O # P .
In particular, the algorithm is in FP # P . The further collapse to FP (i.e., the elimination of the oracle) is equivalent to the statement that D n for even square-free congruent n is computable in deterministic polynomial time—see Theorem 7.
Algorithm 1 Count#P-Complete (Conditional, with # P oracle)
Require: Instance I of #P-complete problem; oracle O # P
Ensure: Solution count # I
  1:
{Under P = NP, all non-counting steps (factorization, square-free}
  2:
{extraction, BSD-Tunnell verification, range tests) are in P.}
  3:
{Exact D n -values are obtained by querying O # P .}
  4:
n 0 ReduceToTunnell ( I ) {Assumes Conjecture 5}
  5:
Verify n 0 is even square-free congruent {BSD + P=NP}
  6:
j 0 , n current n 0
  7:
while  O # P ( D n current ) > poly ( | I | )  do
  8:
    count D O # P ( D n current )  {#P-oracle call (Lemma 2, item 3)}
  9:
    count C count D / 2 {Tunnell halving (BSD)}
10:
    n next FindCongruentNumber ( count C / poly ( | I | ) , poly ( | I | ) )
11:
   {Assumes Conjecture 3; uses O # P internally}
12:
   Verify polynomial balance between n current and n next
13:
    n current n next
14:
    j j + 1
15:
end while
16:
base _ count O # P ( D n current ) {Small base case}
17:
total base _ count × ReconstructionFactor ( cascade _ path )
18:
return total
Proof. 
Correctness: The logical flow of the algorithm is valid.
  • Line 4: The initial mapping is correct by assumption of Conjecture 5.
  • Lines 8–9: Tunnell’s theorem guarantees 2 C n = D n (by BSD assumption); the exact values C n , D n are obtained by oracle queries.
  • Line 10: Finding a smaller instance is possible by assumption of Conjecture 3; the search uses oracle queries internally.
  • Lines 15–16: The base case is one oracle query; reconstruction is a deterministic polynomial-time product.
Termination: By Theorem 4 (which itself depends on the conjectures), the algorithm terminates in poly ( | I | ) iterations.
Complexity: Each iteration takes poly ( | I | ) deterministic time and poly ( | I | ) oracle queries (by Lemma 2 for the oracle handling and the assumed poly-time search from Conjecture 3). Total deterministic time and total oracle queries are both poly ( | I | ) . The algorithm therefore lies in FP # P .    □

4.3. Main Structural Equivalence

We now state the corrected main result. It is not a one-way collapse but a structural equivalence: the framework precisely identifies the counting of D n as the complexity bottleneck.
Theorem 7
(Main Structural Equivalence). Assume Conjectures 3 and 5 hold. Assume further that P = NP and BSD hold. Define
TunnellCount : = n D n : n even square - free congruent .
Then
# P FP TunnellCount FP .
Proof. 
( ) Trivial: if every # P function is in FP, then in particular each D n # P is in FP, so TunnellCount ⊆ FP.
( ) Assume TunnellCount ⊆ FP, i.e., D n is computable in deterministic polynomial time. By Conjecture 5, every #P-complete problem I admits a polynomial-time reduction to evaluating D n for some even square-free congruent n with | n | = poly ( | I | ) and # I = Θ ( D n / poly ( | I | ) ) . Under our assumption, D n is computed in poly ( | I | ) time; the reduction itself is poly ( | I | ) time. The cascade of Algorithm 1, whose only super-polynomial component is the oracle calls (Lemma 2), now runs deterministically in poly ( | I | ) time: every oracle call O # P ( D n ) along the cascade is replaced by the assumed polynomial-time evaluator, since each n visited is even square-free congruent by construction. By Theorem 6 the deterministic version computes # I in poly ( | I | ) . Since this holds for any #P-complete I, all of # P collapses to FP.    □
Remark 6
(What this theorem does and does not say). Theorem 7 does not assert that P = NP alone (with or without BSD and the two conjectures) implies # P = FP . That implication is not known and is widely believed to be false in general. What the theorem does assert is a strictly weaker, but still meaningful, conditional: given the BSD-controlled Tunnell-theorem geometry and the two number-theoretic conjectures, the # P vs. FP question reduces exactly to the question of whether D n for one specific arithmetic family is in FP. The framework’s contribution is therefore to isolate, rather than to resolve, the bottleneck.
Corollary 1
(Bottleneck Isolation Corollary). Under Conjectures 3 and 5, P = NP , and BSD, the following are equivalent:
1. 
# P FP .
2. 
TunnellCount ⊆ FP, i.e., D n for even square-free congruent n is in FP.
3. 
The polynomial hierarchy collapses to P (in particular, by Toda’s theorem [6], PH P # P = P ).
Equivalently, refuting any one of items 1–3 (for instance, proving an unconditional lower bound on TunnellCount strictly above FP) refutes the others as well, under the stated assumptions.
Proof. 
( 1 ) ( 2 ) is Theorem 7. ( 1 ) ( 3 ) : by Toda’s theorem PH P # P , and # P FP gives P # P P . ( 3 ) ( 1 ) does not hold unconditionally (it requires the further fact that PH-collapse implies PP-collapse, which is not known), so the equivalence in item 3 is one-directional and is stated as a sufficient condition: any complexity-theoretic refutation of PH-collapse, combined with items 1⇔2, refutes TunnellCount ⊆ FP under the assumptions.    □

5. Discussion

5.1. Implications for the # P vs. FP Question

Theorem 7 provides a novel, though highly conditional, perspective on the relationship between # P , FP, and arithmetic geometry. It does not claim a collapse of # P under P = NP . Rather, it asserts that—given the two number-theoretic conjectures and BSD—the entire # P vs. FP question is structurally equivalent to a single concrete question about one specific arithmetic counting family.
This framework transforms the problem. Instead of attacking # P vs. FP directly, it suggests an alternative route in three coupled subproblems:
1.
Prove the Solution Density Conjecture (a hard problem in analytic number theory).
2.
Prove the Reduction Conjecture (a parsimony question linking Boolean logic to ternary quadratic forms).
3.
Decide whether TunnellCount = { n D n } is in FP (a concrete computational question about a single arithmetic family).

5.2. The Role of Assumptions

Our framework requires P = NP , BSD, and oracle access to # P as working premises; the structural equivalence (Theorem 7) then expresses # P FP as equivalent to FP-tractability of D n .
  • P = NP: This assumption is the “glue.” It collapses the surrounding decision and search predicates—factorization, NP-prefix search in Conjecture 3, range tests on oracle outputs—to polynomial time, so that the only super-polynomial step in the framework is the exact counting itself, isolated as oracle calls. Crucially, P = NP does not collapse # P (the threshold predicate [ # I k ] is PP-complete; see Lemma 2 and the discussion preceding it). This is why Theorem 7 is an equivalence, not a one-way collapse.
  • BSD: This assumption is the “compass.” It ensures Tunnell’s theorem is a reliable two-way test ( 2 C n = D n n is congruent), guaranteeing the integers visited by the cascade are the congruent numbers they are claimed to be.
  • # P oracle (or FP-tractability of D n ): The cascade requires exact counts of D n . We model these as oracle calls; collapsing the oracle to deterministic FP is exactly what the structural equivalence isolates as the open arithmetic question.

5.3. Potential Weaknesses and Open Questions

The main “weaknesses” of this work are the two central conjectures together with the third—now made explicit by Theorem 7—concerning the FP-tractability of D n .
1.
Proving the Reduction Conjecture (5): The primary obstacle. Is there any reason to believe a parsimonious reduction from #SAT to counting solutions to n = 8 x 2 + 2 y 2 + 16 z 2 exists? Matiyasevich’s theorem is not parsimonious, so this requires new logic-to-arithmetic technology.
2.
Proving the Solution Density Conjecture (3): A deep problem in analytic number theory, requiring sharper control on Fourier coefficients of weight- 3 / 2 modular forms.
3.
Deciding whether TunnellCount ⊆ FP: By Theorem 7 this is now the explicit complexity-theoretic bottleneck. Either direction would have significant consequences: a positive answer (under the conjectures, P = NP , and BSD) collapses # P to FP; a negative answer (an unconditional lower bound) refutes the corresponding # P -collapse without contradicting P = NP .
4.
Dependence on specific curves: We use curves of the form y 2 = x 3 n 2 x . Could a similar framework apply to other families of elliptic curves with BSD-controlled ranks?
5.
Reverse implications: Does # P = FP imply anything about BSD or our conjectures?

5.4. Falsifiability and Routes to Partial Progress

A framework built on two unproven conjectures together with an open complexity-theoretic tractability question (the FP-ness of TunnellCount, surfaced explicitly by Theorem 7) invites the criticism that it has merely re-labelled the problem. We argue otherwise: all three components are concrete, falsifiable, and admit measurable partial progress.
  • What would falsify Conjecture 3. A proof that D n , on the family of even square-free congruent n with | n | B , omits a target window of width poly ( B ) around some T [ 1 , 2 B / 2 ] for infinitely many B. Concretely: an effective lower bound on the gaps in { D n } would refute the conjecture. Numerical experiments—feasible up to n 10 12 with current congruent-number tables—already test the conjecture in a non-trivial regime and have not, to our knowledge, exhibited the kind of pathological sparsity that would refute it.
  • What would falsify Conjecture 5. An unconditional lower bound showing that D n , as a function of n, lies in a complexity class strictly below #P-complete—combined with the widely-held belief that # P ¬ FP —would refute the conjecture by contrapositive. Conversely, a positive partial result—a parsimonious reduction from #3SAT to counting integer points on some fixed family of ternary quadratic forms (not necessarily 8 x 2 + 2 y 2 + 16 z 2 )—would substantially raise the prior on the conjecture.
  • What would resolve the TunnellCount question. An unconditional polynomial-time algorithm computing D n for even square-free congruent n would—under the conjectures, P = NP , and BSD—collapse # P to FP via Theorem 7, with Toda-mediated consequences for PH. Conversely, an unconditional super-polynomial lower bound on this counting (e.g., a reduction showing it captures a # P -hard family) would refute the TunnellCount ⊆ FP side of the equivalence and reposition the framework as a lower-bound certificate rather than a collapse pathway.
  • Concrete partial progress paths.
1.
Density experiments at scale. Tabulating D n for n 10 10 over even square-free congruent n and measuring the empirical distribution of log D n / log n would test the random-coefficient heuristic of Remark after Conjecture 3.
2.
Reductions to higher-degree forms. Proving Conjecture 5 for n = Q ( x 1 , , x d ) with Q a positive-definite ternary form of degree 4 or more would already be a major result and would suggest the cubic-form case is achievable.
3.
Parsimonious Matiyasevich for restricted classes. A parsimonious Diophantine representation for any specific #P-complete problem (e.g., #HornSAT or #DNF) would directly attack obstruction (i) in the Reduction Conjecture remark.
4.
Toda-mediated consequences. By Toda’s theorem [6] ( PH P # P ), any proof that TunnellCount ⊆ FP would—under the conjectures, P = NP , and BSD—force the polynomial hierarchy to collapse to P. Contrapositively, an unconditional proof that PH does not collapse to P refutes TunnellCount ⊆ FP under the same assumptions. This is a one-directional consequence; it does not give a contrapositive route to P NP , since the structural equivalence in Theorem 7 is conditional on P = NP as a hypothesis.
What this framework isnot. We are not claiming a path to P ≠ NP via BSD, and we are not claiming that P = NP implies # P = FP . We are isolating two concrete number-theoretic statements and one concrete arithmetic-tractability question whose joint resolution would precisely determine whether # P collapses to FP under the BSD-controlled Tunnell geometry. The framework converts the single hard problem # P = ? FP into three arithmetic problems whose difficulty can be measured incrementally—a strategic, not tactical, contribution.

5.5. Toda’s Theorem and the Status of the Equivalence

The corrected main result (Theorem 7) is a structural equivalence, not a one-way collapse, so the previous formulation of a “hierarchy-collapse contrapositive” is no longer available in its earlier strong form. What remains is the following observation, which is included as item 3 of Corollary 1: by Toda’s theorem [6], PH P # P , so any deterministic polynomial-time algorithm for TunnellCount—under the conjectures and assumptions of Theorem 7—would force the polynomial hierarchy to collapse to P.
This gives a falsifiability route in the form of a one-directional implication: if PH is shown not to collapse to P (a separation almost universally believed), then under the conjectures and assumptions, TunnellCount ¬ FP. Equivalently, any FP algorithm for D n on the relevant family would have profoundly strong structural consequences.
The earlier “contrapositive of the form # P FP P NP ¬ BSD ” is withdrawn: it was a consequence of the false direction P = NP # P = FP embedded in the original Lemma 2, and has no analogue in the corrected framework.

5.6. Relationship to Prior Work

The connection between number theory and complexity theory has been explored in various contexts [17,18,19]. However, to our knowledge, this is the first work to propose a framework linking BSD to the P versus NP question via counting complexity, contingent on these new conjectures.
Tunnell’s theorem has been studied computationally [20,21], but not from a complexity-theoretic perspective. Our work suggests that if Conjecture 5 is true, the apparent “ease” of checking Tunnell’s criterion (computing C n and D n ) hides deep complexity that the modular-forms machinery has so far concealed.

5.7. Comparison with Known Complexity Results

Table 1 summarizes how our conjectural framework relates to the complexity landscape. The key takeaway is that the problem “Counting Tunnell Solutions” is conjectured to be #P-complete, and the entire collapse of # P to FP is structurally equivalent (under our assumptions) to the FP-tractability of this single counting function.

6. Extended Proofs

6.1. Proof of Solution Count Preservation

We provide additional details for the solution count preservation through the cascade.
Lemma 3
(Solution Count Tracking). Let n 0 , n 1 , , n k be the sequence of congruent numbers in Algorithm 1. If the conjectures hold, then the solution count of the original instance I can be recovered from the base case count via:
# I = D n 0 poly ( | I | ) = D n k · j = 0 k 1 r j poly ( | I | )
where r j is the reduction factor at step j.
Proof. 
At each Tunnell halving step D n j C n j , we have C n j = D n j / 2 exactly.
At each instance transition C n j D n j + 1 , by construction (via Conjecture 3), we have:
D n j + 1 = C n j poly j ( | I | )
for some polynomial function poly j .
Combining these:
D n k = C n k 1 poly k 1 ( | I | ) = D n k 1 2 · poly k 1 ( | I | ) = D n k 2 2 2 · poly k 1 ( | I | ) · poly k 2 ( | I | ) = = D n 0 2 k · j = 0 k 1 poly j ( | I | ) .
Since D n 0 = Θ ( poly ( | I | ) · # I ) by Conjecture 5, and j = 0 k 1 poly j ( | I | ) is itself polynomial in | I | (product of polynomially many polynomials), we can recover # I by the stated formula.    □

6.2. Verification Under Oracle Access

Lemma 4
(Cascade Verification). Under P = NP and BSD, and assuming the conjectures hold, the entire cascade can be verified in polynomial deterministic time using poly ( | I | ) queries to a # P oracle O # P .
Proof. 
For each step j, we need to verify:
1.
n j is square-free: Factor and check each prime has exponent 1. Time: poly ( | n j | ) = poly ( | I | ) under P = NP .
2.
n j is congruent: Query O # P for C n j and D n j , then check 2 C n j = D n j . Two oracle queries plus poly ( | n j | ) deterministic time.
3.
Polynomial balance: Query O # P for D n j + 1 and C n j , check | D n j + 1 | [ | C n j | / B 2 , | C n j | · B 2 ] for B = poly ( | I | ) . Time: poly ( | I | ) deterministic plus O ( 1 ) oracle queries.
4.
Size bound: Check | n j | poly ( | I | ) . Time: O ( 1 ) .
Per step: poly ( | I | ) deterministic time and O ( 1 ) oracle queries. Number of steps: poly ( | I | ) by Theorem 4. Total: poly ( | I | ) deterministic time and poly ( | I | ) oracle queries, placing cascade verification in FP # P .    □

7. Additional Remarks

7.1. Generalization to Other Elliptic Curves

While we focus on curves of the form E n : y 2 = x 3 n 2 x , the framework may extend to other families. For instance, curves with rank growth governed by BSD could potentially yield similar complexity-theoretic implications. This remains an open direction.

7.2. Quantum Computation

Under quantum computation models, factorization is in BQP (Shor’s algorithm). However, our reduction still requires solving #P-complete problems, which remain hard even for quantum computers (unless BQP = #P, which is not believed). Thus, the main result persists in quantum settings with appropriate modifications.

7.3. Average-Case Complexity

Our results concern worst-case complexity. An interesting question is whether average-case hardness of #P problems similarly relates to average-case properties of BSD or congruent numbers.

8. Conclusion

This paper establishes a precise conditional bridge between the #P/FP separation question and the Birch–Swinnerton-Dyer conjecture, mediated by Tunnell’s counting functions C n , D n . These functions sit at a unique confluence: they are computable in # P , they satisfy a clean theorem under BSD, and—by the Shimura correspondence and Waldspurger’s formula—they carry analytic information about the central L-values L ( E n , 1 ) .
The contribution is threefold. First, we formalise an honest complexity model: P = NP alone is not known to imply # P = FP , and the natural binary-search route fails because [ # I k ] is PP-complete rather than in NP. We therefore separate decision steps (handled by P = NP ) from exact-counting steps (modelled as # P -oracle queries). Second, we formalise two falsifiable number-theoretic conjectures: a Reduction Conjecture asserting that counting representations n = 8 x 2 + 2 y 2 + 16 z 2 is #P-complete via a polynomial-factor reduction, and a Solution Density Conjecture asserting that the values D n are distributed densely enough (within the Eichler–Deligne ceiling) to admit polynomial descent. Third, we prove (Theorem 7) that under these conjectures, P = NP , and BSD, the statement # P FP is structurally equivalent to the FP-tractability of one specific arithmetic counting function, TunnellCount = { n D n } .
The framework therefore does not resolve # P = ? FP ; it isolates the bottleneck. Its value lies in this isolation:
1.
It decomposes a single question (#P vs. FP) into three concrete subproblems—two number-theoretic conjectures and one arithmetic-tractability question—whose individual progress is measurable: numerically for Conjecture 3, structurally for Conjecture 5, and computationally for TunnellCount.
2.
It connects, via Toda’s theorem, the FP-tractability of TunnellCount to a polynomial-hierarchy collapse, so that an unconditional separation of PH from P refutes TunnellCount ⊆ FP under the framework’s assumptions.
3.
It identifies the parsimony failure in Matiyasevich’s theorem as the precise mathematical obstacle that any cubic-form-based approach must overcome, and identifies the FP-tractability of D n for the specific Tunnell form as the precise complexity-theoretic obstacle.
The most actionable open questions we leave are the following. (i) Logic-to-arithmetic: does there exist any polynomial-time parsimonious reduction from #3SAT to counting integer points on a ternary quadratic form? (ii) Analytic number theory: can the distribution of D n along even square-free congruent n be controlled tightly enough to establish Conjecture 3? (iii) Computational arithmetic: is D n for even square-free congruent n computable in deterministic polynomial time, or can an unconditional super-polynomial lower bound be proved? A positive answer to any one would either substantiate or refute a measurable component of the framework.

Acknowledgments

The author would like to thank Iris, Marilin, Sonia, Yoselin, and Arelis for their support.

Appendix A. Pseudocode Details

For completeness, we provide detailed pseudocode for the key subroutines. These algorithms are conditional on P=NP and our conjectures.
Algorithm A1 ReduceToTunnell (Hypothetical)
Require: #P-complete instance I
Ensure: Even square-free congruent number n I
  1:
{This function’s existence is Conjecture 5}
  2:
Construct Diophantine encoding Φ ( x 1 , , x k ) of I {Matiyasevich}
  3:
coeffs GetCoefficients ( Φ )
  4:
structure GetStructure ( Φ )
  5:
m I AggregateInstance ( coeffs , structure ) {Encode Φ as a single integer}
  6:
g I 4 · m I · ( m I 2 1 ) {Construct single congruum}
  7:
Factor g I using polynomial-time factorization (under P=NP)
  8:
e max { j : 2 j g I }
  9:
n I squarefree ( g I / 2 e )
10:
if  n I is not even then
11:
    n I squarefree ( ( g I / 2 e 1 ) ) {Adjust to ensure evenness}
12:
end if
13:
{We conjecture D n I = Θ ( poly ( | I | ) · # I ) }
14:
return  n I
Algorithm A2 FindCongruentNumber (Conditional, hypothetical)
Require: Target count T, size bound B
Ensure: Even square-free congruent number n with D n [ T / B 2 , T · B 2 ]
  1:
{Naive surrogate: enumerates only congruum-derived numbers of bit-length O ( log B ) .}
  2:
{In the general case, replace with NP-prefix self-reduction over { 0 , 1 } B as in Theorem 4.}
  3:
for  a = 2 Bdo
  4:
   for  b = 1 a 1  do
  5:
      g 4 a b ( a 2 b 2 )
  6:
      n squarefree ( g / 2 max { j : 2 j g } ) {Extract square-free part}
  7:
     if  n is even then
  8:
         count CountD ( n ) {Oracle query via Lemma 2}
  9:
        if  count [ T / B 2 , T · B 2 ]  then
  10:
          return  n
11:
        end if
12:
     end if
13:
   end for
14:
end for
15:
{Fall through: invoke NP-prefix search guaranteed by Conjecture 3 under P=NP.}
16:
return NPSearch(T, B)
Algorithm A3 CountD (Oracle Wrapper)
Require: Even square-free congruent number n; oracle O # P
Ensure:  D n = # { ( x , y , z ) Z 3 : n = 8 x 2 + 2 y 2 + 16 z 2 }
  1:
{Exact counting is not known to be in FP under P=NP.}
  2:
{We query the # P oracle; the framework’s collapse to FP}
  3:
{is exactly the question of whether D n admits a polynomial-time}
  4:
{algorithm, isolated by Theorem 7.}
  5:
return  O # P ( D n )

References

  1. Cook, S.A. The complexity of theorem-proving procedures. In Proceedings of the Proceedings of the Third Annual ACM Symposium on Theory of Computing, New York, NY, USA, 1971; pp. 151–158. [CrossRef]
  2. Karp, R.M. Reducibility among Combinatorial Problems. In Complexity of Computer Computations; Miller, R.E.; Thatcher, J.W.; Bohlinger, J.D., Eds.; Plenum: New York, USA, 1972; pp. 85–103. [CrossRef]
  3. Birch, B.J.; Swinnerton-Dyer, H.P.F. Notes on elliptic curves. II. Journal für die reine und angewandte Mathematik 1965, 218, 79–108. [CrossRef]
  4. Tunnell, J.B. A classical Diophantine problem and modular forms of weight 3/2. Inventiones Mathematicae 1983, 72, 323–334. [CrossRef]
  5. Valiant, L.G. The complexity of computing the permanent. Theoretical Computer Science 1979, 8, 189–201. [CrossRef]
  6. Toda, S. PP is as hard as the polynomial-time hierarchy. SIAM Journal on Computing 1991, 20, 865–877. [CrossRef]
  7. Arora, S.; Barak, B. Computational Complexity: A Modern Approach; Cambridge University Press: Cambridge, UK, 2009.
  8. Koblitz, N. Introduction to Elliptic Curves and Modular Forms, 2nd ed.; Vol. 97, Graduate Texts in Mathematics, Springer-Verlag: New York, 1993.
  9. Shimura, G. On modular forms of half integral weight. Annals of Mathematics 1973, 97, 440–481. [CrossRef]
  10. Waldspurger, J.L. Sur les coefficients de Fourier des formes modulaires de poids demi-entier. Journal de Mathématiques Pures et Appliquées 1981, 60, 375–484.
  11. Deligne, P. La conjecture de Weil. I. Publications Mathématiques de l’IHÉS 1974, 43, 273–307. [CrossRef]
  12. Dickson, L.E. History of the Theory of Numbers, Vol. II: Diophantine Analysis; Carnegie Institution of Washington: Washington, D.C., 1920.
  13. Matiyasevich, Y.V. Enumerable sets are Diophantine. Soviet Mathematics Doklady 1970, 11, 354–358.
  14. Goldfeld, D. Conjectures on elliptic curves over quadratic fields. Number Theory Carbondale (Lecture Notes in Math.) 1979, 751, 108–118. [CrossRef]
  15. Gill, J. Computational complexity of probabilistic Turing machines. SIAM Journal on Computing 1977, 6, 675–695. [CrossRef]
  16. Stockmeyer, L. On approximation algorithms for #P. SIAM Journal on Computing 1985, 14, 849–861. [CrossRef]
  17. Adleman, L.; Huang, M.D. Function field sieve method for discrete logarithms over finite fields. Information and Computation 1999, 151, 5–16. [CrossRef]
  18. Koiran, P. Hilbert’s Nullstellensatz is in the polynomial hierarchy. Journal of Complexity 1996, 12, 273–286. [CrossRef]
  19. Simon, D. Computing the rank of elliptic curves over number fields. LMS Journal of Computation and Mathematics 2002, 5, 7–17. [CrossRef]
  20. Cohen, H. A Course in Computational Algebraic Number Theory; Vol. 138, Graduate Texts in Mathematics, Springer-Verlag: Berlin, 1993.
  21. Bhargava, M.; Skinner, C.; Zhang, W. A majority of elliptic curves over Q satisfy the Birch and Swinnerton-Dyer conjecture. arXiv preprint arXiv:1407.1826 2014.
Table 1. Complexity comparison of related problems. The last column records what follows under P=NP, BSD, the two conjectures, and the additional hypothesis that TunnellCount ⊆ FP (the right-hand side of Theorem 7).
Table 1. Complexity comparison of related problems. The last column records what follows under P=NP, BSD, the two conjectures, and the additional hypothesis that TunnellCount ⊆ FP (the right-hand side of Theorem 7).
Problem Known Complexity Under P=NP+BSD+Conj. + TunnellCount ⊆ FP
Deciding congruent numbers Unknown P P
Counting Tunnell solutions ( D n ) Unknown, in #P In FP # P FP (hypothesis)
#SAT #P-complete In FP # P (Thm 6) FP (Thm 7)
Permanent #P-complete In FP # P FP
Factorization Unknown, ⊆ NP ∩ coNP P P
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings