Technology / Field overview
Formal Methods
Formal methods use mathematics to state precisely what a system should do and then to prove that it does. They matter most where failure is costly, such as aircraft, operating systems and cloud infrastructure [2][3][7]. Proof can cover every case a specification allows, which testing alone cannot [1].
A source-backed overview of the field, not a list of INSTAR projects or results. Every source is numbered below and was last checked on October 23, 2026.


What formal methods are, and why they exist
Testing shows that a program works for the cases someone thought to try. Formal methods ask a stronger question: does it work for every case the specification allows? The answer comes from mathematical proof rather than from sampling [1].
The idea is old. In 1969 Tony Hoare published a set of axioms and rules of inference for reasoning about the properties of computer programs, in the same way geometry proves facts about shapes [5]. What has changed since then is the tooling. Proof assistants, automated solvers and model checkers now do much of the bookkeeping that once made such proofs impractical.
Where the evidence is strongest
Industrial surveys describe formal methods being used at the specification and design stages of a project, not only at the end [1]. The evidence comes from reported projects and experience, which is useful but is not the same as a controlled trial.
Three kinds of results stand out.
Verified software. The seL4 project produced a machine-checked proof that the C implementation of an operating-system kernel is consistent with its specification. The authors were explicit about what they assumed rather than proved, including the compiler, assembly code and boot code [3]. A separate project, CompCert, used the Coq proof assistant both to write a compiler for a large subset of C and to prove that it preserves the meaning of programs. If the source code satisfies a safety property, the compiled code does too [4].
Industry practice. Engineers at Amazon Web Services have described using the TLA+ specification language to prevent serious but subtle bugs from reaching production systems [2]. This is a notable case because the technique was applied to commercial cloud services rather than to a research prototype.
Safety-critical government work. NASA's Langley Research Center runs a formal methods research programme for mission-critical and safety-critical digital systems. Its project list includes formally analysed aircraft separation and detect-and-avoid algorithms [7].
Recent turning points
Two shifts make formal methods more reachable than they were. First, automated solvers such as Z3, an SMT (satisfiability modulo theories) solver described in 2008, can answer many logical questions without human help [6]. Second, writing a precise model of a design, for example in TLA+, can find bugs before any code is written. The Amazon engineers' account concerns exactly this use [2].
Neither shift removes the hard parts. Writing a good specification still takes skill, and a proof is only as meaningful as the specification it proves.
How to judge a formal claim
A responsible reading of any "verified" claim asks four things.
- What exactly was proved? A proof of one property says nothing about others.
- What was assumed? The seL4 authors listed components they trusted without proof [3].
- Does the proof apply to the code that actually runs? Verified compilers address part of this question [4].
- What did it cost, and who can reproduce it? Industrial surveys discuss the issues surrounding adoption, so cost and effort deserve explicit attention [1].
Where it meets other fields
Formal methods increasingly overlap with other technology areas. Machine learning raises the question of how to specify and check behaviour that is learned from data rather than written by hand. Security work benefits from proofs about operating-system code [3]. Aerospace is another meeting point, as NASA's programme shows [7]. In each case the practical question is the same one raised above: what was specified, and what was left out.
A further point of contact is education and workforce. Surveys of industrial use discuss the issues surrounding adoption [1], and how formal reasoning is taught and supported by tools is plausibly part of that picture.
Where the field is still arguing
Open questions in the field
Can the cost of writing proofs fall far enough for ordinary engineering teams to use them routinely?
Surveys of industrial practice devote significant attention to the issues surrounding adoption [1], and making formal methods easier to adopt is an active concern. Machine-checked proofs of a whole operating-system kernel show what is possible [3], but whether that effort can be made routine is still open.
How can a proof be trusted to describe the real system, not just a model of it?
The seL4 team assumed the correctness of the compiler, assembly code and boot code [3]. A verified compiler narrows one such gap by proving that compiled code preserves the meaning of the source [4].
How can formal reasoning keep pace with software that changes every day?
Engineers at one large cloud provider have reported using formal specification to catch subtle design bugs [2]. Whether specifications and proofs can be kept current as code changes daily is a separate, open problem.

Explainer
Testing samples. A proof covers every case.
One rule, 144 allowed inputs
An illustration with a made-up rule, not data. Each square stands for one input the specification allows, and exactly one of them breaks the rule. Tests check the inputs someone runs; a proof has to hold for all of them[1]. When a property fails, automated solvers such as Z3 can report an input that breaks it[6].
No inputs tested yet. 144 inputs are allowed.
- Not tested
- Tested, passed (✓)
- Breaks the rule (✗)
What a "verified" claim rests on: the seL4 kernel
The seL4 proof is machine-checked, and its authors listed what they assumed rather than proved[3]. Reading a claim this way answers two of the four questions above: what was proved, and what was assumed.
- SpecificationWhat the kernel should do. The proof is only as meaningful as this description.
- Proved: the C implementation is consistent with the specificationA machine-checked proof[3].
- Assumed, not proved, includingthe compiler, the assembly code and the boot code[3].
The compiler is a separate question. Verified compilers such as CompCert address it: CompCert is proved to preserve the meaning of programs, so a safety property of the source code also holds for the compiled code[4].
How researchers work on these questions
Common methods
Deductive verification
Engineers state properties as logical assertions about a program and prove them step by step, an approach whose foundations were laid out in the 1960s [5].
Interactive proof assistants
Software such as Coq checks every step of a human-guided proof. It was used both to write and to prove correct a C compiler [4].
Specification languages and model checking
Designers write a precise model of a system, for example in TLA+ (Temporal Logic of Actions), and a tool explores its possible behaviours looking for violations [2].
Automated solvers
Satisfiability modulo theories (SMT) solvers such as Z3 decide logical questions automatically and serve as engines inside many verification tools [6].
Keep the boundary visible
What the evidence does not yet show
Terms used on this page
Glossary
- Formal specification
- A description of what a system must do, written in a precise mathematical notation.
- Proof assistant
- A program that checks a proof step by step and refuses to accept any step that does not follow from the rules.
- Model checking
- Automatic exploration of every state a model of a system can reach, to see whether a property is ever broken.
- SMT solver
- A tool that decides whether a set of logical conditions can all be true at once.
No glossary term matches that filter.
Source notes
Sources
Crossref gives a publication year for 6 of these 7 sources: from 1969 to 2015, at least half from 2009 or later. See every cited work by year.
Context
Where this sits in INSTAR's portfolio
Readers interested in neighbouring areas can see Machine Intelligence and Quantum Computing. Information on how research is supported is on the funding page and the open data page, and the funders page is the starting point for partners.