Something went wrong. Try again.
Coding agent with a memory of all things
Something went wrong. Try again.
443 B 16 lines
1234567891011121314151617# eukhe: the proof of LAW wf_empty_cache_spawns_all
import Baseimport ../../bend/workflow.bend as Wimport ../../laws/workflow.bend as Workflow
def pw.empty(keys: List<&2, Nat>) -> {W.resumed([], keys) == List.length(&2, Nat, keys) : Nat}: match keys: case Nil{}: {==} case k <> +rest: %pw.empty(rest) : {1n+W.resumed([], rest) == 1n+_ : Nat} {==}
def Workflow.wf_empty_cache_spawns_all(keys): pw.empty(keys)