Something went wrong. Try again.
Coding agent with a memory of all things
Something went wrong. Try again.
936 B 21 lines
at bend/wirekit
12345678910111213141516171819202122# eukhe: the proof of LAW command_ffi_decides## PROOF of LAW command_ffi_decides: the entry's own encoding of a request is its# spelling (ce_req), so the entry answers the model's answer# (command_ffi_answers), which is the spelled reply (ce_run).
import Baseimport ../../bend/command.bend as Cmdimport ../../bend/ffi_command.bend as FCmdimport ../../bend/wire.bend as Wrimport ../../laws/base.bend as LawsBaseimport ../../laws/wire.bend as Wireimport ../../laws/command/entry.bend as Commandimport ../wire/base/spell.bend as LAWireSpellimport ./base/entry.bend as LACommandEntryimport ./command_ffi_answers.bend as PCommandFfiAnswers
def Command.command_ffi_decides(r, h): %LACommandEntry.ce_req(r, "") : {FCmd.ffi(_) == Command.cmd_spell_reply(r) : String} Equal.trans(String, FCmd.ffi(FCmd.put_req(r, "")), FCmd.ffi.run(r), Command.cmd_spell_reply(r), Command.command_ffi_answers(r, h), LACommandEntry.ce_run(r))