Reactive Nodes and Scheduler State for Push-Style UC Execution #
This file defines the vocabulary and pure single-token scheduler transition for a push-style execution of interactive machines, modeled after the single-token activation model of [Can20a], §3.1.2 (JACM pp. 28:23–28:24) and §3.3.2, "Deleting ITIs" (JACM p. 28:33).
In this library's single-token push reading:
- A system has a fixed finite set of
mnodes addressed by indexFin mrather than dynamically invoked ITI identities (PushSystem). - Every external write (
Outcome.write) is forced and reveals its sender index (Envelope.sender): the reveal-sender-id flagrof [Can20a] §3.1.2 is fixed to1. - A
ControlFunctionreads the log of previously allowed external writes (appended before target activation) rather than the full execution prefix and decides only whether a proposed write is allowed. - Returning control to the initial node on
Outcome.yieldor on a non-initial node'sOutcome.haltis a library convention (whereas returning to the initial node on a disallowed write follows [Can20a] §3.1.2, and ignoring activations of halted non-initial nodes follows [Can20a] §3.3.2, "Deleting ITIs").
The operational runner built on this vocabulary lives in
CslibFrontier.Crypto.Protocols.UC.PushExecution. A three-node, sufficient-fuel, output-law
pull-to-push bridge from Cslib.Crypto.Protocols.UC.exec lives in
CslibFrontier.Crypto.Protocols.UC.PushProperties; relating arbitrary push systems, converse
simulation, timing, and general computational polynomial-time UC execution remain open under
#6043.
Main definitions #
TapeName: external write target tapes (input,subroutineOutput,backdoor).Envelope: a message in flight with sender, recipient, target tape, and payload.Delivery: what activates a node (start,deliver,resume).Outcome: how an activation ends (write,yield,halt).ReactiveNode: a closedMachinemappingDeliverytoOutcome.ControlFunction: a predicate on the allowed-write log and a proposed envelope.PushSystem: a fixedm-node family, distinguished initial node, and control function.TokenState,TokenState.initialFor,TokenState.next: scheduler state and pure rule table (together with its@[simp]row equationsTokenState.next_write_of_control_eq_true,TokenState.next_write_of_control_eq_false,TokenState.next_yield,TokenState.next_halt_of_target_eq, andTokenState.next_halt_of_target_ne).
Main results #
TokenState.halted_subset_next,TokenState.log_prefix_next: monotonicity of halted nodes and append-only growth of the allowed-write log underTokenState.next.
References #
- R. Canetti, Universally Composable Security, §3.1.2 (JACM pp. 28:23–28:24) and §3.3.2, "Deleting ITIs" (JACM p. 28:33).
Library construction (no cited definition): the tape an external write targets (§3.1.2 of
[Can20a], JACM p. 28:23: "t is a tape name out of {input, subroutine-output, backdoor}").
Instances For
Library construction (no cited definition): what activates a node: the initial node's auxiliary input, a delivered envelope, or a return of control to the initial node.
- start {m : ℕ} {Msg : Type} (input : List Bool) : Delivery m Msg
The initial activation of the initial node with auxiliary input
input. - deliver {m : ℕ} {Msg : Type} (envelope : Envelope m Msg) : Delivery m Msg
Delivery of an allowed external write
envelopeto its recipient. - resume {m : ℕ} {Msg : Type} : Delivery m Msg
Library construction (no cited definition): how an activation ends in this library's
single-token push reading: one external write (ending the activation and, if allowed, activating its
recipient; §3.1.2 of [Can20a], JACM p. 28:24), ending without a write (yield), or halting
with an output bit (halt).
Library construction (no cited definition): a control function over the log of previously
allowed write envelopes, returning true to allow a proposed write or false to disallow it
(narrower than §3.1.2 of [Can20a], JACM p. 28:23, where the control function reads the entire
execution prefix and may be extended to redirect writes).
Library construction (no cited definition): a push system comprising a fixed family of m
reactive nodes indexed by security parameter and node index, a distinguished initial node, and a
control function (a library reading of the pair (I, C) of §3.1.2 of [Can20a], JACM
p. 28:23, with the node set fixed in advance rather than dynamically invoked).
The reactive node at index
ifor security parameterκ.- initial : Fin m
The distinguished initial node.
- control : ControlFunction m Msg
The control function deciding whether each external write is allowed.
Library construction (no cited definition): the scheduler's bookkeeping for a single-token push
run: who is activated next and with what delivery, the log of allowed-write envelopes (appended
when control permits a write, before the target is activated), the set of halted non-initial
nodes, and the initial node's output bit once it has halted.
- target : Fin m
The node holding the activation token next.
- delivery : Delivery m Msg
The delivery passed to
targeton its next activation. The log of previously allowed write envelopes, appended before target activation in write order (an allowed write to a halted target is still logged before activation is skipped).
Non-initial nodes that have halted.
The execution's final output bit once the initial node has halted, or
nonewhile running.
Library construction (no cited definition): the initial scheduler state for initial node i
and auxiliary input z: i is activated with .start z, the allowed-write log and halted set are
empty, and no output has been produced.
Library construction (no cited definition): pure scheduler transition applying the active node
ts.target's Outcome in push system S (in this library's push reading of [Can20a], §3.1.2
(JACM pp. 28:23–28:24) and §3.3.2, "Deleting ITIs" (JACM p. 28:33); narrower in fixed index
addressing, eager initialization, forced sender-revealing writes, and a log-based control function):
write r t pallowed byS.control: the envelopeeis appended tots.logimmediately (beforeris activated; ifris already ints.halted,estill entersts.logand the next step skipsr's handler) andris scheduled next with.deliver e(step 1a, §3.1.2 of [Can20a], JACM p. 28:24).write r t pdisallowed byS.control: the write is not carried out and the initial node is activated next with.resume(§3.1.2 of [Can20a], JACM p. 28:23).yield: the initial node is activated next with.resume(library convention).halt bby the initial node: execution ends withoutput := some b(§3.1.2 of [Can20a], JACM p. 28:23).halt bby a non-initial node:ts.targetis recorded ints.halted(so later activations perform no operation per §3.3.2, "Deleting ITIs", of [Can20a], JACM p. 28:33) and the initial node is activated next with.resume(library convention).
Library infrastructure (no cited result): rule-table equation for an allowed write.
Library infrastructure (no cited result): rule-table equation for a disallowed write.
Library infrastructure (no cited result): rule-table equation for Outcome.yield.
Library infrastructure (no cited result): rule-table equation for the initial node halting.
Library infrastructure (no cited result): rule-table equation for a non-initial node halting.
Library infrastructure (no cited result): TokenState.next never removes a node from
halted.
Library infrastructure (no cited result): TokenState.next only appends to log.