paperbot · PL 论文追踪

RSS

Reasoning about the garden of forking paths

ICFP 5(ICFP)2021
Yao Li, Li-yao Xia, Stephanie Weirich

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

Lazy evaluation is a powerful tool for functional programmers. It enables the concise expression of on-demand computation and a form of compositionality not available under other evaluation strategies. However, the stateful nature of lazy evaluation makes it hard to analyze a program's computational cost, either informally or formally. In this work, we present a novel and simple framework for formally reasoning about lazy computation costs based on a recent model of lazy evaluation: clairvoyant call-by-value. The key feature of our framework is its simplicity, as expressed by our definition of the clairvoyance monad. This monad is both simple to define (around 20 lines of Coq) and simple to reason about. We show that this monad can be effectively used to mechanically reason about the computational cost of lazy functional programs written in Coq.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot1129,
  title = {Reasoning about the garden of forking paths},
  author = {Yao Li and Li-yao Xia and Stephanie Weirich},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {5},
  number = {ICFP},
  year = {2021},
  doi = {10.1145/3473585}
}