Preprint
Article

This version is not peer-reviewed.

Jiuzhang Constructive Mathematics: A Computable Framework with Explicit Finite Approximations Rigorous Foundations with Consistent Complexity Bounds

Submitted:

04 November 2025

Posted:

04 November 2025

You are already at the latest version

Abstract
This paper introduces Jiuzhang Constructive Mathematics (JCM), a novel mathematical framework that systematically incorporates finite approximation and computational realizability as foundational principles. The framework addresses the disconnect between classical mathematics with its reliance on actual infinity and computational practice with its finite resource constraints. JCM is built upon three carefully formulated axioms: the Finite Approximation Axiom ensuring effective Cauchy convergence, the Computable Operations Axiom requiring uniform polynomial-time computability with consistent encoding schemes, and the Categorical Realizability Axiom providing semantic interpretation in a rigorously constructed enriched realizability topos. We construct the JCM universe J as a locally Cartesian closed category supporting intuitionistic higher-order logic, with detailed proofs of all categorical properties. A key technical contribution is the resolution of encoding size consistency between approximation sequences and complexity classes through careful design of finite structure representations. The framework provides faithful embeddings of Bishop’s constructive analysis while maintaining explicit computational content. We establish comprehensive complexity theory with precise relationships between JCM complexity classes and their classical counterparts, and discuss limitations regarding non-polynomial-time computable functions and classical non-constructive principles.
Keywords: 
;  ;  ;  ;  ;  ;  

1. Introduction

1.1. Motivation and Philosophical Background

Modern mathematics, as formalized in Zermelo-Fraenkel set theory with Choice (ZFC) [5], employs actual infinity through concepts such as uncountable sets, non-constructive existence principles, and transfinite hierarchies. While logically consistent, these concepts lack direct computational interpretation and often obscure algorithmic content.
In contrast, scientific computation, numerical analysis, and theoretical computer science operate within explicit finite resource constraints, relying fundamentally on discrete approximations with controlled error bounds. This fundamental disconnect motivates the development of mathematical frameworks that maintain expressive power while enforcing conditions of finite representability and algorithmic realizability.
JCM addresses this need by axiomatizing approximation as a primitive mathematical concept. Rather than treating approximations as secondary concerns in applied contexts, JCM integrates them at the foundational level: every object is inherently equipped with a convergent sequence of finite approximations, and every morphism is required to be computable under explicit polynomial-time resource constraints.

1.2. Historical Context and Related Work

JCM builds upon and extends several established traditions in constructive mathematics and computable analysis:
  • Bishop’s Constructive Analysis [2]: Bishop’s framework emphasizes constructivity but treats approximation structures implicitly. JCM makes finite approximations explicit and fundamental to object representation.
  • Computable Analysis [7]: While computable analysis focuses on computability of real functions, JCM provides a categorical foundation and extends to higher-type objects with explicit complexity bounds.
  • Realizability Semantics [4]: JCM’s categorical semantics builds upon Hyland’s effective topos but enriches it with explicit approximation structures and complexity constraints.
  • Type-Theoretic Foundations [6]: Unlike Martin-Löf type theory’s focus on proof theory, JCM emphasizes computational realizability under explicit resource bounds.
The unique contribution of JCM lies in its systematic integration of approximation structures at the foundational level with consistent complexity-theoretic constraints.

2. Preliminaries and Basic Definitions

2.1. Computability and Complexity Theory

We assume basic familiarity with computability theory and complexity theory [1]. Let TM denote the set of Turing machines, and Time M ( n ) the worst-case running time on inputs of length n.
Definition 1 
(Polynomial-Time Computable Function). A function f : { 0 , 1 } * { 0 , 1 } * is polynomial-time computable if there exists a Turing machine M and polynomial p such that for all x { 0 , 1 } * , M ( x ) = f ( x ) and Time M ( | x | ) p ( | x | ) .
Definition 2 
(Uniform Polynomial-Time Sequence). A sequence of functions ( f n : { 0 , 1 } * { 0 , 1 } * ) is uniformly polynomial-time computable if there exists a Turing machine M and polynomial p such that for all n N and x { 0 , 1 } * , M ( 1 n , x ) = f n ( x ) and Time M ( n + | x | ) p ( n + | x | ) .

