Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash 91 tok/s
Gemini 2.5 Pro 32 tok/s Pro
GPT-5 Medium 39 tok/s
GPT-5 High 31 tok/s Pro
GPT-4o 104 tok/s
GPT OSS 120B 479 tok/s Pro
Kimi K2 231 tok/s Pro
2000 character limit reached

Equivalence of eval-readback and eval-apply big-step evaluators by structuring the lambda-calculus's strategy space (2212.02494v7)

Published 5 Dec 2022 in cs.LO

Abstract: We study the equivalence between eval-readback and eval-apply big-step evaluators in the general setting of the pure lambda calculus. We study one-step' equivalence (same strategy) and also discussbig-step' equivalence (same final result). One-step equivalence extends for free to evaluators in other settings (calculi, programming languages, proof assistants, etc.) by restricting the terms (closed, convergent) while maintaining the strategy. We present a proof that one-step equivalence holds when (1) the readback' stage satisfies straightforward well-formedness provisos, (2) theeval' stage implements a uniform' strategy, and (3) the eval-apply evaluator implements abalanced hybrid' strategy that has eval' as a subsidiary strategy. The proof proceeds thelightweight fusion by fixed-point promotion' program transformation on evaluator implementations to fuse readback and eval into the balanced hybrid. The proof can be followed with no previous knowledge of the transformation. We use Haskell 2010 as the implementation language, with all evaluators written in monadic style to guarantee semantics (strategy) preservation, but the choice of implementation language is immaterial. To illustrate the large scope of the equivalence, we provide an extensive survey of the strategy space using canonical eval-apply evaluators in code and big-step `natural' operational semantics. We discuss the strategies' properties, some of their uses, and their abstract machines. We improve the formal definition of uniform and hybrid strategy, use it to structure the strategy space, and to obtain generic higher-order evaluators which are used in the equivalence proof. We introduce a systematic notation for both evaluator styles and use it to summarise strategy and evaluator equivalences, including (non-)equivalences within a style and (non-)equivalences between styles not proven by the transformation.

List To Do Tasks Checklist Streamline Icon: https://streamlinehq.com

Collections

Sign up for free to add this paper to one or more collections.

Summary

We haven't generated a summary for this paper yet.

Ai Generate Text Spark Streamline Icon: https://streamlinehq.com

Paper Prompts

Sign up for free to create and run prompts on this paper using GPT-5.

Dice Question Streamline Icon: https://streamlinehq.com

Follow-up Questions

We haven't generated follow-up questions for this paper yet.

Don't miss out on important new AI/ML research

See which papers are being discussed right now on X, Reddit, and more:

“Emergent Mind helps me see which AI papers have caught fire online.”

Philip

Philip

Creator, AI Explained on YouTube