HOL Light
hol-light.github.io
- Free plan
- Windows
- macOS
- Linux
- Web
- Self-hosted
What HOL Light is
HOL Light is a free program for formally proving mathematical theorems in higher-order logic. It combines interactive theorem proving with proof checking through a logical core focused on exact correctness. Users can extend it with new theorems and inference rules while preserving soundness. The system includes automated tools and pre-proved theorems for arithmetic, basic set theory and real analysis. Written in OCaml, it is normally used through the OCaml read-eval-print loop, and an official browser version is linked. Installation options include OPAM, source builds and a hol-light package on Debian-based distributions. The documentation covers Linux, macOS and Windows environments, including WSL or Cygwin. A VS Code extension supports REPL connections, syntax help, proof-step controls, goal display, navigation and interactive notebooks. The site provides tutorials, reference manuals, a HOW-TO and Zulip chat. Cited applications include Flyspeck, AWS s2n-bignum and Intel floating-point verification.
Who it suits
HOL Light suits people working with formal mathematics, theorem proving and deductive verification. It is also relevant to OCaml users who want programmable proof extensions and documented editor integration.
Good to know, and what to watch
- Free software
- Interactive theorem proving and proof checking
- Extensible with new inference rules
- Automated tools and pre-proved theorems
- Browser version available
- Package-manager versions may be out of date
- Requires OCaml and listed dependencies
- Self-hosted installation options require setup
The verdict
HOL Light provides a programmable environment for higher-order-logic proofs, with automation, libraries and several installation paths. Its documentation and editor integration support both command-line and browser-oriented workflows.
What the maker publishes
- Applications
- The site cites the Flyspeck project, AWS s2n-bignum, and floating-point verification work at Intel as applications of HOL Light. source
- Automation and library
- It provides automated tools and pre-proved theorems in areas including arithmetic, basic set theory, and real analysis. source
- Browser access
- The official site links to a browser version that runs HOL Light in a web browser. source
- Built-in resources
- It includes automated tools and pre-proved theorems covering areas such as arithmetic, basic set theory, and real analysis. source
- Dependencies
- The README lists OCaml, camlp5, and either Zarith or Num as dependencies, with the rational arithmetic library depending on the OCaml version. source
- Documentation
- The official site provides a tutorial and a reference manual in HTML and PDF formats. source
- Editor integration
- The documented VS Code extension offers syntax highlighting, sending statements to the terminal, reverting proof steps, showing definitions, and documentation tooltips. source
- Editor integration
- The official site links to a Visual Studio Code extension for HOL Light. source
- Extensibility
- HOL Light is fully programmable, allowing users to extend it with new theorems and inference rules without compromising soundness. source
- Extension features
- The linked VS Code extension provides a REPL connection, code completion, hover information, go-to-definition, goal display, and interactive notebooks. source
- Implementation
- HOL Light is written in OCaml and uses the OCaml toplevel as its front end. source
- Installation
- Users can install HOL Light through OPAM or build it from source; Debian-based distributions also provide a hol-light package. source
- Installation
- The official installation instructions recommend installing HOL Light through OPAM or cloning its GitHub source repository. source
- Installation limitation
- The tutorial says package-manager versions may be out of date, while building from source provides the latest features. source
- Installation limitation
- The README says that compiling HOL Light as a module with HOLLIGHT_USE_MODULE=1 only works on OCaml 4.14 or above. source
- Language and interface
- HOL Light is written in OCaml and uses the OCaml read-eval-print loop as its usual interaction environment. source
- Operating systems
- The tutorial discusses Linux, macOS package managers, Windows through WSL or Cygwin, and installation through OPAM across operating systems. source
- Platform notes
- The installation instructions describe Unix-like environments such as Linux and Windows through Cygwin; the README also mentions native Windows support for some configurations. source
- Proof checking
- HOL Light is an interactive theorem prover and proof checker with a logical core the site describes as simple and exacting about correctness. source
- Proof checking
- The project describes HOL Light as an interactive theorem prover and proof checker. source
- Purpose
- HOL Light is a computer program for formally proving mathematical theorems in higher-order logic. source
- Security and trust
- When compiling with HOLLIGHT_USE_MODULE=1, the repository documentation says the trusted base expands to include the inline_loads.ml script. source
- Support and community
- The official site links to HOL Light Zulip Chat and a written HOW-TO guide. source
- Support and documentation
- The official site links to a tutorial, reference manual, HOW-TO, and HOL Light Zulip chat. source
Checked against the maker's pages on 8 Oct 2026.