Submitted:
19 May 2026
Posted:
20 May 2026
You are already at the latest version
Abstract
Keywords:
MSC: 11G05; 68Q15; 11D09; 68Q17
1. Introduction
1.1. Background on Complexity Classes
1.2. Background on Congruent Numbers and Tunnell’s Theorem
- 1.
- If n is even and congruent, then .
- 2.
- Conversely, if the Birch–Swinnerton-Dyer conjecture holds for the elliptic curve , then implies n is congruent.
1.3. Main Contributions and Framework
- 1.
- An honest complexity model (Lemma 2): We explicitly model exact counting via a oracle rather than (incorrectly) deriving it from . This separates the polynomial-time decision steps (factorization, Tunnell test, range tests) from the genuinely -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 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 .
- 4.
- A Conditional Algorithm in (Theorem 6): We present an algorithm (Algorithm 1) and prove that under the two conjectures, , and BSD, it computes any #P-complete count in deterministic time using queries to a oracle.
- 5.
- A Structural Equivalence (Theorem 7): We prove that under the conjectures, , and BSD, the relation holds if and only if the specific family TunnellCount is in FP. The framework therefore isolates rather than resolves the 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 could be substantiated or refuted, including the consequences via Toda’s theorem.
1.4. Organization
2. Preliminaries
2.1. Notation and Conventions
2.2. Assumptions
- 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 .
- 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.
2.3. Diophantine Representations
3. Ancillary Results and the First Conjecture
3.1. Congruum Density and Distribution
- (1) Random-coefficient heuristic. If the multiset were modelled as independent draws from a distribution supported on 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 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, is proportional to (a special case of [10] applied to Tunnell’s forms). The conjectural distribution of along quadratic twists, refined by Goldfeld [14] and supported by extensive numerical experiments on the family , is sufficiently uniform on the relevant scale to make density of -values plausible.
- (3) Lemma 1 provides supply. The supply of even square-free congruent numbers in is . Therefore, even if the values are far from independent, only a (relative) density of in T-windows is required for the conjecture to hold, which is a weak distributional assumption.
3.2. Counting Under Oracle Access
- 1.
- All decision predicates used by the framework—primality, square-freeness, factor extraction, the Tunnell test given BSD, and feasibility predicates of the form for given as inputs—are decidable in time .
- 2.
- The exact counting function remains in and is not known to be in FP. We model exact -evaluations as queries to a oracle.
- 3.
- Given oracle access to , the exact value is recovered by a single oracle query in oracle time and deterministic time.
3.3. Polynomial Balance Preservation
- 1.
- .
- 2.
- The transformation from to is computable in time deterministic and oracle queries to .
- 3.
- The number of steps .
- even square-free and congruent,
- a polynomial-factor smaller than ,
- .
4. The Main Conjectural Reduction
4.1. The Reduction Conjecture
- 1.
- For input instance I of a #P-complete problem, where n is an even square-free congruent number.
- 2.
- The solution counts are polynomially related: , where denotes the solution count of I.
- 3.
- The reduction R is computable in time (under the assumption P=NP).
- Step 1 (Diophantine encoding): By Matiyasevich’s theorem (Theorem 2), every NP language admits a polynomial such that satisfying assignments of an instance φ correspond to integer zeros of Φ. Under , Φ is constructible in time.
- Step 2 (Instance aggregation): Encode the coefficients and structure of Φ into a single integer of bit-length .
- Step 3 (Congruum construction): Form the congruum (so the congruum parameters are , ).
- Step 4 (Square-free extraction): Factor in time (using ) and set .
- An alternative pathway via instance bundling. Difficulty (i) above can be partially circumvented by bundling: instead of encoding a single φ into a single , encode a -sized batch 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)
| Algorithm 1 Count#P-Complete (Conditional, with oracle) |
|
Require: Instance I of #P-complete problem; oracle Ensure: Solution count
|
- Line 4: The initial mapping is correct by assumption of Conjecture 5.
- Lines 8–9: Tunnell’s theorem guarantees (by BSD assumption); the exact values 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.
4.3. Main Structural Equivalence
- 1.
- .
- 2.
- TunnellCount ⊆ FP, i.e., for even square-free congruent n is in FP.
- 3.
- The polynomial hierarchy collapses to P (in particular, by Toda’s theorem [6], ).
5. Discussion
5.1. Implications for the vs. FP Question
- 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 is in FP (a concrete computational question about a single arithmetic family).
5.2. The Role of Assumptions
- 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, does not collapse (the threshold predicate 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 ( is congruent), guaranteeing the integers visited by the cascade are the congruent numbers they are claimed to be.
- oracle (or FP-tractability of ): The cascade requires exact counts of . 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
- 1.
- Proving the Reduction Conjecture (5): The primary obstacle. Is there any reason to believe a parsimonious reduction from #SAT to counting solutions to 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- 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, , and BSD) collapses to FP; a negative answer (an unconditional lower bound) refutes the corresponding -collapse without contradicting .
- 4.
- Dependence on specific curves: We use curves of the form . Could a similar framework apply to other families of elliptic curves with BSD-controlled ranks?
- 5.
- Reverse implications: Does imply anything about BSD or our conjectures?
5.4. Falsifiability and Routes to Partial Progress
- What would falsify Conjecture 3. A proof that , on the family of even square-free congruent n with , omits a target window of width around some for infinitely many B. Concretely: an effective lower bound on the gaps in would refute the conjecture. Numerical experiments—feasible up to 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 , as a function of n, lies in a complexity class strictly below #P-complete—combined with the widely-held belief that —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 )—would substantially raise the prior on the conjecture.
- What would resolve the TunnellCount question. An unconditional polynomial-time algorithm computing for even square-free congruent n would—under the conjectures, , and BSD—collapse 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 -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 for over even square-free congruent n and measuring the empirical distribution of would test the random-coefficient heuristic of Remark after Conjecture 3.
- 2.
- Reductions to higher-degree forms. Proving Conjecture 5 for 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] (), any proof that TunnellCount ⊆ FP would—under the conjectures, , 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 , since the structural equivalence in Theorem 7 is conditional on as a hypothesis.
5.5. Toda’s Theorem and the Status of the Equivalence
5.6. Relationship to Prior Work
5.7. Comparison with Known Complexity Results
6. Extended Proofs
6.1. Proof of Solution Count Preservation
6.2. Verification Under Oracle Access
- 1.
- is square-free: Factor and check each prime has exponent 1. Time: under .
- 2.
- is congruent: Query for and , then check . Two oracle queries plus deterministic time.
- 3.
- Polynomial balance: Query for and , check for . Time: deterministic plus oracle queries.
- 4.
- Size bound: Check . Time: .
7. Additional Remarks
7.1. Generalization to Other Elliptic Curves
7.2. Quantum Computation
7.3. Average-Case Complexity
8. Conclusion
- 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 for the specific Tunnell form as the precise complexity-theoretic obstacle.
Acknowledgments
Appendix A. Pseudocode Details
| Algorithm A1 ReduceToTunnell (Hypothetical) |
|
Require: #P-complete instance I Ensure: Even square-free congruent number
|
| Algorithm A2 FindCongruentNumber (Conditional, hypothetical) |
|
Require: Target count T, size bound B Ensure: Even square-free congruent number with
|
| Algorithm A3 CountD (Oracle Wrapper) |
|
Require: Even square-free congruent number n; oracle Ensure:
|
References
- 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]
- 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]
- 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]
- Tunnell, J.B. A classical Diophantine problem and modular forms of weight 3/2. Inventiones Mathematicae 1983, 72, 323–334. [CrossRef]
- Valiant, L.G. The complexity of computing the permanent. Theoretical Computer Science 1979, 8, 189–201. [CrossRef]
- Toda, S. PP is as hard as the polynomial-time hierarchy. SIAM Journal on Computing 1991, 20, 865–877. [CrossRef]
- Arora, S.; Barak, B. Computational Complexity: A Modern Approach; Cambridge University Press: Cambridge, UK, 2009.
- Koblitz, N. Introduction to Elliptic Curves and Modular Forms, 2nd ed.; Vol. 97, Graduate Texts in Mathematics, Springer-Verlag: New York, 1993.
- Shimura, G. On modular forms of half integral weight. Annals of Mathematics 1973, 97, 440–481. [CrossRef]
- 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.
- Deligne, P. La conjecture de Weil. I. Publications Mathématiques de l’IHÉS 1974, 43, 273–307. [CrossRef]
- Dickson, L.E. History of the Theory of Numbers, Vol. II: Diophantine Analysis; Carnegie Institution of Washington: Washington, D.C., 1920.
- Matiyasevich, Y.V. Enumerable sets are Diophantine. Soviet Mathematics Doklady 1970, 11, 354–358.
- Goldfeld, D. Conjectures on elliptic curves over quadratic fields. Number Theory Carbondale (Lecture Notes in Math.) 1979, 751, 108–118. [CrossRef]
- Gill, J. Computational complexity of probabilistic Turing machines. SIAM Journal on Computing 1977, 6, 675–695. [CrossRef]
- Stockmeyer, L. On approximation algorithms for #P. SIAM Journal on Computing 1985, 14, 849–861. [CrossRef]
- Adleman, L.; Huang, M.D. Function field sieve method for discrete logarithms over finite fields. Information and Computation 1999, 151, 5–16. [CrossRef]
- Koiran, P. Hilbert’s Nullstellensatz is in the polynomial hierarchy. Journal of Complexity 1996, 12, 273–286. [CrossRef]
- Simon, D. Computing the rank of elliptic curves over number fields. LMS Journal of Computation and Mathematics 2002, 5, 7–17. [CrossRef]
- Cohen, H. A Course in Computational Algebraic Number Theory; Vol. 138, Graduate Texts in Mathematics, Springer-Verlag: Berlin, 1993.
- 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.
| Problem | Known Complexity | Under P=NP+BSD+Conj. | + TunnellCount ⊆ FP |
|---|---|---|---|
| Deciding congruent numbers | Unknown | P | P |
| Counting Tunnell solutions () | Unknown, in #P | In | FP (hypothesis) |
| #SAT | #P-complete | In (Thm 6) | FP (Thm 7) |
| Permanent | #P-complete | In | 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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).