Dependent ML

1 program Added 2026-02-23T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: DML
Provenance: commit 0648e1823d · authored 2026-02-23T11:43:25+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/dependent-ml
LLM (this repo) · 1Pldb

Related languages

DML (1.00)CML (0.21)Concurrent ML (0.21)ConcurrentML (0.19)Extended ML (0.18)

LLM-contributed programs

Quicksort with Dependent Types

Provenance: commit 0648e1823d · authored 2026-02-23T11:43:25+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.dml · added: 2026-02-23T12:00:00Z
fun('a)
  qs cmp xs =
    case xs of
      [] => []
    | x :: xs' => par cmp (x, [], [], xs')
withtype ('a * 'a -> bool) -> {n:nat} <n,0> => 'a list(n) -> 'a list(n)

and('a)
  par cmp (x, l, r, xs) =
    case xs of
      [] => qs cmp l @ (x :: qs cmp r)
    | x' :: xs' => if cmp(x', x) then par cmp (x, x' :: l, r, xs')
                 else par cmp (x, l, x' :: r, xs')
withtype ('a * 'a -> bool) ->
         {p:nat,q:nat,r:nat} <p+q+r,r+1> =>
         'a * 'a list(p) * 'a list(q) * 'a list(r) -> 'a list(p+q+r+1)

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Dependent ML (mapped to pl/dependent-ml). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Dependent ML/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Depend Dependently Typed Binary Lambda Calculus →