Skip to content
SPECIFICTION
Get listed

Dafny vs Rocq

Dafny

dafny.org

Rocq

rocq-prover.org

Side by side

FigureDafnyRocq
Price from—Free
Free plan—Yes
Free trial——
Open source——
Web—Yes
WindowsYesYes
macOSYesYes
LinuxYesYes
Self-hostedYes—
Plans published01
Spec score · Formal Verification Tools7.8 (#16)8.5 (#3)
Intended usersThe project describes Dafny as used in academia for teaching and research and in industry, including by teams at Amazon.The Rocq Platform is intended for developing and teaching with Rocq, and the site describes Rocq as used in mathematics, computer science, and related areas.
LicenseThe Dafny software is licensed under the MIT License.The Rocq Prover is distributed under the GNU Lesser General Public Licence Version 2.1 (LGPL).
PurposeIt helps developers write code that can be verified against specifications to reduce the risk of late-stage bugs.Rocq Prover is an interactive theorem prover and proof assistant for developing mathematical proofs, formal specifications, programs and proofs that programs meet specifications.
SupportThe project homepage directs users to a Zulip channel to ask questions about Dafny.Users can report installation trouble or extension bugs in the dedicated Rocq Zulip stream.
What it doesDafny is a verification-aware programming language with native support for recording specifications and a static program verifier that checks code against them.Rocq is an interactive theorem prover for developing mathematical proofs and formal specifications, including proofs that programs meet their specifications.

Plans

Dafny

No plans published.

Dafny pricing →

Rocq

  • Rocq ProverFree

Rocq pricing →

In their own words

Dafny

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

Visit dafny.org

Rocq

Rocq is a free interactive theorem prover and proof assistant for building mathematical proofs, formal specifications and programs, including proofs that programs meet specifications. Its Gallina language supports specification and mathematical work and is based on the Polymorphic, Cumulative Calculus of Inductive Constructions. A relatively small certification kernel machine-checks proofs. Rocq also offers interactive proof methods, decision and semi-decision algorithms, and a tactic language for defining methods. Certified programs can be extracted to OCaml, Haskell or Scheme, and the system can connect with external computer algebra systems or theorem provers. The Rocq Platform bundles the core prover with libraries and plugins for development and teaching. Its scripts install Rocq and packages on macOS, Windows and many Linux distributions; precompiled installers are available for macOS and Windows, but not Linux. Editor options include the VsRocq Visual Studio Code extension, RocqIDE, Proof General and Coqtail. Rocq is written in OCaml and distributed under the GNU Lesser General Public Licence Version 2.1.

Visit rocq-prover.org