pub enum VerificationResult {
Unknown,
Valid,
Violation(CausalViolation),
}Expand description
Three-valued verification result lattice (REQ-302, CON-301).
Valid Violation
\ /
\ /
⊥ (Unknown)Unknown is ⊥. Valid and Violation are incomparable top elements.
Variants§
Unknown
⊥ — predecessor not in store; undecidable with current state.
Valid
Predecessor found, type matches protocol declaration.
Violation(CausalViolation)
Predecessor found, type mismatch or malformed hash.
Implementations§
Source§impl VerificationResult
impl VerificationResult
Sourcepub fn meet(self, other: VerificationResult) -> VerificationResult
pub fn meet(self, other: VerificationResult) -> VerificationResult
Strong Kleene conjunction for (all ...) fan-in (REQ-303).
Greatest lower bound in the truth order: Violation < Unknown < Valid.
Algebraic laws apply to verdict classes, excluding diagnostic payloads.
Truth table:
- Violation ⊓ _ = Violation (absorbing)
- _ ⊓ Violation = Violation (absorbing)
- Unknown ⊓ _ = Unknown (when other ≠ Violation)
- Valid ⊓ Valid = Valid
Sourcepub fn join(self, other: VerificationResult) -> VerificationResult
pub fn join(self, other: VerificationResult) -> VerificationResult
Strong Kleene disjunction for (any ...) (REQ-303).
Least upper bound in the truth order: Violation < Unknown < Valid.
Algebraic laws apply to verdict classes, excluding diagnostic payloads.
Truth table:
- Valid ⊔ _ = Valid (absorbing)
- _ ⊔ Valid = Valid (absorbing)
- Violation ⊔ Unknown = Unknown
- Violation ⊔ Violation = Violation (preserves the left diagnostic)
- Unknown ⊔ Unknown = Unknown
Sourcepub fn is_resolved(&self) -> bool
pub fn is_resolved(&self) -> bool
Kuper’s threshold test — has the lattice crossed {Valid, Violation}? (CON-301).
Trait Implementations§
Source§impl Clone for VerificationResult
impl Clone for VerificationResult
Source§impl Debug for VerificationResult
impl Debug for VerificationResult
impl Eq for VerificationResult
Source§impl PartialEq for VerificationResult
impl PartialEq for VerificationResult
Source§impl PartialOrd for VerificationResult
impl PartialOrd for VerificationResult
Source§fn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
Knowledge partial order: Unknown < Valid, Unknown < Violation, Valid and Violation are incomparable.