Completeness for the derived OP₀–OP₁₀ oracle #
progressP and the denotation-keyed vcost/pcost measure show every
successful evalPaper evaluation is realized by runProgram.
Helper: right child of a denP-defined editOk node is denP-defined at the SAME fuel #
Controlled vcost node equations (avoid simp [vcost] over-unfolding literals) #
Lemma 1 — vcost_succ #
Lemma 2 — vcost_mono #
OP₆ strict local decrease (if-then-else macro). The reduct is a 6-level nested *-tree;
its vcost is SF(L,a0) + SF(c,b0) + SF([2,3],d0) + SF(L,[4[4b]]), where the last is exactly
4 + pcost g L b, the middle two are ≤ 2 (op0), and the first is 0 or the branch cost
(matching the RHS branch by a full evaluation trace b → *[L,b]∈{0,1} → +2 → slot → branch).
The op₆ weight 100 dominates the macro skeleton (8).
Lemma 3 — cost_local (strict local decrease at a *-redex) #
Lemma 4 — step congruence and cost_stepP #
Step congruence for vcost. Swapping the (denotation-preserving, pending) subnode sub
for r₀ changes vcost F by exactly vcost F r₀ - vcost F sub (additive form).
Lemma 5 — run_completeP #
Lemma 6 — paperComplete_holds #
OP₀–OP₁₀ consistency #
The paper-derived local machine and derived OP₀–OP₁₀ oracle compute the
same partial function. This is a Lean consistency theorem, not a theorem
stated in main.tex.