crosslang/golang-lean/GolangLean/PureEval.lean
Maximus Gorog fd3d42ae33 Add 'golang-lean/' from commit 'f5f17019224c6a6c319387214ceb8e29d09251c6'
git-subtree-dir: golang-lean
git-subtree-mainline: 6487c7046f
git-subtree-split: f5f1701922
2026-05-12 02:59:14 -06:00

18 lines
507 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import GolangLean.AST
import GolangLean.Value
import GolangLean.Env
namespace GolangLean
/-! # Pure (non-IO) evaluator.
Mirror of octive-lean's `PureEval`. Strips IO so that the evaluator becomes
a `def` (not `partial def`) over a finite fuel parameter, suitable for
reasoning. The relationship to `Eval.evalExpr` is captured by `ValueEquiv`.
Stub for now — fill in once `Eval` is non-trivial. -/
def evalExprP (_fuel : Nat) (_env : Env) (_e : Expr) : Option (Value × Env) :=
none
end GolangLean