Skip to content
SPECIFICTION
Get listed

Dafny vs HOL4

Dafny

dafny.org

HOL4

hol-theorem-prover.org

Side by side

FigureDafnyHOL4
Price from—Free
Free plan—Yes
Free trial——
Open source——
WindowsYesYes
macOSYesYes
LinuxYesYes
Self-hostedYesYes
Plans published01
Spec score · Formal Verification Tools7.8 (#15)8.1 (#9)
LicenseThe Dafny software is licensed under the MIT License.HOL is free software released under the Modified (3-clause) BSD licence.
PurposeIt helps developers write code that can be verified against specifications to reduce the risk of late-stage bugs.HOL4 is a proof assistant for higher-order logic and a programming environment for proving theorems and implementing proof tools.
RequirementsThe Dafny tool is a .NET 8.0 artifact, and Dafny plus its bundled Z3 tool are sufficient for verification; compiling and running generated programs may require additional tools.HOL requires a Standard ML compiler; the installation guide recommends Poly/ML and also lists Moscow ML, with MLTon supported for building tool executables.
SupportThe project homepage directs users to a Zulip channel to ask questions about Dafny.The community offers help through a mailing list and Zulip chat, while bug reports and feature suggestions go to GitHub issues.

Plans

Dafny

No plans published.

Dafny pricing →

HOL4

  • HOL4Free

HOL4 pricing →

In their own words

Dafny

Dafny has no write-up on Specifiction yet; its figures are above.

Visit dafny.org

HOL4

HOL4 is a free, interactive proof assistant for higher-order logic, with a programming environment for proving theorems and building proof tools. It supports work that combines deduction, execution, and property checking. Built-in decision procedures and theorem provers can establish many simple theorems, and an oracle mechanism can connect to external programs such as SMT and BDD engines. HOL4 supports higher-order logic and Standard ML, and can produce proof artifacts and counterexamples. It is self-hosted and listed for Linux, macOS, and Windows. A Standard ML compiler is required, with Poly/ML recommended; Moscow ML and MLTon are also supported for building tool executables. Windows installation can use Cygwin or the Windows Linux subsystem with Poly/ML. Moscow ML is another option, but the Windows guide notes that it is slower, lacks some Poly/ML libraries, and cannot run concurrent Holmake builds. HOL includes Emacs modes for syntax display and session interaction, and the installation guide links to Vim plugin documentation. Online materials include a tutorial, quick reference, FAQ, manuals, and generated indexes.

Visit hol-theorem-prover.org