2.2. Metric Spaces and Approximation

Definition 3 
(Metric Space). A metric space is a pair ( X , d ) where X is a set and d : X × X R 0 satisfies:
1. 
d ( x , y ) = 0 x = y
2. 
d ( x , y ) = d ( y , x )
3. 
d ( x , z ) d ( x , y ) + d ( y , z )
Definition 4 
(Effective Cauchy Sequence). A sequence ( x n ) in a metric space ( X , d ) is an effective Cauchy sequence if there exists a computable function μ : N N such that for all m , n μ ( k ) , d ( x m , x n ) < 2 k .

3. The JCM Axiomatic Framework

3.1. Basic Types and Finite Structures with Consistent Encoding

Let T be a collection of basic types including:
  • nat : natural numbers
  • rat : rational numbers
  • real : real numbers
  • finmetric : finite metric spaces
For each τ T , FinStruct τ is a class of finite τ -structures with computable metric d τ .
Definition 5 
(Consistent Representation of Finite Real Structures). For τ = real , define:
FinStruct real = m 2 n : m Z , | m | 2 n , n N
with d real ( x , y ) = | x y | . Each element is represented by the pair ( m , n ) with | m | 2 n , requiring encoding size O ( n ) bits.
This representation ensures that the n -th approximation has encoding size polynomial in n , resolving the consistency issue between FAA and J-P definitions.

3.2. Core Axioms with Consistent Complexity Bounds

Axiom 1. [Finite Approximation Axiom (FAA)] Every object X in JCM has type τ T and is represented by ( ( X n ) , ( ε n ) ) where:
  • Each X n FinStruct τ with encoding size O ( p ( n ) ) for some fixed polynomial p ,
  • ε n = 2 n ,
  • For all m > n , d τ ( X m , X n ) < 2 n ,
  • The mapping n X n is computable in time polynomial in n .
Two sequences ( X n ) , ( Y n ) are equivalent if lim n d τ ( X n , Y n ) = 0 .
Axiom 2. [Computable Operations Axiom (COA)] Every morphism f : X Y is realized by a Turing machine Φ f such that:
  • On input ( 1 n , X n ) , where X n is the binary encoding of X n , Φ f outputs Y k with k n ,
  • Time Φ f ( n + | X n | ) p ( n ) for fixed polynomial p ,
  • d τ ( f n ( X n ) , f ( X ) ) < 2 n ,
  • The output size | Y k | q ( n ) for fixed polynomial q .

3.3. Rigorous Construction of the Realizability Topos

Definition 6 
(Approximation Assembly). An approximation assembly is a triple ( X , α , d ) where:
  • X is a set,
  • α : X P ( N × FinStruct ) is a realizability relation,
  • d : X × X R 0 is a metric,
satisfying: if ( n , a ) α ( x ) and ( n , b ) α ( y ) , then | d ( x , y ) d τ ( a , b ) | < 2 n + 1 .
Definition 7 
(Morphism of Approximation Assemblies). A morphism f : ( X , α X , d X ) ( Y , α Y , d Y ) is a function f : X Y with a Turing machine Φ f such that:
  • If ( n , a ) α X ( x ) , then ( n , Φ f ( n , a ) ) α Y ( f ( x ) ) ,
  • Time Φ f ( n + | a | ) p ( n ) for fixed polynomial p,
  • The function f is continuous (but not necessarily Lipschitz).
We remove the global Lipschitz requirement to accommodate functions like x near 0, while maintaining computability through the polynomial-time constraint.
Axiom 3. [Categorical Realizability Axiom (CRA)] The semantics of JCM is interpreted in the category Asm approx of approximation assemblies and their morphisms. This category is an enriched subcategory of Hyland’s effective topos E ff [4].
Theorem 1 
(Enriched Subcategory Structure). Asm approx is a locally small enriched category over the category of metric spaces with continuous maps.
Proof. 
Define the hom-object Hom ( ( X , α X , d X ) , ( Y , α Y , d Y ) ) as the set of morphisms with the sup-metric:
d ( f , g ) = sup x X d Y ( f ( x ) , g ( x ) )
The composition is continuous because the composition of continuous functions is continuous. The identity morphism has distance 0 to itself. □

