ValidationEvidence: Confidence Levels as Types #
Three-tier hierarchy confidence < contract < trusted, a promotion
trace recording the history of upgrades, and VVRecord, a uniform
representation of one cell of the V model.
ValidationEvidence P — the verification evidence for a proposition
P, organized as a three-tier hierarchy
confidence < contract < trusted.
- confidence
{P : Prop}
: Float → ValidationEvidence P
Confidence: probabilistic evidence (early design, expert heuristics).
- contract
{P : Prop}
(assumption : Prop)
: (assumption → P) → ValidationEvidence P
Contract: conditional guarantee (after test or simulation).
- trusted
{P : Prop}
: P → ValidationEvidence P
Trusted: adopted as an axiom (hardware test, approved).
Instances For
Whether the evidence was built with the .contract constructor.
Equations
- (VerifiedMBSE.VV.ValidationEvidence.contract assumption a).isContract = true
- x✝.isContract = false
Instances For
Promotion: Confidence → Contract.
Equations
Instances For
Promotion: Contract → Trusted, given a proof that the assumption
of the contract actually holds.
Equations
- (VerifiedMBSE.VV.ValidationEvidence.contract assumption ev).promoteToTrusted h_2 = VerifiedMBSE.VV.ValidationEvidence.trusted ⋯
- (VerifiedMBSE.VV.ValidationEvidence.confidence p).promoteToTrusted x = VerifiedMBSE.VV.ValidationEvidence.confidence p
- (VerifiedMBSE.VV.ValidationEvidence.trusted p).promoteToTrusted x = VerifiedMBSE.VV.ValidationEvidence.trusted p
Instances For
ValidationTrace P — record of the promotion history together with
the current evidence for P.
- history : List (ValidationEvidence P)
- current : ValidationEvidence P
Instances For
Initialize a ValidationTrace with a single piece of evidence and
an empty history.
Instances For
Record a promotion step in the trace. The previous current
evidence is appended to history, and next becomes the new
current.
Instances For
Current confidence value of the trace.
Equations
Instances For
Whether the current evidence is .trusted (constructor match).
Instances For
Whether the trace has undergone at least one promotion.
Equations
Instances For
Complete V&V record for a single design item.
- layer : Layer
- spec_name : String
- verification : Prop
- verified : self.verification
- validation : ValidationTrace self.verification
Instances For
Validation evidence obtained from IO (e.g. test reports, external certifications).
- source_description : String
- declaration : P
Instances For
Construct a .trusted ValidationEvidence from an
IOValidationSource.
Instances For
.trusted evidence has a confidence level of 1.0.
.confidence evidence does not satisfy isTrusted.
promote extends the history by exactly one entry.