A constructive logic behind the catch and throw mechanism (Q1337695)
From MaRDI portal
scientific article
Language | Label | Description | Also known as |
---|---|---|---|
English | A constructive logic behind the catch and throw mechanism |
scientific article |
Statements
A constructive logic behind the catch and throw mechanism (English)
0 references
8 November 1994
0 references
The paper presents a typing system which captures the catch/throw mechanism (a programming construct for non-local exit) in the proofs-as- programs notion. The typing system is regarded as a constructive logic with facilities for exception handling. The catch/throw mechanism is handled in a natural deduction style formation in which a direct correspondence between proofs and programs can be seen. A simple programming language is defined and its operational semantics is given by a set of reduction rules. The author also introduces an abstract machine which can imitate the standard implementation of the catch/throw mechanism. To give a realizability interpretation to each typing judgement, only the fixed evaluation (call-by-value) strategy is considered. Problems of treating the catch/throw mechanism in a more general context remain unsolved. The investigation of the relationship between this mechanism and proof transformations would be an interesting problem as well.
0 references
error handling
0 references
sequent calculus
0 references
typing system
0 references
catch/throw mechanism
0 references
proofs-as-programs notion
0 references
constructive logic
0 references
programming language
0 references
operational semantics
0 references
abstract machine
0 references