K Framework vs Why3
K Framework
kframework.orgWhy3
why3.orgSide by side
| Figure | K Framework | Why3 |
|---|---|---|
| Price from | — | Free |
| Free plan | — | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | — | Yes |
| Windows | — | Yes |
| macOS | Yes | — |
| Linux | Yes | Yes |
| API | Yes | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 0 | 1 |
| Spec score · Formal Verification Tools | 7.5 (#22) | 8.0 (#12) |
| Editor integrations | The editor support page lists syntax support or plugins for Atom, BBEdit/TextWrangler, Emacs, IntelliJ IDEA, Notepad++, Pygments, Vim, and Visual Studio Code. | Why3 distributions include configuration files for Emacs and Vim, plus shell completion files for bash and zsh. |
| Installation | The official site directs users to install K from GitHub releases and provides a `kup` installation command. | Why3 can be installed via Opam, run from a Docker image, or compiled from source. |
| Purpose | K is a rewrite-based executable semantic framework for defining programming languages, type systems, and formal analysis tools. | Why3 is a platform for deductive program verification that uses WhyML and external theorem provers to discharge verification conditions. |
| Support | The official site lists Discord as its most direct support channel and also links to a Matrix room. | The project provides a user mailing list, a Zulip chat, and a bug tracking system. |
Plans
In their own words
K Framework
K Framework has no write-up on Specifiction yet; its figures are above.
Why3
Why3 is a platform for deductive program verification. It uses WhyML to express programs and specifications, then works with external automated or interactive theorem provers to discharge verification conditions. WhyML supports preconditions, postconditions, assertions, and loop invariants, alongside logical theories and data structures such as arrays, queues, and hash tables. External provers need to be installed and configured separately. Why3 can be extended with support for new provers and used as a software library through its OCaml API. WhyML programs can be extracted automatically into correct-by-construction OCaml programs, and WhyML is also used as an intermediate language for verification of C, Java, Rust, and Ada. TryWhy3 provides a JavaScript version that runs in a browser. Installation options include Opam, Docker, source compilation, and listed Debian, Fedora, and Ubuntu packages. Its graphical interface saves proof attempts and transformations in an XML file and can replay obsolete attempts. Why3 is free and open source under GNU LGPL 2.1 with a special linking exception. Loop invariant inference is a work in progress, and many features remain very limited.