Expand description
Coroutine: lightweight execution unit within the ProtocolMachine.
Each role in a choreography runs as a coroutine with its own PC,
register file, and status. Matches the Lean Coroutine structure.
Structs§
- Coroutine
- A single coroutine executing a role’s local protocol.
- Effect
Ctx - Effect context for coroutine execution, aligned with the Lean ProtocolMachine model.
- Knowledge
Fact - Knowledge fact for ownership checks.
- Progress
Token - Progress-token representation aligned with the Lean ProtocolMachine model.
- Speculation
State - Speculation state for a coroutine.
Enums§
- Block
Reason - Why a coroutine is blocked.
- Coro
Status - Coroutine execution status.
- Fault
- Runtime fault.
- Value
- Runtime value stored in registers and buffers.
Type Aliases§
- Coroutine
State - Lean-aligned coroutine state alias.
- Knowledge
Set - Lean-aligned knowledge set type.
- RegFile
- Register-file representation aligned with the Lean ProtocolMachine model.