Documentation

CslibFrontier.Crypto.Protocols.UC.PushExecution

Single-Token Push Execution for UC Interactive Machines #

This file defines the fuel-bounded single-token push runtime over a PushSystem of m reactive nodes, iterating step S via OracleComp.iterate against the parallel composition SSP.parFin (S.node κ) of the system's nodes.

The operational model follows 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), with the following library conventions:

A three-node, query-bounded, sufficient-fuel pull-to-push bridge proving output-distribution equality with CslibFrontier.Crypto.Protocols.UC.Execution lives in CslibFrontier.Crypto.Protocols.UC.PushProperties (Push.eval_pushExec_ucPushSystem); arbitrary push systems, converse simulation, timing, and computational running-time bounds (rather than scheduler steps and oracle call counts) remain open under #6043.

Main definitions #

Main results #

References #

def Cslib.Crypto.Protocols.UC.Push.step {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (ts : TokenState m Msg) :

Library construction (no cited definition): one scheduler step of a push system S from state ts, 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). A finished run (ts.output.isSome) is left unchanged with no network query. A halted target performs no operation and the initial node is activated next with .resume (§3.3.2, "Deleting ITIs", of [Can20a], JACM p. 28:33), costing one unit of fuel and making no network query (a library convention). Otherwise ts.target is activated with ts.delivery (one query to the network, ending the activation at its outcome) and TokenState.next applies its outcome.

@[simp]
theorem Cslib.Crypto.Protocols.UC.Push.step_of_output_isSome {m : ℕ} {Msg : Type} (S : PushSystem m Msg) {ts : TokenState m Msg} (h : ts.output.isSome = true) :
step S ts = pure ts

Library infrastructure (no cited result): a finished run performs no network query and leaves the scheduler state unchanged.

@[simp]
theorem Cslib.Crypto.Protocols.UC.Push.step_of_mem_halted {m : ℕ} {Msg : Type} (S : PushSystem m Msg) {ts : TokenState m Msg} (ho : ts.output = none) (hh : ts.target ∈ ts.halted) :
step S ts = pure { target := S.initial, delivery := Delivery.resume, log := ts.log, halted := ts.halted, output := ts.output }

Library infrastructure (no cited result): activating a halted non-initial node makes no network query and returns control to the initial node with .resume.

@[simp]
theorem Cslib.Crypto.Protocols.UC.Push.step_of_not_mem_halted {m : ℕ} {Msg : Type} (S : PushSystem m Msg) {ts : TokenState m Msg} (ho : ts.output = none) (hh : ts.target ∉ ts.halted) :

Library infrastructure (no cited result): activating a running, non-halted node queries the network once and applies TokenState.next.

def Cslib.Crypto.Protocols.UC.Push.pushRun {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ : ℕ) (z : List Bool) (fuel : ℕ) :

Library construction (no cited definition): the single-token execution of a push system, 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 having a fixed node set initialized eagerly, nodes addressed by index, every write forced and sender-revealing, a control function over the allowed-write log, and an activation that ends without a write returning control to the initial node (a library convention). The result is the initial node's output bit, or none if it has not halted within fuel steps (a library convention, where fuel counts scheduler steps rather than running time). A three-node, query-bounded, sufficient-fuel pull-to-push bridge proving Boolean output-distribution equality with CslibFrontier.Crypto.Protocols.UC.Execution is proved in CslibFrontier.Crypto.Protocols.UC.PushProperties (Push.eval_pushExec_ucPushSystem); arbitrary push systems, converse simulation, timing, and computational running-time bounds remain open under #6043.

def Cslib.Crypto.Protocols.UC.Push.pushExec {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ : ℕ) (z : List Bool) (fuel : ℕ) :

Library construction (no cited definition): the output bit of a push execution, 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 as in pushRun and with fuel exhaustion read as false (a library convention).

Library infrastructure (no cited result): one scheduler step makes at most one network query (zero when the run has finished or the target is halted).

