Table of Contents
Fetching ...

Positive Focusing is Directly Useful

Beniamino Accattoli, Jui-Hsuan Wu

TL;DR

This work studies the positive λ-calculus $\lambda_{\mathtt pos}$, which imposes a compactness constraint to capture the core of useful sharing in a sharing-based, open, call-by-value setting. By developing an Open Value Substitution Calculus ($\lambda_{\mathsf{o}vsc}$) and a core reduction $\rightarrow_{o\mathtt{core}}$, the authors prove a postponement/factorization theorem that reduces reduction to a core part containing only directly useful steps and a non-useful remainder. They then construct a translation $\llbracket \cdot \rrbracket$ from $\lambda_{\mathsf{o}vsc}$ to an explicit open positive calculus $\lambda_{\mathsf{o}x pos}$, showing that core reductions simulate in the target calculus and that core normal forms map to normal forms, establishing termination equivalence. The results yield a principled framework for reasonable time cost models and point toward efficient implementations and optimizations, as well as potential extensions to call-by-need evaluation.

Abstract

Recently, Miller and Wu introduced the positive $λ$-calculus, a call-by-value $λ$-calculus with sharing obtained by assigning proof terms to the positively polarized focused proofs for minimal intuitionistic logic. The positive $λ$-calculus stands out among $λ$-calculi with sharing for a compactness property related to the sharing of variables. We show that -- thanks to compactness -- the positive calculus neatly captures the core of useful sharing, a technique for the study of reasonable time cost models.

Positive Focusing is Directly Useful

TL;DR

This work studies the positive λ-calculus , which imposes a compactness constraint to capture the core of useful sharing in a sharing-based, open, call-by-value setting. By developing an Open Value Substitution Calculus () and a core reduction , the authors prove a postponement/factorization theorem that reduces reduction to a core part containing only directly useful steps and a non-useful remainder. They then construct a translation from to an explicit open positive calculus , showing that core reductions simulate in the target calculus and that core normal forms map to normal forms, establishing termination equivalence. The results yield a principled framework for reasonable time cost models and point toward efficient implementations and optimizations, as well as potential extensions to call-by-need evaluation.

Abstract

Recently, Miller and Wu introduced the positive -calculus, a call-by-value -calculus with sharing obtained by assigning proof terms to the positively polarized focused proofs for minimal intuitionistic logic. The positive -calculus stands out among -calculi with sharing for a compactness property related to the sharing of variables. We show that -- thanks to compactness -- the positive calculus neatly captures the core of useful sharing, a technique for the study of reasonable time cost models.

Paper Structure

This paper contains 9 sections, 26 theorems, 9 equations, 8 figures.

Key Result

Proposition 3.1

For $a \in \{\mathsf{m}, {\mathsf e}\}$, If $t \rightarrow_{{\mathsf o}{\sf gc}} \rightarrow_{{\mathsf o} a} u$, then $t \rightarrow_{{\mathsf{o}} a} \rightarrow_{{\mathsf o}{\sf gc}} u$.

Figures (8)

  • Figure 1: The Open (Micro-Step) Value Substitution Calculus $\lambda_{{\mathsf o}\mathtt{vsc}}$.
  • Figure 2: The open positive $\lambda$-calculus $\lambda_{\mathtt{pos}}$.
  • Figure 3: Assignment of simple types to positive $\lambda$-terms.
  • Figure 4: The open explicit positive $\lambda$-calculus $\lambda_{{\mathsf o}\mathtt{x}\mathtt{pos}}$.
  • Figure 5: Dissected rewriting rules for $\lambda_{{\mathsf o}\mathtt{vsc}}$.
  • ...and 3 more figures

Theorems & Definitions (29)

  • Proposition 3.1: Local postponement of garbage collection, originally at p. \ref{['prop:local-postponement-gc']}
  • Proposition 3.2: Postponement of garbage collection, originally at p. \ref{['prop:gc-postponement-vsc']}
  • Proposition 3.3: Local termination, originally at p. \ref{['prop:local-termination-lsvsc']}
  • Proposition 4.1
  • Lemma 4.2: Stability under renamings
  • Theorem 4.3: Positive diamond, originally at p. \ref{['thm:lppos-diamond']}
  • Proposition 4.4: Local postponement of garbage collection, originally at p. \ref{['prop:local-postponement-gc-xpos']}
  • Proposition 4.5: Postponement of garbage collection, originally at p. \ref{['prop:vsc-gc-postponement']}
  • Proposition 4.6: Local termination, originally at p. \ref{['prop:local-termination-positive']}
  • Definition 5.1
  • ...and 19 more