4. The JCM Universe J

4.1. Detailed Categorical Constructions

Definition 8 
(JCM Universe). The JCM universe J   i s   t h e   f u l l   s u b c a t e g o r y   o f Asmapprox c o n s i s t i n g   o f   o b j e c t s   t h a t   a d m i t a p p r o x i m a t i o n   s e q u e n c e s   s a t i s f y i n g   F A A .
Theorem 2 
(Local Cartesian Closure). The category J   i s   l o c a l l y   C a r t e s i a n   c l o s e d .
Proof. 
We construct each component explicitly:
Terminal Object
1 = ( { * } , α 1 , d 1 ) where α 1 ( * ) = { ( n , * n ) } with d 1 ( * , * ) = 0 .
Products
For ( X , α X , d X ) and ( Y , α Y , d Y ) , define:
X × Y = ( X × Y , α X × Y , d X × Y )
where α X × Y ( x , y ) = { ( n , ( a , b ) ) : ( n , a ) α X ( x ) , ( n , b ) α Y ( y ) } and d X × Y ( ( x , y ) , ( x , y ) ) = max ( d X ( x , x ) , d Y ( y , y ) ) .
Equalizers
For f , g : X Y , the equalizer is:
E = ( { x X : f ( x ) = g ( x ) } , α E , d X | E )
where α E ( x ) = { ( n , a ) α X ( x ) : Φ f ( n , a ) = Φ g ( n , a ) } .
Exponentials
For ( X , α X , d X ) and ( Y , α Y , d Y ) , define Y X as:
Y X = ( Hom ( X , Y ) , α Y X , d Y X )
where α Y X ( f ) = { ( n , Φ f ) : Φ f realizes f with time bound p ( n ) } and d Y X ( f , g ) = sup x X d Y ( f ( x ) , g ( x ) ) .
The universal properties follow by standard categorical arguments adapted to the approximation setting. □
Theorem 3 
(Natural Numbers Object). The object N J = ( N , α N , d N ) with α N ( m ) = { ( n , m n ) : m n = min ( m , 2 n ) } and discrete metric d N ( m , m ) = 0 if m = m , 1 otherwise, is a natural numbers object in J ( ) .
Proof. 
For any object X with morphism x : 1 X and s : X X , define the unique morphism f : N J X recursively by:
f ( 0 ) = x ( * ) f ( n + 1 ) = s ( f ( n ) )
The realizing machine computes f ( n ) by iterating sn times, which takes time polynomial in n since each application of s takes polynomial time. □

4.2. Completeness and Compactness

Theorem 4 
(Cauchy Completeness of R J ). The JCM real number space R J is Cauchy complete with explicit modulus.
Proof. 
Let ( x k ) be a Cauchy sequence in R J with modulus μ : N N such that for k , μ ( n ) , d R ( x k , x ) < 2 n 1 .
Define z = ( z n ) by z n = x n μ ( n ) . For m > n :
| z m z n | = | x m μ ( m ) x n μ ( n ) | | x m μ ( m ) x n μ ( m ) | + | x n μ ( m ) x n μ ( n ) | < 2 n + 2 n 1 = 3 · 2 n 1
Thus ( z n ) represents some z R J . For k μ ( n ) :
| z n x n k | = | x n μ ( n ) x n k | < 2 n
so x k z . □
Theorem 5 
(Total Boundedness with Constructive Covers). Every JCM metric space ( X , d ) is totally bounded with explicit ε-nets.
Proof. 
Let X be represented by ( X n ) with d ( X m , X n ) < 2 n for m > n . For ε > 0 , choose n with 2 n + 1 < ε . Then X n is a finite ε-net because for any x X , there exists x n X n with d ( x , x n ) < 2 n < ε .
The mapping ε X n is computable in time polynomial in log ( 1 / ε ) . □

5. Complexity Theory in JCM

5.1. Precise Complexity Class Definitions with Consistent Encoding

