A single-session phased commitment world #
An original commitment-with-abort interface implemented by Interactive.World. The sender can
commit, open, or abort; the receiver can only poll. A first commitment fixes a private bit, and
polling reveals only a receipt until opening. Early opening and repeated commitments do nothing.
Abort before opening is terminal; an opened value cannot be retracted.
This is a concrete phased functionality, not UC Fcom or a security definition. In particular,
it does not model concurrent sessions, a network scheduler, corruption, or simulator efficiency.
The noninteractive Commitment.Scheme instead produces a commitment and opening together;
it does not describe these stateful commands.
Main definitions #
Command,Store,Observation: sender calls, private state, and public polling replies.handler: deterministic transitions in either semantic or program effects.world: the functionality with separated sender and receiver interfaces.
Main results #
polling_secrecy: arbitrary adaptive receiver polling, with private samples, cannot reveal the committed bit before opening.committed_invariant: after commitment, any supported execution retains the bit or aborts.opened_terminal,aborted_terminal: opened and aborted states are terminal under every call.
Public receiver observations, including the distinction between no commitment and a receipt.
- idle : Observation
- receipt : Observation
- opened (bit : Bool) : Observation
- aborted : Observation
Instances For
The public observation of a private state.
Total command processing. Invalid-order commands are ignored. Opened and aborted states are terminal, so abort cannot retract an opening.
Sender calls return no information.
The receiver's only call is a poll.
Closing a private probabilistic sample through the actual handler only lifts its state.
One phased session, with sender commands on the left and receiver polls on the right.
Only World.eval's program output is public; its state remains private.
Privacy here is the observation boundary, not Lean declaration accessibility.
Polling leaves the private state unchanged. Its complete reply law depends only on the public observation of that state, including for adaptive programs with private randomness.
Before opening, receiver-only interaction reveals no committed bit. The program may retain its complete transcript and private randomness in its result. World state is not an observation.
After commitment, commands cannot substitute another stored or released bit.
Every supported adaptive joint execution after commitment retains its bit or aborts. Both parties' calls and fresh private samples are included.
An opened value cannot be overwritten or retracted, even by abort.
Abort is terminal, including when it occurred before any commitment.