Functorial Type Theory: the endash Proof Assistant for ω-Categories with a Certified Computer Algebra System

Contributed by The endash contributors ↗

Version 1 / Dec 03, 2026 / CC BY 4.0

Abstract

Dependent type theory makes variable substitution computational; category theory makes covariance, contravariance, naturality, and transport along non-invertible arrows explicit. \textbf{Functorial Type Theory}~\cite{endash-monographs2026} unifies both disciplines inside a single foundational language in which variables range over objects and morphisms of categories, dependent families carry functorial transport, and naturality is an internal operation that computes by cut elimination~\cite{dosen1999} rather than an external proof obligation. Earlier logical-framework realizations (\code{emdash} v3.2 in Lambdapi) demonstrated that synthetic arrow induction, directed higher inductive types, and sieve-based geometry compute effectively, but paid two structural costs: reliance on an external logical-framework rewrite engine (\code{1,156} rewrite rules and \code{210} unification hints) and a ∼3,000{\sim}3{,}000-line profunctor/\code{Q}-valued identity ladder mediating dependent hom-categories and iterated dualities. We introduce \textbf{\code{endash}}, a standalone direct proof-assistant kernel, Lean-compatible \code{.en} surface elaborator, and LCF-certified computer-algebra platform that eliminates both the external logical-framework detour and the \code{Q}-valued profunctor ladder. Its \code{17,430}-line TypeScript Trusted Computing Base implements a bidirectional \textbf{Normalization-by-Evaluation (NbE)} checker governed by six structural invariants: (1)~stratification between strict ω\omega-categories $\StrictCat(u)$ and Gray meta-categories $\GrayCat(u)$, preventing Godement interchange collapse on lax transformations; (2)~canonical eventually-constant bitstream dualities $\DGrp \cong \mathbb{Z}_2^\omega$ represented without normalization passes as \code{\{ diff: bigint, tail: boolean \}} and closed in O(1)O(1) bitwise operations under hom-shifting and dependent-family base shifting; (3)~bunched modal contexts separating Cartesian product bunches (\code{,}) from ordered Gray telescopes (\code{;}); (4)~generic functorial neutral variables x:fA\mathbf{x} :^f A deciding ω\omega-functor conversion in O(1)O(1) steps without collapsing terminal-object categories; (5)~substitution-stable Kosta Do\v{s}en morphism spines paired with \code{Q}-free coinductive transformations $\Transf^\pm$ and 2-periodic polarized Grothendieck constructions Σ±(K,E)\Sigma^\pm(K, E) in which open-family associativity and directed Yoneda β\beta-laws hold judgmentally by \code{refl}; and (6)~topological-height \textbf{Glued NbE} (\code{v-glued})~\cite{coquand-kovacs2019} with speculative O(1)O(1) same-head congruence, height-ordered fallback forcing, lazy memoized Σ\Sigma-neutrals, and native \code{BigInt} numerals. Outside this small kernel, an untrusted \code{.en} elaborator and \code{18} exact \code{BigInt} computer-algebra engines synthesize unimodular Smith Normal Form~\cite{smith1861}, Gr\"{o}bner, projective-resolution, Schreier--Sims, Todd--Coxeter, Frobenius-trace, and finite Fourier--Gauss witnesses, reifying every certificate into explicit Core proof terms checked with zero axioms. Together, these components verify \textbf{\code{7,721} axiom-free declarations} across \code{80} modules and \code{10} showcases, supporting a three-volume machine-checked monograph series spanning univalent foundations~\cite{hott2013}, Grothendieck sheafification~\cite{ega-sga}, Lurie-style synthetic \emph{Higher Algebra}~\cite{lurie-ha} (including the Abelian Heart Theorem~\cite{bbd1982}), constructive scheme theory ($\Pic(\mathbb{P}^1_R) \cong \mathbb{Z}$, Grothendieck--Riemann--Roch), the sharp genus-1 Hasse curve bound (t2≤4qt^2 \le 4q), the short sign-only Deligne Frobenius Weil bound~\cite{deligne1974} (\code{arXiv:2611.00789v1}) modulo isolated pre-1993 \'{e}tale/Weak-Lefschetz hypotheses, choice-free spherical Behrend sets~\cite{behrend1946}, and a four-status epistemic audit of the constructive Dirichlet GRH spine~\cite{alpoge2026,sernau2026}.

