Expand description
Causal protocol types and verification result lattice (REQ-200, REQ-302, REQ-303).
The verification result forms a flat lattice with Unknown (⊥) at the bottom
and Valid / Violation as incomparable top elements. Meet implements conjunction
for (all ...) fan-in; join implements disjunction for (any ...).
Structs§
- Causal
Protocol - Parsed causal protocol declaration (REQ-200, REQ-201).
- Step
Decl - A step in the causal protocol graph (REQ-200).
Enums§
- Causal
Violation - Causal verification failure details (CON-202, SPEC-002).
- NodeRef
- Reference to one or more performatives in a protocol declaration (REQ-201).
- Protocol
Violation - Protocol-level violation found during R5 verification (REQ-204–207).
- Verification
Result - Three-valued verification result lattice (REQ-302, CON-301).
Constants§
- BEGIN_
KEYWORD - Reserved keyword strings recognised by
verify_causalas having dedicated semantics. Currently the singleton{"begin"}, mirroringLeanCbcl/Verify.lean::CausalProtocol.beginas a typed constructor. Extending this set requires adding a corresponding constructor to the LeanCausalProtocolinductive — otherwiseverify_causaland the Leanverifywill silently disagree at the new keyword’s call sites. The accompanying tripwire test in this module asserts the singleton invariant; updating it without an ADR is a review-time signal. - REPEAT_
SEPARATOR - Index separator for names synthesised by
(repeat k …)macro-expansion (SPEC-015 REQ-704, CON-701).
Functions§
- repeat_
base_ name - Resolve a (possibly synthesised) protocol step name to its base performative name (SPEC-015 REQ-704).
- verify_
causal - Verify causal consistency of a message against its protocol (REQ-203, REQ-304).