Dependent Types
An advanced type system mechanism that allows types to depend on runtime values, enabling properties such as array bounds safety and function input constraints to be statically guaranteed at compile time. It is a foundational concept in formal verification languages such as Lean, Coq, and Idris.
Core Facts
In dependently typed languages, types can carry value information, propositions can be encoded as types, and proving a proposition equals constructing a term of that type, which is known as the Curry-Howard correspondence.
Dependent types allow types themselves to depend on values—for example, one can define a type of 'list of length n'—enabling many runtime properties to be statically guaranteed at compile time.
Timeline (last 90 days)
In dependently typed languages, types can carry value information, propositions can be encoded as types, and proving a proposition equals constructing a term of that type, which is known as the Curry-Howard correspondence.
Dependent types allow types themselves to depend on values—for example, one can define a type of 'list of length n'—enabling many runtime properties to be statically guaranteed at compile time.