Theorem 15 (V5): Soundness of Type-Based Termination Checking (Algorithm 2 Implies Well-Typedness and Strong Normalization)
ProvedNishtAbel2024V5.theorem_15The main end-to-end soundness theorem of Nisht and Abel (2024) (Chapter 6, Section 6.5, Theorem 15, p. 59), uniting algorithmic size inference, constraint solving, size-change termination checking, and the ordinal reducibility semantics of System .\n\nLet be a closed run-time world of function declarations with distinct names containing , where every global signature declaration is well-kinded (SizeCtxWf g.sizeParams ∧ KindingC g.sizeParams [] g.ty .star) and semantically valid in (SemValid W sig). If Algorithm 2 accepts the unsized mutual block and produces the size-annotated block (Algorithm2Accepts sig Ξ Ξannot), then:\n
\n\nIn particular, is both syntactically well-typed in System (BlockTy sig Ξannot) and semantically valid / strongly normalizing in (SemValid W Ξannot).
import Definitions.Def_NishtAbel2024V5_Syntax import Definitions.Def_NishtAbel2024V5_Semantics import Definitions.Def_NishtAbel2024V5_Inference
namespace NishtAbel2024V5
theorem theorem_15 (W sig Ξ Ξannot : List FunDecl)
(hsigwf : ∀ g ∈ sig, SizeCtxWf g.sizeParams ∧ KindingC g.sizeParams [] g.ty .star)
(hacc : Algorithm2Accepts sig Ξ Ξannot)
(hW : ∀ d ∈ sig ++ Ξannot, d ∈ W)
(hnames : (W.map FunDecl.name).Nodup)
(hclosed : ∀ d ∈ W, (Tm.lam d.clauses).Closed)
(hsig : SemValid W sig) :
BlockTy sig Ξannot ∧ SemValid W Ξannot := by sorry
end NishtAbel2024V5