Documentation

CslibFrontier.Languages.Probabilistic.Oracle.InterpNorm

Stepping the oracle interpreter through a concrete program #

Tags the lemmas of the simp set interp_norm, with which simp only [interp_norm, pmf_norm] computes (OracleComp.interpret handler program).run s for a program written out as a do block. The docstring of the attribute, in CslibFrontier.Languages.Probabilistic.Oracle.InterpNorm.Init, says what the set leaves, when to use it and how it differs from runWith_norm.

The members are:

All are existing declarations except ProbComp.interpret_unifOracle, stated here for the set: it is OracleComp.evalWith_eq_interpret at ProbComp.unifOracle, oriented so that the interpreter is rewritten to ProbComp.eval.

Answering each uniform draw of a closed program by its distribution gives the program's law.

This is OracleComp.evalWith_eq_interpret at ProbComp.unifOracle, read from right to left and with ProbComp.eval folded. Tagging that lemma in reverse would not do for interp_norm: it would turn every interpretation in PMF into OracleComp.evalWith, and would leave OracleComp.evalWith ProbComp.unifOracle program here, which the ProbComp.eval lemmas of pmf_norm do not match.