On the probability of perfection of software-based systems

Xingyu Zhao

The doctoral thesis by Xingyu Zhao (2016) addresses a critical gap in safety-critical engineering: how to rigorously justify claims of software "perfection" or ultra-high reliability. In domains like aerospace or nuclear power, systems often demand a probability of failure on demand ($pfd$) as low as $10^{-9}$. Proving such levels through traditional black-box testing is statistically impossible within human timescales. Zhao’s research provides a mathematical bridge, using conservative Bayesian reasoning to combine diverse evidence—from testing to formal proofs—into a robust safety case.

The Redundancy Trap and the Role of Perfection

A common strategy for high dependability is the "1-out-of-2" (1oo2) redundant architecture. While theoretically, two independent channels should have a failure rate equal to the product of their individual rates, real-world data shows that diverse teams often make similar errors. This leads to "dependent failures," which break simple multiplication models.

Zhao’s thesis tackles this by focusing on the probability of perfection. If one channel in a redundant system can be argued to be simple enough to potentially be fault-free (perfect), the mathematical justification for the entire system's reliability becomes significantly more robust. This approach avoids the complexities of modeling unknown dependencies between channels.

Methodological Innovations

The research extends existing models (Littlewood-Rushby and Littlewood-Povyakalo) from general populations to specific, individual systems using several key techniques:

  • Conservative Bayesian Inference: Recognizing that experts struggle to provide complete probability distributions, Zhao employs "partial priors." These are simple, high-level confidence statements (e.g., "I am 95% confident the failure rate is below $X$") that the model then uses to find the most conservative possible outcome.
  • The "Pruning" Mechanism: To prevent the models from being overly pessimistic, the author introduces a method to discard mathematically valid but physically "unreasonable" distributions that an engineer would not realistically consider.
  • Quasi-Perfection: This is a pivotal mathematical relaxation. Instead of requiring "pure" perfection (zero failures for eternity), Zhao defines "quasi-perfection" as a failure rate so minuscule ($\epsilon$) that the software is effectively perfect throughout its entire operational life.
  • Quantifying Formal Verification: The framework incorporates evidence from formal mathematical proofs. It accounts for the "imperfection" of the proof process itself, such as potential bugs in the prover tool or incompleteness in the specification.

Key Insights: Testing vs. Perfection

One of the most significant findings is the inherent weakness of testing for proving absolute perfection. Zhao proves that even an infinite number of successful test runs cannot provide 100% certainty that a program is fault-free; there remains a non-zero probability that the program is merely extremely reliable.

However, shifting the goal to quasi-perfection changes the landscape. When the requirement is to prove the software will not fail during a finite 50-year lifespan, testing evidence becomes exponentially more powerful. For instance, numerical examples in the thesis show that with $10^8$ failure-free runs, confidence in quasi-perfection can reach 99.99%, whereas confidence in pure perfection might hover around 50% for the same system.

Practical Application and Future Directions

The thesis proposes a "negotiation framework" for the safety-critical industry. Instead of arguing over a single, opaque reliability figure, regulators and developers can debate transparent, specific parameters—such as "doubt" factors in formal proofs or the threshold for $\epsilon$.

While the models are currently designed for the highest levels of safety (nuclear-grade), future work aims to reduce their inherent conservatism for broader commercial use. Additionally, expanding the framework to include other formal methods like model checking and symbolic execution remains a key area for development. By providing a rigorous way to quantify "perfection," this research offers a path toward more transparent and justifiable safety cases for the world's most critical software systems.

Summary updated

BibTeX
@inproceedings{zhao2016probability,
  author = {Xingyu Zhao},
  title = {{On the probability of perfection of software-based systems}},
  booktitle = {Undefined},
  year = {2016},
  url = {https://openreview.net/forum?id=UyVLqcjVkrX},
}
Figure