Intersection type systems, as adequate models of the λ-calculus, induce an equational theory on terms, that we refer to as type equivalence. We give a new proof technique to coinductively characterize type equivalence. To do so, we explore a simple setting, namely weak head type equivalence, which is the equational theory induced by a weak head non-idempotent intersection type system. We prove a folklore result: weak head type equivalence coincides with Sangiorgi’s normal form bisimilarity. What is new in our development is that we only rely on coinductive program equivalences, bypassing the need to introduce term approximants, which were used in previous works characterizing type equivalence. The crucial part of this characterization is to show that type equivalent terms are normal form bisimilar: we do so by constructing shape typings that can only type terms of a specific normal form structure. Shape typings are a light form of principal types, a technique often used in intersection types to generate from one or few principal typing all possible typings of a term.
@InProceedings{lancelot:LIPIcs.TYPES.2024.4, author = {Lancelot, Adrienne}, title = {{Separating Terms by Means of Multi Types, Coinductively}}, booktitle = {30th International Conference on Types for Proofs and Programs (TYPES 2024)}, pages = {4:1--4:18}, series = {Leibniz International Proceedings in Informatics (LIPIcs)}, ISBN = {978-3-95977-376-8}, ISSN = {1868-8969}, year = {2025}, volume = {336}, editor = {M{\o}gelberg, Rasmus Ejlers and van den Berg, Benno}, publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik}, address = {Dagstuhl, Germany}, URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.TYPES.2024.4}, URN = {urn:nbn:de:0030-drops-233660}, doi = {10.4230/LIPIcs.TYPES.2024.4}, annote = {Keywords: lambda calculus, intersection types, program equivalence} }
Feedback for Dagstuhl Publishing