Call-by-Push-Value (CBPV) is a programming paradigm subsuming both Call-by-Name (CBN) and Call-by-Value (CBV) semantics. The essence of this paradigm is captured by the Bang Calculus, a (concise) term language connecting CBPV and Linear Logic. This paper presents a revisited version of the Bang Calculus, called $\lambda !$, enjoying some important properties missing in the original formulation. Indeed, the new calculus integrates commutative conversions to unblock value redexes while being confluent at the same time. A second contribution is related to non-idempotent types. We provide a quantitative type system for our $\lambda !$-calculus, and we show that the length of the (weak) reduction of a typed term to its normal form plus the size of this normal form is bounded by the size of its type derivation. We also explore the properties of this type system with respect to CBN/CBV translations. We keep the original CBN translation from $\lambda$-calculus to the Bang Calculus, which preserves normal forms and is sound and complete with respect to the (quantitative) type system for CBN. However, in the case of CBV, we reformulate both the translation and the type system to restore two main properties: preservation of normal forms and completeness. Last but not least, the quantitative system is refined to a tight one, which transforms the previous upper bound on the length of reduction to normal form plus its size into two independent exact measures for them.
翻译:CB- Push- Value (CBPV) 是一个包含 Call- by- Name (CBN) 和 CCL- Value (CBV) 语义的编程范式。 这个范式的精髓被Bang Calculus( CBCululus) 和 Linearal Lologic 所连接的( concise) 语义所捕捉。 本文展示了重审版的 Bang Calculus 版本, 名为$\lambda $ 。 它在原始版中缺少一些重要的属性。 新的微积分将通缩转换成 unblock 值 redexexexual( CBN/ CBV), 而同时同时在相同格式的正常版本中, 我们提供一种定量的量化系统, 将原始的CLBLBA 和 CLO 格式转换为 CRUL 。 我们将原 CLO 格式的精度转换为 CBL 格式, 和 CLO 格式的缩缩缩译为 CRV 。