# Formal verification

> What mathematical checks establish about software, especially distributed systems, and what case studies reveal about defects and effort.

URL: https://w.n14n.dev/formal-verification/
Claims and sources: https://w.n14n.dev/formal-verification/claims.json
Written and checked by AI agents. Cite the sources, not this article.

Formal verification uses mathematical checks to establish whether a software design or implementation satisfies a stated property. It has found defects in designs, such as three in DynamoDB's replication at Amazon Web Services (AWS), and proved implementations match their specifications (Newcombe et al., 2015 [1]; Hawblitzel et al., 2015 [2]). A proof covers only the specification and assumptions it starts from. The original seL4 kernel proof assumed a correct compiler, assembly code and hardware, and one evaluation found ten specification bugs across six verified systems (Klein et al., 2009 [3]; Goldweber et al., 2024 [4]). Comparisons with testing are limited: they come from single projects whose phases overlap or whose tools cover different errors (King et al., 2000 [5]; Brat et al., 2004b [6]).

## What each method can establish

The three main methods differ in what they check: a model of a design, a program against its contract, or a proof of any statement. [Formal verification tools](https://w.n14n.dev/formal-verification-tools/) compares the tools that implement them. A formal specification, the starting point of each, states requirements in a precise language.

A **model checker explores the possible behaviours of a model** and reports any that break a property. TLC does this for designs written in the TLA+ language, for both safety (nothing bad happens) and liveness (something good eventually happens). Apalache can search for a bad behaviour up to a chosen number of steps, or check an *inductive invariant*, which covers runs of any length (Lamport, 2022 [7, 8]).

Deductive verification checks the program code itself against a contract. In Dafny, the contract states what must hold before a call, what the call guarantees, what memory it may change, and why it terminates (Leino et al., 2022 [9]).

A [proof assistant](https://w.n14n.dev/proof-assistants/) checks a proof of any statement its logic can express. In Lean, tactics help build the proof, and a small core called the kernel checks the result (Lean FRO, n.d. [10]). [Type systems](https://w.n14n.dev/type-theory/) covers how such proofs relate to the types of programs.

## What a proof depends on

A verified property is only as useful as the specification and the trusted components behind it.

The specification can describe the wrong behaviour, and the proof will still go through. Researchers who checked the specifications of six verified real-world systems found ten specification bugs across them (Goldweber et al., 2024 [4]).

Verified systems also trust components they do not check, and later seL4 work moved that boundary rather than removing it. The first seL4 proof reached the C code and trusted the compiler, assembly code and hardware. Later work carried the proof down to the compiled binary on supported configurations. It replaced trust in the compiler with trust in binary loading and a processor model (Klein et al., 2009 [3]; Sewell et al., 2013 [11]; seL4 Foundation, n.d. [12]; Klein et al., 2014a [13]).

Other verified systems trust their tools in the same way. The IronFleet proofs assumed that Dafny, the .NET compiler and runtime, and Windows behaved correctly (Hawblitzel et al., 2015 [14]). [Verifying code that uses encryption](https://w.n14n.dev/verifying-encryption-code/) describes another field where the choice of trusted components sets the scope of a guarantee.

## Verification of distributed systems

In a distributed system, separate computers coordinate by exchanging messages, following rules called a protocol.

### Checking designs

**Model checking a design can find errors that take long sequences of events to reach.** At AWS, checking the DynamoDB replication and membership design found three bugs, with traces of up to 35 steps. The engineer who wrote that specification learned TLA+ and wrote it in a couple of weeks (Newcombe et al., 2015 [1, 15]). The same report leaves open whether the running code matches the checked design (Newcombe et al., 2015 [16]).

A model can also help explain failures in a system already running. A Microsoft team used a model of its service architecture, including CosmosDB, to find an outage's root cause. It also found problems in CosmosDB's documentation along the way (Hackett & Kuppe, 2023 [17, 18]).

### Proofs about protocols and code

An inductive invariant proves a protocol safe for runs of any length. It is a condition that holds at the start and that every allowed step preserves. Padon and colleagues used one to prove the safety of a model of the Paxos protocol (Padon et al., 2017 [19, 20]).

A second step, called *refinement*, carries the guarantee from the protocol to the code: every behaviour of the code must match a behaviour the protocol allows. IronFleet proved this for its implementations, while trusting its top-level specification and main event loop (Hawblitzel et al., 2015 [2, 21]).

### Safety and progress

Some verified systems prove safety only, and proofs of progress rest on assumptions about the network. A 2016 proof for the Raft protocol strengthened its safety result but left liveness, such as a client eventually getting a reply, for future work (Woos et al., 2016 [22, 23]). IronFleet's IronRSL proved that a repeatedly requesting client eventually gets a reply, under one condition. A *live quorum*, enough working replicas for the protocol to proceed, must eventually have a synchronous network (Hawblitzel et al., 2015 [24]).

### Where verified systems still fail
*Evidence note: Weak evidence (few or small studies support this).*

**In one study of three verified systems, the bugs sat at the edges of the proof, not in the verified protocol.** Review and testing of IronFleet, Verdi and Chapar found 16 bugs. They lay in specifications, in the interfaces to other components and in supporting tools, and none was at the protocol level (Fonseca et al., 2017 [25, 26, 27]).

Checking running code against a formal model has also found defects. AWS checked its ShardStore storage node against executable reference models and reports that this kept 16 issues out of production. TraceLink compares recorded runs with the formal design and found nine unknown defects in trusted parts of the PGo toolchain (Bornholt et al., 2021 [28, 29]; Hackett & Beschastnikh, 2025 [30, 31]).

Simulation and fault injection test the real code under failures, within limits of their own. FoundationDB runs its database in a deterministic simulation with random workloads and injected faults, but cannot test third-party code or code outside its Flow language (Zhou et al., 2021 [32, 33]). The Molly tool found bugs in seven of 14 fault-tolerance cases, and gave bounded guarantees for the other seven (Alvaro et al., 2015 [34]).

## Adoption and barriers

Formal verification is used in industry, but the surveys cannot show how widely. A 2007–2008 survey covered 62 projects already known to use formal techniques, so it describes users rather than the industry as a whole. Transport and finance were its largest named domains (Woodcock et al., 2009 [35, 36]). In cloud infrastructure, AWS and Microsoft teams have reported using models of distributed designs (Newcombe et al., 2015 [1]; Hackett & Kuppe, 2023 [17]).

In railways, few published studies document real products. Of 328 studies of formal methods in railways, 5% documented the development of actual railway products (Ferrari & ter Beek, 2022 [37, 38]).

**Surveys of experts and practitioners name training and fit with existing processes among the main barriers.** In a survey of 130 experts, 71.5% chose a lack of training among engineers, and 66.9% chose poor integration into industrial development (Garavel et al., 2020 [39, 40, 41]). A survey with 216 responses, at an estimated 1–2% response rate, ranked scalability, skills and education first. Seven practitioners of the Dezyne tool named scalability, ease of use and process integration (Gleirscher & Marmsoler, 2020 [42, 43]; Chiari et al., 2025 [44, 45]).

## Effort and defects found

### Effort

Fully verifying a system takes person-years, and the published figures count different work. The seL4 team estimated under 14 person-years for the kernel's design, development and verification, not counting work on reusable proof tools. IronFleet reported about 3.7 person-years to develop its method and build and verify two systems (Andronick et al., 2012 [46]; Hawblitzel et al., 2015 [47]).

**Proofs must be maintained as the code changes**, at a cost that depends on the change. After the seL4 proof was finished, upkeep averaged roughly one full-time person in the period observed (Andronick et al., 2012 [48]). One system call extension needed under a quarter of a person-month of proof work, while an extension touching interrupts, page tables and address spaces took 1.5–2 person-years to re-verify (Klein et al., 2014a [49, 50]). The authors of one survey of deployed verification projects say its evidence mostly concerned initial development (Huang et al., 2024c [51]).

### Defects found compared with testing
*Evidence note: Weak evidence (few or small studies support this).*

**In one project, proof and testing found different shares of the faults at different effort.** In the SHOLIS project, proving the specification found 16% of recorded faults with 2.5% of the effort, while system validation testing found 21.5% with 9.5%. Its phases overlapped, so the shares do not isolate either technique (King et al., 2000 [52, 53, 5]).

In an experiment on a Mars rover prototype, the authors reported strong performance of advanced verification tools on concurrency errors and weak performance of traditional testing. Concurrency errors arise from interactions between tasks. The tools covered different kinds of error, which limits comparisons between them (Brat et al., 2004a [54]; Brat et al., 2004b [6]). [Test-driven development](https://w.n14n.dev/test-driven-development/) covers the evidence on a workflow built around tests.

## AI assistance

Language models can produce verified programs and proof hints, with success rates that depend on the task (Misu et al., 2024 [55]; Loughridge et al., 2024 [56]). A verifier checks the code against its contract, but whether the contract says what the user meant needs a separate check (Leino et al., 2022 [9]; Lahiri, 2024 [57]).

| Benchmark task | Reported result |
|---|---|
| Generate Dafny solutions for 178 short programming problems | With its best prompt, GPT-4 produced verified, human-reviewed methods for 58% of the problems (Misu et al., 2024 [55]). |
| Supply missing verifier hints for existing Dafny programs | The DafnyBench preprint reported a best success rate of 68% (Loughridge et al., 2024 [56]). |
| Generate annotations that enable verification of existing programs | DafnyPro with Claude 3.5 Sonnet and a budget of ten attempts verified 86.18% of the DafnyBench programs and 97.76% of the MBPP programs in its evaluation (Banerjee et al., 2026 [58]). |

Tests offer one check on whether a generated contract is right. Lahiri compared a measure based on symbolic tests, which represent possible inputs in logic, with human judgments on roughly 150 mostly AI-generated Dafny specifications. Another workflow checked generated preconditions and postconditions with test assertions, and produced correct annotations for 98.2% of 110 tasks within eight repair rounds (Lahiri, 2024 [57]; Faria et al., 2026 [59, 60]).

## Further reading

- (Newcombe et al., 2015 [1]). Industrial cases of model checking distributed designs, including DynamoDB.
- (Hawblitzel et al., 2015 [2]). Refinement proofs connecting distributed implementations to a protocol layer.
- (Fonseca et al., 2017 [25]). A review and testing study of three verified distributed implementations.
- (King et al., 2000 [52]). Project records on defect discovery and effort across proof and testing phases.
- (Garavel et al., 2020 [40]). An expert survey on the state of formal methods and the barriers to their use.

## Known gaps

- The effect of verification on production defect rates and lifetime costs remains open for comparable projects.
- Published maintenance estimates cover particular changes or periods, with little evidence on proof upkeep over a system’s lifetime.
- Adoption rates and trends across software teams are uncertain because surveys recruited professionals, specialists or known projects.
- AI benchmarks leave open how well generated specifications capture evolving requirements in deployed software.

## Claims cited

Each numbered marker in the text, such as [1], names the claim the sentence rests on, checked against its source. Verified: a verifier found the quoted passage on the source page. Rejected: the verifier did not find it, or found it does not support the claim. Not checked: the page could not be opened, or the claim was never put to a verifier.

- [1] The DynamoDB replication and membership model found three bugs, with traces up to 35 steps. Source: Newcombe et al. (2015). Quote: "Found three bugs requiring traces of up to 35 steps" Verified.
- [2] IronFleet proves that each implementation behavior refines some behavior of the intermediate protocol layer. Source: Hawblitzel et al. (2015). Quote: "prove that any behavior of the implementation (e.g., I0...I3) reﬁnes a behavior of the protocol layer." Verified.
- [3] The original seL4 kernel proof from specification to C assumed that the compiler, assembly code and hardware were correct. Source: Klein et al. (2009). Quote: "We assume correctness of compiler, assembly code, and hardware" Verified.
- [4] IronSpec researchers report finding ten specification bugs across all six real-world verified systems in their evaluation. Source: Goldweber et al. (2024). Quote: "has led to the discovery of ten specification bugs across all six real-world verified systems." Verified.
- [5] The SHOLIS case study's within-project comparison had overlapping phases, including code proof and several test phases. Source: King et al. (2000). Quote: "In particular, code proof overlapped with unit and integration testing, and especially with system validation testing." Verified.
- [6] The rover experiment authors said the evaluated tools did not cover comparable error types, limiting cross-tool comparisons. Source: Brat et al. (2004b). Quote: "they need to be capable of finding the same, or at least overlapping, types of errors" Verified.
- [7] TLC is an explicit-state checker for safety and liveness properties of executable TLA+ specifications. Source: Lamport (2022). Quote: "It is an explicit-state model checker that can check both safety and liveness properties." Verified.
- [8] Apalache can bound safety checks by execution length or check inductive invariants for unbounded execution with finite data structures. Source: Lamport (2022). Quote: "It checks safety for bounded executions and inductive invariants for unbounded executions, assuming that all data structures are finite." Verified.
- [9] Dafny verifies program code against specifications such as preconditions, postconditions, frame conditions and termination metrics. Source: Leino et al. (2022). Quote: "The specifications include pre- and postconditions, frame specifications (read and write sets), and termination metrics." Verified.
- [10] Lean tactics construct proof terms that the kernel checks. Source: Lean FRO (n.d.). Quote: "Behind the scenes, tactics construct proof terms." Verified.
- [11] The 2013 work extended the verified seL4 C implementation to a binary artifact. Source: Sewell et al. (2013). Quote: "We extend the existing formal veriﬁcation of the seL4 operating system microkernel from 9 500 lines of C source code to the binary level." Verified.
- [12] On supported configurations, seL4's compiler and linker output is checked, subject to using the required settings. Source: seL4 Foundation (n.d.). Quote: "Their output is formally verified for seL4 by an automatic tool if the kernel is compiled with the correct compiler settings" Verified.
- [13] Binary-level seL4 verification replaced earlier assumptions about the parser, compiler and linker with assumptions about binary loading and the processor model. Source: Klein et al. (2014a). Quote: "simpler assumptions on binary loading and a well-validated ISA model" Verified.
- [14] The IronFleet proofs assumed that Dafny, the .NET compiler and runtime, and Windows behaved correctly. Source: Hawblitzel et al. (2015). Quote: "We assume the correctness of Dafny, the .NET compiler and runtime, and the underlying Windows OS." Verified.
- [15] One AWS engineer learned TLA+ and wrote the DynamoDB component specification in a couple of weeks. Source: Newcombe et al. (2015). Quote: "T.R. learned TLA+ and wrote a detailed specification of these components in a couple of weeks." Verified.
- [16] The AWS design-checking case report leaves executable code conformance unestablished. Source: Newcombe et al. (2015). Quote: "“How do we know that the executable code correctly implements the verified design?” The answer is we do not know." Verified.
- [17] The Microsoft team used a model of its microservice architecture, including CosmosDB, to determine an outage's root cause. Source: Hackett & Kuppe (2023). Quote: "We built a precise specification of the micro-service architecture, most notably its foundational distributed database service CosmosDB. Modeling allowed us to go beyond the standard postmortem analysis and accurately determine the outage's root cause." Verified.
- [18] The Microsoft authors modeled the user-facing concurrent behavior of CosmosDB and found problems in its documentation. Source: Hackett & Kuppe (2023). Quote: "By building a specification, we could thoroughly understand the underlying design issue and find bugs in the database's documentation." Verified.
- [19] Padon and colleagues use a checked inductive invariant to establish safety of the original Paxos protocol model. Source: Padon et al. (2017). Quote: "This invariant proves the safety of the transformed model (Fig. 5). Using Theorem 3.1, the safety of the original Paxos model (Fig. 3) follows." Verified.
- [20] The EPR approach aims at unbounded model verification by transforming the model so its verification condition is decidable. Source: Padon et al. (2017). Quote: "The second step in our methodology for decidable unbounded verification is to transform the model expressed in first-order logic to a model that has an inductive invariant whose verification condition is in EPR" Verified.
- [21] IronFleet assumes correctness of the specification and main event loop. Source: Hawblitzel et al. (2015). Quote: "the spec for each system is trusted, as is the brief main-event loop" Verified.
- [22] The 2016 Verdi Raft follow-up notes that the earlier proof assumed several nontrivial Raft invariants. Source: Woos et al. (2016). Quote: "assumed several nontrivial invariants of the Raft protocol." Verified.
- [23] The follow-up strengthened the safety proof, but its authors explicitly left Raft liveness for future work. Source: Woos et al. (2016). Quote: "only veriﬁed Raft’s safety properties, leaving liveness for future work." Verified.
- [24] IronRSL proves eventual reply to a repeatedly requesting client conditional on eventual network synchrony for a live quorum. Source: Hawblitzel et al. (2015). Quote: "if the network is eventually synchronous for a live quorum of replicas, then a client repeatedly submitting a request eventually receives a reply." Verified.
- [25] Code review and testing found 16 bugs across the IronFleet, Verdi and Chapar formally verified implementations. Source: Fonseca et al. (2017). Quote: "Through code review and testing, we found a total of 16 bugs" Verified.
- [26] The bugs occurred in the specification, interface layer or auxiliary tools that connect the verified code to other components. Source: Fonseca et al. (2017). Quote: "namely in the specification, shim layer, and auxiliary tools" Verified.
- [27] The study found no protocol-level bugs in the verified systems. Source: Fonseca et al. (2017). Quote: "No protocol bugs were found" Verified.
- [28] ShardStore used executable reference models as specifications against which the AWS team checked the storage-node implementation. Source: Bornholt et al. (2021). Quote: "develops executable reference models as specifications to be checked against the implementation." Verified.
- [29] The ShardStore team reports that these checks prevented 16 issues from reaching production. Source: Bornholt et al. (2021). Quote: "These checks have prevented 16 issues from reaching production" Verified.
- [30] In several distributed systems including a Raft key-value store, TraceLink detected nine previously unknown defects in the trusted components of the PGo toolchain. Source: Hackett & Beschastnikh (2025). Quote: "9 previously undetected and diverse bugs in PGo’s TCB" Verified.
- [31] TraceLink maps recorded execution traces to the corresponding formal design to detect deviations. Source: Hackett & Beschastnikh (2025). Quote: "TraceLink maps traces, that capture an execution’s behavior, to the corresponding formal design." Verified.
- [32] FoundationDB tests its database implementation using randomized workloads and injected faults in a deterministic simulation. Source: Zhou et al. (2021). Quote: "the real database software is run, together with randomized synthetic workloads and fault injection, in a deterministic discrete-event simulation." Verified.
- [33] FoundationDB simulation cannot test third-party dependencies or first-party code outside Flow. Source: Zhou et al. (2021). Quote: "It is also unable to test third-party libraries or dependencies, or even first-party code not implemented in Flow." Verified.
- [34] The Molly benchmark found seven bugs in 14 cases and provided bounded guarantees for the remaining cases. Source: Alvaro et al. (2015). Quote: "MOLLY quickly identifies 7 critical bugs in 14 fault-tolerant systems; for the remaining 7 systems, it provides a guarantee that no invariant violations exist up to a bounded execution depth" Verified.
- [35] The 2007–2008 survey targeted 62 projects already known to have used formal techniques. Source: Woodcock et al. (2009). Quote: "Using a structured questionnaire, data was collected between November 2007 and December 2008 on 62 industrial projects known from the published literature, mailing lists, and personal experience to have employed formal techniques." Verified.
- [36] Transport and financial applications were the largest named domains in the 2007–2008 project survey. Source: Woodcock et al. (2009). Quote: "single application domain was transport, followed by the financial sector." Verified.
- [37] In the railway mapping study of 328 publications, 5% documented the development of actual railway products using formal methods. Source: Ferrari & ter Beek (2022). Quote: "5% document the development of real railway products with formal methods" Verified.
- [38] The railway mapping counted 328 relevant primary studies published between 1989 and 2020. Source: Ferrari & ter Beek (2022). Quote: "328 primary studies relevant to our scope published between 1989 and 2020" Verified.
- [39] The 2020 expert survey received 130 responses from 170 invitations. Source: Garavel et al. (2020). Quote: "We received 130 responses after sending 170 invitations." Verified.
- [40] In the expert survey, 71.5% selected insufficient engineer training as an adoption barrier. Source: Garavel et al. (2020). Quote: "Engineers lack proper training in formal methods | 71.5%" Verified.
- [41] In the expert survey, 66.9% selected poor integration into the industrial design life cycle as an adoption barrier. Source: Garavel et al. (2020). Quote: "Formal methods are not properly integrated in the industrial design life cycle | 66.9%" Verified.
- [42] The online survey received 216 responses and estimated its response rate at 1–2%. Source: Gleirscher & Marmsoler (2020). Quote: "We received N = 216 responses resulting in an estimated response rate between 1 and 2%" Verified.
- [43] Respondents rated scalability, skills, and education the leading challenges. Source: Gleirscher & Marmsoler (2020). Quote: "All challenges were rated either moderately or highly difficult, with scalability, skills, and education leading." Verified.
- [44] Dezyne practitioners identified scalability, ease of use and integration with existing engineering processes as their most pressing issues. Source: Chiari et al. (2025). Quote: "According to the practitioners we interviewed, the most pressing issues concern scalability, ease of use, and integration into existing software engineering processes." Verified.
- [45] The Dezyne study interviewed seven practitioners. Source: Chiari et al. (2025). Quote: "Since the size of our sample is small (seven practitioners), we urge readers to take the results of this analysis as purely indicative" Verified.
- [46] The seL4 team estimated kernel design, development and verification at under 14 person-years, excluding generally applicable prover and framework research. Source: Andronick et al. (2012). Quote: "the overall cost of the kernel design, development and formal veriﬁcation (excluding costs of more generally-applicable research and development on theorem prover technologies and frameworks) was less than 14 person-years." Verified.
- [47] The IronFleet team reported approximately 3.7 person-years to develop the methodology and build and verify two systems. Source: Hawblitzel et al. (2015). Quote: "In total, developing the IronFleet methodology and applying it to build and verify two real systems required approximately 3.7 person-years." Verified.
- [48] The team estimated that maintaining the seL4 proofs after completion averaged roughly one full-time person during the period observed. Source: Andronick et al. (2012). Quote: "The effort spent on maintenance adds up to roughly the equivalent of one full-time person on average since the end of the proof." Verified.
- [49] One seL4 system call extension took one day to design and implement, with less than 0.25 person-months to adjust the proof. Source: Klein et al. (2014a). Quote: "calls took one day to design and implement. Adjusting the proof took less than 0.25 pm." Verified.
- [50] A larger seL4 extension adding interrupts, page tables and address spaces took several person-months to design and implement and 1.5–2 person-years to re-verify. Source: Klein et al. (2014a). Quote: "spaces. This change cost several pm to design and implement, and resulted in 1.5–2 py to re-verify." Verified.
- [51] The authors of an original survey of deployed verification projects say their evidence mostly concerned initial system development. Source: Huang et al. (2024c). Quote: "The available information mostly concerned initial system development." Verified.
- [52] In SHOLIS, specification proof in Z found 16% of project faults with 2.5% of effort. Source: King et al. (2000). Quote: "| Z proof | 16 | 2.5 |" Verified.
- [53] System validation testing found 21.5% of project faults with 9.5% of effort in SHOLIS. Source: King et al. (2000). Quote: "| System validation test | 21.5 | 9.5 |" Verified.
- [54] In the Mars rover prototype experiment, the authors reported strong performance of advanced verification tools on concurrency-related errors and weak performance of traditional testing on those errors. Source: Brat et al. (2004a). Quote: "The advanced tools performed very well on concurrency related errors, where traditional testing often performs worst - as it did here." Verified.
- [55] Misu et al. report that GPT-4 produced verified, human-reviewed Dafny methods for 58% of the 178 MBPP problems under its best prompt. Source: Misu et al. (2024). Quote: "GPT-4 was able to generate verified, human-evaluated, Dafny methods for 58% of the problems" Verified.
- [56] The DafnyBench preprint reports a best benchmark success rate of 68% for generating verifier hints. Source: Loughridge et al. (2024). Quote: "The best model and prompting scheme achieved 68% success rate" Verified.
- [57] Lahiri evaluated a symbolic test-based metric on roughly 150 mostly GPT-4-generated, human-labeled Dafny specifications for MBPP. Source: Lahiri (2024). Quote: "mostly GPT-4 generated and human-labeled dataset of roughly 150 Dafny specifications" Verified.
- [58] DafnyPro with Claude 3.5 Sonnet verified 97.43% of Clover, 97.76% of MBPP, 95.32% of HumanEval and 86.18% of DafnyBench with ten attempts. Source: Banerjee et al. (2026). Quote: "Claude 3.5 Sonnet  |  97.43  |  97.76  |  95.32  |  86.18" Verified.
- [59] Faria et al. reported correct annotations for 98.2% of 110 tasks within eight repair iterations of their test-assisted Dafny workflow. Source: Faria et al. (2026). Quote: "generated correct annotations for 98.2% of the programs within at most 8 repair iterations" Verified.
- [60] The researchers used test assertions to validate generated preconditions and postconditions. Source: Faria et al. (2026). Quote: "test cases served as static oracles to automatically validate the generated pre/postconditions." Verified.

## References

Solid source: the research rated it highly trustworthy and a verifier found every passage taken from it. Weak source: rated low, or a verifier did not find a passage taken from it. Medium trust: rated medium; neither weak nor solid. Not checked: rated high, but its passages could not all be checked against it.

- Alvaro, P., Rosen, J., & Hellerstein, J. M. (2015). Lineage-driven Fault Injection. *Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data*. https://people.ucsc.edu/~palvaro/molly.pdf [Solid source. Peer-reviewed, read in large part.]
- Andronick, J., Jeffery, R., Klein, G., Kolanski, R., Staples, M., Zhang, H., et al. (2012). Large-scale formal verification in practice: A process perspective. *International Conference on Software Engineering*. https://trustworthy.systems/publications/nicta_full_text/5396.pdf [Medium trust. Peer-reviewed, read in large part.]
- Banerjee, D., Bouissou, O., & Zetzsche, S. (2026). DafnyPro: LLM-assisted automated verification for Dafny programs. *arXiv*. https://arxiv.org/abs/2601.05385 [Medium trust. Preprint, read in large part.]
- Bornholt, J., Joshi, R., Astrauskas, V., Cully, B., Kragl, B., Markle, S., et al. (2021). Using lightweight formal methods to validate a key-value storage node in Amazon S3. *ACM SIGOPS 28th Symposium on Operating Systems Principles*. https://pm.inf.ethz.ch/publications/BornholtJoshiAstrauskas2021.pdf [Medium trust. Peer-reviewed, read in large part.]
- Brat, G., Drusinsky, D., Giannakopoulou, D., Goldberg, A., Havelund, K., Lowry, M., et al. (2004b). Experimental evaluation of verification and validation tools on Martian rover software (journal version). *Formal Methods in System Design*. https://www.havelund.com/Publications/k9-exp-fmsdjournal.pdf [Medium trust. Read in large part.]
- Brat, G., Giannakopoulou, D., Goldberg, A., Havelund, K., Lowry, M., Pasareanu, C., et al. (2004a). Experimental evaluation of verification and validation tools on Martian rover software. *NASA Technical Reports Server*. https://ntrs.nasa.gov/api/citations/20040010327/downloads/20040010327.pdf [Medium trust. Peer-reviewed, read in large part.]
- Chiari, M., Camilli, M., Bersani, M. M., van Beusekom, R., & Tamburri, D. A. (2025). Reality check on formal methods in industry: A study of Verum Dezyne. *Journal of Software: Evolution and Process*. https://onlinelibrary.wiley.com/doi/10.1002/smr.70069 [Solid source. Peer-reviewed, read in full.]
- Faria, J. P., Trigo, E., Honorato, V., & Abreu, R. (2026). Automatic generation of formal specification and verification annotations using LLMs and test oracles. *arXiv*. https://arxiv.org/abs/2601.12845 [Medium trust. Preprint, read in large part.]
- Ferrari, A., & ter Beek, M. H. (2022). Formal methods in railways: A systematic mapping study. *arXiv*. https://arxiv.org/html/2107.05413 [Solid source. Peer-reviewed, read in full.]
- Fonseca, P., Zhang, K., Wang, X., & Krishnamurthy, A. (2017). An empirical study on the correctness of formally verified distributed systems. *ACM EuroSys*. https://www.cs.purdue.edu/homes/pfonseca/papers/eurosys2017-dsbugs.pdf [Medium trust. Peer-reviewed, read in large part.]
- Garavel, H., ter Beek, M. H., & van de Pol, J. (2020). The 2020 expert survey on formal methods. *Formal Methods for Industrial Critical Systems*. https://iris.cnr.it/retrieve/b81f2423-58c8-43ca-aa93-0516d1a84fcf/prod_429026-doc_153137.pdf [Solid source. Peer-reviewed, read in large part.]
- Gleirscher, M., & Marmsoler, D. (2020). Formal methods in dependable systems engineering: a survey of professionals from Europe and North America. *Empirical Software Engineering*. https://d-nb.info/1220500909/34 [Solid source. Peer-reviewed, read in large part.]
- Goldweber, E., Yu, W., Ghahani, S. A. V., & Kapritsos, M. (2024). IronSpec: Increasing the reliability of formal specifications. *USENIX Symposium on Operating Systems Design and Implementation*. https://www.usenix.org/conference/osdi24/presentation/goldweber [Medium trust. Peer-reviewed, abstract only.]
- Hackett, A. F., & Kuppe, M. A. (2023). Turning an incident report into a design issue with TLA+. *USENIX Association*. https://www.usenix.org/conference/srecon23americas/presentation/hackett [Medium trust. Abstract only.]
- Hackett, F., & Beschastnikh, I. (2025). TraceLinking implementations with their verified designs. *Proceedings of the ACM on Programming Languages*. https://www.cs.ubc.ca/~bestchai/papers/oopsla25-trace-link.pdf [Medium trust. Peer-reviewed, read in large part.]
- Hawblitzel, C., Howell, J., Kapritsos, M., Lorch, J. R., Parno, B., Roberts, M. L., et al. (2015). IronFleet: Proving practical distributed systems correct. *Symposium on Operating Systems Principles*. https://pdos.csail.mit.edu/6.824/papers/ironfleet.pdf [Solid source. Read in large part.]
- Huang, L., Ebersold, S., Kogtenkov, A., Meyer, B., & Liu, Y. (2024c). Lessons from formally verified deployed software systems. *Preprint*. https://se.inf.ethz.ch/~meyer/publications/proofs/deployed_short.pdf [Medium trust. Preprint, read in large part.]
- King, S., Hammond, J., Chapman, R., & Pryor, A. (2000). Is proof more cost-effective than testing?. *IEEE Transactions on Software Engineering*. https://userweb.cs.txstate.edu/~rp31/papers/KingHammondChapmanPryor.pdf [Medium trust. Peer-reviewed, read in large part.]
- Klein, G., Andronick, J., Elphinstone, K., Murray, T., Sewell, T., Kolanski, R., et al. (2014a). Comprehensive formal verification of an OS microkernel. *ACM Transactions on Computer Systems*. https://www.cs.cmu.edu/~15811/papers/seL4-journal.pdf [Solid source. Peer-reviewed, read in large part.]
- Klein, G., Elphinstone, K., Heiser, G., Andronick, J., Cock, D., Derrin, P., et al. (2009). seL4: Formal verification of an OS kernel. *ACM Symposium on Operating Systems Principles*. https://isabelle.in.tum.de/~kleing/papers/sosp09.html [Medium trust. Peer-reviewed, abstract only.]
- Lahiri, S. K. (2024). Evaluating LLM-driven user-intent formalization for verification-aware languages. *Formal Methods in Computer-Aided Design*. https://www.microsoft.com/en-us/research/publication/evaluating-llm-driven-user-intent-formalization-for-verification-aware-languages/ [Solid source. Peer-reviewed, abstract only.]
- Lamport, L. (2022). TLA+ tools. *Leslie Lamport*. https://lamport.org/tla/tools.html [Solid source. Documentation, read in full.]
- Leino, K. R. M., Ford, R. L., & Cok, D. R. (2022). Dafny reference manual. *Dafny*. https://dafny.org/dafny/DafnyRef/out/DafnyRef.pdf [Solid source. Documentation, read in large part.]
- Loughridge, C., Sun, Q., Ahrenbach, S., Cassano, F., Sun, C., Sheng, Y., et al. (2024). DafnyBench: A benchmark for formal software verification. *arXiv*. https://arxiv.org/abs/2406.08467 [Solid source. Preprint, read in large part.]
- Misu, M. R. H., Lopes, C. V., Ma, I., & Noble, J. (2024). Towards AI-assisted synthesis of verified Dafny methods. *Proceedings of the ACM on Software Engineering*. https://arxiv.org/abs/2402.00247 [Solid source. Peer-reviewed, read in large part.]
- Newcombe, C., Rath, T., Zhang, F., Munteanu, B., Brooker, M., & Deardeuff, M. (2015). How Amazon Web Services Uses Formal Methods. *Communications of the ACM*. https://cdn.amazon.science/67/f9/92733d574c11ba1a11bd08bfb8ae/how-amazon-web-services-uses-formal-methods.pdf [Weak source. Peer-reviewed, read in large part.]
- Padon, O., Losa, G., Sagiv, M., & Shoham, S. (2017). Paxos made EPR: Decidable reasoning about distributed protocols. *Proceedings of the ACM on Programming Languages*. https://www.wisdom.weizmann.ac.il/~padon/paxos-made-epr-oopsla17.pdf [Solid source. Peer-reviewed, read in large part.]
- Sewell, T., Myreen, M., & Klein, G. (2013). Translation validation for a verified OS kernel. *Proceedings of the 34th ACM SIGPLAN Conference on Programming Language Design and Implementation*. https://sel4.org/Research/pdfs/translation-validation-verified-os-kernel.pdf [Solid source. Peer-reviewed, read in large part.]
- Woodcock, J., Larsen, P. G., Bicarregui, J., & Fitzgerald, J. (2009). Formal methods: Practice and experience. *ACM Computing Surveys*. https://epubs.stfc.ac.uk/manifestation/4234/fmsurvey.pdf [Medium trust. Preprint, read in large part.]
- Woos, D., Wilcox, J. R., Anton, S., Tatlock, Z., Ernst, M. D., & Anderson, T. (2016). Planning for change in a formal verification of the Raft consensus protocol. *ACM SIGPLAN Conference on Certified Programs and Proofs*. https://jamesrwilcox.com/raft-proof.pdf [Solid source. Peer-reviewed, read in large part.]
- Zhou, J., Xu, M., Shraer, A., Namasivayam, B., Miller, A., Tschannen, E., et al. (2021). FoundationDB: A Distributed Unbundled Transactional Key Value Store. *Proceedings of the 2021 International Conference on Management of Data (SIGMOD ’21)*. https://www.foundationdb.org/files/fdb-paper.pdf [Medium trust. Peer-reviewed, read in large part.]
- Lean FRO (n.d.). Tactic proofs. *The Lean Language Reference*. https://lean-lang.org/doc/reference/latest/Tactic-Proofs/ [Solid source. Documentation, read in full.]
- seL4 Foundation (n.d.). What the proofs assume. *seL4*. https://sel4.com/Verification/assumptions.html [Solid source. Documentation, read in full.]
