Arrow Research search
Back to I&C

I&C 1995

Safety Analysis versus Type Inference

Journal Article journal-article Computer Science ยท Theoretical Computer Science

Abstract

Safety analysis is an algorithm for determining if a term in an untyped lambda calculus with constants is safe, i. e. , if it does not cause an error during evaluation. This ambition is also shared by algorithms for type inference. Safety analysis and type inference are based on rather different perspectives, however. Safety analysis is global in that it can only analyze a complete program. In contrast, type inference is local in that it can analyze pieces of a program in isolation. In this paper we prove that safety analysis is sound, relative to both a strict and a lazy operational semantics. We also prove that safety analysis accepts strictly more safe lambda terms than does type inference for simple types. The latter result demonstrates that global program analyses can be more precise than local ones.

Authors

Keywords

No keywords are indexed for this paper.

Context

Venue
Information and Computation
Archive span
1987-2026
Indexed papers
3021
Paper id
647545213681470401
v2026.09.13