Typed Knowledge over Constructive Institutions: A Proof-Relevant Type Theory for Verified Science

Will, Hans-Martin

–arXiv.org Artificial Intelligence 

Proof-assistant kernels with strict propositions---Lean 4, Agda's Prop, and Coq/Rocq's SProp---build proof irrelevance into conversion ($p \equiv q$ for $p, q : P$), equating all derivations of a theorem. While natural for pure mathematics, judgmental proof irrelevance breaks provenance in verified scientific stores, where predicates, refinements, and institutional maps must distinguish independent derivations for consilience and counterfactual retraction; with subsingleton elimination, it also breaks normalization and algorithmic transitivity. We present the type-theoretic and institutional foundations of Eigenius, a kernel for provenance-preserving scientific stores. First, we formulate a dependent kernel with cumulative universes (Prop, Set, $\mathsf{Type}_k$ for $k \ge 1$), impredicative Prop, inductive families with index-forced subsingleton elimination, and intensional identity types: conversion $\equiv$ is untyped orthogonal-CRS joinability, while proof irrelevance is a witnessed axiom ($\mathsf{irrel} : ΠP:\mathsf{Prop}.\,Πp,q:P.\,\mathsf{Id}\,P\,p\,q$). Second, coercion-free subsumption unifies cumulativity, $Π$-covariant subtyping, and ontology inclusions; its bidirectional fragments ($\mathcal{K}_0, \mathcal{K}_1$) satisfy subject reduction, match declarative typing, and compile to heuristic-free checkers ($\mathcal{A}_0, \mathcal{A}_1$) sound and complete relative to strong normalization. Third, we link external verifiers via constructive institutions (Adopt, Discharge, Relativize), internalize justification logic with Why-provenance $\mathsf{supp}(j,P)$, and type open-world knowledge graphs via TTR. Finally, we prove consistency in Grothendieck universes and mechanize the metatheory in Lean 4 with zero sorry.