Environment_(type_theory)

Typing environment

Typing environment

Add article description


In type theory a typing environment (or typing context) represents the association between variable names and data types.

More formally an environment is a set or ordered list of pairs , usually written as , where is a variable and its type.

The judgement

is read as " has type in context ".[1]

For each function body type checks:

Typing Rules Example:

In statically typed programming languages these environments are used and maintained by typing rules to type check a given program or expression.[1]

See also


References

  1. "Simply Typed λ-calculus" (PDF).

Share this article:

This article uses material from the Wikipedia article Environment_(type_theory), and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.