Definition 9 
(J-P - Polynomial-Time JCM Objects). An object X belongs to J-P if there exists a Turing machine M and polynomial p such that:
1. 
On input 1 n , M outputs an encoding of X n in time p ( n ) ,
2. 
| X n | p ( n ) (polynomial-size encodings),
3. 
The mapping n X n is uniform.
With our consistent representation of FinStruct real , standard real numbers belong to J-P, resolving the previous inconsistency.
Definition 10 
(J-NP - Non-deterministic Polynomial-Time). An object X belongs to J-NP if there exists a Turing machine M and polynomial p such that:
1. 
On input 1 n and witness w n with | w n | p ( n ) , M verifies in time p ( n ) that d ( X n , X ) < 2 n ,
2. 
For each n, there exists such a witness w n .
Theorem 6 
(J-P ⊆ J-NP). Every J-P object is J-NP.
Proof. 
If X J - P , then the computation of X n itself serves as a verifiable witness. The verifying machine simply recomputes X n and checks consistency. □

5.2. Relations to Classical Complexity Theory

Theorem 7 
(J-P and Classical P). If a decision problem L { 0 , 1 } * is in ¶, then its characteristic function (as a JCM object) is in J-P.
Proof. 
The n-th approximation can be computed by running the polynomial-time algorithm for L and outputting the result. The encoding size is clearly polynomial in n. □
Theorem 8 
(Separation from Non-Polynomial-Time Computable Functions). There exist computable real numbers that are not in J-P.
Proof. 
Consider a real number whose binary expansion encodes the halting problem up to length n at position n. This number is computable but not polynomial-time computable, hence not in J-P. □

6. Relations to Other Foundations

6.1. Detailed Embedding of Bishop’s Analysis

Theorem 9. 
(Faithful Embedding of Bishop’s Analysis). There exists a faithful functor E : Bishop J   p r e s e r v i n g   a l l   c o n s t r u c t i v e   c o n t e n t .
Proof. 
Define E on objects: for Bishop set X, let E ( X ) have constant approximation sequence X n = X with discrete metric.
On morphisms: for Bishop function f : X Y , define E ( f ) realized by the machine that on input ( n , x ) outputs ( n , f ( x ) ) .
This preserves:
  • Equality: x = X y in Bishop iff E ( x ) = E ( X ) E ( y ) in JCM,
  • Function application: E ( f ) ( E ( x ) ) = E ( f ( x ) ) ,
  • Natural numbers: E ( N Bishop ) N J ,
  • Real numbers: E ( R Bishop ) R J .
Faithfulness follows from injectivity on objects and morphisms. □

6.2. Detailed Conservation over Heyting Arithmetic

Theorem 10. 
(Conservation over HA). For Π 2 0 sentences, JCM is conservative over Heyting Arithmetic.
Proof. 
We construct an explicit realizability interpretation of JCM in HA:
Objects
A JCM object X is interpreted as a pair of HA formulas:
φ X ( n , a ) meaning `` a is an n - th approximation of X ψ X ( n , a , b ) meaning ` ` d X ( a , b ) < 2 n
Morphisms
A JCM morphism f : X Y is interpreted as an HA formula θ f ( e , n , a , b ) meaning “Turing machine e computes the n-th approximation of f on input a yielding b in time polynomial in n”.
Verification
For any Π 2 0 theorem n m P ( n , m ) provable in JCM, the realizing machine extracted from the JCM proof can be formalized in HA as a provably total recursive function. The polynomial-time bounds ensure the function is primitive recursive, hence HA-provable. □

7. Limitations and Boundary Cases

7.1. Functions Beyond Polynomial Time

Theorem 11. 
(Ackermann Function in JCM). The Ackermann function A : N × N N is representable in JCM but not in J-P.
Proof. 
The Ackermann function is computable, so it admits approximation sequences. However, its computation time is not bounded by any polynomial, so it cannot be represented by polynomial-time morphisms. It belongs to JCM but not to the polynomial-time fragment. □
This shows that JCM can represent functions beyond polynomial time, though the COA axiom restricts morphisms to polynomial-time computable ones.

7.2. Classical Non-constructive Principles

