mockProgram
plain-language theorem explainer
mockProgram supplies a constant BALANCE opcode as a baseline LProgram for cycle evaluation examples. VM tooling authors cite it when constructing smoke tests for lCycle and commitEvent. The definition is a direct one-line constant function with the simp attribute.
Claim. Define the mock program $P : LProgram$ by $P(x) :=$ record with opcode field set to BALANCE, for arbitrary input $x$.
background
The VM.Commit module supplies definitions for conservative COMMIT boundaries under the v2 flag, importing LProgram types from LNAL.Opcodes and VM.State. mockProgram is one of four sibling definitions alongside commitEvent, mockState, and cycleReport. It depends on the for structure from UniversalForcingSelfReference, which records structural properties required for meta-realization certificates.
proof idea
Direct definition: the body is the constant function fun _ => { op := Opcode.BALANCE } with the simp attribute attached.
why it matters
This definition supplies concrete input data for the cycleReport smoke-test, which calls lCycle on mockProgram and mockState then formats commitEvent output. It therefore supports verification of COMMIT boundary predicates in the VM layer without invoking the full forcing chain or phi-ladder machinery.
Switch to Lean above to see the machine-checked source, dependencies, and usage graph.