Simply typed lambda calculus
The simply typed lambda calculus ([math]\displaystyle{ \lambda^\to }[/math]), a form of type theory, is a typed interpretation of the lambda calculus with only one type constructor ([math]\displaystyle{ \to }[/math]) that builds function types. It is the canonical and simplest example of a typed lambda calculus. The simply typed lambda calculus was originally introduced by Alonzo Church in 1940 as an attempt to avoid paradoxical use of the untyped lambda calculus.[1]
The term simple type is also used to refer to extensions of the simply typed lambda calculus with constructs such as products, coproducts or natural numbers (System T) or even full recursion (like PCF). In contrast, systems that introduce polymorphic types (like System F) or dependent types (like the Logical Framework) are not considered simply typed. The simple types, except for full recursion, are still considered simple because the Church encodings of such structures can be done using only [math]\displaystyle{ \to }[/math] and suitable type variables, while polymorphism and dependency cannot.
Syntax
In this article, the symbols [math]\displaystyle{ \sigma }[/math] and [math]\displaystyle{ \tau }[/math] are used to range over types. Informally, the function type [math]\displaystyle{ \sigma \to \tau }[/math] refers to the type of functions that, given an input of type [math]\displaystyle{ \sigma }[/math], produce an output of type [math]\displaystyle{ \tau }[/math]. By convention, [math]\displaystyle{ \to }[/math] associates to the right: [math]\displaystyle{ \sigma\to\tau\to\rho }[/math] is read as [math]\displaystyle{ \sigma\to(\tau\to\rho) }[/math].
To define the types, a set of base types, [math]\displaystyle{ B }[/math], must first be defined. These are sometimes called atomic types or type constants. With this fixed, the syntax of types is:
- [math]\displaystyle{ \tau ::= \tau \to \tau \mid T \quad \mathrm{where} \quad T \in B }[/math].
For example, [math]\displaystyle{ B = \{a, b\} }[/math], generates an infinite set of types starting with [math]\displaystyle{ a }[/math], [math]\displaystyle{ b }[/math], [math]\displaystyle{ a \to a }[/math], [math]\displaystyle{ a \to b }[/math], [math]\displaystyle{ b \to b }[/math], [math]\displaystyle{ b \to a }[/math], [math]\displaystyle{ a \to (a \to a) }[/math], ..., [math]\displaystyle{ (b \to a) \to (a \to b) }[/math], ...
A set of term constants is also fixed for the base types. For example, it might be assumed that one of the base types is nat, and its term constants could be the natural numbers. In the original presentation, Church used only two base types: [math]\displaystyle{ o }[/math] for "the type of propositions" and [math]\displaystyle{ \iota }[/math] for "the type of individuals". The type [math]\displaystyle{ o }[/math] has no term constants, whereas [math]\displaystyle{ \iota }[/math] has one term constant. Frequently the calculus with only one base type, usually [math]\displaystyle{ o }[/math], is considered.
The syntax of the simply typed lambda calculus is essentially that of the lambda calculus itself. The term [math]\displaystyle{ x\mathbin{:}\tau }[/math] denotes that the variable [math]\displaystyle{ x }[/math] is of type [math]\displaystyle{ \tau }[/math]. The term syntax, in Backus–Naur form, is then:
- [math]\displaystyle{ e ::= x \mid \lambda x\mathbin{:}\tau.e \mid e \, e \mid c }[/math]
where [math]\displaystyle{ c }[/math] is a term constant.
That is, variable reference, abstractions, application, and constant. A variable reference [math]\displaystyle{ x }[/math] is bound if it is inside of an abstraction binding [math]\displaystyle{ x }[/math]. A term is closed if there are no unbound variables.
In comparison, the syntax of untyped lambda calculus has no such typing or term constants:
- [math]\displaystyle{ e ::= x \mid \lambda x.e \mid e \, e }[/math]
Whereas in typed lambda calculus every abstraction (i.e. function) must specify the type of its argument.
Typing rules
To define the set of well-typed lambda terms of a given type, one defines a typing relation between terms and types. First, one introduces typing contexts or typing environments [math]\displaystyle{ \Gamma,\Delta,\dots }[/math], which are sets of typing assumptions. A typing assumption has the form [math]\displaystyle{ x\mathbin{:}\sigma }[/math], meaning variable [math]\displaystyle{ x }[/math] has type [math]\displaystyle{ \sigma }[/math].
The typing relation [math]\displaystyle{ \Gamma\vdash e\mathbin{:}\sigma }[/math] indicates that [math]\displaystyle{ e }[/math] is a term of type [math]\displaystyle{ \sigma }[/math] in context [math]\displaystyle{ \Gamma }[/math]. In this case [math]\displaystyle{ e }[/math] is said to be well-typed (having type [math]\displaystyle{ \sigma }[/math]). Instances of the typing relation are called typing judgements. The validity of a typing judgement is shown by providing a typing derivation, constructed using typing rules (wherein the premises above the line allow us to derive the conclusion below the line). Simply typed lambda calculus uses these rules:
[math]\displaystyle{ {\frac{x\mathbin{:}\sigma \in \Gamma}{\Gamma \vdash x\mathbin{:}\sigma} } }[/math] (1) | [math]\displaystyle{ {\frac{c \text{ is a constant of type } T}{\Gamma\vdash c\mathbin{:}T}} }[/math] (2) |
[math]\displaystyle{ {\frac{\Gamma,x\mathbin{:}\sigma\vdash e\mathbin{:}\tau}{\Gamma\vdash (\lambda x\mathbin{:}\sigma.~e)\mathbin{:}(\sigma \to \tau)}} }[/math] (3) | [math]\displaystyle{ {\frac{\Gamma\vdash e_1\mathbin{:}\sigma\to\tau\quad\Gamma\vdash e_2\mathbin{:}\sigma}{\Gamma\vdash e_1~e_2\mathbin{:}\tau}} }[/math] (4) |
In words,
- If [math]\displaystyle{ x }[/math] has type [math]\displaystyle{ \sigma }[/math] in the context, then [math]\displaystyle{ x }[/math] has type [math]\displaystyle{ \sigma }[/math].
- Term constants have the appropriate base types.
- If, in a certain context with [math]\displaystyle{ x }[/math] having type [math]\displaystyle{ \sigma }[/math], [math]\displaystyle{ e }[/math] has type [math]\displaystyle{ \tau }[/math], then, in the same context without [math]\displaystyle{ x }[/math], [math]\displaystyle{ \lambda x\mathbin{:}\sigma.~e }[/math] has type [math]\displaystyle{ \sigma \to \tau }[/math].
- If, in a certain context, [math]\displaystyle{ e_1 }[/math] has type [math]\displaystyle{ \sigma \to \tau }[/math], and [math]\displaystyle{ e_2 }[/math] has type [math]\displaystyle{ \sigma }[/math], then [math]\displaystyle{ e_1~e_2 }[/math] has type [math]\displaystyle{ \tau }[/math].
Examples of closed terms, i.e. terms typable in the empty context, are:
- For every type [math]\displaystyle{ \tau }[/math], a term [math]\displaystyle{ \lambda x\mathbin{:}\tau.x\mathbin{:}\tau\to\tau }[/math] (identity function/I-combinator),
- For types [math]\displaystyle{ \sigma,\tau }[/math], a term [math]\displaystyle{ \lambda x\mathbin{:}\sigma.\lambda y\mathbin{:}\tau.x\mathbin{:}\sigma \to \tau \to \sigma }[/math] (the K-combinator), and
- For types [math]\displaystyle{ \tau,\tau',\tau'' }[/math], a term [math]\displaystyle{ \lambda x\mathbin{:}\tau\to\tau'\to\tau''.\lambda y\mathbin{:}\tau\to\tau'.\lambda z\mathbin{:}\tau.x z (y z) : (\tau\to\tau'\to\tau'')\to(\tau\to\tau')\to\tau\to\tau'' }[/math] (the S-combinator).
These are the typed lambda calculus representations of the basic combinators of combinatory logic.
Each type [math]\displaystyle{ \tau }[/math] is assigned an order, a number [math]\displaystyle{ o(\tau) }[/math]. For base types, [math]\displaystyle{ o(T)=0 }[/math]; for function types, [math]\displaystyle{ o(\sigma\to\tau)=\mbox{max}(o(\sigma)+1,o(\tau)) }[/math]. That is, the order of a type measures the depth of the most left-nested arrow. Hence:
- [math]\displaystyle{ o(\iota \to \iota \to \iota) = 1 }[/math]
- [math]\displaystyle{ o((\iota \to \iota) \to \iota) = 2 }[/math]
Semantics
Intrinsic vs. extrinsic interpretations
Broadly speaking, there are two different ways of assigning meaning to the simply typed lambda calculus, as to typed languages more generally, variously called intrinsic vs. extrinsic, ontological vs. semantical, or Church-style vs. Curry-style.[1][2][3] An intrinsic semantics only assigns meaning to well-typed terms, or more precisely, assigns meaning directly to typing derivations. This has the effect that terms differing only by type annotations can nonetheless be assigned different meanings. For example, the identity term [math]\displaystyle{ \lambda x\mathbin{:}\mathtt{int}.~x }[/math] on integers and the identity term [math]\displaystyle{ \lambda x\mathbin{:}\mathtt{bool}.~x }[/math] on booleans may mean different things. (The classic intended interpretations are the identity function on integers and the identity function on boolean values.) In contrast, an extrinsic semantics assigns meaning to terms regardless of typing, as they would be interpreted in an untyped language. In this view, [math]\displaystyle{ \lambda x\mathbin{:}\mathtt{int}.~x }[/math] and [math]\displaystyle{ \lambda x\mathbin{:}\mathtt{bool}.~x }[/math] mean the same thing (i.e., the same thing as [math]\displaystyle{ \lambda x.~x }[/math]).
The distinction between intrinsic and extrinsic semantics is sometimes associated with the presence or absence of annotations on lambda abstractions, but strictly speaking this usage is imprecise. It is possible to define an extrinsic semantics on annotated terms simply by ignoring the types (i.e., through type erasure), as it is possible to give an intrinsic semantics on unannotated terms when the types can be deduced from context (i.e., through type inference). The essential difference between intrinsic and extrinsic approaches is just whether the typing rules are viewed as defining the language, or as a formalism for verifying properties of a more primitive underlying language. Most of the different semantic interpretations discussed below can be seen through either an intrinsic or extrinsic perspective.
Equational theory
The simply typed lambda calculus has the same equational theory of βη-equivalence as untyped lambda calculus, but subject to type restrictions. The equation for beta reduction
- [math]\displaystyle{ (\lambda x\mathbin{:}\sigma.~t)\,u =_{\beta} t[x:=u] }[/math]
holds in context [math]\displaystyle{ \Gamma }[/math] whenever [math]\displaystyle{ \Gamma,x\mathbin{:}\sigma \vdash t\mathbin{:}\tau }[/math] and [math]\displaystyle{ \Gamma\vdash u\mathbin{:}\sigma }[/math], while the equation for eta reduction
- [math]\displaystyle{ \lambda x\mathbin{:}\sigma.~t\,x =_\eta t }[/math]
holds whenever [math]\displaystyle{ \Gamma\vdash t\!:\sigma \to \tau }[/math] and [math]\displaystyle{ x }[/math] does not appear free in [math]\displaystyle{ t }[/math].
Operational semantics
Likewise, the operational semantics of simply typed lambda calculus can be fixed as for the untyped lambda calculus, using call by name, call by value, or other evaluation strategies. As for any typed language, type safety is a fundamental property of all of these evaluation strategies. Additionally, the strong normalization property described below implies that any evaluation strategy will terminate on all simply typed terms.
Categorical semantics
The simply typed lambda calculus enriched with product types, pairing and projection operators (with [math]\displaystyle{ \beta\eta }[/math]-equivalence) is the internal language of Cartesian closed categories (CCCs), as was first observed by Joachim Lambek.[4] Given any CCC, the basic types of the corresponding lambda calculus are the objects, and the terms are the morphisms. Conversely, the simply typed lambda calculus with product types and pairing operators over a collection of base types and given terms forms a CCC whose objects are the types, and morphisms are equivalence classes of terms.
There are typing rules for pairing, projection, and a unit term. Given two terms [math]\displaystyle{ s\mathbin{:}\sigma }[/math] and [math]\displaystyle{ t\mathbin{:}\tau }[/math], the term [math]\displaystyle{ (s,t) }[/math] has type [math]\displaystyle{ \sigma\times\tau }[/math]. Likewise, if one has a term [math]\displaystyle{ u\mathbin{:}\tau_1\times\tau_2 }[/math], then there are terms [math]\displaystyle{ \pi_1(u)\mathbin{:}\tau_1 }[/math] and [math]\displaystyle{ \pi_2(u)\mathbin{:}\tau_2 }[/math] where the [math]\displaystyle{ \pi_i }[/math] correspond to the projections of the Cartesian product. The unit term, of type 1, written as [math]\displaystyle{ () }[/math] and vocalized as 'nil', is the final object. The equational theory is extended likewise, so that one has
- [math]\displaystyle{ \pi_1(s\mathbin{:}\sigma,t\mathbin{:}\tau) = s\mathbin{:}\sigma }[/math]
- [math]\displaystyle{ \pi_2(s\mathbin{:}\sigma,t\mathbin{:}\tau) = t\mathbin{:}\tau }[/math]
- [math]\displaystyle{ (\pi_1(u\mathbin{:}\sigma\times\tau) , \pi_2(u\mathbin{:}\sigma\times\tau)) =u\mathbin{:}\sigma\times\tau }[/math]
- [math]\displaystyle{ t\mathbin{:}1 = () }[/math]
This last is read as "if t has type 1, then it reduces to nil".
The above can then be turned into a category by taking the types as the objects. The morphisms [math]\displaystyle{ \sigma\to\tau }[/math] are equivalence classes of pairs [math]\displaystyle{ (x\mathbin{:}\sigma, t\mathbin{:}\tau) }[/math] where x is a variable (of type [math]\displaystyle{ \sigma }[/math]) and t is a term (of type [math]\displaystyle{ \tau }[/math]), having no free variables in it, except for (optionally) x. The set of terms in the language is the closure of this set of terms under the operations of abstraction and application.
This correspondence can be extended to include "language homomorphisms" and functors between the category of Cartesian closed categories, and the category of simply typed lambda theories.
Part of this correspondence can be extended to closed symmetric monoidal categories by using a linear type system.
Proof-theoretic semantics
The simply typed lambda calculus is closely related to the implicational fragment of propositional intuitionistic logic, i.e., the implicational propositional calculus, via the Curry–Howard isomorphism: terms correspond precisely to proofs in natural deduction, and inhabited types are exactly the tautologies of this logic.
Alternative syntaxes
The presentation given above is not the only way of defining the syntax of the simply typed lambda calculus. One alternative is to remove type annotations entirely (so that the syntax is identical to the untyped lambda calculus), while ensuring that terms are well-typed via Hindley–Milner type inference. The inference algorithm is terminating, sound, and complete: whenever a term is typable, the algorithm computes its type. More precisely, it computes the term's principal type, since often an unannotated term (such as [math]\displaystyle{ \lambda x.~x }[/math]) may have more than one type ([math]\displaystyle{ \mathtt{int} \to \mathtt{int} }[/math], [math]\displaystyle{ \mathtt{bool} \to \mathtt{bool} }[/math], etc., which are all instances of the principal type [math]\displaystyle{ \alpha \to \alpha }[/math]).
Another alternative presentation of simply typed lambda calculus is based on bidirectional type checking, which requires more type annotations than Hindley–Milner inference but is easier to describe. The type system is divided into two judgments, representing both checking and synthesis, written [math]\displaystyle{ \Gamma \vdash e \Leftarrow \tau }[/math] and [math]\displaystyle{ \Gamma \vdash e \Rightarrow \tau }[/math] respectively. Operationally, the three components [math]\displaystyle{ \Gamma }[/math], [math]\displaystyle{ e }[/math], and [math]\displaystyle{ \tau }[/math] are all inputs to the checking judgment [math]\displaystyle{ \Gamma \vdash e \Leftarrow \tau }[/math], whereas the synthesis judgment [math]\displaystyle{ \Gamma \vdash e \Rightarrow \tau }[/math] only takes [math]\displaystyle{ \Gamma }[/math] and [math]\displaystyle{ e }[/math] as inputs, producing the type [math]\displaystyle{ \tau }[/math] as output. These judgments are derived via the following rules:
[math]\displaystyle{ {\frac{x\mathbin{:}\sigma \in \Gamma}{\Gamma \vdash x \Rightarrow \sigma} } }[/math] [1] | [math]\displaystyle{ {\frac{c \text{ is a constant of type } T}{\Gamma\vdash c \Rightarrow T}} }[/math] [2] |
[math]\displaystyle{ {\frac{\Gamma,x\mathbin{:}\sigma\vdash e\Leftarrow \tau}{\Gamma\vdash \lambda x.~e \Leftarrow \sigma \to \tau}} }[/math] [3] | [math]\displaystyle{ {\frac{\Gamma\vdash e_1\Rightarrow \sigma\to\tau\quad\Gamma\vdash e_2\Leftarrow\sigma}{\Gamma\vdash e_1~e_2 \Rightarrow \tau}} }[/math] [4] |
[math]\displaystyle{ {\frac{\Gamma\vdash e \Rightarrow \tau}{\Gamma\vdash e\Leftarrow \tau}} }[/math] [5] | [math]\displaystyle{ {\frac{\Gamma\vdash e \Leftarrow \tau}{\Gamma\vdash (e\mathbin{:}\tau)\Rightarrow \tau}} }[/math] [6] |
Observe that rules [1]–[4] are nearly identical to rules (1)–(4) above, except for the careful choice of checking or synthesis judgments. These choices can be explained like so:
- If [math]\displaystyle{ x\mathbin{:}\sigma }[/math] is in the context, we can synthesize type [math]\displaystyle{ \sigma }[/math] for [math]\displaystyle{ x }[/math].
- The types of term constants are fixed and can be synthesized.
- To check that [math]\displaystyle{ \lambda x.~e }[/math] has type [math]\displaystyle{ \sigma \to \tau }[/math] in some context, we extend the context with [math]\displaystyle{ x\mathbin{:}\sigma }[/math] and check that [math]\displaystyle{ e }[/math] has type [math]\displaystyle{ \tau }[/math].
- If [math]\displaystyle{ e_1 }[/math] synthesizes type [math]\displaystyle{ \sigma \to \tau }[/math] (in some context), and [math]\displaystyle{ e_2 }[/math] checks against type [math]\displaystyle{ \sigma }[/math] (in the same context), then [math]\displaystyle{ e_1~e_2 }[/math] synthesizes type [math]\displaystyle{ \tau }[/math].
Observe that the rules for synthesis are read top-to-bottom, whereas the rules for checking are read bottom-to-top. Note in particular that we do not need any annotation on the lambda abstraction in rule [3], because the type of the bound variable can be deduced from the type at which we check the function. Finally, we explain rules [5] and [6] as follows:
- To check that [math]\displaystyle{ e }[/math] has type [math]\displaystyle{ \tau }[/math], it suffices to synthesize type [math]\displaystyle{ \tau }[/math].
- If [math]\displaystyle{ e }[/math] checks against type [math]\displaystyle{ \tau }[/math], then the explicitly annotated term [math]\displaystyle{ (e\mathbin{:}\tau) }[/math] synthesizes [math]\displaystyle{ \tau }[/math].
Because of these last two rules coercing between synthesis and checking, it is easy to see that any well-typed but unannotated term can be checked in the bidirectional system, so long as we insert "enough" type annotations. And in fact, annotations are needed only at β-redexes.
General observations
Given the standard semantics, the simply typed lambda calculus is strongly normalizing: every sequence of reductions eventually terminates. This is because recursion is not allowed by the typing rules: it is impossible to find types for fixed-point combinators and the looping term [math]\displaystyle{ \Omega = (\lambda x.~x~x) (\lambda x.~x~x) }[/math]. Recursion can be added to the language by either having a special operator [math]\displaystyle{ \mathtt{fix}_\alpha }[/math]of type [math]\displaystyle{ (\alpha \to \alpha) \to \alpha }[/math] or adding general recursive types, though both eliminate strong normalization.
Unlike the untyped lambda calculus, the simply typed lambda calculus is not Turing complete. All programs in the simply typed lambda calculus halt. For the untyped lambda calculus, there are programs that do not halt, and moreover there is no general decision procedure that can determine whether a program halts.
Important results
- Tait showed in 1967 that [math]\displaystyle{ \beta }[/math]-reduction is strongly normalizing.[5] As a corollary [math]\displaystyle{ \beta\eta }[/math]-equivalence is decidable. Statman showed in 1979 that the normalisation problem is not elementary recursive,[6] a proof that was later simplified by Mairson.[7] The problem is known to be in the set [math]\displaystyle{ \mathcal{E}^4 }[/math] of the Grzegorczyk hierarchy.[8] A purely semantic normalisation proof (see normalisation by evaluation) was given by Berger and Schwichtenberg in 1991.[9]
- The unification problem for [math]\displaystyle{ \beta\eta }[/math]-equivalence is undecidable. Huet showed in 1973 that 3rd order unification is undecidable[10] and this was improved upon by Baxter in 1978[11] then by Goldfarb in 1981[12] by showing that 2nd order unification is already undecidable. A proof that higher order matching (unification where only one term contains existential variables) is decidable was announced by Colin Stirling in 2006, and a full proof was published in 2009.[13]
- We can encode natural numbers by terms of the type [math]\displaystyle{ (o\to o)\to(o \to o) }[/math] (Church numerals). Schwichtenberg showed in 1975 that in [math]\displaystyle{ \lambda^\to }[/math] exactly the extended polynomials are representable as functions over Church numerals;[14] these are roughly the polynomials closed up under a conditional operator.
- A full model of [math]\displaystyle{ \lambda^\to }[/math] is given by interpreting base types as sets and function types by the set-theoretic function space. Friedman showed in 1975 that this interpretation is complete for [math]\displaystyle{ \beta\eta }[/math]-equivalence, if the base types are interpreted by infinite sets.[15] Statman showed in 1983 that [math]\displaystyle{ \beta\eta }[/math]-equivalence is the maximal equivalence that is typically ambiguous, i.e. closed under type substitutions (Statman's Typical Ambiguity Theorem).[16] A corollary of this is that the finite model property holds, i.e. finite sets are sufficient to distinguish terms that are not identified by [math]\displaystyle{ \beta\eta }[/math]-equivalence.
- Plotkin introduced logical relations in 1973 to characterize the elements of a model that are definable by lambda terms.[17] In 1993 Jung and Tiuryn showed that a general form of logical relation (Kripke logical relations with varying arity) exactly characterizes lambda definability.[18] Plotkin and Statman conjectured that it is decidable whether a given element of a model generated from finite sets is definable by a lambda term (Plotkin–Statman conjecture). The conjecture was shown to be false by Loader in 2001.[19]
Notes
- ↑ 1.0 1.1 Church, Alonzo (June 1940). "A formulation of the simple theory of types". Journal of Symbolic Logic 5 (2): 56–68. doi:10.2307/2266170. https://pdfs.semanticscholar.org/28bf/123690205ae5bbd9f8c84b1330025e8476e4.pdf.
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedCurry
- ↑ Reynolds, John (1998). Theories of Programming Languages. Cambridge, England: Cambridge University Press. pp. 327, 334. ISBN 9780521594141. https://archive.org/details/theoriesofprogra0000reyn.
- ↑ Lambek, J. (1986). "Cartesian closed categories and typed λ-calculi" (in en). Combinators and Functional Programming Languages. Lecture Notes in Computer Science. 242. Springer. pp. 136–175. doi:10.1007/3-540-17184-3_44. ISBN 978-3-540-47253-7. https://link.springer.com/chapter/10.1007/3-540-17184-3_44.
- ↑ Tait, W. W. (August 1967). "Intensional interpretations of functionals of finite type I" (in en). The Journal of Symbolic Logic 32 (2): 198–212. doi:10.2307/2271658. ISSN 0022-4812. https://doi.org/10.2307/2271658.
- ↑ Statman, Richard (1 July 1979). "The typed λ-calculus is not elementary recursive" (in en). Theoretical Computer Science 9 (1): 73–81. doi:10.1016/0304-3975(79)90007-0. ISSN 0304-3975.
- ↑ Mairson, Harry G. (14 September 1992). "A simple proof of a theorem of Statman" (in en). Theoretical Computer Science 103 (2): 387–394. doi:10.1016/0304-3975(92)90020-G. ISSN 0304-3975.
- ↑ Statman, Richard (July 1979). "The typed λ-calculus is not elementary recursive" (in en). Theoretical Computer Science 9 (1): 73–81. doi:10.1016/0304-3975(79)90007-0. ISSN 0304-3975.
- ↑ Berger, U.; Schwichtenberg, H. (July 1991). "An inverse of the evaluation functional for typed lambda -calculus". [1991] Proceedings Sixth Annual IEEE Symposium on Logic in Computer Science. pp. 203–211. doi:10.1109/LICS.1991.151645. ISBN 0-8186-2230-X. https://doi.org/10.1109/LICS.1991.151645.
- ↑ Huet, Gérard P. (1 April 1973). "The undecidability of unification in third order logic" (in en). Information and Control 22 (3): 257–267. doi:10.1016/S0019-9958(73)90301-X. ISSN 0019-9958.
- ↑ Baxter, Lewis D. (1 August 1978). "The undecidability of the third order dyadic unification problem" (in en). Information and Control 38 (2): 170–178. doi:10.1016/S0019-9958(78)90172-9. ISSN 0019-9958.
- ↑ Goldfarb, Warren D. (1 January 1981). "The undecidability of the second-order unification problem" (in en). Theoretical Computer Science 13 (2): 225–230. doi:10.1016/0304-3975(81)90040-2. ISSN 0304-3975.
- ↑ Stirling, Colin (22 July 2009). "Decidability of higher-order matching". Logical Methods in Computer Science 5 (3): 1–52. doi:10.2168/LMCS-5(3:2)2009.
- ↑ Schwichtenberg, Helmut (1 September 1975). "Definierbare Funktionen imλ-Kalkül mit Typen" (in de). Archiv für mathematische Logik und Grundlagenforschung 17 (3): 113–114. doi:10.1007/BF02276799. ISSN 1432-0665. https://doi.org/10.1007/BF02276799.
- ↑ Friedman, Harvey (1975). "Equality between functionals" (in en). Logic Colloquium. Lecture Notes in Mathematics. 453. Springer. pp. 22–37. doi:10.1007/BFb0064870. ISBN 978-3-540-07155-6. https://doi.org/10.1007/BFb0064870.
- ↑ Statman, R. (1 December 1983). "[math]\displaystyle{ \lambda }[/math]-definable functionals and [math]\displaystyle{ \beta\eta }[/math] conversion" (in en). Archiv für mathematische Logik und Grundlagenforschung 23 (1): 21–26. doi:10.1007/BF02023009. ISSN 1432-0665. https://doi.org/10.1007/BF02023009.
- ↑ Template:Cite tech report
- ↑ Jung, Achim; Tiuryn, Jerzy (1993). "A new characterization of lambda definability" (in en). Typed Lambda Calculi and Applications. Lecture Notes in Computer Science. 664. Springer. pp. 245–257. doi:10.1007/BFb0037110. ISBN 3-540-56517-5. https://doi.org/10.1007/BFb0037110.
- ↑ Loader, Ralph (2001). "The Undecidability of λ-Definability" (in en). Logic, Meaning and Computation. Springer Netherlands. pp. 331–342. doi:10.1007/978-94-010-0526-5_15. ISBN 978-94-010-3891-1. https://doi.org/10.1007/978-94-010-0526-5_15.
References
- H. Barendregt, Lambda Calculi with Types, Handbook of Logic in Computer Science, Volume II, Oxford University Press, 1993. ISBN:0-19-853761-1.
External links
- Loader, Ralph (February 1998). "Notes on Simply Typed Lambda Calculus". http://www.lfcs.inf.ed.ac.uk/reports/98/ECS-LFCS-98-381/.
- Church's Type Theory entry in the Stanford Encyclopedia of Philosophy
Original source: https://en.wikipedia.org/wiki/Simply typed lambda calculus.
Read more |