References

  1. Alpoge, Levent. Preprint on Multi-Scale Arithmetic Windows and LL-Function Zero-Free Reductions. 2026. Analyzed via the four-status epistemic boundary in Volume II, Appendix C
  2. Behrend, Felix A. On Sets of Integers Which Contain No Three Terms in Arithmetical Progression. Proceedings of the National Academy of Sciences, vol. 32, no. 12, pp. 331–332. 1946
  3. Beilinson, Alexander; Bernstein, Joseph; Deligne, Pierre. Faisceaux pervers. Société Mathématique de France, vol. 100. 1982
  4. Bezem, Marc; Buchholtz, Ulrik; Cagne, Pierre; Dundas, Bjørn Ian; Grayson, Daniel R. Symmetry. 2025. Ongoing open-access book
  5. Bishop, Errett. Foundations of Constructive Analysis. McGraw-Hill. 1967
  6. Cisinski, Denis-Charles. Higher Categories and Homotopical Algebra and Synthetic Category Theory. Cambridge University Press. 2019. Monograph and lecture notes, 2019–2024
  7. Coquand, Thierry; Kovacs, András. Glued Normalization by Evaluation for Dependent Type Theory. 2019. Technical notes on glued conversion with unfolding heights, 2019–2023
  8. Deligne, Pierre. La conjecture de Weil : I & II. Publications Mathématiques de l'IHÉS, vol. 43, pp. 273–307. 1974. Part II in Vol. 52, pp. 137–252 (1980); see also the 2026 short sign-only Frobenius eigenvalue reduction (\textttarXiv:2611.00789v1)
  9. Došen, Kosta. Cut Elimination in Categories. Kluwer Academic Publishers, vol. 6. 1999DOI
  10. Grothendieck, Alexander; Dieudonné, Jean. Éléments de géométrie algébrique (EGA I–IV) and Séminaire de Géométrie Algébrique du Bois Marie (SGA 1–7). IHÉS and Springer. 1960. Published 1960–1973
Show all 19 referencesShow fewer references
  1. Loday, Jean-Louis. Cyclic Homology. Springer, vol. 301. 1998
  2. Lurie, Jacob. Higher Algebra (2017) and Kerodon. 2017. https://kerodon.netlink
  3. Riehl, Emily; Shulman, Michael. A Type Theory for Synthetic ∞\infty-Categories. Higher Structures, vol. 1, no. 1, pp. 147–224. 2017
  4. Sernau, Lukas. Constructive/Lean Formalization Components for Dirichlet GRH Correlation, RootLemma, and Twisted Lattices (\textttlsernau/grh-lean). 2026
  5. Smith, Henry J. S. On Systems of Linear Indeterminate Equations and Congruences. Philosophical Transactions of the Royal Society of London, vol. 151, pp. 293–326. 1861
  6. The emdash; endash contributors. Functorial Type Theory: Univalent Foundations for Mathematics (Volume 0, DOI: \texttt10.5281/zenodo.21544186 (https://doi.org/10.5281/zenodo.21544186)), Volume I: Synthetic & Computational Higher Algebra (DOI: \texttt10.5281/zenodo.24733465 (https://doi.org/10.5281/zenodo.24733465)), and Volume II: Synthetic & Computational Algebraic Geometry (DOI: \texttt10.5281/zenodo.24733699 (https://doi.org/10.5281/zenodo.24733699)). 2026. https://github.com/hotdocx/endash ⋅\cdot https://github.com/hotdocx/emdashlink
  7. The Stacks Project Authors. The Stacks Project. 2026. https://stacks.math.columbia.edulink
  8. The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. Institute for Advanced Study. 2013
  9. Wolsey, Laurence A. An Analysis of the Greedy Algorithm for the Submodular Set Covering Problem. Combinatorica, vol. 2, no. 4, pp. 385–393. 1982

Version history

  1. v1 · 14 pagesSubmitted by Christopher MaryInitial depositCurrentDec 03, 2026