Theorem 12. 
(Excluded Middle Failure). The law of excluded middle, P . P ¬ P , is not valid in JCM.
Proof. 
Consider the predicate P ( n ) = "Turing machine n halts on input n". There is no algorithm that can decide this predicate for all n, so the excluded middle cannot be constructively validated. □
Theorem 13. 
(Axiom of Choice Restriction). The full axiom of choice is not valid in JCM, but countable choice and dependent choice are admissible.
Proof. 
The full axiom of choice would imply the law of excluded middle via Diaconescu’s theorem [3]. However, countable choice and dependent choice are constructively acceptable and can be validated in the realizability semantics. □

7.3. Non-Continuous Operations

Theorem 14. 
(Continuity of JCM Morphisms). Every JCM morphism f : R J R J is continuous.
Proof. 
This follows from the fact that all computable functions on reals are continuous [7]. The polynomial-time constraint does not affect this fundamental property. □
This means that discontinuous but computable operations (like the step function) cannot be represented as morphisms in JCM, though they may be representable as relations.

8. Applications to Analysis

8.1. Numerical Analysis with Error Control

Example 1 
(Euler’s Method with Explicit Error Bounds). For y = f ( t , y ) , y ( 0 ) = y 0 with f Lipschitz in y, the Euler approximation:
y k + 1 = y k + h f ( t k , y k ) , t k = k h , h = 2 n
satisfies the global error bound:
max k | y ( t k ) y k | e L T 1 L · M h
where L is the Lipschitz constant and M bounds | y | . This yields a JCM object with explicit error O ( 2 n ) .
Theorem 15. 
(Polynomial-Time ODE Solving). For polynomial-time computable f with explicit Lipschitz bound, the Euler method produces 2 n -approximations in time O ( 2 n · p ( n ) ) for some polynomial p.
Proof. 
Each of the 2 n steps requires computing f to precision 2 n , which takes time p ( n ) by assumption. The total time is 2 n · p ( n ) , which is exponential in n but polynomial in the output precision measured by bits. □

9. Conclusions and Future Work

9.1. Summary of Contributions

This paper establishes JCM as a rigorous foundation for computable mathematics with the following key contributions:
  • Consistent Axiomatic Foundation: FAA, COA, and CRA with consistent encoding schemes that resolve previous technical inconsistencies.
  • Detailed Categorical Construction: Complete proof that J is locally Cartesian closed with natural numbers object, with careful treatment of continuity versus Lipschitz conditions.
  • Comprehensive Complexity Analysis: Precise definitions of J-P, J-NP with consistent size bounds, and establishment of relationships with classical complexity classes.
  • Limitations Analysis: Clear delineation of what classical mathematics can and cannot be represented in JCM, including non-polynomial-time functions and non-constructive principles.
  • Applications to Analysis: Constructive treatment of numerical methods with explicit error bounds.

9.2. Future Research Directions

  • Extended Complexity Hierarchy: Development of finer-grained complexity classes within JCM beyond polynomial time.
  • Quantum JCM: Extension to quantum computation with explicit resource bounds.
  • Homotopical Extensions: Development of JCM versions of homotopy type theory with finite approximations.
  • Reverse Mathematics: Systematic calibration of JCM’s proof-theoretic strength relative to classical systems.
  • Implementation: Development of JCM-based proof assistants with explicit computational extraction.
JCM provides a philosophically coherent and mathematically rigorous alternative to classical foundations, bridging the gap between abstract mathematics and concrete computation while maintaining consistency across all technical levels.

References

  1. Arora, S. , & Barak, B. (2009). Computational Complexity: A Modern Approach. Cambridge University Press.
  2. Bishop, E. (1967). Foundations of Constructive Analysis. McGraw-Hill.
  3. Bridges, D. S. , & Richman, F. (1985). Varieties of Constructive Mathematics. Cambridge University Press.
  4. Hyland, J. M. E. (1982). The effective topos. In The L.E.J. Brouwer Centenary Symposium (pp. 165–216). North-Holland.
  5. Jech, T. (2003). Set Theory: The Third Millennium Edition, Revised and Expanded. Springer-Verlag.
  6. Martin-Löf, P. (1984). Intuitionistic Type Theory. Bibliopolis.
  7. Weihrauch, K. (2000). Computable Analysis: An Introduction. Springer-Verlag.
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

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2025 MDPI (Basel, Switzerland) unless otherwise stated