Variable-headed continuations in cut-free sequent calculi for pure type systems
Version 1 / Dec 01, 2026 / CC BY 4.0
Abstract
The weak left rule of Gutiérrez and Ruiz substitutes a variable applied to an argument throughout a continuation and a dependent context suffix. Their structural theorem removes the suffix while leaving the continuation arbitrary. Gutiérrez later restricted the continuation to a spine headed by a fresh auxiliary variable, absent from the remaining arguments and the expected type. We prove that this further restriction preserves every cut-free typing judgment for every pure type specification. The reconstruction preserves the context, subject and expected type, and supplies cut-free proofs of every type-formation premise. A type of an application can contain an earlier prefix of the very spine being reconstructed. To handle this dependence, an intermediate derivation records a formation certificate for each neutral application. Typed substitution transports those certificates through the dependent suffix, and a continuation interpretation reads the spine in arbitrary certified target contexts. Each recursive call descends through a supplied finite derivation. The result holds for specifications with multivalued axiom and product relations and carries no global normalization assumption. It answers the reverse-inclusion question recorded in Gutiérrez’s dissertation and yields admissibility of substitution by a certified neutral spine throughout a dependent continuation. It also identifies the sets of types assigned by the two cut-free calculi. Under the hypotheses of the earlier type-membership procedure, the same procedure consequently decides judgments of the unrestricted cut-free calculus. The main equivalence is formalized in Lean, both as a relation on judgments and on the original datatype of complete derivation trees. The accompanying software records the pinned dependencies and provides commands for repeating the proof and kernel checks.
Provenance statement
Tools used
- OpenAI
- ChatGPT
- OpenAI
- Codex
- Lean
- LeanVersion 4.34.1
References
- G. Barthe, J. Hatcliff, and M. H. B. Sø rensen, An induction principle for pure type systems, Theoretical Computer Science 266 (2001), 773--818. doi:10.1016/S0304-3975(00)00373-X (https://doi.org/10.1016/S0304-3975(00)00373-X).DOI
- Ł. Czajka, Practical proof search for Coq by type inhabitation, in Automated Reasoning (IJCAR 2020) , LNCS 12167, Springer, 2020, 28--57. doi:10.1007/978-3-030-51054-1_3 (https://doi.org/10.1007/978-3-030-51054-1_3).DOI
- J. Espírito Santo, M. J. Frade, and L. Pinto, Variations and interpretations of naturality in call-by-name lambda-calculi with generalized applications, Journal of Logical and Algebraic Methods in Programming 131 (2023), 100830. doi:10.1016/j.jlamp.2022.100830 (https://doi.org/10.1016/j.jlamp.2022.100830).DOI
- T. Felicissimo, Generic bidirectional typing for dependent type theories, in Programming Languages and Systems (ESOP 2024) , LNCS 14576, Springer, 2024, 143--170. doi:10.1007/978-3-031-57262-3_6 (https://doi.org/10.1007/978-3-031-57262-3_6).DOI
- F. Gutiérrez López, Cálculo de secuentes para sistemas de tipos puros , doctoral dissertation, Universidad de Málaga, 2003. University catalogue record (https://portaldelainvestigacion.uma.es/documentos/6393e033a88bbe44501dacbe).link
- F. Gutiérrez and B. Ruiz, A cut-free sequent calculus for pure type systems verifying the structural rules of Gentzen/Kleene, in Logic-Based Program Synthesis and Transformation (LOPSTR 2002) , LNCS 2664, Springer, 2003, 17--31. doi:10.1007/3-540-45013-0_2 (https://doi.org/10.1007/3-540-45013-0_2).DOI
- F. Gutiérrez and B. Ruiz, Cut elimination in a class of sequent calculi for pure type systems, Electronic Notes in Theoretical Computer Science 84 (2003), 105--116. doi:10.1016/S1571-0661(04)80848-X (https://doi.org/10.1016/S1571-0661(04)80848-X).DOI
- S. Lengrand, R. Dyckhoff, and J. McKinna, A focused sequent calculus framework for proof-search in pure type systems, Logical Methods in Computer Science 7 (1) (2011), article 6, 1--35. doi:10.2168/LMCS-7(1:6)2011 (https://doi.org/10.2168/LMCS-7(1:6)2011).DOI
- D. Murfet and W. Troiani, Gentzen--Mints--Zucker duality, Mathematical Structures in Computer Science 36 (2026), e7. doi:10.1017/S0960129526100462 (https://doi.org/10.1017/S0960129526100462).DOI
- OpenAI, Weak and strong normalization in pure type systems , preprint and Lean development, 25 September 2026. Preprint (https://github.com/openai/math/tree/main/preprints/Weak-and-strong-normalization-in-pure-type-systems-September-25-2026); archived revision of the Lean sources (https://github.com/openai/math/tree/3344da59991ed94f9ba711217b29c1d760badfa6/lean/OAI/Computability/TypeSystem).link
Show all 12 referencesShow fewer references
- S. Urciuoli, On the formal metatheory of the pure type systems using one-sorted variable names and multiple substitutions, Electronic Proceedings in Theoretical Computer Science 431 (2025), 17--33. doi:10.4204/EPTCS.431.2 (https://doi.org/10.4204/EPTCS.431.2).DOI
- F. R. Villatoro, Variable-headed continuations in cut-free sequent calculi for pure type systems: Lean formalization and reproducibility code , software artifact, version 1.0.0, 2026. Zenodo. 10.5281/zenodo.24662300.DOI
Version history
- v1 · 12 pagesSubmitted by Francisco Román Villatoro Machuca12 pages. The main equivalence is formalized in Lean 4. Reproducibility software and formal proofs are archived at https://doi.org/10.5281/zenodo.24662300.CurrentDec 01, 2026