| Type Theory |
Article Index for Type |
Website Links For Type Theory |
Information AboutType Theory |
| CATEGORIES ABOUT TYPE THEORY | |
| systems of formal logic | |
| type theorysystems of formal logic | |
| type theory | |
| logic in computer science | |
| data types | |
| formal methods | |
| categories by type | |
| theory | |
|
In Programming Language Theory , a branch of Computer Science , type theory provides the formal basis for the design, analysis and study of Type System s. Indeed, many computer scientists use the term ''type theory'' to refer to the formal study of type systems for Programming Languages , although some limit it to the study of more abstract formalisms such as Typed λ-calculi . At the broadest level, type theory is the branch of Mathematics and Logic that concerns itself with classifying entities into collections called ''types''. In this sense, it is related to the Metaphysical Notion Of 'type' . Modern type theory was invented partly in response to Russell's Paradox , and features prominently in Russell and Whitehead 's Principia Mathematica . HISTORY OF TYPE THEORY PRACTICAL IMPACT OF TYPE THEORY CONNECTIONS TO CONSTRUCTIVE LOGIC See Also: Curry-Howard RELATION TO OTHER TOPICS TYPE SYSTEM See Also: Type system Definitions of ''type system'' vary, but the following one due to Benjamin C. Pierce roughly corresponds to the current consensus in the programming language theory community: : type system is a tractable syntactic method for proving the absence of certain program behaviors by classifying phrases according to the kinds of values they compute. (Pierce, 2002) In other words, a type system divides program Value s into sets called types (this is called a "type assignment"), and makes certain program behaviors illegal on the basis of the types that are thus assigned. For example, a type system may classify the value "hello" as a String and the value 5 as a Number , and prohibit the programmer from adding "hello" to 5 based on that type assignment. In this type system, the program "hello" + 5 would be illegal. Hence, any program permitted by the type system would be provably free from the erroneous behavior of adding strings and numbers. The design and implementation of type systems is a topic nearly as broad as the topic of programming languages itself. In fact, type theory proponents commonly proclaim that the design of type systems is the very essence of programming language design: "Design the type system correctly, and the language will design itself." SEE ALSO
FURTHER READING
EXTERNAL LINKS
> |
|
|