theorem Cslib.Crypto.Protocols.UC.Push.isQueryBounded_iterate_step {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (fuel : ℕ) (ts : TokenState m Msg) :

Library infrastructure (no cited result): a run of fuel scheduler steps makes at most fuel network queries (activating nodes at most fuel times).

theorem Cslib.Crypto.Protocols.UC.Push.isQueryBounded_pushRun {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ : ℕ) (z : List Bool) (fuel t : ℕ) (h : ∀ (j : Fin m), Machine.IsBounded (S.node κ j) t) :
OracleComp.IsQueryBounded (pushRun S κ z fuel) (m * t + fuel * (m * t + 1))

Library infrastructure (no cited result): when every node of S at security parameter κ has per-activation call budget t, a fuel-step push run makes at most m * t + fuel * (m * t + 1) coin draws (toward #6043; call-count budgets only, while computational polynomial-time UC execution is open in #6043).

theorem Cslib.Crypto.Protocols.UC.Push.runFrom_iterate_step_succ_of_not_mem_halted {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ f : ℕ) {ts : TokenState m Msg} (ho : ts.output = none) (hh : ts.target ∉ ts.halted) (s : (SSP.parFin (S.node κ)).State) :
(SSP.parFin (S.node κ)).runFrom (OracleComp.iterate (f + 1) (step S) ts) s = do let x ← ((S.node κ ts.target).handle ts.delivery).run (s ts.target) (SSP.parFin (S.node κ)).runFrom (OracleComp.iterate f (step S) (TokenState.next S ts x.1)) (Function.update s ts.target x.2)

Library infrastructure (no cited result): one active scheduler step against SSP.parFin runs ts.target's handler on ts.delivery, updates ts.target's state slot, and continues with ts.next S.

theorem Cslib.Crypto.Protocols.UC.Push.runFrom_iterate_step_succ_of_handle_eq_pure {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ f : ℕ) {ts : TokenState m Msg} (ho : ts.output = none) (hh : ts.target ∉ ts.halted) {s s' : (SSP.parFin (S.node κ)).State} {out : Outcome m Msg} {v : (S.node κ ts.target).State} (hstep : ((S.node κ ts.target).handle ts.delivery).run (s ts.target) = pure (out, v)) (hs : Function.update s ts.target v = s') :
(SSP.parFin (S.node κ)).runFrom (OracleComp.iterate (f + 1) (step S) ts) s = (SSP.parFin (S.node κ)).runFrom (OracleComp.iterate f (step S) (TokenState.next S ts out)) s'

Library infrastructure (no cited result): when ts.target's handler on ts.delivery deterministically returns (out, v), one active scheduler step against SSP.parFin continues with ts.next S out from the state s' obtained by writing v into ts.target's slot.

theorem Cslib.Crypto.Protocols.UC.Push.runFrom_iterate_step_succ_of_mem_halted {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ f : ℕ) {ts : TokenState m Msg} (ho : ts.output = none) (hh : ts.target ∈ ts.halted) (s : (SSP.parFin (S.node κ)).State) :
(SSP.parFin (S.node κ)).runFrom (OracleComp.iterate (f + 1) (step S) ts) s = (SSP.parFin (S.node κ)).runFrom (OracleComp.iterate f (step S) { target := S.initial, delivery := Delivery.resume, log := ts.log, halted := ts.halted, output := ts.output }) s

Library infrastructure (no cited result): one scheduler step on a halted target against SSP.parFin makes no node activation and returns control to S.initial with .resume.

theorem Cslib.Crypto.Protocols.UC.Push.runFrom_iterate_step_of_output_isSome {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ f : ℕ) {ts : TokenState m Msg} (ho : ts.output.isSome = true) (s : (SSP.parFin (S.node κ)).State) :

Library infrastructure (no cited result): once ts.output.isSome, any remaining scheduler steps against SSP.parFin perform no node activation and return (ts, s) unchanged.

theorem Cslib.Crypto.Protocols.UC.Push.eval_pushRun {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ : ℕ) (z : List Bool) (fuel : ℕ) :

Library infrastructure (no cited result): the output distribution of pushRun binds the joint initial-state distribution (SSP.parFin (S.node κ)).init.eval into the closed fuel-step execution from that joint state. Unlike Cslib.Crypto.Protocols.SSP.eval_run, which translates a run into an OracleComp.interpret over PMF handlers for state-simulation proofs, this lemma keeps the Machine.closeProgram/Machine.runFrom form so callers can step OracleComp.iterate _ (step S) directly via runFrom_iterate_step_succ_of_not_mem_halted, runFrom_iterate_step_succ_of_mem_halted, and runFrom_iterate_step_of_output_isSome before closing.

theorem Cslib.Crypto.Protocols.UC.Push.eval_pushRun_of_init_pure {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ : ℕ) (z : List Bool) (fuel : ℕ) (s₀ : (SSP.parFin (S.node κ)).State) (h : ∀ (j : Fin m), (S.node κ j).init = pure (s₀ j)) :

Library infrastructure (no cited result): when every node of S at security parameter κ initializes deterministically to s₀ j, pushRun runs directly from the joint state s₀.

theorem Cslib.Crypto.Protocols.UC.Push.eval_pushRun_zero {m : ℕ} {Msg : Type} (S : PushSystem m Msg) (κ : ℕ) (z : List Bool) :

Library infrastructure (no cited result): a zero-fuel push run evaluates to PMF.pure none (node initial states are sampled and discarded).