\documentclass[11pt,a4paper]{article} \usepackage{iftex} \ifPDFTeX \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \fi \usepackage[a4paper,margin=0.95in,headheight=14pt]{geometry} \usepackage{newtxtext} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage[varvw]{newtxmath} \ifPDFTeX \usepackage{microtype} \else \usepackage[protrusion=true,expansion=false]{microtype} \fi \usepackage{booktabs,tabularx,array} \usepackage{enumitem} \usepackage{xcolor} \usepackage{fancyhdr} \usepackage{alltt} \usepackage[colorlinks=true,linkcolor=MidnightBlue,citecolor=TealBlue,urlcolor=MidnightBlue,pdfusetitle]{hyperref} % Custom colors \definecolor{MidnightBlue}{HTML}{1E3A8A} \definecolor{TealBlue}{HTML}{0F766E} \definecolor{RustAccent}{HTML}{9A3412} \definecolor{CalloutBg}{HTML}{F8FAFC} \definecolor{CalloutBorder}{HTML}{CBD5E1} \definecolor{CodeBg}{HTML}{F8FAFC} \definecolor{SlateMuted}{HTML}{475569} \urlstyle{tt} % Breakable inline code & repository link helpers \newcommand{\us}{\textunderscore\allowbreak} \newcommand{\slsh}{/\allowbreak} \newcommand{\dt}{.\allowbreak} \newcommand{\code}[1]{\texttt{#1}} \newcommand{\ghbase}{https://github.com/hotdocx/endash/blob/main} \newcommand{\ghfile}[2]{\href{\ghbase/#1}{\texttt{#2}}} \newcommand{\ghdoc}[2]{\href{\ghbase/#1}{#2}} % Mathematical macros \newcommand{\Grpd}{\mathsf{Grpd}} \newcommand{\StrictCat}{\mathsf{StrictCat}} \newcommand{\GrayCat}{\mathsf{GrayCat}} \newcommand{\Cat}{\mathsf{Cat}} \newcommand{\Cart}{\mathsf{Cart}} \newcommand{\Functor}{\mathsf{Functor}} \newcommand{\Transf}{\mathsf{Transf}} \newcommand{\Catd}{\mathsf{Catd}} \newcommand{\Functord}{\mathsf{Functord}} \newcommand{\Hom}{\mathrm{Hom}} \newcommand{\Obj}{\mathrm{Obj}} \newcommand{\Dom}{\mathrm{Dom}} \newcommand{\Path}{\mathsf{Path}} \newcommand{\Groupoidify}{\mathsf{Groupoidify}} \newcommand{\WalkingEnd}{\mathsf{WalkingEnd}} \newcommand{\WalkingArrow}{\mathsf{WalkingArrow}} \newcommand{\Sheafify}{\mathsf{Sheafify}} \newcommand{\Empty}{\mathsf{Empty}} \newcommand{\Unit}{\mathsf{Unit}} \newcommand{\Nat}{\mathsf{Nat}} \newcommand{\Bool}{\mathsf{Bool}} \newcommand{\SumT}{\mathsf{Sum}} \newcommand{\ListT}{\mathsf{List}} \newcommand{\ListCat}{\mathsf{ListCat}} \newcommand{\Circle}{\mathsf{Circle}} \newcommand{\Pushout}{\mathsf{Pushout}} \newcommand{\Trunc}{\mathsf{Trunc}} \newcommand{\Disc}{\mathsf{Disc}} \newcommand{\Const}{\mathsf{Const}} \newcommand{\Psh}{\mathsf{Psh}} \newcommand{\Sh}{\mathsf{Sh}} \newcommand{\Sp}{\mathsf{Sp}} \newcommand{\Set}{\mathsf{Set}} \newcommand{\DGrp}{\mathcal{D}} \newcommand{\IsIso}{\mathrm{IsIso}} \newcommand{\PathOut}{\mathrm{PathOut}} \newcommand{\Rep}{\mathrm{Rep}} \newcommand{\Pic}{\mathrm{Pic}} \newcommand{\Spec}{\mathrm{Spec}} \newcommand{\Proj}{\mathrm{Proj}} \newcommand{\Ext}{\mathrm{Ext}} \newcommand{\Tor}{\mathrm{Tor}} \newcommand{\Mod}{\mathrm{Mod}} \newcommand{\Bl}{\mathrm{Bl}} \newcommand{\rk}{\mathrm{rk}} \newcommand{\sgn}{\mathrm{sgn}} \newcommand{\succfn}{\mathrm{succ}} \newcommand{\id}{\mathrm{id}} \newcommand{\op}{\mathrm{op}} \newcommand{\lax}{\mathrm{lax}} \newcommand{\cart}{\mathrm{cart}} % Framed callout & code block environments (zero fragile tikz/mdframed dependencies) \newsavebox{\calloutbox} \newenvironment{statusbox}{% \par\medskip\noindent \begin{lrbox}{\calloutbox}% \begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule\relax}% \small\setlength{\parskip}{4pt}% }{% \end{minipage}% \end{lrbox}% \fcolorbox{CalloutBorder}{CalloutBg}{\usebox{\calloutbox}}% \par\medskip } \newsavebox{\codeframebox} \newenvironment{codeblock}{% \par\smallskip\noindent \begin{lrbox}{\codeframebox}% \begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule\relax}% \footnotesize\ttfamily }{% \end{minipage}% \end{lrbox}% \fcolorbox{CalloutBorder}{CodeBg}{\usebox{\codeframebox}}% \par\smallskip } % Running headers \pagestyle{fancy} \fancyhf{} \fancyhead[L]{\footnotesize\color{SlateMuted}\textit{Functorial Type Theory Without the Profunctor Ladder (\texttt{endash})}} \fancyhead[R]{\footnotesize\color{SlateMuted}\thepage} \renewcommand{\headrulewidth}{0.3pt} % List spacing & line-breaking tolerance for technical identifier-heavy prose \setlength{\emergencystretch}{2.5em} \setlist[itemize]{topsep=4pt,itemsep=2.5pt,parsep=1pt,leftmargin=1.6em} \setlist[enumerate]{topsep=4pt,itemsep=3pt,parsep=1pt,leftmargin=1.75em} \hypersetup{ pdftitle={Functorial Type Theory Without the Profunctor Ladder: Direct Glued Normalization-by-Evaluation, Certified Algebra, and Machine-Checked Geometry in endash}, pdfauthor={The emdash and endash contributors}, pdfsubject={Standalone Research Article on Functorial Type Theory and the endash Proof Assistant}, pdfkeywords={functorial type theory, endash, omega-categories, Gray categories, Normalization by Evaluation, glued evaluation, higher algebra, algebraic geometry} } \title{\textbf{Functorial Type Theory:\\[3pt] \large the \texttt{endash} Proof Assistant for omega-Categories,\\ with a Certified Computer Algebra System}} \author{\textbf{The emdash and endash contributors}\\[4pt] \small \href{https://github.com/hotdocx/endash}{\texttt{https://github.com/hotdocx/endash}} $\;\cdot\;$ \href{https://hotdocx.github.io/endash/}{\texttt{https://hotdocx.github.io/endash/}}} \date{\small Research Article $\cdot$ Edition 1.0.0 (December 2026)} \begin{document} \maketitle \thispagestyle{plain} \begin{statusbox} \textbf{Research-article status.} This paper presents the foundational type theory, direct normalization-by-evaluation kernel, LCF-certified computer-algebra bridge, and three-volume machine-checked formalization of \textbf{\code{endash}} (\code{v0.1.2}; extended in companion release \code{v0.1.3} with untruncated coinductive higher $\omega$-transfors across all dimensions $k \ge 2$ in an \code{18,705~LOC} TCB and external formal presentation \ghfile{FORMAL_TYPE_THEORY.md}{FORMAL\us TYPE\us THEORY.md}). Every formal theorem cited as checked in this article is verified with \textbf{zero postulated axioms} (\code{printAxioms === []}) across \code{7,721} declarations by the standalone \code{endash} kernel (\code{17,430~LOC} TypeScript Trusted Computing Base at the \code{v0.1.2} benchmark snapshot). Global metatheorems for the combined calculus (external normalization, confluence, and categorical model completeness) and explicit classical/analytic hypotheses in the arithmetic-geometry spine remain separate research boundaries documented in Sections~\ref{sec:monographs} and~\ref{sec:boundaries}. \medskip\noindent \textbf{Companion monographs \& specifications:}\par\vspace{2pt} \begin{itemize}[leftmargin=1.35em,topsep=1pt,itemsep=1.5pt] \item \textbf{Volume~0} --- \emph{Functorial Type Theory: Univalent Foundations for Mathematics} (\code{1.3.0-endash}): \href{https://doi.org/10.5281/zenodo.21544186}{DOI: \texttt{10.5281/zenodo.21544186}} $\cdot$ \ghdoc{books/pdf/endash-vol0-foundations.pdf}{GitHub PDF} \item \textbf{Volume~I} --- \emph{Functorial Type Theory, Volume~I: Synthetic \& Computational Higher Algebra} (\code{1.1.0-endash}): \href{https://doi.org/10.5281/zenodo.24733465}{DOI: \texttt{10.5281/zenodo.24733465}} $\cdot$ \ghdoc{books/pdf/endash-vol1-higher-algebra.pdf}{GitHub PDF} \item \textbf{Volume~II} --- \emph{Functorial Type Theory, Volume~II: Synthetic \& Computational Algebraic Geometry} (\code{0.8.0-endash}): \href{https://doi.org/10.5281/zenodo.24733699}{DOI: \texttt{10.5281/zenodo.24733699}} $\cdot$ \ghdoc{books/pdf/endash-vol2-algebraic-geometry.pdf}{GitHub PDF} \item \textbf{Companion references:} \ghdoc{OVERVIEW_ARTICLE.md}{Executive Overview Outline} (\ghdoc{books/pdf/endash-overview-article.pdf}{PDF}) $\cdot$ Formal specifications: \ghfile{FORMAL_TYPE_THEORY.md}{FORMAL\us TYPE\us THEORY.md} and \ghfile{SPECIFICATION.md}{SPECIFICATION.md} $\cdot$ Language \& tooling guide: \ghfile{LANGUAGE_AND_TOOLING_GUIDE.md}{LANGUAGE\us AND\us TOOLING\us GUIDE.md} \item \textbf{Public repositories:} \href{https://github.com/hotdocx/endash}{\texttt{github.com/hotdocx/endash}} (and \code{endash/} in \href{https://github.com/hotdocx/emdash}{\texttt{github.com/hotdocx/emdash}}) \end{itemize} \end{statusbox} \begin{abstract} \noindent 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 ${\sim}3{,}000$-line profunctor/\code{Q}-valued identity ladder mediating dependent hom-categories and iterated dualities. \medskip\noindent 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)$ 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 $\mathbf{x} :^f A$ deciding $\omega$-functor conversion in $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 $\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)$ same-head congruence, height-ordered fallback forcing, lazy memoized $\Sigma$-neutrals, and native \code{BigInt} numerals. \medskip\noindent 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 ($t^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}. \end{abstract} % ============================================================================ \section{Introduction: Collapsing the Logical-Framework and Profunctor Detour} \label{sec:intro} % ============================================================================ Modern mechanized mathematics faces a persistent tension between \emph{computational canonicity} and \emph{categorical expressivity}. When formalizing homological algebra, homotopical algebra, or algebraic geometry in a proof assistant, three foundational architectures have historically competed: \begin{enumerate} \item \textbf{Analytic Set- or Type-Theoretic Encodings.} Systems built over classical set theory or intensional type theory with classical axioms (such as Lean~4's Mathlib) encode categories, functors, sheaves, and $(\infty,1)$-categories (e.g.\ as quasi-categories $X : \Delta^{\op} \to \Set$~\cite{cisinski2019,lurie-ha}) on top of point-set data. This strategy scales to vast libraries, but universal constructions rarely compute definitionally, coherence obligations proliferate with categorical dimension, and routine reliance on \code{Classical\dt choice}, \code{propext}, and \code{Quot\dt sound} severs proof terms from executable computation. \item \textbf{Purely Groupoidal Synthetic Foundations.} Homotopy Type Theory and Univalent Foundations (HoTT/UF)~\cite{hott2013} internalize $\infty$-groupoids so that transport, path induction ($J$), higher inductive types (HITs), and Voevodsky's univalence axiom compute directly on invertible paths (as realized in Cubical Agda and Arend). However, every morphism in a pure groupoidal universe is invertible. Directed phenomena---non-invertible arrows, adjunctions, lax natural transformations, Grothendieck fibrations with non-invertible Cartesian lifts, and non-split exact sequences---must once again be encoded analytically or via auxiliary simplicial layers (\code{rzk}~\cite{riehl-shulman2017}). \item \textbf{Rewrite-Rule Logical-Framework Encodings of Functorial Type Theory.} The \code{emdash} research programme proposed a synthetic directed calculus in which categories, functors, transformations, dependent families, total categories, and section categories are native types whose functorial and natural actions normalize by Kosta Do\v{s}en-style cut elimination~\cite{dosen1999}. Its v3.2 Lambdapi specification validated the mathematics across ${\sim}27{,}100$ lines of formal declarations, \code{1,156} rewrite rules, and \code{210} unification hints. Yet hosting an inner directed calculus inside an external $\lambda\Pi$-modulo-rewriting framework incurred two severe bottlenecks: \begin{itemize} \item First, dependent hom-categories and displayed transformations were mediated by an intricate ${\sim}3{,}000$-line profunctor/\code{Q}-equipment ladder (\code{UProf}, \code{homd\us id\us int}, and explicit shifted \code{TotalOp} wrappers) whose rewrite rules created high-degree critical-pair overlaps and multi-minute cold checking budgets. \item Second, rewriting operated syntactically rather than semantically, requiring manual orientation of associativity, functor composition, and duality involutions across hundreds of symbol heads. \end{itemize} \end{enumerate} \subsection{Contributions of \texttt{endash}} \label{sec:contributions} This paper asks whether Functorial Type Theory can stand on its own feet as a \textbf{small, self-contained, direct Normalization-by-Evaluation (NbE) kernel}---comparable in architectural simplicity to Agda or Lean's kernel, while retaining both univalent $\infty$-groupoids and directed $(\infty,\omega)$/Gray-categorical computation with \textbf{zero postulated axioms}. We answer this question affirmatively in \textbf{\code{endash}}. Specifically: \begin{enumerate} \item \textbf{Four Subtle Inconsistency \& Collapse Traps Identified and Blocked (\S\ref{sec:calculus}).} A naive direct NbE implementation of functorial type theory collapses or loops on four classical pitfalls: (i)~Godement middle-four interchange turning lax 2-categories into commutative groupoids; (ii)~opposite-duality drift between 1-cell reversal $T$ and 2-cell reversal $C_2$ under dependent family shifting; (iii)~terminal-object $\eta$-conversion identifying every endofunctor of a one-object category (such as the walking endomorphism $\WalkingEnd$) with the constant functor; and (iv)~diagonal functorial variable substitution into mixed-variance positions $\Hom_A(x, x)$. We show how six compact kernel invariants eliminate all four traps structurally. \item \textbf{A \code{Q}-Free Polarized Dependent Calculus (\S\ref{sec:spines}--\S\ref{sec:grothendieck}).} We replace the entire ${\sim}3{,}000$-line profunctor/\code{Q}-ladder with coinductive lax/oplax transformations $\Transf^\pm$ obeying a strict Leibniz spine law together with a \textbf{2-periodic polarized Grothendieck construction $\Sigma^\pm(K, E)$}. Under this presentation, both open-family $\Sigma^\pm$ associativity and directed Yoneda (\code{PathOut}) induction $\beta$-rules hold \textbf{judgmentally by \code{refl}}. \item \textbf{Topological-Height Glued NbE at 7,700-Declaration Scale (\S\ref{sec:glued-nbe}).} Scaling zero-axiom constructive algebra and real analysis (Cauchy reals~\cite{bishop1967}, rational Taylor series, and 20-field algebraic structures) inside an intensional kernel without \code{Classical\dt choice} stresses naive NbE unfolding. Assigning each global definition its topological dependency height $h(d)$ and evaluating definitions to lazy glued nodes (\code{v-glued})~\cite{coquand-kovacs2019} with $O(1)$ speculative same-head congruence and height-ordered fallback forcing yields a \textbf{$10.4\times$ cold build speedup}, a \textbf{$14.3\times$ \code{.ensnap} re-verification speedup}, and a \textbf{$2.42\times$ shared-DAG snapshot compaction} while preserving 100\% definitional completeness (\code{0} axioms, \code{+298~LOC} TCB delta). \item \textbf{Worked Synthetic Directed, Groupoidal, and Geometric Bridges (\S\ref{sec:worked}).} We walk through three machine-checked pillars side-by-side: the directed equivalence $\Hom_{\WalkingEnd}(\mathsf{base}, \mathsf{base}) \simeq \mathbb{N}$ (with $\neg\IsIso(\mathsf{loop})$), the groupoidal equivalence $\Omega(S^1) \simeq \mathbb{Z}$ linked to $\WalkingEnd$ via the universal groupoidification adjunction $\Groupoidify \dashv \Path$, and the Yoneda-reindexed \code{Sheafify} higher inductive type proving Grothendieck's Locality Theorem and $\Gamma(\mathbb{P}^1_R, \mathcal{O}) \simeq R \not\simeq \mathbb{F}_2[t]$ with zero axioms. \item \textbf{LCF-Certified Proof--CAS Synthesis \& Three-Volume Formalization (\S\ref{sec:cas}--\S\ref{sec:monographs}).} Eighteen untrusted \code{BigInt} computer-algebra modules synthesize witnesses outside the TCB and reify them into kernel-checked certificates (\code{by cas\us snf}, \code{by cas\us spectral\us seq}, \code{by cas\us group}, \code{by cas\us hilbert}, \code{by cas\us derham}, \code{by cas\us lefschetz}, \code{by cas\us theta}, \code{by cas\us smith}, \code{by cas\us gauss}, etc.), culminating in \code{7,721} \code{0}-axiom declarations across Volumes~0, I, and~II---from Lurie's Abelian Heart Theorem (\code{HA~1.2.1.11}~\cite{bbd1982,lurie-ha}) and Grothendieck--Riemann--Roch on $\mathbb{P}^1$~\cite{ega-sga} to the sharp genus-1 Hasse bound ($t^2 \le 4q$), the \code{2611.00789v1} sign-only Deligne Frobenius Weil bound~\cite{deligne1974} modulo pre-1993 geometry, spherical Behrend sets~\cite{behrend1946}, and a machine-enforced four-status epistemic taxonomy of the constructive Dirichlet GRH spine~\cite{alpoge2026,sernau2026}. \end{enumerate} % ============================================================================ \section{The Six-Safeguard Direct Functorial Calculus} \label{sec:calculus} % ============================================================================ The trusted core of \code{endash} resides in eight TypeScript modules (\code{duality.ts}, \code{ast.ts}, \code{value.ts}, \code{context.ts}, \code{kernel\us ops.ts}, \code{stdlib\us types.ts}, \code{eval.ts}, \code{check.ts}) totaling \code{17,430~LOC} (\code{18,705~LOC} in \code{v0.1.3}) with zero external runtime dependencies, zero metavariables, and zero unification hints. Every term checked by \code{checkTerm} or \code{inferTerm} is fully explicit. We present its core judgments and the six invariants that keep normalization finite, confluent on its structural profiles, and non-collapsing. \subsection{Universe Stratification: $\Grpd(u)$, $\StrictCat(u)$, and $\GrayCat(u)$} \label{sec:universes} For every cumulative predicative level $u \in \mathbb{N}$ ($u \le u + 1$), \code{endash} provides three universe sorts: \[ \Grpd(u) : \Grpd(u + 1), \qquad \StrictCat(u) \le \GrayCat(u). \] \begin{itemize} \item \textbf{$\Grpd(u)$} classifies intensional Martin-L\"{o}f types / $\infty$-groupoids: $\Empty$, $\Unit$ (with judgmental $\eta$), $\Nat$ (with large elimination into $\Grpd(w)$), $\Bool$, $\SumT(A, B)$, $\ListT(A)$, $\Pi_{(x:A)} B(x)$, $\Sigma_{(x:A)} B(x)$ (both with $\beta$ and $\eta$), associative path spines $x =_A y$ with $J$, univalence $\mathsf{ua} / \mathsf{coe}$, function extensionality $\mathsf{funext}$, and groupoidal HITs ($\Circle$, $\Pushout$, $\Trunc_0$, $\Groupoidify(C)$). \item \textbf{$\StrictCat(u)$} classifies strict $\omega$-categories, in which composition $\mathrm{comp}_C : \Hom_C(y, z) \times \Hom_C(x, y) \to \Hom_C(x, z)$ is strictly functorial on the Cartesian product $\times$---that is, strict Godement middle-four interchange holds for 2-cells in $\Hom_C$. \item \textbf{$\GrayCat(u)$} classifies sesqui-/Gray-$\omega$-categories, in which composition is strictly functorial \emph{unilaterally} in each argument (precomposition $(- \circ f)$ and postcomposition $(g \circ -)$ are strict functors with strict associativity and units), \emph{without} asserting simultaneous $\times$-interchange. \end{itemize} Why is this split essential? Consider the category of small strict categories. It admits two distinct enrichments at level $u + 1$: \[ \Cat_{\cart}(u) : \StrictCat(u + 1), \qquad \Cat_{\lax}(u) : \GrayCat(u + 1). \] Both share $\Obj \equiv \StrictCat(u)$. However, $\Hom_{\Cat_{\cart}(u)}(A, B) \equiv \Cart(A, B)$ consists of strict functors and \emph{strict} natural transformations, where horizontal interchange holds strictly; whereas $\Hom_{\Cat_{\lax}(u)}(A, B) \equiv \Functor_{\lax}(A, B)$ consists of strict functors and \emph{lax} transformations $\eta : F \Rightarrow G$, whose naturality square on $p : x \to_A y$ is a non-invertible directed cell $\lambda_\eta(p) : G[p] \circ \eta_x \Rightarrow \eta_y \circ F[p]$. In a Gray 2-category, horizontal composition of two lax transformations $\eta$ and $\theta$ along $A \xrightarrow{F,G} B \xrightarrow{H,K} C$ has \emph{two distinct} whiskered paths ($\mathsf{H}[\eta] \circ \theta_F$ vs.\ $\theta_G \circ \mathsf{K}[\eta]$) related by a non-identity lax interchanger cell rather than judgmental equality. Stratifying $\Cat_{\lax}(u) : \GrayCat(u + 1)$ statically rejects applying $\StrictCat$-only operations (\code{compProdFun}, \code{homRepFun}, and Cartesian diagonal contraction) to $\Cat_{\lax}(u)$ (Soundness Control \textbf{\code{NC-1}}), while allowing vertical composition inside each hom-category $\Functor_{\lax}(A, B) : \StrictCat(u)$ to remain strict! \subsection{Canonical Bitstream Dualities $\DGrp \cong \mathbb{Z}_2^\omega$ (\texttt{duality.ts})} \label{sec:duality} An $\omega$-category admits independent arrow reversals at each positive dimension $d \ge 1$. In finite expressions generated by dimension-1 opposite $T = (-)^{\op}$ and total all-dimension opposite $O = (-)^{\mathrm{tot\text{-}op}}$, every reversal profile $\sigma : \mathbb{N}_{\ge 1} \to \{0, 1\}$ is \emph{eventually constant}. Rather than introducing syntactic wrapper types \code{Op\us cat(C)}, \code{TotalOp\us cat(C)}, \code{CoAt2\us cat(C)}, \code{CoAbove2\us cat(C)} equipped with dozens of involution and distribution rewrite rules, \code{endash} represents $\DGrp$ directly in a bijective, canonical \textbf{difference-from-tail} encoding: \begin{codeblock} \begin{alltt} export interface Duality \{ readonly diff: bigint; // non-negative bitmask: bit (d - 1) is 1 iff \(\sigma(d) \neq \mathsf{tail}\) readonly tail: boolean; // eventual reversal value \(\sigma(d)\) for all sufficiently large d \} \end{alltt} \end{codeblock} Because \code{BigInt} suppresses leading zero bits automatically, \textbf{every element of the group $\DGrp$ has a unique normal representation with zero canonicalization passes}: \[ \sigma(d) \;=\; \mathsf{tail} \;\oplus\; \bigl((\mathsf{diff} \gg (d - 1)) \mathbin{\&} 1\bigr) \qquad (d \ge 1). \] All fundamental operations of $\omega$-categorical duality reduce to single bitwise instructions (Table~\ref{tab:duality}). \begin{table}[!htbp] \centering \caption{Bitwise $O(1)$ operations on canonical eventually-constant bitstream dualities $\DGrp$ (\code{src/duality.ts}).} \label{tab:duality} \small \renewcommand{\arraystretch}{1.18} \begin{tabularx}{\textwidth}{@{} l >{\raggedright\arraybackslash}X >{\raggedright\arraybackslash}p{0.37\textwidth} @{}} \toprule \textbf{Operation} & \textbf{Mathematical Meaning} & \textbf{Exact Bitstream Formula} \\ \midrule $\id_{\DGrp}$ & Identity (no dimension reversed) & \code{\{ diff: 0n, tail: false \}} \\ $T = \mathrm{Op}_1$ & Reverse 1-cells only ($\sigma(1)=1,\; \sigma(\ge 2)=0$) & \code{\{ diff: 1n, tail: false \}} \\ $C_n$ & Reverse $n$-cells only ($\sigma(n)=1$) & \code{\{ diff: 1n << BigInt(n-1), tail: false \}} \\ $O = \mathrm{TotalOp}$ & Reverse all dimensions ($\sigma(d)=1$) & \code{\{ diff: 0n, tail: true \}} \\ $R = \mathrm{Co}_{\ge 2}$ & Keep 1-cells, reverse all $d \ge 2$ ($O \circ T$) & \code{\{ diff: 1n, tail: true \}} \\ $\sigma \circ \tau$ & Group composition ($\sigma^2 = \id_{\DGrp}$) & \code{\{ diff: $\sigma$.diff \^{} $\tau$.diff, tail: $\sigma$.tail !== $\tau$.tail \}} \\ $\mathsf{homShift}(\sigma)$ & Induced duality on $\Hom(x, y)$: $\tau(d) = \sigma(d+1)$ & \code{\{ diff: $\sigma$.diff >> 1n, tail: $\sigma$.tail \}} \\ $\mathsf{familyBaseShift}(\sigma)$ & Shifted base duality for fibrewise $\sigma$: $\tau(1)=0,\; \tau(d+1)=\sigma(d)$ & \code{\{ diff: ($\sigma$.diff << 1n) | ($\sigma$.tail ? 1n : 0n), tail: $\sigma$.tail \}} \\ \bottomrule \end{tabularx} \end{table} Notice the algebraic payoff of the last two rows. When we dualize every fibre $E[k]$ of a dependent family $E : K \to \Cat_{\cart}$ by $\sigma$, 1-cells $p : x \to_K y$ in the base keep their direction ($\tau(1) = 0$) so covariant transport $E[p] : E[x] \to E[y]$ still goes forward, while a $(d+1)$-cell in $K$ acts on $d$-cells in the fibres and therefore experiences $\sigma(d)$! Bitwise shifting satisfies \[ \mathsf{familyBaseShift}(T) = C_2, \qquad \mathsf{familyBaseShift}(O) = R, \qquad \mathsf{homShift}\bigl(\mathsf{familyBaseShift}(\sigma)\bigr) \equiv \sigma \] identically for \emph{all} $\sigma \in \DGrp$, statically rejecting unshifted opposite families (Soundness Control \textbf{\code{NC-2}}). Semantically, every category evaluates to a pair \code{\{ core: VCatCore, dual: Duality \}}, absorbing nested duals via group multiplication in $O(1)$ time. \subsection{Bunched Modal Contexts (\texttt{,} vs.\ \texttt{;}) and Variance Locks} \label{sec:contexts} To author functors \code{fun\^{}f (x : Op C, y : C) => Hom C x y} directly with variables while preventing illegal diagonal contractions, \code{endash} organizes typing contexts as a \textbf{bunched modal telescope} \[ \Gamma \;=\; \Sigma_1 \;;\; \Sigma_2 \;;\; \dots \;;\; \Sigma_m, \] where each stage $\Sigma_j = (x_1 :^{\mu_1, \sigma_1} A_1, \dots, x_k :^{\mu_k, \sigma_k} A_k)$ is a comma-separated Cartesian bunch of bindings annotated with variable mode $\mu_i \in \{\mathsf{obj}, \mathsf{fun}, \mathsf{nat}\}$ and active duality lock $\sigma_i \in \DGrp$: \begin{enumerate} \item \textbf{Comma bunches (\code{,})} represent simultaneous product variation in $\Cart(A_1 \times A_2, B)$, permitting diagonal pairing $(x, x)$ when codomains lie in $\StrictCat$. \item \textbf{Semicolon boundaries (\code{;})} represent sequential / Gray-curried stages $A_1 \to_{\lax} (A_2 \to_{\lax} B)$, across which simultaneous diagonal exchange is forbidden (\textbf{\code{NC-5}}). \item \textbf{Contravariant and shifted locking.} Checking the source argument $x$ of $\Hom_C(x, y)$ applies $\mathsf{lockContext}(T, \Gamma)$, multiplying every functorial variable's active lock by $T$ (and applying $\mathsf{familyBaseShift}$ across \code{;}-stages). Referencing a functorial variable $x :^{\mathsf{fun}, \sigma} A$ requires $\sigma \equiv \id_{\DGrp}$. Consequently: \begin{itemize} \item In \code{fun\^{}f (x : Op C, y : C) => Hom C x y}, $x$ enters with lock $T$ (from \code{Op C}), receives a second $T$ in the source slot of \code{Hom C x y}, and checks at $T \circ T = \id_{\DGrp}$! \item In \code{fun\^{}f (x : C) => Hom C x x}, $x$ checks at $\id_{\DGrp}$ in the target slot but sees lock $T \neq \id_{\DGrp}$ in the source slot, failing closed with \code{DUALITY\us LOCK\us MISMATCH} (\textbf{\code{NC-5}})! \end{itemize} \end{enumerate} \subsection{Generic Functorial Variables $\mathbf{x} :^f A$ and $O(1)$-Step $\omega$-Conversion} \label{sec:funvar} How should an NbE kernel decide judgmental equality $F \equiv G : \Functor(A, B)$ between two functors of arbitrary $\omega$-categories when a functor has an infinite tower of higher cell actions ($F_0$ on objects, $F_1$ on 1-cells, $F_2$ on 2-cells, $\dots$)? \code{endash} solves this via \textbf{generic functorial neutral variables} $\mathbf{x} = \mathsf{VFunVar}(\ell, A)$. Unlike an ordinary object variable $v = \mathsf{VObjVar}(\ell, \Obj(A))$ (which collapses to $\mathsf{tt}$ whenever $\Obj(A) \equiv \Unit$), a functorial neutral variable $\mathbf{x} :^f A$ carries the \emph{entire categorical identity} of $A$: \begin{itemize} \item $\mathbf{x}$ collapses to $\mathsf{tt}$ \textbf{if and only if} $A$ itself is the terminal category $\mathbf{1}$ (not merely when $\Obj(A) \equiv \Unit$!); \item when $A \equiv A_1 \times A_2$, $\mathbf{x}$ expands $\eta$-structurally to $(\pi_1(\mathbf{x}), \pi_2(\mathbf{x}))$; and \item inside \code{eval}, applying a functor $F$ to $\mathbf{x}$ evaluates $F(\mathbf{x})$ whose neutral spine retains $F$'s action on formal morphisms of $A$ via lazy functorial lifting (\code{liftBodyToFun}). \end{itemize} Converting $F \equiv G : \Functor(A, B)$ therefore allocates \emph{one} fresh $\mathbf{x} = \mathsf{VFunVar}(\ell, A)$ and checks $\mathsf{convObj}(B, F(\mathbf{x}), G(\mathbf{x}))$ in a single step (paired with hom-functor conversion on generic object endpoints)! Crucially, on the one-object category $\WalkingEnd$ ($\Obj(\WalkingEnd) \equiv \Unit$, generated by a non-identity endomorphism $\mathsf{loop}$), evaluating $\id_{\WalkingEnd}(\mathbf{x})$ produces $\mathbf{x}$ whereas $\Const(\mathsf{base})(\mathbf{x})$ produces $\mathsf{base}$---distinguishing $\id_{\WalkingEnd} \not\equiv \Const(\mathsf{base})$ immediately without inspecting \code{loop} (\textbf{\code{NC-3}})! \subsection{Substitution-Stable Do\v{s}en Spines and Coinductive $\Transf^\pm$} \label{sec:spines} In structural Hom-categories ($\mathbf{1}$, $A \times B$, $\Path(X)$, $\Cart(A, B)$, $\Functor_{\lax}(A, B)$, and $\Sigma^\pm(K, E)$), cells evaluate directly to canonical structural tuples, path spines, transformation closures, or dependent pairs. In base, neutral, or HIT Hom-categories, morphisms $f : x \to_C y$ normalize to \textbf{flat associative Kosta Do\v{s}en spines}~\cite{dosen1999} \code{VSpine(C, x, y, [a\us n, ..., a\us 1])}: \begin{itemize} \item $\id_C(x)$ evaluates to the empty spine \code{[]}; \item composition concatenates spines (reversing order when $\mathrm{revDim}(C.\mathrm{dual}, 1) = 1$) and performs adjacent boundary reductions: \begin{enumerate} \item \textbf{Type-directed identity drop}: $F[p] \mapsto \code{[]}$ whenever $p$ is judgmentally an identity in $\Dom(F)$; \item \textbf{Inward neutral functor fusion}: for a \emph{neutral} functor $F$ whose domain Hom is a compound structural category (such as $A \times B$ or $\Sigma^\pm$), adjacent $[F[g], F[f]]$ fuse inward to $[F[g \circ f]]$ (so $F[(\id, g)] \circ F[(f, \id)] \equiv F[(f, g)]$ holds by \code{refl}!); \item \textbf{Outward homomorphic distribution}: concrete functor lambdas $\lambda^f$, recursors, projections, and neutral functors over atomic cell domains distribute outward over multi-atom spines, eliminating inward/outward ping-pong! \end{enumerate} \end{itemize} A transformation $\varepsilon : \Transf^{\lax}(A, B, F, G)$ is then a \code{Q}-free coinductive semantic value providing an object family $\varepsilon_x : \Hom_B(F[x], G[x])$ and a hom-indexed family of laxity transformations $\lambda_\varepsilon(x, y)$ whose action on any spine $p = [a_n, \dots, a_1]$ expands deterministically by the \textbf{Leibniz derivation law}: \[ \lambda_\varepsilon([]) \;\equiv\; \id_{\varepsilon_{x_0}}, \qquad \lambda_\varepsilon([a_n, \dots, a_1]) \;\equiv\; \mathop{\bigcirc}_{i=1}^{n} \Bigl( G[a_n \circ \dots \circ a_{i+1}] \;\triangleright\; \lambda_\varepsilon(a_i) \;\triangleleft\; F[a_{i-1} \circ \dots \circ a_1] \Bigr). \] \subsection{The 2-Periodic Polarized Grothendieck Construction $\Sigma^\pm(K, E)$} \label{sec:grothendieck} The decisive simplification over \code{emdash} v3.2's profunctor ladder is \code{endash}'s \textbf{\code{Q}-free 2-periodic Grothendieck construction}. A covariant family over $K$ is simply $E : \Catd(K) := \Functor(K, \Cat_{\cart}(u))$, and a displayed functor $FF : \Functord(E, D)$ is literally a lax transformation $\Transf^{\lax}(K,\allowbreak \Cat_{\cart}(u),\allowbreak E,\allowbreak D)$, whose displayed 1-cell action on $p : x \to_K y$ and $u : \Obj(E[x])$ is projected directly from $\lambda_{FF}$: \[ \mathsf{fdapp}_1(FF, p, u) \;:=\; \bigl(\lambda_{FF}(x, y)[p]\bigr)_u \;:\; D[p]\bigl(FF_x(u)\bigr) \longrightarrow_{D[y]} FF_y\bigl(E[p](u)\bigr). \] What is the Hom-category of a covariant total category $\Sigma^+(K, E)$ between $(x, u)$ and $(y, v)$? An object of that Hom-category is a pair $(p, \alpha)$ with $p : \Hom_K(x, y)$ and $\alpha : \Hom_{E[y]}(E[p](u), v)$. Notice how $\alpha$'s domain $E[p](u)$ varies \emph{contravariantly} in a 2-cell $\beta : p \Rightarrow p'$ of $\Hom_K(x, y)$: precomposing along $E[\beta]_u : E[p](u) \to E[p'](u)$ pulls $\alpha' : E[p'](u) \to v$ \emph{back} to $\alpha' \circ E[\beta]_u : E[p](u) \to v$! And at the \emph{next} dimension (3-cells $\gamma : \beta \Rrightarrow \beta'$), variance flips \emph{back} to covariant! Rather than inventing an infinite hierarchy of equipment types, \code{endash} defines \emph{two mutually recursive polarities} $\Sigma^+(K, E)$ (for $E : K \to \Cat_{\cart}$) and $\Sigma^-(B, H)$ (for $H : T(B) \to \Cat_{\cart}$): \[ \begin{aligned} \Hom_{\Sigma^+(K, E)}\bigl((x, u), (y, v)\bigr) &\;\equiv\; \Sigma^-\!\Bigl( \Hom_K(x, y),\; \lambda^f\bigl(p : T(\Hom_K(x, y))\bigr).\, \Hom_{E[y]}\bigl(E[p](u), v\bigr) \Bigr), \\[4pt] \Hom_{\Sigma^-(B, H)}\bigl((p, \alpha), (p', \alpha')\bigr) &\;\equiv\; \Sigma^+\!\Bigl( \Hom_B(p, p'),\; \lambda^f\bigl(\beta : \Hom_B(p, p')\bigr).\, \Hom_{H[p]}\bigl(\alpha, H[\beta^{\op}](\alpha')\bigr) \Bigr), \end{aligned} \] with composition $(q, \beta) \circ_{\Sigma^+} (p, \alpha) \equiv (q \circ p,\, \beta \circ E[q][\alpha])$ and $(\gamma, \theta_2) \circ_{\Sigma^-} (\beta, \theta_1) \equiv (\gamma \circ \beta,\, H[\beta^{\op}][\theta_2] \circ \theta_1)$. Because $H : T(B) \to \Cat_{\cart}$ reverses 1-cell composition order on $T(B)$, $H[\beta^{\op}] \circ H[\gamma^{\op}] \equiv H[(\gamma \circ_B \beta)^{\op}]$ holds strictly! This 2-periodic closed loop handles \emph{all} finite dimensions simultaneously, making open-family $\Sigma^\pm$ associativity and directed Yoneda \code{PathOut} elimination $\beta$-equations hold \textbf{judgmentally by \code{refl}} (\textbf{\code{NC-4}}). % ============================================================================ \section{Topological-Height Glued NbE and Controlled Unfolding at Scale} \label{sec:glued-nbe} % ============================================================================ Pure eager Normalization-by-Evaluation works effortlessly on small foundational calculi (\code{< 1,000} declarations), where unfolding every transparent global \code{def} during evaluation costs milliseconds. When scaling \code{endash} to constructive real analysis (\code{ExactRat1}, Bishop regular \code{CauchyReal1}~\cite{bishop1967}, forward-Taylor complex Dirichlet $\eta(s)$) and deep algebraic hierarchies (\code{CommRing1}, 20-field homological/lattice bundles, and \code{7,721} \code{0}-axiom declarations), three severe algorithmic bottlenecks emerge in eager NbE: \begin{enumerate} \item \textbf{Deep Definition Unfolding.} Checking $f(x) \equiv f(x)$ when $f$ stands atop 40 layers of rational and Cauchy-sequence definitions eagerly unfolds both sides to multi-megabyte $\lambda$-terms before comparing identical spines. \item \textbf{Exponential $\Sigma$-Neutral Projection Cloning.} In a record telescope $R = \Sigma_{f_1} \Sigma_{f_2} \dots \Sigma_{f_{20}}$ with $\eta$-conversion, repeatedly projecting \code{.snd.snd...fst} on a neutral variable $r : R$ clones nested $\eta$-expanded pairs exponentially if projections are not shared. \item \textbf{Unary Peano Numerals.} Arithmetic constants such as Sernau's half-period modulus $18480 = 2 \cdot 9240$ allocate $O(n)$ heap nodes and overflow call stacks under recursive \code{nat-elim}. \end{enumerate} \subsection{Lazy Glued Definitions with Height-Ordered Fallback Forcing} \label{sec:glued-forcing} In Wave~18 (\code{+298~LOC} TCB delta), \code{endash} upgraded \code{eval.ts} and \code{check.ts} to \textbf{topological-height Glued NbE} (inspired by Coquand--Kovacs glued evaluation~\cite{coquand-kovacs2019}), preserving \textbf{100\% of judgmental conversion} without user hints: \begin{itemize} \item \textbf{Topological Height.} Because \code{GlobalEnv} is strictly acyclic (\textbf{\code{NC-7a}}), every transparent \code{def} $d$ receives an exact integer height at declaration time: \[ h(d) \;=\; 1 + \max\bigl(\{0\} \cup \{h(c) \mid c \in \mathrm{directDefs}(d)\}\bigr). \] \item \textbf{Glued Semantic Nodes.} Evaluating \code{global-ref(d)} applied to spine arguments $\vec{v}$ produces a glued semantic value $\mathsf{VGlued}(d, h(d), \vec{v}, \mathsf{forceThunk})$ storing both the unreduced symbolic head $(d, \vec{v})$ and a memoized lazy thunk evaluating $d$'s body at $\vec{v}$. \item \textbf{Speculative $O(1)$ Congruence + Sound Fallback Forcing.} When converting two glued values $u = \mathsf{VGlued}(d_1, h_1, \vec{v}_1, \tau_1)$ and $w = \mathsf{VGlued}(d_2, h_2, \vec{v}_2, \tau_2)$: \begin{enumerate} \item If $d_1 = d_2$ and $|\vec{v}_1| = |\vec{v}_2|$, the converter first attempts pairwise conversion $\vec{v}_1 \equiv \vec{v}_2$. If every argument converts, \code{conv} returns \code{true} \textbf{immediately in $O(1)$ head steps without forcing $\tau_1$ or $\tau_2$}! \item Crucial soundness subtle point: if $d_1 = d_2$ has a \emph{constant or non-injective} body (for instance \code{def constZero (n : Nat) : Nat := 0}), $\mathsf{constZero}(x)$ and $\mathsf{constZero}(y)$ have $x \not\equiv y$, yet must still be judgmentally equal! Therefore, if speculative spine comparison returns \code{false}, \code{conv} \textbf{does not fail}---it falls through and forces both thunks! \item When $d_1 \neq d_2$ (or only one side is glued), \code{conv} forces strictly the side of \emph{maximal height} ($h_1 > h_2 \implies \text{force }\tau_1$; $h_2 > h_1 \implies \text{force }\tau_2$; $h_1 = h_2 \implies \text{force both}$). Because forcing replaces a node of height $h$ by definitions of height $< h$, unfolding terminates strictly in finite steps while never missing an equal intermediate head! \end{enumerate} \end{itemize} Paired with memoized \code{etaWrapNeutral} on \code{v-sigma-grpd} and compact \code{BigInt} closed numerals \code{v-nat-lit(n)} (with iterative \code{nat-elim}), Glued NbE delivered dramatic, measured end-to-end improvements across the 58-module \code{.en} library (\textbf{\code{NC-25a}}; Table~\ref{tab:glued-benchmarks}). \begin{table}[!htbp] \centering \caption{Measured end-to-end build, verification, and snapshot compaction speedups from Topological-Height Glued NbE (\code{NC-25a}).} \label{tab:glued-benchmarks} \small \renewcommand{\arraystretch}{1.2} \begin{tabularx}{\textwidth}{@{} >{\raggedright\arraybackslash}p{0.29\textwidth} >{\raggedright\arraybackslash}p{0.18\textwidth} >{\raggedright\arraybackslash}X >{\raggedright\arraybackslash}p{0.21\textwidth} @{}} \toprule \textbf{Benchmark Workload} & \textbf{Pre-Glued NbE (Wave~17)} & \textbf{Glued NbE (Wave~18)} & \textbf{Speedup / Reduction} \\ \midrule Cold 55/58-module \code{.en} build (\code{build.mjs}) & \code{2,491.65~s} & \code{239.20~s} (\code{442.76~s} w/\ \code{+3} Wave~18 modules) & \textbf{$10.4\times$ faster} ($5.63\times$ w/\ larger corpus) \\ Zero-trust \code{.ensnap} re-verification & \code{2,533.22~s} & \code{177.32~s} & \textbf{$14.3\times$ faster} \\ Three-volume \code{endash book build} (\code{118} sections) & \code{3,068.70~s} (\code{51m~09s}) & \code{313.26~s} (\code{690.79~s} w/\ Ch.~27--28 \& Deligne) & \textbf{$9.8\times$ faster} \\ Shared-DAG \code{stdlib-en-\allowbreak ensnaps.json} size & \code{67.8~MiB} raw & \code{28.00~MiB} raw (\code{2.0~MiB} \code{.gz}) & \textbf{$2.42\times$ smaller} \\ \bottomrule \end{tabularx} \end{table} \subsection{Elaborator Reducibility Attributes and Static Proof/Data Hygiene} \label{sec:hygiene} Outside the TCB, the \code{.en} elaborator (\code{src/elab/}) exposes Lean/Rocq-style unfolding controls: \code{@[reducible]}, \code{@[semireducible]}, \code{@[irreducible]}, and constructor-guarded \textbf{\code{@[simpl\us nomatch]}} (via \code{quoteGluedWithFilter}), alongside interactive \code{cbn}, \code{dsimp}, \code{unfold}, and \code{\#probe} diagnostics. Simultaneously, \code{endash} enforces three static epistemic and extraction invariants: \begin{enumerate} \item \textbf{Transitive Zero-Axiom Tracking (\code{axiomsUsed}).} Every \code{declareDef}, \code{declareTheorem}, and \code{declareAxiom} call computes the exact transitive union of postulated axioms in $O(1)$ set operations (\code{\#print axioms}). All \code{7,721} library declarations satisfy \code{axiomsUsed === []}. \item \textbf{OCaml-Style Proof/Data Separation (\code{THEOREM\us DATA\us PROJECTION}).} Computational \code{def} bodies are statically audited to forbid projecting runtime witnesses out of opaque \code{theorem} proofs. \item \textbf{Anti-Vacuity \& Non-Bypass Gates (\code{DISCARDED\us PROOF\us ARGUMENT} \& \code{MISSING\us REQUIRED\us DEPENDENCY}).} In theorem spines modeling conditional mathematical reductions, the module comparator statically rejects proofs that silently drop hypothesis binders, project across constant-motive \code{Eq.rec}, or bypass required engine lemmas. \end{enumerate} % ============================================================================ \section{Worked Core Derivations: Directed, Groupoidal, and Geometric} \label{sec:worked} % ============================================================================ To illustrate how the six kernel safeguards cooperate in practice, we examine three flagship formalizations from Volume~0 (\code{stdlib/\allowbreak en/\allowbreak\{Functorial\allowbreak Showcase,\allowbreak Circle\allowbreak Showcase,\allowbreak SheafScheme\allowbreak Showcase\}.en}). \subsection{Synthetic Arrow Induction (\texttt{PathOut}) and $\Hom_{\WalkingEnd}(\mathsf{base}, \mathsf{base}) \simeq \mathbb{N}$} \label{sec:pathout} For any $Z : \StrictCat(u)$ and $x : \Obj(Z)$, the coslice category of outgoing arrows is the covariant Grothendieck total category \[ \PathOut_Z(x) \;:=\; \Sigma^+_{y : Z}\,\Hom_Z(x, y), \] with canonical basepoint $\mathsf{idPt}_x := (x, \id_x)$ and canonical tautological family arrow $\rho_{x,y,p} := (p, \id_y) : \mathsf{idPt}_x \to (y, p)$ (since $\Hom_Z(x, p)(\id_x) \equiv p \circ \id_x \equiv p$ on Do\v{s}en spines!). For any dependent motive $M : \Catd(\PathOut_Z(x))$ and basepoint datum $m_0 : \Obj(M[\mathsf{idPt}_x])$, transporting $m_0$ along $\rho_{x,y,p}$ yields synthetic directed arrow induction: \[ \mathsf{ind}_{\PathOut}(M, m_0, y, p) \;:=\; M[\rho_{x,y,p}](m_0) \;:\; \Obj\bigl(M[(y, p)]\bigr). \] Because $\rho_{x,x,\id_x} \equiv (\id_x, \id_x) \equiv \id_{\PathOut_Z(x)}(\mathsf{idPt}_x)$ and $\rho_{x,z,q \circ p} \equiv (q, \id_z) \circ_{\Sigma^+} (p, \id_y)$ hold structurally in $\Sigma^+$, \textbf{both} the reflexivity computation rule $\mathsf{ind}(M, m_0, x, \id_x) \equiv m_0$ \textbf{and} the step rule on $q \circ p$ hold \textbf{judgmentally by \code{refl}} (\code{src/stdlib/yoneda.ts})! Now consider the contextual directed HIT \textbf{$\WalkingEnd : \StrictCat(0)$}, generated by one object $\mathsf{base}$, one non-invertible endomorphism $\mathsf{loop} : \Hom(\mathsf{base}, \mathsf{base})$, discrete 1-categorical hom-sets, and contextual displayed elimination $\mathsf{walking\_ind}^{\mathrm{d}}(R, D, u, \sigma) : \Functord(R, D)$ computing judgmentally on $\mathsf{base}$ and $\lambda(\mathsf{loop}) \equiv \sigma$. Define the spiral family $\mathsf{Code} : \WalkingEnd \to \Cat_{\cart}(0)$ sending $\mathsf{base} \mapsto \Disc(\mathbb{N})$ and $\mathsf{loop} \mapsto \succfn$, with \code{encode(p) := Code[p](0)} and \code{power(n) := loop\^{}n}. How do we construct the displayed decode map from the representable family $\Rep(\mathsf{base}) = \Hom(\mathsf{base}, -)$ without manual coherence proofs? Because \code{power} intertwines $\succfn$ with postcomposition $(\mathsf{loop} \circ -)$ \emph{judgmentally} on Do\v{s}en spines: \[ \mathsf{power}(\succfn\,n) \;\equiv\; \mathsf{loop} \circ \mathsf{power}(n), \] the spiral transformation $\sigma : (\mathsf{loop} \circ -) \circ \mathsf{power} \Rightarrow \mathsf{power} \circ \succfn$ is literally \textbf{\code{idTransf}}, a 1-token identity certificate! Instantiating $\mathsf{walking\_ind}^{\mathrm{d}}$ with that 1-token spiral produces both round-trips: \begin{itemize} \item \code{encode(power n) = n} by 2-line \code{Nat} induction (step holds by \code{rfl}); \item \code{power(encode p) = p} by extracting the Leibniz normalization cell \code{walkingNormCell(base, p)} into discrete $\Hom(\mathsf{base}, \mathsf{base})$, which evaluates \textbf{judgmentally to \code{id}} on every closed loop power $\mathsf{loop}^k$! \end{itemize} Conversely, mapping $\WalkingEnd$ into the monoid $(\mathbb{N}, +, 0)$ sending $\mathsf{loop} \mapsto 1$ reduces $\mathsf{loop} \circ r = \id$ to $1 + \mathrm{encode}(r) = 0$ in $\mathbb{N}$, proving $\neg\IsIso(\mathsf{loop})$ into $\Empty$ (\textbf{\code{NC-6}}). \subsection{Univalent Circle $\Omega(S^1) \simeq \mathbb{Z}$ and Universal Groupoidification} \label{sec:circle} In \ghfile{stdlib/en/FunctorialShowcase.en}{FunctorialShowcase.en} and \ghfile{stdlib/en/CircleShowcase.en}{CircleShowcase.en}, \code{endash} places directed $\WalkingEnd$ side-by-side with the groupoidal Circle $S^1 : \Grpd(0)$: \begin{codeblock} \begin{alltt} import HoTT.Circle -- Judgmental univalence coercion along (ua Int.succEquiv)\textsuperscript{2} and (ua Int.succEquiv)\textsuperscript{\(-\)3}: theorem ua_plus_two : coe (ua Int.succEquiv \(\bullet\) ua Int.succEquiv) Int.zero = Int.ofNat 2 := rfl theorem ua_minus_three : coe ((symm (ua Int.succEquiv) \(\bullet\) symm (ua Int.succEquiv)) \(\bullet\) symm (ua Int.succEquiv)) Int.zero = Int.negSucc 2 := rfl -- Directed loop is NOT invertible, whereas groupoidal Circle.loop IS invertible: theorem directed_not_iso : \(\neg\) IsIso WalkingEnd WalkingEnd.base WalkingEnd.base WalkingEnd.loop := WalkingEnd.loop_not_isIso theorem circle_loop_iso : IsIso (Path Circle) Circle.base Circle.base Circle.loop := Circle.loop_isIso \end{alltt} \end{codeblock} More generally, for any strict category $C : \StrictCat(u)$, the kernel HIT $\Groupoidify(C) : \Grpd(u)$ freely adjoins inverses to all morphisms via spine-homomorphic $\eta_C : C \to \Path(\Groupoidify(C))$ satisfying $\eta_C(\id_x) \equiv \mathrm{refl}$ and $\eta_C(g \circ f) \equiv \eta_C(g) \bullet \eta_C(f)$ judgmentally. Unlike \code{emdash} v3.2 (where source functoriality of \code{Groupoidify} remained open), \code{endash} proves full source functoriality and packages the universal left adjoint \textbf{$\Groupoidify \dashv \Path$}, recovering both $\Groupoidify(\WalkingEnd) \simeq S^1$ (group-completing $\mathbb{N}$ to $\mathbb{Z}$) and $\Groupoidify(\WalkingArrow) \simeq \Unit$ (contracting the directed interval $\mathbf{I} = \{0 \to 1\}$) with \code{0} axioms! \subsection{Yoneda-Reindexed \texttt{Sheafify} HIT, Locality Theorem, and $\mathbb{P}^1_R$} \label{sec:sheafify} In Grothendieck topos theory~\cite{ega-sga,stacks-project}, constructing the sheafification reflector $a_J : \Psh(\mathcal{K}) \to \Sh(\mathcal{K}, J)$ constructively without Lawvere--Tierney impredicative resizing or classical choice requires an inductive-recursive or higher-inductive cover completion. \code{endash} internalizes a \textbf{Yoneda-reindexed \code{Sheafify} HIT} (\code{sheaf-ret}, \code{sheaf-glue}, \code{sheaf-is-set}, \code{sheaf-pullback}, \code{sheaf-silent}, \code{sheaf-rec}) directly in \code{StrictCat}: \begin{itemize} \item Given a cover $S \in J(U_0)$, a matching family $m$ on $S$, and any probe $p : V \to U_0$, \code{sheaf-glue(U\us 0, V, p, S, cov, m)} glues the pulled-back matching family directly at stage $V$, making functoriality in $V$ structural! \item From these constructors, \code{src/stdlib/\allowbreak sites\us and\us sheafification.ts} proves \textbf{Locality Theorem~20.1} (\code{Sheaf\dt sheafify\us is\us sheaf}), the universal reflection adjunction $a_J \dashv \iota$, idempotence $a_J(a_J P) \simeq a_J P$, and finite product preservation $a_J(P \times Q) \simeq a_J P \times a_J Q$ in \code{1.06~s} with \textbf{\code{0} postulated axioms} (discharging five upstream Lambdapi axioms), while verifying non-collapse $(a_J\,\Empty)(U) \to \Empty$ on non-empty covers vs.\ collapse $(a_J\,\Empty)(D(0)) \simeq \Unit$ on the empty Zariski cover (\textbf{\code{NC-11b}}). \end{itemize} Building on principal invertibility sieves $D_R(f)$ and two-chart Laurent gluing $(R[t],\allowbreak R[u],\allowbreak R[t, t^{-1}],\allowbreak u = t^{-1})$, \ghfile{stdlib/en/SheafSchemeShowcase.en}{SheafScheme\allowbreak Showcase.en} proves global regular sections $\Gamma(\mathbb{P}^1_R, \mathcal{O}) \simeq R$ for every h-set commutative ring $R$ and refutes $\mathbb{P}^1_{\mathbb{F}_2} \simeq \mathbb{A}^1_{\mathbb{F}_2}$ constructively into $\Empty$ (since $|\Gamma(\mathbb{P}^1_{\mathbb{F}_2}, \mathcal{O})| = 2$ whereas $\mathbb{F}_2[t]$ is infinite). % ============================================================================ \section{Untrusted Elaboration and LCF-Certified Proof--CAS Synthesis} \label{sec:cas} % ============================================================================ A guiding principle of \code{endash} is that \textbf{heavy symbolic computation never enters the Trusted Computing Base}. All \code{18} \code{BigInt} computer-algebra modules in \code{src/cas/} execute \emph{outside} the kernel as untrusted witness finders, reifying their output into compact first-order algebraic certificates checked by ordinary kernel type-checking (\code{checkTerm}) against definitions in \code{stdlib/ts/*\us bridge.ts} (Table~\ref{tab:cas}): \[ \text{Untrusted \texttt{BigInt} CAS Solver} \;\xrightarrow{\;\substack{\text{synthesizes}\\(U, V, D, \text{syzygies})}\;}\; \text{Explicit Core Term} \;\xrightarrow{\;\substack{\mathtt{checkTerm}\\(\text{0 axioms})}\;}\; \text{Verified Theorem}. \] \begin{table}[!htbp] \centering \caption{LCF-certified computer-algebra tactic families in \code{endash}, their untrusted synthesis algorithms, kernel-checked \code{0}-axiom certificate equations, and formal applications.} \label{tab:cas} \footnotesize \setlength{\tabcolsep}{4.5pt} \renewcommand{\arraystretch}{1.24} \begin{tabularx}{\textwidth}{@{} >{\raggedright\arraybackslash}p{0.195\textwidth} >{\raggedright\arraybackslash}p{0.215\textwidth} >{\raggedright\arraybackslash}p{0.255\textwidth} >{\raggedright\arraybackslash}X @{}} \toprule \textbf{Tactic Family} & \textbf{Untrusted Solver Algorithm} & \textbf{Kernel-Checked Certificate Equations (\code{0}~Axioms)} & \textbf{Representative Mathematical Applications} \\ \midrule \code{cas\us snf}, \code{cas\us homology}, \code{cas\us cech\us p1} & Exact \code{BigInt} / $k[x]$ Hermite \& Smith Normal Form~\cite{smith1861}, cycle/boundary lifts & $U A V = D$, $U U^{-1} = I$, $V V^{-1} = I$, $d_i \mid d_{i+1}$, $d_0 \circ d_1 = 0$ & Nonsplit 6-term Snake Lemma over $\mathbb{Z}$; $H^i(\mathbb{P}^1_k, \mathcal{O}(n))$ ($n = -2..2$ over $\mathbb{F}_2, \mathbb{Q}$) \\ \addlinespace[2pt] \code{cas\us ext}, \code{cas\us ext\us mul}, \code{cas\us spectral\us seq} & Free resolutions, Yoneda chain-map lifts, exact-couple page reduction & $d^2 = 0$, $f \circ d = d' \circ f$, $E_{r+1} \cong \ker d_r / \operatorname{im} d_r$ & Multiplicative $\Ext^*_{\mathbb{F}_2[x]/(x^2)}$ vs.\ Koszul $\Lambda(e_1,e_2)$; UCSS \& $KU^*(\mathbb{R}P^2)$ AHSS \\ \addlinespace[2pt] \code{cas\us bar\us tor}, \code{cas\us hochschild}, \code{cas\us cotangent}, \code{cas\us cyclic}, \code{cas\us derham} & Normalized Bar/Hochschild, K\"{a}hler Jacobian, Connes $(b, B)$ mixed complex~\cite{loday1998} & $b^2 = 0$, $bB + Bb = 0$, $d_{\mathrm{dR}}^2 = 0$, SNF rank/torsion & $\Tor_1^{\mathbb{Z}[C_2]} \cong \mathbb{Z}/2\mathbb{Z}$, $\Omega^1_{\mathbb{Z}[x]/(x^2)/\mathbb{Z}} \cong \mathbb{Z} \oplus \mathbb{Z}/2\mathbb{Z}$, Goodwillie $HP_*$ invariance, char-2 Cartier \\ \addlinespace[2pt] \code{cas\us group} & Schreier--Sims stabilizer chain \& Todd--Coxeter coset enumeration & Bijection of Schreier generators, subgroup closure, commutator words, coset table axioms & Simplicity \& order of icosahedral $A_5$ ($|A_5| = |[A_5, A_5]| = 60$, $\langle r, s \mid r^2, s^3, (rs)^5 \rangle \cong A_5$) \\ \addlinespace[2pt] \code{cas\us hilbert} & Buchberger Gr\"{o}bner basis, S-polynomial reductions, Hilbert--Serre polynomial & Ideal membership cofactors, zero S-pair remainders, exact degree Hilbert counts & $\mathbb{P}^2$, elliptic cubic ($p_a = 1$) vs.\ twisted cubic in $\mathbb{P}^3$ ($p_a = 0$), $\Bl_{(0,0)}\mathbb{A}^2$, Fano $\#\mathbb{P}^2(\mathbb{F}_2) = 7$ \\ \addlinespace[2pt] \code{cas\us lefschetz}, \code{cas\us theta}, \code{cas\us stepanov}, \code{cas\us smith}, \code{cas\us resultant}, \code{cas\us gauss} & Frobenius trace \& Lagrange 4-square decomposition, cyclotomic Weil seesaw, Sylvester resultant, finite Fourier & $4p - a_p^2 = \sum_{j=1}^4 s_j^2 \ge 0$, $|G(\chi_p)|^2 = p$, B\'{e}zout resultant identity, $(\mathcal{G}_\psi \circ \mathcal{G}_\psi^*)(v) = q v$ & Elliptic Hasse--Weil bounds ($p = 2, 3, 5, 7$), Rallis seesaw, Stepanov auxiliary polynomials, DVR cokernel colengths \\ \bottomrule \end{tabularx} \end{table} Every CAS tactic has paired negative controls (\code{NC-10b}, \code{NC-13b}, \code{NC-14b}, \code{NC-15b}, \code{NC-16b}, \code{NC-17b}, \code{NC-18b}, \code{NC-19c}, \code{NC-20c}, \code{NC-21c}, \code{NC-22a/b}) confirming that forged determinants ($\det U = 2$), incomplete non-Gr\"{o}bner bases, singular cubics, understated $|A_5|$ orders, or Weil-bound violations ($a_p^2 > 4p$) are deterministically rejected by \code{checkTerm}. % ============================================================================ \section{Synthesis of the Three-Volume Monograph Library and Arithmetic Spine} \label{sec:monographs} % ============================================================================ Across \code{118} monograph sections, \code{376} evidence-registered claims, and \code{128} kernel-checked literate \code{.en} blocks, the \code{endash} library (\code{7,721} \code{0}-axiom declarations) spans three interconnected volumes~\cite{endash-monographs2026} cross-referenced against ten canonical mathematical sources (Lurie \emph{Higher Algebra} and \emph{Kerodon}~\cite{lurie-ha}, \emph{The Stacks Project}~\cite{stacks-project}, EGA and SGA~\cite{ega-sga}, Cisinski~\cite{cisinski2019}, Lean \emph{Mathlib}, Grayson \emph{Symmetry}~\cite{bezem-symmetry2025}, \emph{AxiomMath/Weil}, and the Lean RH/GRH repositories~\cite{alpoge2026,sernau2026}): \begin{enumerate} \item \textbf{Volume~0 --- Foundations (\code{1.3.0-endash}, Chapters~1--33, \code{194/203} checked claims, \code{9} explicit research boundaries; \href{https://doi.org/10.5281/zenodo.21544186}{DOI: \texttt{10.5281/zenodo.21544186}}).} Establishes the direct calculus, Lean \code{Init.Data.List} subsumption via $\ListCat(C)$, finite combinatorics (\code{Fintype1}, Pigeonhole, Pascal, homomorphic permutation sign $\sgn$ and $|A_n| \cdot 2 = n!$), Grayson univalent loop-group symmetry $(BG, \mathrm{sh}_G)$~\cite{bezem-symmetry2025} with Orbit--Stabilizer, Lagrange, and Burnside, the Structure Identity Principle (Theorem~15.3) and \code{CommRing1} univalence $(R \cong S) \simeq (R = S)$, Karoubi idempotent and Rezk completions, Twisted Arrow categories, Kan extensions, \textbf{Grothendieck fibrations $\int_{\mathcal{C}} P$ with straightening--unstraightening}, directed join $A \star B$, Yoneda-reindexed \code{Sheafify}, and \code{AbelianCat} 6-term Snake / Long Exact Sequence homology. \item \textbf{Volume~I --- Synthetic \& Computational Higher Algebra (\code{1.1.0-endash}, Chapters~1--28, \code{92/92} checked claims, \code{49/49} HA items proved; \href{https://doi.org/10.5281/zenodo.24733465}{DOI: \texttt{10.5281/zenodo.24733465}}).} Formalizes pointed spaces, wedge/smash products ($\Sigma_* X_* \simeq_* S^1_* \wedge X_*$), $\Omega$-spectra $\Sp$ and generalized cohomology, synthetic stable $(\infty,1)$-categories with Verdier triangulated $h\mathcal{C}$, and \textbf{Beilinson--Bernstein--Deligne / Lurie's Abelian Heart Theorem (\code{HA~1.2.1.11}~\cite{bbd1982,lurie-ha}, \code{heartToAbelianCat} in \ghfile{stdlib/en/HigherAlgebra/TStructureHeart.en}{TStructure\allowbreak Heart.en})}, which directly inhabits Volume~0's \code{AbelianCat} so every t-structure heart automatically inherits $\mathrm{Coim} \simeq \mathrm{Im}$, the Snake Lemma, and the Long Exact Sequence! Subsequent chapters establish bounded Dold--Kan, Day convolution $F \circledast G$, relative tensor products $M \otimes_A N$, split-coequalizer Barr--Beck monadicity, symmetric monoidal dualizability and Dennis traces, K\"{a}hler differentials $\Omega^1_{B/A}$ and Hensel \'{e}tale square-zero lifting rigidity (\code{@ha[7.5.1.1]}), Morita equivalence $\Mod_R \simeq \Mod_{M_2(R)}$ and Azumaya separability, free loop spaces $\mathcal{L}X \simeq \Sigma_{x:X}(x=x)$, closed monoidal six-functor recollement and Verdier shriek--star duality $\mathbb{D}_Y(f_! F) \cong f_* \mathbb{D}_X(F)$, Harder--Narasimhan concavity and Bost's Slope Vanishing Inequality, inductive $m$-step Rallis seesaw duality, DVR Smith cokernel colength bounds (\code{dvr\us colength\us le\us val\us of\us smith}), general finite-group Fourier--Gauss inversion, Bishop regular \code{CauchyReal1}~\cite{bishop1967} with choice-free tightness \code{real\us eq\us of\us not\us lt\us and\us not\us gt} and forward-Taylor paired Dirichlet $\eta(s)$ (\code{not\us isNontrivialZetaZero\us three\us quarters}), \textbf{choice-free spherical Behrend 3-AP-free sets~\cite{behrend1946} (\code{exists\us spherical\us behrend\us three\us term\us free} in \ghfile{stdlib/en/HigherAlgebra/BehrendSparsityAndColengthDvd.en}{BehrendSparsity\allowbreak AndColengthDvd.en})}, and Hilbert--Schmidt dispersion with Wolsey submodular greedy covering~\cite{wolsey1982}. \item \textbf{Volume~II --- Synthetic \& Computational Algebraic Geometry (\code{0.8.0-endash}, Chapters~1--26 + Appendices~B \&~C, \code{90/90} checked claims, \code{55/55} AG items proved; \href{https://doi.org/10.5281/zenodo.24733699}{DOI: \texttt{10.5281/zenodo.24733699}}).} Develops functor-of-points $\Spec(A)$, Zariski \code{QCoh} and faithfully flat \code{fppf} Amitsur descent (paired with a \code{0}-axiom Classical Prime-Stalk Dictionary in Appendix~B), glued vector bundles and \textbf{$\deg : \Pic^{\mathrm{glued}}(\mathbb{P}^1_R) \xrightarrow{\sim} (\mathbb{Z}, +)$}, the Euler exact sequence $0 \to \Omega^1_{\mathbb{P}^1/R} \to \mathcal{O}(-1)^{\oplus 2} \to \mathcal{O}_{\mathbb{P}^1} \to 0$, $\omega_{\mathbb{P}^1/R} \simeq \mathcal{O}(-2)$, Riemann--Roch, and Serre duality, synthetic tangent bundles $TX = X^{\mathbb{D}}$ with vector-field Lie brackets, $(\rk, c_1) : K_0^{\mathrm{glued}}(\mathbb{P}^1_R) \xrightarrow{\sim} \mathbb{Z}^2$, $\lambda$-rings, Adams operations $\psi^k([\mathcal{O}(n)]) = [\mathcal{O}(kn)]$, and \textbf{Grothendieck--Riemann--Roch (\code{grr\us projective\us line})}, 2-typical Joyal $\delta$-rings and Witt vectors $W_2(\mathbb{F}_2) \cong \mathbb{Z}/4\mathbb{Z}$, higher infinitesimal jets $\mathbb{D}_m$ and characteristic-free Hasse--Schmidt derivatives, universal odd-$\mathbb{F}_q$ Weierstrass Stepanov bounds, and two landmark unconditional Weil-bound formalizations: \begin{itemize} \item \textbf{Sharp Genus-1 Hasse Curve Bound (\ghfile{stdlib/en/AlgebraicGeometry/SharpGenus1HasseCurveRH.en}{SharpGenus1\allowbreak HasseCurveRH.en}):} Derives $\mathbb{Z}$-bilinearity of the endomorphism degree pairing from the Jordan--von Neumann parallelogram law on nonsingular Kummer models and proves \textbf{\code{sharp\us genus1\us hasse\us trace\us sq\us le\us four\us q} ($t^2 \le 4q$)} plus odd-trace sharpening $t^2 + 3 \le 4q$ (attained with equality on $\mathbb{F}_3$). \item \textbf{Short Sign-Only Deligne Frobenius Weil Bound (\ghfile{stdlib/en/AlgebraicGeometry/DeligneSignOnlyWeilBound.en}{DeligneSignOnly\allowbreak WeilBound.en}):} Formalizes the 2026 sign-only tensor-power / tridiagonal path-sum / Gysin induction argument (\code{arXiv:2611.00789v1}~\cite{deligne1974}), proving \code{deligne\us frobenius\us weight\us upper\us and\us pure\us bound\us from\us etale\us lefschetz} ($|\alpha|^2 = q^w$ on smooth proper varieties) with \code{0} kernel axioms modulo a single explicitly typed pre-1993 geometric record \code{Pre1993Etale\allowbreak AndWeakLefschetz\allowbreak Assumptions} (Grothendieck--Lefschetz trace, K\"{u}nneth, Poincar\'{e} duality, and Weak Lefschetz). \end{itemize} \end{enumerate} \subsection{Epistemic Hygiene: The Four-Status Arithmetic Concordance} \label{sec:epistemic} To ensure strict scientific transparency when formalizing contemporary arithmetic reductions (Appendix~C of Volume~II and \ghfile{stdlib/en/AlgebraicGeometry/ConstructiveZetaSpine.en}{Constructive\allowbreak ZetaSpine.en}), \code{endash book check} enforces a machine-audited \textbf{four-status schema} across all \code{39 / 39} items of \ghfile{books/catalogs/rh-spine-map.json}{rh-spine-map.json} (\code{v2}): \begin{itemize} \item \textbf{\code{proved-0-axioms-universal} (\code{28} items)}: Unconditionally proved in full mathematical generality with \code{0} axioms, \code{0} \code{Classical\dt choice}, and \code{0} \code{LEM} (including \code{exists\us dyadic\us pageN}, \code{lte\us unit\us int\us odd\us prime}, \code{gaussOp\us dual\us comp\us general\us finite\us group}, \code{stepanov\us count}, \code{mem\us gaussFiltration\us sub\us defect\us div\us three}, \code{sum\us vonMangoldt\us div\us le}, \code{eventually\us primeRemainder\us le\us rpow}, \code{log\us product\us formula}, \code{star\us inequality}, \code{sharp\us genus1\us hasse\us trace\us sq\us le\us four\us q}, \code{exists\us spherical\us behrend\us three\us term\us free}, \code{enough\us forms\us of\us hs\us dispersion}, and \code{long\us forms\us height\us closure}). \item \textbf{\code{proved-0-axioms-certified-instances} (\code{5} items)}: Unconditionally proved for explicit finite primes/ranks via LCF CAS certificates (\code{by cas\us smith}, \code{by cas\us resultant}, \code{by cas\us gauss}, \code{by cas\us theta}, \code{by cas\us stepanov}), with exact finite scope recorded in \code{certifiedScope}. \item \textbf{\code{classical-literature-boundary} (\code{3} items)}: Pre-2026 classical analytic or \'{e}tale-cohomological theorems (e.g.\ Dirichlet $L$-function Euler-product / Mellin bridge and pre-1993 \'{e}tale/Weak-Lefschetz inputs) isolated as explicit hypothesis records rather than postulated global axioms. \item \textbf{\code{bridge-hypothesis-boundary} (\code{3} items)}: Explicit 2026 bridge hypotheses (\code{SernauDirichlet\allowbreak GRHBridge1} in \code{sernau\us dirichlet\us grh\us spine\us from\us literature\us and\us star\us bridge}), verified non-vacuous by the universal \code{0}-axiom inhabitation theorem \code{sernau\us bridge\us toy\us model\us inhabited} and four semantic ablation countermodels (\code{NC-24c} / \code{NC-25c}). \end{itemize} Thus \code{endash} \textbf{does not claim an unconditional kernel proof of the classical Riemann Hypothesis or Dirichlet GRH}; instead, it makes every constructive algebraic, combinatorial, and diophantine engine 100\% axiom-free and makes every remaining analytic/cohomological input machine-inspectable in the type signature. % ============================================================================ \section{Research Boundaries, Related Work, and Conclusion} \label{sec:boundaries} % ============================================================================ \subsection{Comparison with Related Proof Systems} \label{sec:comparison} Table~\ref{tab:comparison} summarizes how \code{endash} compares architecturally with existing univalent, directed, and classical mechanized mathematics systems. \begin{table}[!htbp] \centering \caption{Architectural comparison across mechanized proof systems for groupoidal homotopy, directed category theory, constructive canonicity, and LCF computer algebra.} \label{tab:comparison} \footnotesize \setlength{\tabcolsep}{4.5pt} \renewcommand{\arraystretch}{1.24} \begin{tabularx}{\textwidth}{@{} >{\raggedright\arraybackslash}p{0.165\textwidth} >{\raggedright\arraybackslash}p{0.195\textwidth} >{\raggedright\arraybackslash}p{0.22\textwidth} >{\raggedright\arraybackslash}p{0.21\textwidth} >{\raggedright\arraybackslash}X @{}} \toprule \textbf{System} & \textbf{Groupoidal HoTT / Univalence} & \textbf{Native Directed Categories \& Lax Cells} & \textbf{Axiom-Free Constructive Canonicity} & \textbf{Integrated LCF CAS Tactics} \\ \midrule \textbf{Lean~4 / Mathlib} & Analytic quotients (\code{Quot\dt sound}, \code{Classical\dt choice}) & Analytic library (\code{CategoryTheory.*}) & Classical axioms pervasive & External / tactic \code{ring}/\code{linarith} \\ \addlinespace[2pt] \textbf{Cubical Agda / Arend} & Native cubical intervals \& univalence & Analytic encodings over cubical types & Yes (computational univalence) & Limited \\ \addlinespace[2pt] \textbf{\code{rzk} (Riehl--Shulman)}~\cite{riehl-shulman2017} & Simplicial topos layer & Directed simplices via tope logic & Axiomatic Segal/Rezk assumptions & No \\ \addlinespace[2pt] \textbf{\code{emdash} v3.2 (Lambdapi)} & Circle, \code{Groupoidify} target UMP & Native via \code{1,156} LF rules + \code{Q}-ladder & External OCaml rewrite oracle & TypeScript v3.2 bridge \\ \addlinespace[2pt] \textbf{\code{endash} (\code{v0.1.2}/\code{v0.1.3})} & Native \code{Grpd(u)}, \code{ua}/\code{coe}, HITs & Native \code{StrictCat}/\allowbreak\code{GrayCat}, \code{Q}-free $\Sigma^\pm$, Glued NbE & \textbf{\code{7,721} decls with \code{0}~axioms} (\code{17,430}/\code{18,705~LOC} TCB) & \textbf{\code{14} LCF \code{BigInt} CAS tactics} \\ \bottomrule \end{tabularx} \end{table} \subsection{Explicit Metatheoretic and Mathematical Boundaries} \label{sec:open-boundaries} \begin{enumerate} \item \textbf{External Metatheory.} While \code{endash}'s \code{17,430~LOC} kernel (\code{18,705~LOC} in \code{v0.1.3}) is tested by \code{307} positive and negative soundness checks (\code{NC-1} through \code{NC-25c}; \code{317} checks through \code{NC-26b} in \code{v0.1.3}), a mechanized proof of strong normalization, confluence, and categorical model soundness for the full combined \code{Grpd} + \code{StrictCat} + \code{GrayCat} + HIT calculus in an external metatheory (such as Rocq, Agda, or Lean) remains open future work. \item \textbf{Higher Weak $\omega$-Categories.} \code{StrictCat(u)} and \code{GrayCat(u)} capture strict $\omega$-categories and unilateral sesqui-/Gray interchange; full weak Crans--Gray tensor monoidality and weak unitors (Simpson's conjecture) are deliberately outside \code{StrictCat}/\code{GrayCat}. \item \textbf{General Scheme Gluing and Higher \code{Proj}.} Volume~II proves affine \code{QCoh} and \code{fppf} descent together with glued invariants of $\mathbb{P}^1_R$ ($\Gamma \simeq R$, $\Pic \simeq \mathbb{Z}$, $K_0 \simeq \mathbb{Z}^2$, GRR) and LCF-certified Hilbert--Serre polynomials for projective varieties; general atlas-glued arbitrary-dimension schemes and $\mathbb{P}^n_R = \Proj\,R[x_0,\dots,x_n]$ cohomology for symbolic $n$ remain clean next extensions. \end{enumerate} \subsection{Conclusion} \label{sec:conclusion} Collapsing the external logical-framework and profunctor ladder did not require sacrificing mathematical reach; on the contrary, it made large-scale synthetic and computational mathematics practical inside a single compact checker. By combining \code{StrictCat}/\code{GrayCat} stratification, canonical bitstream dualities, bunched modal contexts, generic functorial neutral variables, 2-periodic \code{Q}-free $\Sigma^\pm$, topological-height Glued NbE, and LCF-reified \code{BigInt} computer algebra, \code{endash} unites univalent foundations, Grothendieck topoi, Lurie-style \emph{Higher Algebra}, and certified arithmetic geometry in one executable, zero-axiom architecture. {\small \let\oldthebibliography\thebibliography \renewcommand{\thebibliography}[1]{\oldthebibliography{#1}\setlength{\itemsep}{2.2pt}\setlength{\parskip}{0pt}} \bibliographystyle{plain} \bibliography{references} } \end{document}