1 Introduction
1.1 The principal open problem
In the synthesis paper concluding our prior series , which builds on Riemann’s foundational 1859 paper , we surveyed six topics where homotopy type theory (HoTT) interfaces — or fails to interface — with mainstream twenty-first century mathematics. Topics 1, 3, 4, 5, and 6 (cohesive geometry, -toposes, derived algebraic geometry, motives, and condensed algebra) admit varying degrees of HoTT formulation. Topic 2, analytic number theory, does not. We wrote:
Algebraic number theory and parts of arithmetic geometry — schemes, sheaves, étale cohomology — admit -topos and condensed mathematics treatments that connect cleanly to univalent foundations. But as a HoTT-native statement, with a HoTT-native object, remains unrealised. We frame this as the principal open question for the synthesis.
This paper develops that question.
1.2 Why is hard in HoTT
A HoTT-native statement of requires four ingredients, each of which is non-trivial:
A HoTT-native object of complex numbers, complete with the notion of meromorphicity. Constructive Cauchy reals exist, but a univalent algebraic closure that is well-behaved with respect to univalence requires care: classical algebraic closures are unique-up-to-isomorphism, while a HoTT-native one is unique up-to-equivalence in the sense of univalence .
A HoTT-native notion of holomorphic function . The classical definition uses a metric limit (Newton quotient) which is constructive but not synthetic. A more native approach uses cohesive HoTT : holomorphicity becomes a modal predicate.
A HoTT-native definition of that agrees on with and analytically continues elsewhere. This requires either a higher inductive-inductive construction (HIIT) or an internal universal property of meromorphic extensions.
A HoTT-native interpretation of the proposition Even getting to this statement is a research project.
By contrast, in classical foundations Loeffler and Stoll have just (March 2025) formalized in Lean 4 / Mathlib the entire infrastructure: , the analytic continuation, the functional equation, the Basel problem, non-vanishing on , Dirichlet’s theorem on primes in arithmetic progressions, and the formal statement of the Riemann hypothesis. Their work runs to roughly 3300 lines of Lean for the analytic continuation alone. We have nothing comparable in any HoTT proof assistant.
1.3 What this paper does (and does not do)
This paper:
Identifies and motivates the prerequisite chain for a HoTT-native . (2)
Proposes three candidate HoTT-native definitions of , analyses their tradeoffs, and conjecturally proves their pairwise equivalence. (3)
Places the picture in the broader geometric Langlands landscape via -toposes and Lurie’s higher topos theory . (4)
Compares HoTT and Clausen–Scholze condensed mathematics, identifying where they overlap and where the bridge is missing. (5)
Compares with the Loeffler–Stoll 2025 Lean formalization, both as a benchmark and as a translation target. (6)
Provides a six-sub-problem roadmap that, if solved, would yield a HoTT-native proof that . (7)
Re-states the Riemann hypothesis as a HoTT proposition and discusses its modal-logical structure. (8)
This paper does not:
Prove the Riemann hypothesis.
Provide a complete HoTT formalization of .
Claim that HoTT methods will, in principle, prove RH; we are agnostic on this question.
The companion code repository contains a Haskell implementation of partial zeta sums, Dirichlet series operations, the formal Euler product identity (modulo a convergence axiom), and a Lean 4 sketch indexed against Loeffler–Stoll’s Mathlib code.
1.4 Algebraic vs. analytic number theory
A clarifying distinction. Algebraic number theory studies , the ring of integers of a number field , its ideals, class group, units, and reductions modulo primes. The objects are discrete-finite or, at worst, countable; their morphisms are algebraic; and the topology is the Zariski or étale one. HoTT formalisation is straightforward in principle: rings are sets with operations satisfying identities, and ideals are subsingletons of the underlying set.
Analytic number theory studies , Dirichlet -functions , and automorphic -functions , where is an automorphic representation of . The objects are holomorphic / meromorphic functions of complex variables; morphisms are analytic transformations; and the topology is the Euclidean (or condensed) topology on . HoTT formalisation is presently absent.
The Langlands programme unifies these worlds: it asserts a precise correspondence between automorphic representations and Galois representations, transforming questions about zeros of -functions into questions about Galois cohomology. Geometric Langlands is the function-field analogue and was proven in 2024 in five papers using -categorical methods throughout.
1.5 Outline
2 traces the prerequisite chain. 3 defines as a candidate HoTT object. 4 treats geometric Langlands in -topoi. 5 compares condensed mathematics and HoTT. 6 compares with Loeffler–Stoll Lean. 7 gives the six-sub-problem roadmap. 8 discusses RH as a HoTT statement. 10 concludes.
2 The Prerequisite Chain
We trace, with care, the dependency chain culminating in a HoTT-native .
2.1 HoTT-native real numbers
Definition 1 (Cauchy reals, after the HoTT Book ). The type of Cauchy reals is the higher inductive-inductive type defined simultaneously with a relation indexed by , by the constructors: together with the path constructors for the closeness relation .
Remark 2. is a set in the sense of HoTT (its identity types are propositions), because of the explicit equality constructor . This is in contrast to a non-Cauchy approach where might inherit higher structure from its construction.
Theorem 3 (, Theorem 11.3.32). is an Archimedean ordered field with decidable order on rationals but undecidable equality on in general.
2.2 HoTT-native complex numbers
There are at least three approaches:
2.2.0.1 Pairs.
with multiplication . Simple, but does not capture the universal property that should be an algebraic closure of .
2.2.0.2 Algebraic closure of .
Definition 4 (Univalent algebraic closure). A type together with an embedding is a univalent algebraic closure of if it is the propositional truncation of the type where is the conjunction of (i) every non-zero polynomial in has a root, and (ii) every element of is algebraic over via .
Remark 5 (Plain-language gloss). In essence, 4 defines the algebraic closure not as one specific construction, but as the abstract object satisfying the universal property of being an algebraically closed field containing . Univalence ensures that any two such objects are propositionally equal as types in . The propositional truncation at the top of the -type collapses the choice-of-witness data to a proposition, reflecting the classical dictum that the algebraic closure is unique up to non-canonical isomorphism.
Proposition 6. Univalent algebraic closures of are unique up to equivalence: if and are two such, there is an equivalence with , and by univalence .
Proof sketch. Classical algebraic-closure uniqueness uses Zorn’s lemma. In HoTT, we use a constructive variant: one shows that any two algebraic closures are isomorphic via an inductive construction, and that the choice of isomorphism is contractible up to the action of . The propositional truncation in 4 ensures the existential is a proposition; uniqueness follows. Full proof requires choice or constructive algebraic-closure arguments . ◻
2.2.0.3 Quotient construction.
. Concretely realisable via Schwartz / set-quotient.
In what follows, we treat axiomatically: a propositional Univalent Algebraic Closure of , equipped with a continuous structure inherited from .
2.3 Holomorphic functions in HoTT
The classical definition of holomorphicity is: This translates straightforwardly to - and -limits, but is not HoTT-native in the sense of using only , , and the universe-polymorphic constructors.
Definition 7 (Constructive holomorphicity). is holomorphic at if there exists such that
Remark 8 (Synthetic alternative). In cohesive HoTT , the universe carries shape and flat modalities . Holomorphicity becomes a synthetic predicate: is holomorphic iff commutes with the differential cohesion operator. This is closer to “HoTT-native” but requires fixing a model where is interpreted as the geometric -shape.
2.4 Dirichlet series
Definition 9 (Dirichlet series). A Dirichlet series is a function together with the formal expression The abscissa of absolute convergence is .
Proposition 10 (HoTT-native; sketched). The set of Dirichlet series with forms a commutative ring under termwise addition and Dirichlet convolution .
Proof sketch. Closed-under-addition is clear. For convolution, the abscissa of is bounded by , which is finite when both are. The full proof in HoTT uses the absolute-convergence variant of Fubini for -valued double sums . ◻
2.5 Putting it together
The chain in 1 terminates at , but the rightmost arrow — analytic continuation from a Dirichlet series convergent on to a meromorphic function on — has no canonical HoTT-native realisation. This is the central technical gap of the present paper.
2.6 Detailed account of analytic-continuation obstacles
To clarify why the rightmost arrow is hard, we list the obstacles in ascending order of severity.
Unique factorisation of meromorphic extension. In classical complex analysis, the identity theorem (19) guarantees uniqueness of analytic continuation. In HoTT, “connected open” needs a precise definition, and the proof that the agreement locus is clopen requires constructive analogues of Bolzano–Weierstrass.
Existence of meromorphic extension. Classical proofs of analytic continuation of use one of:
Hurwitz zeta method: define and continue via the integral representation. This requires Mellin transform.
Theta-function method: satisfies modular invariance, and Mellin transforming gives .
Contour integral method: integrate around a Hankel contour.
Each requires a substantial fragment of HoTT-native analysis: integration theory, modular transformation laws, residue calculus.
Computation in HoTT. Even given the existence and uniqueness, computing at, say, to obtain requires either (i) symbolic manipulation of the analytic continuation, or (ii) numerical methods. HoTT proof assistants like Cubical Agda do not currently support efficient arbitrary-precision real arithmetic.
Naturality. Classical proofs treat as one specific function. A fully-categorified HoTT-native account would treat as part of a family — Dirichlet -functions, Hurwitz zeta, Hecke -functions, automorphic -functions — with naturality with respect to characters and lifts. This expands the existence obstacle by a constant factor of the size of the family.
2.7 HoTT-native Cauchy reals: explicit example
To make the discussion concrete, we sketch how is a HoTT-native object.
Example 11 ( as Cauchy real). Define by Newton iteration: the -th Newton iterate of , where is large enough that . Then is a Cauchy modulus and is . Equality in follows from the equality constructor .
Example 12 ( as Cauchy real). , where is chosen so the tail . By Stirling, .
Example 13 ( as Cauchy real). We define Machin’s formula converges geometrically with ratios and , so .
These three examples illustrate that named real-number constants in HoTT require an algorithmic Cauchy modulus, not just an existential statement.
3 The Riemann Zeta Function as a HoTT Object
We now propose three approaches to defining inside HoTT.
3.1 Approach 1: as a higher inductive-inductive type
Inspired by the construction of as a HIIT, we sketch a specification pattern for what a HoTT-native should satisfy. We emphasise that what follows is a wish-list of constructors, not a self-contained HIIT definition; both consistency and existence of such a HIIT are open questions.
First, define the convergent partial-sum function on the half-plane of absolute convergence: This map is well-defined because ensures absolute convergence of the series in , and the limit is the (HoTT-native) limit constructor of applied component-wise.
Definition 14 (Specification of zeta as HIIT, candidate). A pair is a HIIT-realisation of zeta if it is generated by: together with additional path-constructors (intentionally left schematic) enforcing the functional equation .
We use the language of a definition only for the specification; we make no claim of consistency.
Remark 15. This is a specification, not a finished HIIT, for two reasons:
The constructor demands a holomorphic extension, but no such extension is canonically given by the constructors themselves. Consistency therefore reduces to a separate existence-of-extension lemma — which is exactly the analytic-continuation gap of 44.
The functional-equation path-constructors are intentionally schematic. Their precise form would involve HoTT-native , , and the modular-transformation identity for , none of which are presently formalised. We do not know what their definitive shape should be, and indicate this rather than papering over it.
The specification is therefore a target pattern, not a finished construction. The remaining two approaches (16 and 20) are more conservative.
3.2 Approach 2: as analytic limit of Euler product
Recall the Euler product ():
Definition 16 (Zeta via Euler product). On the half-plane , define where is the type of primes. Extend by analytic continuation (separately proven) to .
Proposition 17 (Euler product, modulo convergence). On , .
Proof sketch in HoTT. By unique factorisation in (a HoTT-formalisable theorem), each corresponds bijectively to a finite-support function via . Expanding the Euler product: The middle equality uses absolute convergence of the product on , which is a HoTT-statement requiring 10. ◻
3.3 Approach 3: via universal property of meromorphic continuation
Definition 18 (Meromorphic continuation, universal). Given a holomorphic on an open , a meromorphic continuation of to is a meromorphic with , such that for any other meromorphic continuation , as meromorphic functions. (Existence requires connectedness; uniqueness uses the identity theorem.)
Theorem 19 (Identity theorem, HoTT version). Suppose are holomorphic on a connected open , and the type has an accumulation point in . Then .
Proof sketch. Standard: the locus of agreement is open (by power series), closed (by continuity), and non-empty, hence equal to since is connected. HoTT-native version: “connected” becomes “ is a singleton” and “open” is interpreted appropriately in cohesive HoTT. ◻
Definition 20 (Zeta via universal property). is the unique (up to identity, by 19) meromorphic continuation of from to with a simple pole of residue at .
3.4 Equivalence of the three definitions
Theorem 21 (Conjectural equivalence). Conditional on the existence of HoTT-native analytic continuation, the three definitions 14, 16, 20 are pairwise equivalent: there is a propositional equality between any two.
Proof sketch. 16 agrees with the partial-sum definition on by 17. 20 agrees with the partial-sum definition on by definition. By 19, any two meromorphic continuations of the same function agree everywhere. 14 imposes both the partial-sum agreement and the holomorphicity constraint, hence its result is identified with the universal-property zeta. The catch: each step requires HoTT-native analytic continuation, which is exactly the gap. ◻
3.5 The functional equation
Theorem 22 (Functional equation, conjectured HoTT-native). For all ,
Strategy. Riemann’s original proof uses the theta-function identity and the Mellin transform. Translating to HoTT requires:
HoTT-native theta function , defined by , plus the modular identity.
HoTT-native Mellin transform .
HoTT-native contour-integral lemmas.
None of these are presently formalized in HoTT. They are all formalized in classical Lean 4 / Mathlib (Loeffler–Stoll, 2025). ◻
3.6 The critical strip
Definition 23 (Critical strip). .
Definition 24 (Trivial zeros). A zero of is trivial if .
Conjecture 25 (Riemann hypothesis, HoTT statement).
We will analyse this statement modal-logically in 8.
3.7 Worked example:
To illustrate what HoTT-native machinery is needed, we trace one of the oldest results — the Basel problem.
Theorem 26 (Basel problem). .
Sketch of HoTT-native proof, modulo missing infrastructure. There are several classical approaches; we outline two.
Approach (i): Fourier series of . Expand on as a Fourier series: Setting yields , hence . The HoTT-native version requires:
HoTT-native Fourier series with pointwise convergence on smooth functions.
HoTT-native trigonometric functions (definable as power series, hence HIIT -valued).
Pointwise evaluation at the boundary requires Abel-style limits.
Approach (ii): Euler’s product expansion of . Use Equating Taylor coefficients of on both sides: , so . HoTT-native version requires:
Infinite-product convergence theory in HoTT.
Term-by-term Taylor expansion of the product (Abel-Mertens-style manipulation).
Product-to-sum identity, valid on absolute convergence.
Either approach requires roughly the same prerequisite chain: 41–43, plus some elementary measure / convergence theory. 44 is not needed for this specific theorem because is in the half-plane of absolute convergence. ◻
Remark 27. 26 is a lower-bound HoTT goal: it does not require analytic continuation or the functional equation. We propose it as the minimum viable target for HoTT-native analytic NT — the analogue of “hello, world” for our roadmap.
4 Geometric Langlands in -Topoi
4.1 Brief history
The Langlands programme predicts a correspondence for a global field . The number-field case ( a number field) is analytic in nature; the function-field case ( for a curve ) is geometric, hence the name geometric Langlands.
Geometric Langlands has a categorical formulation due to Beilinson–Drinfeld and Frenkel–Gaitsgory: the conjecture is the existence of an equivalence of -categories, where is a reductive group, its moduli stack of -bundles, the Langlands dual, and the de Rham moduli of local systems. This was proven in 2024 by Gaitsgory, Raskin, Rozenblyum, Arinkin, Beraldo, Chen, Cheng, Faergeman, Lin, Lysenko in five papers , awarded the 2025 Breakthrough Prize.
4.2 -categories vs. HoTT
By Lurie’s higher topos theory and higher algebra , -categories admit a model in simplicial sets (quasi-categories). Cisinski et al. have begun a programme of type-theoretic foundations of -category theory in which -categories are types satisfying a Segal condition.
By Shulman’s theorem , every -topos admits HoTT as its internal language. Hence, in principle, the Gaitsgory equivalence is statable in HoTT internally to a fixed -topos.
Remark 28. The catch is that the equivalence relates two different topoi: is internal to a derived geometric topos; is internal to a different derived geometric topos. A HoTT statement requires either an ambient 2-topos / very-large-universe setup (in the spirit of Riehl–Verity directed type theory) or an external HoTT statement comparing two HoTT internal languages.
4.3 Geometric vs. analytic Langlands
The 2024 proof is geometric: it lives in the world of moduli stacks over -curves or, in characteristic 0, over -curves with the de Rham stack (cf. for the complex-analytic side). It says nothing directly about or about analytic number theory.
The analytic Langlands programme (Etingof–Frenkel–Kazhdan ) attempts a Hilbert-space variant: the -spectrum of certain operators on should match a spectral side built from . This is the program closer to , but it is much less developed than the geometric version.
4.4 Implication for HoTT-native analytic NT
If a HoTT-native analytic Langlands programme could be developed, then would translate to a statement about the spectrum of an operator on , which is at least syntactically a HoTT statement modulo standard moduli-stack constructions. We do not develop this direction in detail; we flag it as a concrete research direction.
4.5 Detailed example: Langlands and Hecke characters
The simplest case of Langlands is , and even this case shows where HoTT-native infrastructure is needed.
Example 29 ( over ). Automorphic representations of are continuous characters . By class-field theory, these correspond to characters of , i.e., characters of the idele class group. The -function attached to is For trivial, this is . The Langlands correspondence identifies with the Artin -function of the corresponding Galois character.
Remark 30 (HoTT formulation of Hecke characters). A HoTT formulation requires:
HoTT-native ideles as a restricted product over places. This is a HoTT-native colimit over a directed system of finite-place subgroups; HoTT-native completion at each place requires HoTT -adic numbers .
HoTT-native continuous group homomorphisms.
HoTT-native -function attached to character.
None of these are presently available, but each is plausibly a few thousand lines of HoTT code.
4.6 Geometric Langlands as an internal HoTT statement
We give a more precise version of the Gaitsgory equivalence as a HoTT internal statement. Let be the -topos of derived algebraic stacks over . By Shulman , has an internal language extending HoTT (after fixing a universe-of-types issue).
Conjecture 31 (Gaitsgory equivalence in HoTT, schematic). In the internal language of , fix a smooth projective curve over and a reductive group . Define: There is a HoTT-internal equivalence of -categories:
This is conjectural in the sense that we have not verified all the type-theoretic encodings; the underlying mathematical content is theorem (Gaitsgory et al. 2024).
Remark 32. Univalence enters when one asks: which equivalence? The Gaitsgory–Drinfeld equivalence comes equipped with a Hecke-eigensheaf property; under univalence, this distinguishes one canonical equivalence up to a contractible space of choices.
4.7 Physical interpretation: 4d super-Yang–Mills
Kapustin and Witten interpreted geometric Langlands as electric–magnetic duality (S-duality) of 4d super-Yang–Mills compactified on a Riemann surface. This physical perspective suggests:
A HoTT-native treatment of 4d super-Yang–Mills via synthetic differential cohesive HoTT .
S-duality as an automorphism of the underlying type; eigenvalues of S-duality giving the spectrum.
Connection to the synthesis paper’s QFT formulation.
We flag this as a research direction; we do not develop it further here.
5 Condensed Mathematics and HoTT
5.1 Pyknotic / condensed sets
Clausen and Scholze defined the condensed sets as sheaves on the site of profinite sets with finite jointly-surjective covers. Pyknotic sets, due to Barwick–Haine, are an essentially equivalent variant. The category is a topos, and — condensed abelian groups — has much better homological properties than topological abelian groups.
The crucial example: becomes a condensed ring which is analytic-friendly in a way that -as-topological-ring is not. The 6-functor formalism of analytic stacks (Clausen–Scholze 2024) gives a geometric foundation for analytic-number-theoretic objects.
5.2 Why this matters for
The condensed approach gives a uniform setting in which:
Smooth manifolds, complex-analytic spaces, schemes, formal schemes, adic spaces, and rigid spaces all live as condensed objects.
Cohomology operations (six functors: ) all exist with clean adjunction structure.
, viewed as a meromorphic function on , becomes an object in -modules over a suitable condensed analytic stack.
5.3 Bridging to HoTT
Problem 33 (Bridging condensed mathematics and HoTT). Construct an -topos with an internal language extending HoTT, in which:
Condensed sets embed fully faithfully.
Solid abelian groups (in the sense of Clausen–Scholze) are an internal type.
Holomorphic / meromorphic functions on correspond to morphisms of condensed analytic stacks.
33 is open; preliminary work by Mahmoudvand–Riehl and others has explored the syntactic side, but no complete bridge exists.
5.4 Solid abelian groups in HoTT, sketch
Definition 34 (Solid abelian group, condensed). A condensed abelian group is solid if for every profinite set and every continuous which is null on the closure of zero, the induced map factors through uniquely.
A HoTT-native version would replace “profinite set” with a HoTT-internal type (e.g., a limit of finite types in ) and “continuous” with the appropriate cohesive-HoTT modality. We sketch a candidate:
Definition 35 (HoTT-solid abelian group, candidate). Working in cohesive HoTT, an abelian group is HoTT-solid if and the map is an equivalence.
Remark 36. 35 is speculative; it has not been verified to match the condensed definition. It is offered as a starting point for future work.
5.5 Six-functor formalism in HoTT
The Clausen–Scholze 6-functor formalism for analytic stacks is expressed in -categorical language as follows. Given a category of geometric objects (analytic stacks) with two classes of morphisms “proper” and “open” , a 6-functor formalism consists of:
A symmetric monoidal -category for each , of -sheaves on .
For each morphism in , an adjunction .
For each in , an additional pair .
Coherent base change, projection formula, and proper / open recollement.
Problem 37 (6-functors in HoTT). Express the 6-functor formalism in HoTT internal language. The natural setting: -topoi indexed over a directed type / -base .
A successful resolution of 37 would, indirectly, give a HoTT framework for analytic objects (including as a section of a suitable line bundle).
5.6 Solid modules over and -adic interaction
In condensed mathematics, the category of solid abelian groups contains -adic objects naturally: For , the topology comes from the profinite structure . For , completing the algebraic closure of uses metric completion plus algebraic closure plus completion again — this is awkward classically and equally awkward in HoTT.
Conjecture 38 (-adic zeta function in HoTT). A HoTT-native realisation of the Kubota–Leopoldt -adic zeta function is plausibly easier than the archimedean , because the -adic case avoids analytic continuation and uses interpolation of values for .
Remark 39. 38 is a research suggestion: start with the -adic case. Loeffler–Stoll formalize the archimedean case; the -adic case has not yet been comprehensively formalized in any proof assistant. HoTT could be the first.
6 Comparison with Loeffler–Stoll Lean Formalization
6.1 What Loeffler–Stoll have
The 2025 paper formalizes in Lean 4 / Mathlib:
The Riemann zeta function via Hurwitz zeta and analytic continuation, 3300 lines.
Dirichlet -functions for primitive characters .
The Euler product on .
Analytic continuation via Mellin / theta-function method.
The functional equation .
Basel: .
Non-vanishing on .
Dirichlet’s theorem on primes in APs.
Formal statement of the Riemann hypothesis:
def RiemannHypothesis : Prop := ∀ s : ℂ, riemannZeta s = 0 → ¬ trivialZero s → s.re = 1 / 2
This is roughly lines total across the relevant Mathlib files.
6.2 What Lean / Mathlib provides that HoTT lacks
Classical as a complete normed field, with Cauchy integrals.
Mathlib’s
Complex.differentiable,HolomorphicAt,ContourIntegral.Mellin transforms, Gamma function, Riemann zeta function (
ZetaFunctionin Mathlib).All of measure theory, including Lebesgue integration on .
6.3 What HoTT could offer
Univalence: the multiple definitions of (14, 16, 20) become propositionally equal via univalence, not merely equal up to some isomorphism.
Higher inductive types: the Riemann surface of (or of -functions) is naturally a HIT, capturing branch-cut data syntactically.
Internal -topos language: the Langlands functor and its adjoints can be expressed in the same language as the underlying analytic objects.
6.4 Strategy: HoTT as classical-foundation transport
A pragmatic approach: transport the Loeffler–Stoll Lean formalization to HoTT not by re-doing all the analysis, but by treating axiomatically as a HoTT type with the same operations and properties as Mathlib’s . We sketch this in 7.
6.5 Code-level comparison: signature against signature
To make the comparison tangible, we present the key Lean signatures from Loeffler–Stoll alongside conjectured HoTT analogues.
6.5.0.1 The zeta function itself.
In Mathlib (Loeffler–Stoll):
noncomputable def riemannZeta : ℂ → ℂ
In HoTT (proposed): Here Lean uses “noncomputable” to encode that is defined by non-effective analytic continuation. HoTT, lacking a built-in concept of “noncomputable”, must encode this via a propositional truncation.
6.5.0.2 The functional equation.
In Mathlib:
theorem riemannZeta_one_sub : ∀ (s : ℂ), s ≠ 0 → s ≠ 1 →
riemannZeta (1 - s) = 2 * (2 * π) ^ (-s) * Gamma s
* cos (π * s / 2) * riemannZeta s
HoTT analogue (proposed): exactly the corresponding -statement, modulo the conditional .
6.5.0.3 Non-vanishing on .
In Mathlib:
theorem riemannZeta_ne_zero_of_one_le_re :
∀ (s : ℂ), 1 ≤ s.re → s ≠ 1 → riemannZeta s ≠ 0
HoTT analogue: same statement; the proof uses the Euler product (no analytic continuation), so should be tractable HoTT-natively.
6.5.0.4 Riemann hypothesis.
In Mathlib:
def RiemannHypothesis : Prop :=
∀ s : ℂ, riemannZeta s = 0 → ¬ trivialZero s → s.re = 1 / 2
HoTT analogue: 25.
6.6 Quantitative comparison
| Theorem | Lean lines (Loeffler–Stoll) | Est. HoTT complexity |
|---|---|---|
| definition | 200 | – |
| Analytic continuation | 3300 | – |
| Functional equation | 800 | – |
| Euler product | 200 | |
| non-vanishing on | 600 | |
| Dirichlet -functions | 1500 | |
| Dirichlet’s theorem | 800 | |
| Total | 7400 lines | – overhead |
Remark 40 (Caveat about line-count estimates). The right-hand column is highly speculative; we present it as a complexity factor rather than absolute counts. The factor reflects the rough overhead of HoTT-native analysis (no classical Mathlib measure theory, no built-in Lebesgue integration, manual constructive analysis) plus an honest correction for the immaturity of HoTT analysis libraries. Actual numbers will diverge from these estimates by easily as HoTT analysis libraries mature. The estimates are calibrated against for HoTT-native analysis benchmarks.
7 Six Sub-Problems for HoTT-Native
We propose six concrete sub-problems whose collective resolution would yield a HoTT-native proof of and a formal HoTT statement of the Riemann hypothesis.
Sub-problem 1: HoTT-native with full algebraic-closure axiom
Problem 41. Construct a HoTT type that is provably an algebraic closure of , with the universal property of 4, and verify that it admits the standard topology and metric structure.
Status: partially done in HoTT Book setting; algebraic closure not yet done.
Sub-problem 2: HoTT-native holomorphic functions
Problem 42. Define 7 formally; prove the Cauchy-Riemann equations, the Cauchy integral formula, and the identity theorem (19).
Status: possible by direct constructive analysis. Estimated effort: 5000 lines of Agda or Cubical Agda.
Sub-problem 3: HoTT-native Dirichlet series machinery
Problem 43. Formalize 9, prove 10, and construct the basic operations: shift, multiplication, logarithm, derivative.
Status: our companion Haskell code provides a finite-precision prototype; HoTT formalisation pending.
Sub-problem 4: HoTT-native analytic continuation
Problem 44. Formalize the analytic-continuation theorem: a holomorphic function on a connected open admitting a power-series at one boundary point extends holomorphically to a neighbourhood of that point. Apply to to obtain 20.
Status: this is the key technical bottleneck.
Sub-problem 5: HoTT-native functional equation
Problem 45. Prove the functional equation 22 in HoTT, using either (a) the Mellin-transform / theta-function method, or (b) Riemann’s contour integral method, or (c) a synthetic cohesive-HoTT proof using analytic-stack duality.
Sub-problem 6: HoTT-native formal RH statement
Problem 46. Write down a HoTT proposition such that inhabits if and only if every non-trivial zero of has real part . Verify this is the same statement as the classical RH, modulo the ambient model.
Status: doable now (25), modulo 41–44.
7.1 Composition diagram
7.2 Estimated effort and milestones
41: 1000 lines, 1–2 graduate-student-years.
42: 5000 lines, 2–3 g-s-y.
43: 1500 lines, 1 g-s-y.
44: 3000 lines, 2–3 g-s-y; key conceptual work.
45: 5000 lines, 2 g-s-y.
46: 200 lines, weeks. The hard part is the infrastructure, not the statement.
Total: 15000 lines, 8–12 graduate-student-years. Comparable to the total effort behind Loeffler–Stoll plus its Mathlib dependencies.
8 Open Conjectures: Riemann Hypothesis as a HoTT Statement
8.1 Modal-logical status of RH in HoTT
25 states , where and are propositions. By the propositional structure, is itself a proposition (in HoTT-Set sense, an -truncated type).
In particular, is either inhabited or empty; we cannot have “two non-equivalent proofs” of RH. This is in contrast to a structural statement like “the type of complex numbers admits an algebraic structure” which has no such uniqueness.
8.2 Decidability and constructivity
Remark 47. is not decidable in HoTT: we have no algorithm producing an inhabitant or refutation. This is consistent with constructivity, since is a -statement over an uncountable type.
Remark 48. Under classical logic (), is inhabited; this is a consequence of , not a constructive theorem.
8.3 Connections to the Langlands programme
The Riemann hypothesis is a special case of the Generalized Riemann Hypothesis (GRH): all non-trivial zeros of all -functions attached to primitive Dirichlet characters lie on . The Langlands programme conjecturally extends this to automorphic -functions .
Conjecture 49 (GRH for automorphic -functions, HoTT statement).
In a HoTT framework where automorphic representations are types in a suitable -topos, 49 is a -statement — syntactically clean, semantically deep.
8.4 The von Koch theorem in HoTT
Theorem 50 (von Koch, expected HoTT version). Conditional on 25, the prime-counting function satisfies
This connects the analytic statement to a discrete one. A HoTT-native proof would proceed via the explicit formula for in terms of zeros of , all of which lives downstream of 41–46.
8.5 What if RH is independent of HoTT-set theory?
A speculative possibility: might be independent of (some extension of) HoTT, similar to the way the continuum hypothesis is independent of ZFC. In that case, HoTT might admit two consistent extensions: and . This is purely speculative and reflects no current consensus; it is offered only as a contrast with the classical view that RH “simply has a truth value”.
8.6 Density theorems and zero-free regions
Classical analytic number theory has many results about the distribution of zeros of short of RH:
Hadamard / de la Vallée-Poussin (1896): on . Formalized in Lean by Loeffler–Stoll.
Vinogradov-Korobov: explicit zero-free region
Selberg’s density theorem: the proportion of zeros within distance of the critical line is .
Levinson–Conrey: at least of zeros are on the critical line.
Each of these is, in principle, a HoTT-native theorem once we have 41–45. In particular, the non-vanishing requires only the Euler product and basic inequalities — no analytic continuation. This is the natural second target after 26.
8.7 Effective vs. ineffective HoTT statements
A subtle point about HoTT: some statements about are naturally effective (algorithmic), while others are not.
Example 51 (Effective: on the line ). The map for large provides an -approximation to with explicit bounds. This is HoTT-native, computable, and compatible with Cauchy moduli.
Example 52 (Ineffective: in the critical strip). For , the Dirichlet series diverges. Computing requires the Riemann–Siegel formula or similar, which involves contour integration. HoTT-native version would require 44.
Example 53 (Ineffective: trivial zero locations). The trivial zeros at are deduced from the functional equation; their existence requires 45.
These distinctions matter for HoTT formalization: parts of the theory are algorithmic-friendly (Cubical Agda can compute them), other parts are not.
9 Discussion
9.1 Why is analytic NT specifically hard?
Algebraic objects (rings, modules, groups, schemes) are small: their data fit on a finite page or in a computer’s memory. Analytic objects (, , holomorphic functions, contour integrals) are large in two senses:
Type-theoretic size: is uncountable, so any property of is in some sense a -statement over an uncountable type.
Logical complexity: involves nested quantifiers over reals, limits of limits, integrals, and analytic continuations.
HoTT, like any type theory, is well-suited to data of small or medium complexity; encoding heavy analysis requires either substantial primitive infrastructure or a transport from a classical foundation.
9.2 Comparison: Lean Mathlib’s effectiveness
Lean Mathlib’s success at formalizing analytic NT (Loeffler–Stoll 2025) relies on:
Classical logic everywhere.
A large prebuilt library of measure theory, integration, and complex analysis.
Decidability assumptions where appropriate.
Set-theoretic ambient foundations (Lean 4 type theory is ZFC-equivalent in strength).
HoTT can match (1)–(3) at extra cost; (4) is a deeper foundational issue.
9.3 The role of cohesive / differential HoTT
Differential cohesive HoTT extends HoTT with shape, flat, and sharp modalities. In this setting, smooth / holomorphic / meromorphic become synthetic. Examples like show that synthetic differential geometry is viable in HoTT.
A natural research direction is to lift the Loeffler–Stoll work into differential cohesive HoTT, treating as a -modal type and as a synthetic meromorphic function. This is a substantial project but appears feasible.
9.4 Limitations of this paper
We do not give a working HoTT formalization; we give a research roadmap and partial Haskell prototypes.
We do not prove the conjectures of 21 or 22; we sketch proofs that depend on currently-unavailable HoTT-native infrastructure.
Our proposed bridge (33) between condensed mathematics and HoTT is open; we have not constructed the bridging -topos.
9.5 Future directions
Develop the cohesive-HoTT bridge for analytic continuation (44).
Translate Loeffler–Stoll Lean to HoTT-axiomatised classical as a first benchmark.
Use the synthesis from to attack 49 via geometric Langlands in -topoi.
Explore the analytic Langlands programme of EFK in HoTT.
9.6 Connection with directed type theory
A recent development is directed type theory (DTT) of Riehl, Shulman, Verity, North . DTT extends HoTT with a notion of directed morphism — paths that are not invertible. This gives a potential synthetic foundation for -categories.
Why is DTT relevant to analytic NT?
Automorphic representations are functors, not equivalences. DTT captures functorial structure natively.
Hecke operators on -functions act as endomorphisms, not automorphisms; DTT distinguishes these.
The Langlands functor is a functor between -categories of representations; DTT gives a type-theoretic home.
9.7 Connection with synthetic algebraic geometry
Synthetic algebraic geometry works inside HoTT internally to a Zariski (or étale) topos, and develops algebraic geometry without external schemes. The relevant facts:
Schemes become types satisfying a Zariski-locality condition.
Sheaf cohomology is internal cohomology.
Group schemes, including reductive groups for Langlands, become types in the internal language.
A natural research line: use synthetic AG plus cohesion to define analytic moduli stacks, and develop as an internal object.
9.8 The role of computer-checked proofs
A practical question: should we even attempt HoTT formalisation of analytic NT, given that classical Lean Mathlib is so much more advanced?
Three answers:
Foundational interest: HoTT and Lean differ at the foundation level. Univalence simplifies certain isomorphism / equivalence arguments. A HoTT formalisation would be qualitatively different.
Internal-language gain: working inside an -topos gives access to the topos’s internal logic. For instance, condensed mathematics has its own internal language (the Solid topos), distinct from classical set theory; HoTT might bridge these.
Educational value: a HoTT formalisation forces clarity about what data “really is”. The exercise of distinguishing the three candidate definitions and identifying their pairwise equivalences is foundationally illuminating.
10 Conclusion
We have formulated, with technical care, the principal open problem of our prior synthesis: HoTT-native analytic number theory. The Riemann zeta function does not yet exist as a HoTT-native object; the statement is not yet a HoTT-native proposition. Closing this gap requires the prerequisite chain of 2, the candidate definitions of 3, the -topos perspective of 4–5, the comparison with Loeffler–Stoll Lean of 6, and the six concrete sub-problems of 7.
We do not solve the principal open problem. We formulate it precisely, show it is not vacuous, and provide enough structure for future workers to take concrete steps. The roadmap of 7 estimates 8–12 graduate-student-years to deliver a HoTT-native analogue of Loeffler–Stoll 2025. This is significant, but tractable; the much harder Riemann hypothesis itself remains untouched.
The dialogue between HoTT and analytic number theory is just beginning. Geometric Langlands has been proven (2024) using -categorical machinery that overlaps with HoTT’s intended models. Condensed mathematics provides a uniform setting for analytic objects. These two streams will, we conjecture, converge on a HoTT-native analytic number theory in the coming decade. This paper aims to map the territory.
11 Appendix: HoTT axioms for analytic NT
For reference, we collect the HoTT axioms / definitions that any HoTT-native analytic NT should respect. We work in MLTT with one universe and the following axioms.
A.1 Univalence
This is the standard univalence axiom of . It implies function extensionality and propositional extensionality.
A.2 Higher inductive types
We assume HITs of the form needed in this paper:
Cauchy reals as a HIIT (1).
Set quotients for relations on .
Propositional truncation .
-truncations .
A.3 Cohesion (optional)
For synthetic-analytic statements, cohesive HoTT adds:
Shape modality (left adjoint to ).
Flat modality (right adjoint to ).
Sharp modality .
These satisfy the cohesive triple-adjunction and natural-transformation laws between them.
A.4 Choice (optional, classical)
For some classical analytic-NT results we may need:
Equivalent to set-theoretic AC for sets. Required for classical existence of algebraic closures, classical functional equation proofs.
A.5 Excluded middle (optional, classical)
Required for the statement of as “there is a fact of the matter”.
12 Appendix: Companion code overview
The companion repository at src/langlands-analytic-number-theory/ contains:
Main.hs— driver illustrating partial sums and Dirichlet series operations.Zeta.hs— partial zeta computations with explicit truncation.Dirichlet.hs— Dirichlet series machinery, Dirichlet convolution, multiplicative functions.Properties.hs— QuickCheck properties for the algebraic laws on Dirichlet series.Proofs.hs— equational proofs of the Euler product identity, modulo a finite-truncation axiom.
The Lean component at lean/langlands-analytic-number-theory/ contains:
Zeta.lean— a Lean 4 / Mathlib sketch indexed against Loeffler–Stoll, marking which lemmas would translate cleanly to HoTT.
These are illustrative prototypes, not formal verifications. Their purpose is to make the prerequisite chain (2) and the candidate definitions (3) executable, so that future HoTT-native work has computational benchmarks.
13 Appendix: Worked sub-roadmap for sub-problem 4
We sketch a plausible HoTT proof strategy for analytic continuation of , addressing 44 in more detail.
C.1 The Hurwitz integral representation
Classical analytic continuation of via the Hurwitz integral representation : The integrand is integrable for near and is exponentially small at . To analytically continue, one deforms the contour: where is the Hankel contour: from along , around counterclockwise, back to .
C.2 What HoTT needs
To carry out the contour-integral proof in HoTT we need:
HoTT-native function: extended via the functional equation to all .
HoTT-native contour integration: a path and an integral , satisfying linearity, change-of-variables, and Cauchy’s theorem.
HoTT-native version of Cauchy’s theorem: holomorphic functions integrate to zero around closed contours.
HoTT-native deformation lemma: integral over homotopic contours agree.
HoTT-native passage from real integral to contour integral (Mellin-Barnes type).
C.3 Estimated effort
Each item above is a self-contained HoTT formalisation problem of moderate size. Cumulatively, this is the heart of 44, and we estimate it at lines of Cubical Agda.
C.4 Alternative strategies
Riemann’s theta-function method: via Mellin transform of . Requires the modular transformation .
Hardy’s symmetric form: , satisfying . Cleaner but uses the same infrastructure.
Cohesive synthetic approach: Inside differential cohesive HoTT , define via the synthetic functional integral. Speculative.
14 Appendix: A glossary of HoTT-native synonyms
For readers more familiar with classical analytic NT than with HoTT, we provide a short translation glossary:
| Classical | HoTT-native |
|---|---|
| (Cauchy reals) | |
| (univalent algebraic closure of ) | |
| holomorphic | admits constructive Newton quotient |
| “unique up to isomorphism” | propositionally equal under univalence |
| “the algebraic closure” | “a univalent algebraic closure” |
| ZFC’s choice | propositional choice axiom (optional) |
| LEM | (optional) |
| quotient set | set quotient via HIT |
| limit of sequences | limit constructor of HIIT |
| “open subset” | “cohesive open” or “(-1)-truncated open” |
| “connected” | propositional truncation of is contractible |
| sheaf cohomology | internal cohomology of cohesive HoTT |
| -category | type with Segal condition |
| -topos | univalent universe in cohesive HoTT |
| “functor” | morphism in directed type theory |
| “natural transformation” | 2-cell in directed type theory |
| condensed set | sheaf on profinite types in cohesive HoTT (open) |
| analytic stack | 6-functor formalism in cohesive HoTT (open) |
| classically | no HoTT-native definition yet |
The bottom row is the principal open problem of this paper.
99
Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. Institute for Advanced Study, 2013. https://homotopytypetheory.org/book
M. Long and the YonedaAI Collaboration. Synthesis: Six Open Problems at the Interface of HoTT and Twenty-First Century Mathematics. YonedaAI Research Collective, 2026.
V. Voevodsky. Univalent foundations of mathematics. ICM Talk, 2014.
A. Booij. Analysis in univalent type theory. PhD thesis, University of Birmingham, 2020.
R. Mines, F. Richman, W. Ruitenburg. A Course in Constructive Algebra. Springer Universitext, 1988.
M. Shulman. Brouwer’s fixed-point theorem in real-cohesive homotopy type theory. Mathematical Structures in Computer Science, 28:856–941, 2018.
M. Shulman. All -toposes have strict univalent universes. arXiv:1904.07004, 2019.
J. Lurie. Higher Topos Theory. Annals of Mathematics Studies 170, Princeton University Press, 2009.
J. Lurie. Higher Algebra. Manuscript, 2017. https://www.math.ias.edu/~lurie/papers/HA.pdf
D. Gaitsgory et al. Proof of the geometric Langlands conjecture I–V. arXiv:2405.03599 and sequels, 2024. https://www.mpim-bonn.mpg.de/gaitsgde/GLC/
A. Beilinson, V. Drinfeld. Chiral Algebras. American Mathematical Society Colloquium Publications 51, 2004.
D. Loeffler, M. Stoll. Formalizing zeta and L-functions in Lean. arXiv:2503.00959. Annals of Formalized Mathematics, vol. 1, 2025.
P. Scholze. Lectures on condensed mathematics. Lecture notes, University of Bonn, 2019. https://www.math.uni-bonn.de/people/scholze/Condensed.pdf
D. Clausen, P. Scholze. Analytic stacks. Lecture series, MPIM Bonn, 2023–2024.
D. Clausen, P. Scholze. Six-functor formalisms in analytic geometry. arXiv:2507.08566, 2025.
D. Clausen, P. Scholze. Analytic stacks (continued). arXiv:2512.14612, 2025.
D. Clausen, P. Scholze. Condensed mathematics and complex geometry. https://people.mpim-bonn.mpg.de/scholze/Complex.pdf, 2022.
P. Etingof, E. Frenkel, D. Kazhdan. An analytic version of the Langlands correspondence over the function field. arXiv:2103.01509 and follow-ups, 2021–2025.
D.-C. Cisinski et al. Type-theoretic foundations of -categories. Manuscript / arXiv preprints, 2025.
R. P. Langlands. Problems in the theory of automorphic forms. Lecture Notes in Mathematics 170, Springer, 1970.
S. Gelbart. An elementary introduction to the Langlands program. Bull. AMS, 10(2):177–219, 1984.
U. Schreiber. Differential cohomology in a cohesive infinity-topos. arXiv:1310.7930, 2013.
F. Wellen. Cartan geometry in modal homotopy type theory. PhD thesis, Karlsruhe Institute of Technology, 2018.
U. Schreiber, M. Shulman. Quantum gauge field theory in cohesive homotopy type theory. EPTCS 158, 2014.
L. Euler. Variae observationes circa series infinitas. Commentarii academiae scientiarum Petropolitanae 9, 1737.
B. Riemann. Über die Anzahl der Primzahlen unter einer gegebenen Größe. Monatsberichte der Königlich Preußischen Akademie der Wissenschaften zu Berlin, 1859.
A. Kapustin, E. Witten. Electric-magnetic duality and the geometric Langlands program. Communications in Number Theory and Physics, 1(1):1–236, 2007.
E. Riehl, D. Verity. Elements of -Category Theory. Cambridge Studies in Advanced Mathematics 194, Cambridge University Press, 2022.
F. Cherubini, E. Rijke et al. Synthetic algebraic geometry in homotopy type theory. Manuscript, https://github.com/felixwellen/synthetic-zariski, 2024.
A. Hurwitz. Einige Eigenschaften der Dirichlet’schen Funktionen . Zeitschrift für Mathematik und Physik, 27:86–101, 1882.