A supplied, single-attempt same-node RPC model on the protocol foundation.
The client addresses one server by a direct PID, with at most one outstanding
request. Natural-number identifiers are abstract correlation tokens, not
actual Erlang references or proof of freshness. monitor_id: id enables an
explicit process-monitor observation; sending never establishes delivery or
detects a dead peer. Client/server event ownership and units stay separate.
This first model checks declared transitions and correlation annotations. Arrival and unrelated-message events are observations, not a mailbox implementation. Queue order, matching patterns/guards, scan counts, sizes, costs, progress and source/runtime correspondence remain unverified. A terminal client trace does not cancel server work or remove late replies. Post-return mailbox effects, retries, aliases, priority messages, distributed peers and multiple outstanding requests are outside this model.
check_trace/2 is an Elixir check, not Lean proof evidence. The RPC proof
builder connects the supplied trace to the canonical Lean model separately.
Summary
Functions
Checks one finite trace or unfinished prefix, with no cost/completion claim.
Constructs an event; omitted token annotations use the session's tokens.
Functions
@spec check_trace(ReductionBounds.RpcProtocol.Session.t(), [ ReductionBounds.RpcProtocol.Event.t() ]) :: {:ok, map()} | {:error, term()}
Checks one finite trace or unfinished prefix, with no cost/completion claim.
@spec event(ReductionBounds.RpcProtocol.Session.t(), atom(), keyword()) :: {:ok, ReductionBounds.RpcProtocol.Event.t()} | {:error, term()}
Constructs an event; omitted token annotations use the session's tokens.
@spec new(non_neg_integer(), keyword()) :: {:ok, ReductionBounds.RpcProtocol.Session.t()} | {:error, term()}