Dependent types enable larger set of logic errors to be eliminated at compile time
definition depends on a value
What is dependent typing?
Dependent types enable larger set of logic errors to be eliminated at compile time. To illustrate this consider the following specification on function f: Function f must take only even integers as input.
https://stackoverflow.com/questions/9338709/what-is-dependent-typing
Dependent type - Wikipedia
In computer science and logic, a dependent type is a type whose definition depends on a value. It is an overlapping feature of type theory and type systems. In intuitionistic type theory, dependent types are used to encode logic's quantifiers like "for all" and "there exists".
https://en.wikipedia.org/wiki/Dependent_type

Seonglae Cho