Canonical continuations of renamed calls #
WP.of_spec_rename and WP.Exact.of_spec_rename pass the small returned state to a continuation
whose caller state is explicitly Data.extend. The wram_call … canonical … with … form handles
both WP (bounded-time ExecWithin) and WP.Exact (exact-count Exec) goals, accepts direct
ExecWithin/Exec lemmas (wram_call h canonical), automatically peels leading .seq, and
infers f.Injective when omitted (wram_call h canonical with …). The word canonical is not
reserved: importers may still use it as an identifier.
Outside-bank reads use the original caller; inside-bank reads need the callee's actual output or preservation facts. Memory is the callee's returned memory, with no implied memory frame.
Data.reduceExtendRegs normalizes one read at a time for both symbolic banks (checking the local
context for Function.Injective f, j ∉ Set.range f, ∀ k, f k ≠ j, Fin.castAdd, Fin.castLE,
Fin.natAdd, and linear Fin.mk definitions in O(1)) and closed finite banks. It never unfolds
the noncomputable Function.extend or expands an entire register function.
Main results #
WP.of_spec_rename,WP.of_spec_rename': canonicalWPcontinuation of an existential renamed routine contract (and witness-retaining variant).WP.of_execWithin_rename,WP.of_execWithin_rename_eq: canonicalWPcontinuations of directExecWithincontracts.WP.Exact.of_spec_rename,WP.Exact.of_spec_rename',WP.Exact.of_exec_rename,WP.Exact.of_exec_rename_eq: exact-count counterparts onWP.Exact.
Continue a renamed fixed-time routine at its canonical caller state, with exact allowance.
Witness-preserving variant of WP.of_spec_rename, retaining ExecWithin w c (x.comap f) y T
so regs_frame can follow hy.regs_eq across the small callee state y.
Continue a renamed direct ExecWithin routine at its canonical caller state y.extend f x.
Continue a renamed direct ExecWithin routine with y' = y binding its small state.
Continue a renamed fixed-time routine at its canonical caller state with exact instruction count.
Witness-preserving variant of WP.Exact.of_spec_rename, retaining Exec w c (x.comap f) y T
so regs_frame can follow hy.regs_eq across the small callee state y.
Continue a renamed direct Exec routine at its canonical caller state y.extend f x.
Continue a renamed direct Exec routine with y' = y binding its small state.
Normalize only the selected read of a Data.extend register bank. Checks local Injective
hypotheses, symbolic Fin.castAdd / Fin.castLE / Fin.natAdd maps, and linear Fin.mk bank
maps before falling back to closed finite-bank decide.
Apply a fixed-time, direct, or time-indexed routine contract and expose its continuation. Only bank-view projections are normalized; the callee program remains closed.
Extensions:
Direct
wram_call hwithoutwith(for bareExecWithin/Execcontracts), optional hint lemmas[h₁, …], andrenamedbank forms.Apply a renamed routine contract with its small returned state and canonical caller view
small.extend bank caller. Supports bothWPandWP.Exact.
Apply a fixed-time, direct, or time-indexed routine contract and expose its continuation. Only bank-view projections are normalized; the callee program remains closed.
Extensions:
Direct
wram_call hwithoutwith(for bareExecWithin/Execcontracts), optional hint lemmas[h₁, …], andrenamedbank forms.Apply a renamed routine contract with its small returned state and canonical caller view
small.extend bank caller. Supports bothWPandWP.Exact.
Apply a fixed-time, direct, or time-indexed routine contract and expose its continuation. Only bank-view projections are normalized; the callee program remains closed.
Extensions:
Direct
wram_call hwithoutwith(for bareExecWithin/Execcontracts), optional hint lemmas[h₁, …], andrenamedbank forms.Apply a renamed routine contract with its small returned state and canonical caller view
small.extend bank caller. Supports bothWPandWP.Exact.
Apply a fixed-time, direct, or time-indexed routine contract and expose its continuation. Only bank-view projections are normalized; the callee program remains closed.
Extensions:
Direct
wram_call hwithoutwith(for bareExecWithin/Execcontracts), optional hint lemmas[h₁, …], andrenamedbank forms.Apply a renamed routine contract with its small returned state and canonical caller view
small.extend bank caller. Supports bothWPandWP.Exact.