Subject reduction

From Wikipedia, the free encyclopedia

In type theory, a type system has the property of subject reduction (also subject evaluation, type preservation or simply preservation) if evaluation of expressions does not cause their type to change. Formally, if Γe1 : τ and e1 e2 then Γe2 : τ.

Together with progress, it is an important meta-theoretical property for establishing type soundness of a type system.

The opposite property, if Γe2 : τ and e1 e2 then Γe1 : τ, is called subject expansion. It often does not hold as evaluation can erase ill-typed sub-terms of an expression, resulting in a well-typed one.

References

This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.