ComparatorChallenges/TypeSystemNormalization.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: OpenAI's pinned repository says an unreleased internal model produced the manuscripts and supporting proof artifacts. The collection builds on the mathematics community's accumulated problems, results, language, and formal libraries; each manuscript's BibTeX and bibliography are the authority for individual scholarly credit.
Project sources: Pinned openai/math documentation, Pinned formalization catalogue
19 declarations, 1 contain sorry, 0 declared as axioms
Full annotated PTS syntax, modulo alpha-renaming via de Bruijn indices. Contexts are stored newest-first, each declaration in its prefix context. No functionality assumptions on axioms or product rules.
- inductive
OAI.PureTypeSystem.Exprline 15Also declared: OAI/Computability/TypeSystem/Basic.lean:15 (same declaration text).
- def
OAI.PureTypeSystem.Expr.liftRenline 27Also declared: OAI/Computability/TypeSystem/Basic.lean:27 (same declaration text).
- def
OAI.PureTypeSystem.Expr.renameline 31Also declared: OAI/Computability/TypeSystem/Basic.lean:31 (same declaration text).
- def
OAI.PureTypeSystem.Expr.liftSubline 38Also declared: OAI/Computability/TypeSystem/Basic.lean:38 (same declaration text).
- def
OAI.PureTypeSystem.Expr.substline 42Also declared: OAI/Computability/TypeSystem/Basic.lean:42 (same declaration text).
- def
OAI.PureTypeSystem.Expr.singleline 49Also declared: OAI/Computability/TypeSystem/Basic.lean:49 (same declaration text).
- def
OAI.PureTypeSystem.Expr.instantiateline 53Also declared: OAI/Computability/TypeSystem/Basic.lean:53 (same declaration text).
- structure
OAI.PureTypeSystem.Specificationline 57Also declared: OAI/Computability/TypeSystem/Basic.lean:57 (same declaration text).
- inductive
OAI.PureTypeSystem.Betaline 61Also declared: OAI/Computability/TypeSystem/Basic.lean:61 (same declaration text).
- def
OAI.PureTypeSystem.Convertsline 70Also declared: OAI/Computability/TypeSystem/Basic.lean:70 (same declaration text).
- def
OAI.PureTypeSystem.Normalline 72Also declared: OAI/Computability/TypeSystem/Basic.lean:72 (same declaration text).
- def
OAI.PureTypeSystem.WeaklyNormalizingline 74Also declared: OAI/Computability/TypeSystem/Basic.lean:74 (same declaration text).
- def
OAI.PureTypeSystem.StronglyNormalizingAccessibility for the converse of reduction: strong normalization, including reductions in all type annotations line 79Source documentation
Accessibility for the converse of reduction: strong normalization, including reductions in all type annotations.
L4DEL explanation
Accessibility for the converse of reduction: strong normalization, including reductions in all type annotations.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/Computability/TypeSystem/Basic.lean:79 (same declaration text).
def StronglyNormalizing {S : Type u} (M : Expr S) : Prop := …Mentions: OAI.PureTypeSystem.Expr
- inductive
OAI.PureTypeSystem.HasTypeline 82Also declared: OAI/Computability/TypeSystem/Basic.lean:82 (same declaration text).
- inductive
OAI.PureTypeSystem.ValidContextline 100Also declared: OAI/Computability/TypeSystem/Basic.lean:100 (same declaration text).
- def
OAI.PureTypeSystem.Legalline 105Also declared: OAI/Computability/TypeSystem/Basic.lean:105 (same declaration text).
- def
OAI.PureTypeSystem.SystemWeaklyNormalizingline 108Also declared: OAI/Computability/TypeSystem/Basic.lean:108 (same declaration text).
- def
OAI.PureTypeSystem.SystemStronglyNormalizingline 111Also declared: OAI/Computability/TypeSystem/Basic.lean:111 (same declaration text).
- theorem
OAI.PureTypeSystem.weak_implies_strongChallenge statement: Weak normalization implies strong normalization in pure type systems sorry line 116Source documentation
System-wide weak normalization implies strong normalization for every PTS, including arbitrary sort types, nonfunctional rules and annotated terms.
L4DEL explanation
The formalization proves the $\beta$-Barendregt–Geuvers–Klop conjecture for pure type systems: if every legal expression in every valid context has some terminating $\beta$-reduction sequence, then every $\beta$-reduction sequence from every such expression terminates. Reduction is allowed inside type annotations, and the specification may have arbitrary sorts and nonfunctional axioms or rules.
- This is an exact comparator target linked by the pinned repository's formalization note for this result.
- The repository's comparator configuration selects OAI.Computability.TypeSystem.Normalization as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Computability/TypeSystem/Normalization.lean:82 (same statement text; different proof or body). Qualify references as OAI.PureTypeSystem.weak_implies_strong@path.
theorem weak_implies_strong {S : Type u} (P : Specification S) (h : SystemWeaklyNormalizing P) : SystemStronglyNormalizing P := by …Mentions: OAI.PureTypeSystem.Specification, OAI.PureTypeSystem.SystemWeaklyNormalizing, OAI.PureTypeSystem.SystemStronglyNormalizing