Typed Knowledge over Constructive Institutions: A Proof-Relevant Type Theory for Verified Science
Hans-Martin Will
Abstract
Mathematical proof assistants such as Coq, Agda, and Lean 4 build proof irrelevance into definitional conversion (p q for p, q : P with P : Prop), erasing which derivation established a theorem. While natural for mathematics over fixed axioms, judgmental proof irrelevance is incompatible with verified scientific stores, which must inspect and compare independent derivations of a claim to assess consilience and compute counterfactual retractions when an assay, reagent, or model is invalidated. Moreover, combining definitional proof irrelevance with subsingleton elimination breaks normalization and makes algorithmic conversion non-transitive. We present the type-theoretic and institutional foundations of Eigenius, a verified knowledge substrate for science. First, we formulate a dependent kernel with cumulative universes (Prop, Set, Typek), impredicative Prop, inductive families with index-forced subsingleton elimination, and intensional identity types, where definitional equality is untyped joinability under an orthogonal CRS and proof irrelevance is a witnessed axiom (irrel : ΠP:Prop.\,Πp,q:P.\,Id\,P\,p\,q). Second, we unify universe cumulativity, Π-covariant subtyping, and ontology class inclusions in a coercion-free subsumption judgment whose bidirectional fragments (K0, K1) satisfy subject reduction, compile to unification-free checkers (A0, A1), and match declarative typing. Third, we organize external verifiers into a three-level institutional hierarchy with explicit axiom policies (Adopt, Discharge, Relativize), internalize a justification logic with Why-provenance support supp(j,P), and embed Cooper's Type Theory with Records (TTR) for open-world knowledge graphs. Finally, we prove consistency in Grothendieck universes and mechanize the metatheory in Lean 4 with zero sorry axioms.
Create a lesson
Related papers
Typed Knowledge over Constructive Institutions
Shared title terminology · Hans-Martin Will
Proof-Relevant Interpolation for Circular Proofs in Linear Logic
Shared title terminology · Daniel Osorio-Valencia, Alexis Saurin
Proof Theory of Quantifier Shifts - An Overview
Shared title terminology · Matthias Baaz, Mariami Gamsakhurdia
Global Choice without Excluded Middle in Dependent Type Theory
Shared title terminology · Sewon Park
Unit: a type checker for dependent type theory
Shared title terminology · Thierry Coquand
Hereditary permutations for simple types revisited: A baby case for University Algebra
Shared title terminology · Thorsten Altenkirch