ArticleslgStudy

computer science

Alt-Ergo

Alt-Ergo is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Alt-Ergo rather than just read about it. In short: Alt-Ergo, an automatic solver for mathematical formulas, is mainly used in formal program verification. It operates on the principle of satisfiability modulo theories (SMT).

Alt-Ergo — main illustration
Alt-Ergo — illustration

Key takeaways

  • Alt-Ergo belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Alt-Ergo to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Alt-Ergo from memory before moving on to harder problems.

Reference excerpt

Alt-Ergo, an automatic solver for mathematical formulas, is mainly used in formal program verification. It operates on the principle of satisfiability modulo theories (SMT). Development began in 2006 at the Laboratoire de Recherche en Informatique (LRI), a joint CNRS/Inria unit, at what is now Paris-Saclay University. Since 2013 it has been maintained, developed and distributed by the Formal Methods team at OCamlPro. It is released under the free and open-source software CeCILL-C license.

History The first version of Alt-Ergo was released in 2006. Its architecture was shaped by deductive program verification tools, and it uses a native input language for polymorphic first-order logic that is not compliant with SMT-LIB. OCamlPro announced its support and distribution of the solver in September 2013. Notable releases include:

2.1.0 (2018): a conflict-driven clause learning (CDCL) SAT solver became the default Boolean reasoner, replacing the earlier tableaux-like approach. 2.2.0 (2018): a new experimental front-end supporting SMT-LIB 2 with a conservative extension for prenex polymorphism. 2.4.0 (2021): support for the incremental commands push and pop from the SMT-LIB standard, and the .ae file extension for the native syntax. 2.5.0 (2022–2023): generation of counterexample models, on a best-effort basis and initially limited to linear arithmetic and enumerated types. 2.6.0 (September 2024): a new relational theory for bit vectors, improvements to the floating-point theory, and the Dolmen library as the default front-end. The release followed an acceleration of development under the DéCySif research project, a collaboration of AdaCore, Inria, OCamlPro and TrustInSoft. As of October 2026 the project website lists version 2.6.3 (14 April 2026) as the latest release.

Technologies

Design choices Alt-Ergo employs a specialized input language with prenex polymorphism, designed to reduce the number of axioms requiring quantification and to simplify the complexity of problems. While Alt-Ergo offers partial support for the SMT-LIB 2 language, its efficiency with SMT files is comparatively limited.

Main components The core architecture of Alt-Ergo comprises three main elements: a depth-first search (DFS)-based SAT solver, a quantifier's instantiation engine that uses e-matching, and an assembly of decision procedures for a range of built-in theories. These components collectively enable Alt-Ergo's abilities in automatic formula solving. Alt-Ergo's native language is a polymorphic first-order logic in the style of ML, and the solver also accepts SMT-LIB v2 input. Since version 2.1.0 its Boolean reasoning has been performed by a CDCL-based SAT solver by default.

Built-in theories Alt-Ergo implements (semi-)decision procedures for the following theories:

Empty theory Linear integer arithmetic Linear rational arithmetic Non-linear arithmetic Floating point arithmetic Polymorphic arrays Enumerated data types AC symbols Record data types

Licensing and support Alt-Ergo's current releases are distributed under the OCamlPro Non-Commercial License, intended for research and evaluation. Releases are made available under an open-source license after a delay of a few years, published as the alt-ergo-free package, while the current version is the alt-ergo package on opam. OCamlPro offers commercial support to industrial users and funds development partly through the Alt-Ergo Users' Club, a group of supporting organisations. A JavaScript version, Try-Alt-Ergo, runs directly in a web browser.

Industrial uses Several verification platforms are built on Alt-Ergo:

Why3, a platform for deductive program verification, uses Alt-Ergo as main prover CAVEAT, a C-verifier developed by CEA and used by Airbus. Alt-Ergo was involved in a DO-178C qualification process led by Airbus, during which a qualification kit was produced. Frama-C, a framework to analyse C-code, uses Alt-Ergo in the Jessie and WP plugins (dedicated to deductive program verification) SPARK, uses Alt-Ergo (behind GNATprove) to automate the verification of some assertions in Spark 2014 Atelier-B can use Alt-Ergo instead of its main prover (raising success from 84% to 98% on ANR Bware project benchmarks) Rodin, a B-method framework developed by Systerel, can use Alt-Ergo as a back-end Cubicle, an open source model checker to verify safety properties of array-based transition systems EasyCrypt, a toolset for reasoning about relational properties of probabilistic computations with adversarial code BWARE Cafein FUI Hi-Lite Decert ADT Alt-Ergo A3PAT TrustInSoft Analyzer, a static analysis tool, and Frama-C use Alt-Ergo as one of their solvers.

See also

Formal verification Z3 Theorem Prover

References

External links Official website, OcamlPro Alt-Ergo at LRI

Worked examples

Example 1 — a first encounter with Alt-Ergo

Start with the simplest possible case. Write down what Alt-Ergo claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Alt-Ergo before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Alt-Ergo ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Alt-Ergo

In research
Alt-Ergo appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Alt-Ergo in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Alt-Ergo is common in secondary-school and first-year university syllabi. It links to neighbouring topics Formal methods tools, Free and open-source software stubs, Free software programmed in OCaml, so understanding it makes those chapters shorter.
In everyday life
Look for Alt-Ergo outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Alt-Ergo” →

How to study Alt-Ergo in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Alt-Ergo means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Alt-Ergo out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Alt-Ergo in simple terms?

Alt-Ergo, an automatic solver for mathematical formulas, is mainly used in formal program verification. It operates on the principle of satisfiability modulo theories (SMT).

Why does Alt-Ergo matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Alt-Ergo?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Alt-Ergo.

Tags

  • Formal methods tools
  • Free and open-source software stubs
  • Free software programmed in OCaml
  • Linux software
  • Science software stubs
  • Software testing tools
  • Software using the CeCILL license

Keep exploring