CakeML
CakeML is an open research project centered on a functional programming language and an ecosystem of formal proofs and tools. Its core aim is to transfer properties proved about functions in interactive theorem provers down to concrete executable code, using a proven-correct compiler that can bootstrap itself.
At a Glance
- Researchers and students in programming languages and formal methods
- Interactive-theorem-proving and HOL4 users
- Developers of verified compilers and verified systems software
- Safety-, security-, and correctness-critical software projects
- +2 more
AI Tools by CakeML
(1)CakeML
Verified Functional Language Compiler
Discussions
No discussions yet
Be the first to start a discussion about CakeML
Latest News
CakeML v3671 released with language, compiler, basis-library, byte-array, and socket-I/O improvements
CakeML-related work published on end-to-end certified graph colouring, a one-pass CPS transform, verified VCG/compiler support for Dafny, and Brack, a verified Scheme compiler via CakeML
CakeML-related publications included the extended Candle verified HOL Light implementation, fast verified computation for HOL ITPs, certified reasoning for binarized neural networks, and practically feasible proof logging for pseudo-Boolean optimization
CakeML announced papers accepted at AAAI, ESOP, CAV, and IJCAR, covering verified subgraph solving, PureCake inlining and specialization, certified approximate model counting, and certified MaxSAT preprocessing
Products & Services
An ML-style language based on a substantial subset of Standard ML, with formal semantics, a sound and complete parser/type inferencer, a proof-producing translator, and a verified optimizing backend that generates machine code.
The multi-stage verified backend transforms an untyped AST through intermediate languages into machine code and has been verified to preserve source-program behavior.
A synthesis frontend that generates CakeML AST from ML-like functions in HOL and proves that the generated program has the same behavior as the HOL function, including support for state and I/O in later versions.
A fully verified clone/implementation of HOL Light running on CakeML, with a verified kernel primitive for fast first-order computation and related OpenTheory checking work.
Market Position
CakeML is positioned as an open, research-grade alternative to ordinary ML code extraction and conventional unverified compilers by connecting a formally specified ML language, proof-producing synthesis, a verified optimizing compiler, and machine-code correctness proofs. Its distinctive advantages are end-to-end correctness claims, self-hosting/bootstrap inside HOL, multiple architecture targets, and a broad ecosystem including Candle, Pancake, PureCake, and verified checkers.
Leadership
Founders
Magnus O. Myreen
Researcher in program verification, interactive theorem proving, and verified machine-code/ML runtimes; at the project's beginning he was at the University of Cambridge and later became a professor at Chalmers University of Technology.
Scott Owens
Programming-languages and formal-verification researcher; he was at the University of Kent when CakeML began and collaborated with Magnus Myreen on the original reaction to unverified code extraction.
Ramana Kumar
Interactive-theorem-proving and verified-compilation researcher who was at Cambridge when he joined the project; his involvement helped extend the initial proof-producing translation idea to a verified compiler backend.
Michael Norrish
Formal-methods and theorem-proving researcher who became part of the close collaboration that delivered the verified CakeML compiler and the canonical CakeML implementation paper.
Founding Story
CakeML began around 2012 as a reaction to the then-common practice of extracting SML/OCaml/Haskell code from functions proved in an interactive theorem prover without proving that the generated code preserved the functions' behavior. Magnus Myreen and Scott Owens proposed proof-producing translation tied to formal language semantics; Ramana Kumar's involvement led to the verified compiler-backend effort, and Michael Norrish joined the close collaboration. The name originally meant Cambridge and Kent ML, but is now simply the project's name.
Business Model
Revenue Model
CakeML is distributed as free software under the BSD 3-Clause license. The project is a research/community effort rather than a commercial software vendor; its site provides source, proofs, binaries, documentation, and collaboration channels without published commercial pricing.
Target Markets
- Researchers and students in programming languages and formal methods
- Interactive-theorem-proving and HOL4 users
- Developers of verified compilers and verified systems software
- Safety-, security-, and correctness-critical software projects
- Automated-reasoning and proof-checking communities
- Universities and research organizations
- End-to-end verified applications and safety- or security-critical software
- Proof-producing code synthesis from interactive theorem provers
- Verified compilers, compiler backends, and language implementations
- Machine-code-level proof checkers for SAT, MaxSAT, graph, floating-point, and other certificates
- Verified theorem proving through Candle and OpenTheory checking
- Verified systems software and device drivers through Pancake