Tarides Logo
Services

Formal Verification Services

We help you check that critical code does what it should, using tests generated from a specification, model checking and machine-checked proofs. This works for code in any language and for protocol designs, and we usually start with a pilot on one component.

ETAPS 2025, for Gospel and Ortac
Best Tool Paper
Found in OCaml 5 by our test suite
40 issues
Library where Ortac found a crash
25-year-old

Why Verify

A bug in critical code costs much more to fix once it reaches production than when it is caught early. Teams now write more code, faster, often with help from AI tools, and checking that this code is correct is becoming the expensive part of the work.

What We Offer

We work with code in any language you bring, and have extra experience with C (the OCaml runtime is written in C, and C verification tools such as Frama-C are written in OCaml), Python, JavaScript, TypeScript, Java, Rust and Go.

The services below are a combination of static analysis, runtime verification and formal proofs. They can verify properties of your code, or compare it against a specification. We discuss up front which one fits your problem.

Find Bugs

We test your code against a precise description of what it should do.

Model-based testing of stateful systems

Any language

For a web API or another service, written in any language, we build a model of the state your system should be in. The tests then generate sequences of requests and check every response against that model.

Library audit

OCaml

We write a specification for one of your OCaml libraries, generate tests from it and report what we find. This works best for code that manages mutable state, such as data structures, caches and stores.

Concurrency review

OCaml 5

We run parallel tests on your multicore OCaml code, look for data races with ThreadSanitizer, and report what we find.

Check the Design

We look for errors in a protocol or concurrent design before they make it into the code.

Formal models of designs and protocols

TLA+, PRISM

We model your distributed protocol or concurrent design in TLA+, or your probabilistic or randomised system in PRISM, and use a model checker to find design errors. This can happen before you write the code or alongside it.

Security protocol analysis

ProVerif

We model your authentication or key-exchange protocol in ProVerif, which checks automatically for attacks such as leaked secrets or impersonation.

Prove It

For components where tests alone don't give you enough confidence.

Proofs for critical components

Rocq, Lean, F*

We write machine-checked proofs, in Rocq, Lean or F*, that a model of your algorithm or component does what its specification says.

Verified rewrites of critical components

Rocq, Lean, F*

We reimplement a critical component, such as a parser or a regular-expression engine, and prove properties of the new code itself rather than of a model.

Strengthen What You Have

We add stronger checks around the code you already have in production.

Static analysis in CI

C, C++, Java, Rust

As a first step, we set up static analysis tools that suit your language in your CI, such as Infer for C, C++ and Java, Frama-C for C, or Kani for Rust. Infer and Frama-C are written in OCaml, so we can also extend them with checks specific to your code. We can then use stronger methods on the most critical parts.

Review of code built on verified components

Integration

A formally verified library, such as a cryptography library, only gives its guarantees if the code that calls it respects its assumptions. We review the bindings and integration code around such components.

Working under DO-178C, ISO 26262 or EN 50128? We can produce the specifications, tests, models and proofs in a form your certification team can use as evidence. The certification itself remains their responsibility.

Start With a Pilot

You pick a component, and we agree on the scope and the method together. We write the specification ourselves, based on your code and its documentation, so your team doesn't have to. If the pilot is useful, we can extend the work to more of your code.

What You Get

  • A written specification of what the component must do
  • Tests, models or proofs against it, which you keep
  • A report of what we found
  • A recommendation for what to verify next

How a Project Runs

  1. Free call

    You tell us about your system, and we tell you whether formal methods are likely to be worth it there.

  2. Scope a pilot

    Together, we pick one component and agree on the method, the scope and what we deliver.

  3. Specify and verify

    We write the specification, then test, model-check or prove your component against it.

  4. Report and next steps

    We send you our findings and a recommendation, and you decide what to do next.

Track Record

What our tools and methods have found in real code. Our own tools target OCaml; the methods behind them work for code in any language.

Peer-reviewed tools

Our paper on Gospel and Ortac was selected as a Distinguished Paper and went on to win the Best Tool Paper award at ETAPS 2025. All its authors work at Tarides, two of them also with Uppsala University and Galois.

Bugs found in mature code

Ortac found an integer overflow in bitv, a 25-year-old library, that made it crash with a segmentation fault. The maintainer merged the fix the same day. Ortac has also found other issues, including one in the standard library's Hashtbl.create.

Tested at compiler scale

Our multicoretests suite found 40 previously unknown issues in the OCaml 5 runtime, standard library, compiler and tools. By October 2026, 39 of them had been fixed.

Data races caught in the runtime

Tarides engineers added ThreadSanitizer support to OCaml, available since OCaml 5.2, and used it to find and fix data races in the runtime.

Frequently Asked Questions

Does our code have to be written in OCaml?

No. We work with code in any language, and have extra experience with C, Python, JavaScript, TypeScript, Java, Rust and Go. Model-based testing and TLA+, PRISM or ProVerif models work for systems in any language. Proofs in Rocq, Lean or F* cover a model of your algorithm or component, or the code of a verified rewrite. For static analysis, we use tools that suit your language, such as Infer for C, C++ and Java, Frama-C for C, or Kani for Rust. Our own tools, Gospel and Ortac, are for OCaml code.

What does a pilot cost, and how long does it take?

That depends on your code and on what you need, so we can't give an estimate before we understand both. In a free consultation, we look at your system together and agree on a scope, and then we send you a quote.

Do we need to know formal methods?

No. We write the specifications, models and proofs, and then walk your team through the results.

Can you work under NDA, and who owns the work?

Yes, we can work under NDA. The specifications, tests, models and proofs we write can be delivered under a regular commercial licence or as open source, depending on what you need. If your code can't leave your environment, we can discuss working inside it.

Can you work with our certification team?

Yes. If you work under a safety standard such as DO-178C, ISO 26262 or EN 50128, we can provide specifications, tests, models and proofs in a form your certification team can use as evidence. The certification process itself remains with your team.

Research and Open-Source Tools

For OCaml code, we use tools we build ourselves. Gospel is a specification language that lets you describe precisely what each function should do. Ortac, developed mostly by Tarides engineers, turns those specifications into runtime checks and generated tests, including parallel tests across OCaml 5 domains. You can see some examples in the Ortac repository.

Tarides also took part in the GOSPEL research project (2022–2026), funded by the French National Research Agency (ANR), alongside Inria, the LMF lab and Nomadic Labs.

Talk to us about a pilot on your code

A free call with our team, without commitment. Tell us about your system and we'll tell you honestly where we can help.