# CakeML/cakeml

CakeML: A Verified Implementation of ML

Repository: https://github.com/CakeML/cakeml
Canonical: https://ross.abutalabs.com/products/cakeml
Homepage: https://cakeml.org
Language: Standard ML
License: BSD-3-Clause
License Family: permissive
Topics: programming-language, formal-verification, formal-semantics, compiler, theorem-proving, hol, sml
Last push: 2026-09-02T14:55:47+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 87, longevity 100
- inputs: {"age_days": 5076, "days_push": 0, "days_rel": 7, "gap_med": 60.5, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1190, forks 101 (observed 2026-09-03T02:15:05.225010+00:00)

## What it is
CakeML is a functional programming language based on a substantial subset of Standard ML, together with a formally verified compiler that is proved correct in the HOL4 theorem prover. The compiler bootstraps itself and generates machine code for multiple target architectures, with formal semantics, type inference, and parser all verified.

## Use cases
- compile ML programs to verified machine code
- research formally verified compilers
- study formal semantics of a Standard ML subset
- build verified programs with proven-correct tooling
- generate code for embedded targets from a verified compiler
- teach programming language semantics and verification

## When to choose
- you need a compiler with machine-checked correctness proofs
- you are doing research or teaching in formal verification of languages
- you want verified code generation for x86, ARM, RISC-V, or other supported architectures

## When to avoid
- you need a general-purpose production ML compiler with mature tooling and ecosystem
- you need fast compile times or extensive libraries
- you cannot work with HOL4 theorem proving infrastructure

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, interpreter, programming-language, parser, type-system
- domain: programming-languages, compilers, parsers
- platform: cross-platform
- tags: standard-ml, formal-verification, theorem-proving, hol4, verified-compiler, machine-code-generation, research, verification, x86, arm, linux, macos

## Member repositories
- CakeML/cakeml (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:05.225010+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:23:39.680315+00:00, confidence not recorded.
  - readme: https://github.com/CakeML/cakeml (fetched 2026-09-03T02:15:05.225010+00:00, sha 5bdec5367199)
  - homepage: https://cakeml.org (fetched 2026-08-29T12:30:34.461854+00:00, sha f1c2f9aadda1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
