Mathematical logic and foundations Definition
Dependent type
Builds on Type theorySimply typed lambda calculus
Definition
Work in a type theory with judgments and . Here the context is a list of typed variables, in which each type may mention the earlier variables. A dependent type, or type family, over a type is a type with , in which the variable may occur. For each term with it gives a type , obtained by substituting for . Such a family gives two type formers.
- The dependent function type has terms with ; applying to gives .
- The dependent pair type has terms with and .
Remarks
Example: let be the type of lists of natural numbers of length , for . It is a type family over , since for each it gives a type. The function that builds a list of zeros has type : applied to it gives , whose type depends on the argument. The type is the type of lists of any length, each paired with its length.
Non-example: in the simply typed lambda calculus a type cannot mention a term, so cannot be formed there.
If does not depend on , then is the function type and is the product type . Under Curry–Howard, a term of is a proof of "for all in , ". A term of is a proof of "there is in with " that names a witness.
Reading path
To understand this page from the ground up, read these 24 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Element definition
- Intuitionistic logic concept
- Lambda calculus concept
- Proposition concept
- Set concept
- Set definition
- Conjunction definition
- Disjunction definition
- Implication definition
- Negation definition
- Biconditional definition
- Truth table concept
- Modus ponens concept
- Mathematical proof concept
- Propositional logic concept
- Tautology definition
- Logical equivalence definition
- Double negation law statement
- Proof by contradiction concept
- Russell's paradox statement
- Type theory concept
- Curry–Howard correspondence concept
- Simply typed lambda calculus concept
- Dependent type definition
Further reading
About this page
| Tag | MJEFQRRCS3 |
|---|---|
| URI | m2://MJEFQRRCS3 |
| Kind | definition |
| Writing | W0 stub |
| MSC | 03B38, 68N15, 03F55 |
| Defines | Dependent type |
| Uses | Type theory, Simply typed lambda calculus |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.