🤖 AI Summary
Although relational semantics can model resource-sensitive λ-calculi, the induced preorder and equational theory offer only qualitative characterizations, lacking the ability to quantify the number of interactions between terms and contexts. This work introduces, for the first time, the inspector calculus into the relational semantics framework, proposing a quantitative and context-sensitive interpretation mechanism that refines program behavior by bounding interaction counts. By imposing such quantitative constraints, the approach overcomes the limitations of traditional qualitative models and demonstrates that relational semantics can effectively refine the contextual preorder, thereby enhancing the discriminative power over λ-term behaviors.
📝 Abstract
The relational semantics of linear logic is a powerful framework for defining resource-aware models of the $\lambda$-calculus. However, its quantitative aspects are not reflected in the preorders and equational theories induced by these models. Indeed, they can be characterized in terms of (in)equalities between B\"ohm trees up to extensionality, which are qualitative in nature. We employ the recently introduced checkers calculus to provide a quantitative and contextual interpretation of the preorder associated to the relational semantics. This way, we show that the relational semantics refines the contextual preorder constraining the number of interactions between the related terms and the context.