A sound pure type system with ranks as sorts and Type-in-Type

Pavel Sokolov, Alexander Kuklev

Every typable term of PTS-rk is strongly β-normalizing in a well-formed context. The sorts are rkirk_{i} for natural i, each axiom has the form rkirk_{i} : rk0rk_{0}, and a dependent function type with domain rank⁡m\operatorname{rank} m and codomain rank⁡n\operatorname{rank} n has rank⁡max⁡(m+1,n)\operatorname{rank} \max (m+1,n). The application and substitution lemmas are proved together by induction on rank.

What was already known

The usual unrestricted Type-in-Type calculus admits Girard’s paradox. Predicative type theories typically use a hierarchy of universes. PTS-rk keeps a self-typed sort and restricts dependent products using rank.

How the result developed

  1. 18 Oct 2026 · Manuscript date [1]

    Pavel Sokolov and Alexander Kuklev reported the AI-assisted result in this manuscript.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-autonomous
ImportanceNotable
Technical verificationFormal (Rocq)
Human understandingExplained

AI involvement

Aleksandr Levin gave the authors’ ranked calculus to GPT-6 Pro. The paper reports the model’s response. LLM outputted the proof which we retold above. Pavel Sokolov and Alexander Kuklev rewrote the strong-normalization proof and formalized it in Rocq.

Importance

The proof establishes termination of all β-reduction paths in a concrete dependent type system with a self-typed sort.

Technical verification

Sokolov and Kuklev report a complete Rocq check of strong normalization without added axioms. Their formalization first proves an auxiliary predicate defined using weak-head expansion, then derives strong normalization. The pinned declaration matches the paper’s rank rule and well-formed-context hypothesis.

Formal checking

Sokolov and Kuklev report a complete Rocq check of strong normalization without added axioms. Their formalization first proves an auxiliary predicate defined using weak-head expansion, then derives strong normalization. The pinned declaration matches the paper’s rank rule and well-formed-context hypothesis.

Checker
Rocq
Scope
Every typable term of PTS-rk is strongly β-normalizing in a well-formed context. The sorts are rkirk_{i} for natural i, each axiom has the form rkirk_{i} : rk0rk_{0}, and a dependent function type with domain rank⁡m\operatorname{rank} m and codomain rank⁡n\operatorname{rank} n has rank⁡max⁡(m+1,n)\operatorname{rank} \max (m+1,n). The application and substitution lemmas are proved together by induction on rank.
Basis
Reported by the linked checker

Human understanding

Sokolov and Kuklev explain how rank controls substitution. In the application of a lambda term, the substituted variable has a lower-ranked type than the function. This lets the proof use the substitution result at a smaller rank.

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

The manuscript identifies the proof in the strong-normalization section as a retelling of the proof GPT-6 Pro returned to Aleksandr Levin. The authors supplied the calculus and implemented a handwritten Rocq formalization of the argument.