Random #
Correctness lemmas for random IR nodes in the IR -> compiled runtime bridge.
These lemmas keep the end-to-end semantic equivalence proof in Correctness.SemanticEquivalence small: the top-level proof
can dispatch to branch theorems, while this file checks branch-specific compiler and evaluator
behavior.
Build note: the random operators are deterministic in the semantics once the seed and node id are fixed. The proof still has to show that the compiler and IR evaluator derive the same key, append a value of the same dependent shape, and continue with the same tail graph. Seed/key helper lemmas keep additional deterministic random primitives mechanical.
Main definitions #
Correctness lemma for .randUniform seed lowering.
Correctness lemma for .bernoulliMask seed lowering.