Skip to main content

Module protocol

Module protocol 

Source
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§

CausalProtocol
Parsed causal protocol declaration (REQ-200, REQ-201).
StepDecl
A step in the causal protocol graph (REQ-200).

Enums§

CausalViolation
Causal verification failure details (CON-202, SPEC-002).
NodeRef
Reference to one or more performatives in a protocol declaration (REQ-201).
ProtocolViolation
Protocol-level violation found during R5 verification (REQ-204–207).
VerificationResult
Three-valued verification result lattice (REQ-302, CON-301).

Constants§

BEGIN_KEYWORD
Reserved keyword strings recognised by verify_causal as having dedicated semantics. Currently the singleton {"begin"}, mirroring LeanCbcl/Verify.lean::CausalProtocol.begin as a typed constructor. Extending this set requires adding a corresponding constructor to the Lean CausalProtocol inductive — otherwise verify_causal and the Lean verify will 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).