country directory
US states Yellow Pages Explore Categories/Topics  
 
Home | Discussion Forum | Chat | World News | Blogs | Feedback
NEWS UPDATES  

In computer science and logic, a dependent type is a type which depends on a value. Dependent types play a central role in intuitionistic type theory and in the design of experimental functional programming languages like Dependent ML and Epigram.

An example is the type of n-tuples of real numbers, which we may denote as \mbox{Vec}({\mathbb R},n). This is a dependent type because the type depends on the value n:{\mathbb N}.

Contents

Systems of the lambda cube

First order dependent type theory

The system \lambda \mbox{P} of pure first order dependent types, corresponding to the logical framework LF, is obtained by generalising the function space type of the simply typed lambda calculus to the dependent product type.

Writing \mbox{Vec}({\mathbb R},n) for n-tuples of real numbers, as above, \Pi n:{\mathbb N}.\mbox{Vec}({\mathbb R},n) stands for the type of functions which given a natural number n returns a tuple of real numbers of size n. The usual function space arises as a special case when the range type does not actually depend on the input, e.g. \Pi n:{\mathbb N}.{\mathbb R} is the type of functions from natural numbers to the real numbers, written as {\mathbb N}\to{\mathbb R} in the simply typed lambda calculus.

Second order dependent type theory

The system \lambda \mbox{P2} of second order dependent types is obtained from \lambda \mbox{P} by allowing quantification over type constructors. In this theory the dependent product operator subsumes both the \to operator of simply typed lambda calculus and the \forall binder of System F.

Higher order dependently typed polymorphic lambda calculus

The higher order system \lambda \mbox{P}\omega extends \lambda \mbox{P2} to all four forms of abstraction from the lambda cube: functions from terms to terms, types to types, terms to types and types to terms. The system corresponds to the Calculus of constructions.

Languages with dependent types

See also

External links

This article is licensed under the GNU Free Documentation License. It uses material from Wikipedia

This article is licensed under the GNU Free Documentation License. It uses material from Wikipedia

About Us   |   Advertise Here   |   Post Classifieds   |   Suggest a Site   |   List Your Service     Create Your Website   |   Contact Us
Copyright © 2004-2007 countryiworld.com. All rights reserved. Terms of Service | Privacy Policy | Disclaimer
Designed by AWebsite4All.com. Hosted & Promoted by WorldViewer.com Inc.