Theorems 4, 5 & 6 and Lemma 2 (V5): Strong Normalization of System and Embedding of
ProvedNishtAbel2024V5.theorems_4_5_and_6Proves the strong normalization metatheory of System and the embedding of lexicographic measure programs from System (Chapter 5, Sections 5.4.2–5.5, pp. 37–40 of Nisht and Abel 2024):\n\n1. Theorem 4 — Soundness of Mutual Recursive Blocks: In a closed run-time world with distinct function names containing , if the mutual block is well-typed with respect to an SCT-valid invocation graph family (, written BlockTy sig Ξ) and , then : every declaration inhabits its semantic type for all valid valuations of .\n2. Lemma 2 — Soundness of Global Signatures: If a telescope of mutual blocks is well-typed (BlocksTy blocks) inside a closed world with distinct names, then .\n3. Theorem 5 — Strong Normalization of Programs: For any well-typed complete program (ProgramTy blocks main A), the entry term is strongly normalizing in the world :\n
\n4. Theorem 6 — Embedding of Lexicographic Measures (): Any mutual block well-typed under a duplicate-free lexicographic termination measure (LexBlockTy sig Ξ) admits an SCT-valid invocation graph family and is therefore well-typed in System (BlockTy sig Ξ).\n\nFormalization Note Theorem 1 (well-foundedness of the semantic call relation induced by an SCT-valid graph family) is proved directly from infinite Ramsey's theorem (Mathlib.Order.Filter.Ultrafilter) with zero custom axioms.
import Definitions.Def_NishtAbel2024V5_Syntax import Definitions.Def_NishtAbel2024V5_Semantics import Definitions.Def_NishtAbel2024V5_Inference
namespace NishtAbel2024V5
theorem theorems_4_5_and_6 :
(∀ (W sig Ξ : List FunDecl),
(∀ d ∈ sig ++ Ξ, d ∈ W) →
(W.map FunDecl.name).Nodup →
(∀ d ∈ W, (Tm.lam d.clauses).Closed) →
BlockTy sig Ξ →
SemValid W sig →
SemValid W Ξ) ∧
(∀ (W : List FunDecl) (blocks : List (List FunDecl)),
(∀ d ∈ blocks.flatten, d ∈ W) →
(W.map FunDecl.name).Nodup →
(∀ d ∈ W, (Tm.lam d.clauses).Closed) →
BlocksTy blocks →
SemValid W blocks.flatten) ∧
(∀ (blocks : List (List FunDecl)) (main : Tm) (A : Ty),
ProgramTy blocks main A →
SN blocks.flatten main) ∧
(∀ (sig Ξ : List FunDecl),
LexBlockTy sig Ξ →
BlockTy sig Ξ) := by sorry
end NishtAbel2024V5