(Typed) λ-Calculi ` a la de Bruijn
Fairouz Kamareddine (Heriot-Watt University) Tuesday 17 April 2014
Beihang-17-april-2014
(Typed) -Calculi ` a la de Bruijn Fairouz Kamareddine (Heriot-Watt - - PowerPoint PPT Presentation
(Typed) -Calculi ` a la de Bruijn Fairouz Kamareddine (Heriot-Watt University) Tuesday 17 April 2014 Beihang-17-april-2014 De Bruijns typed -calculi started with his Automath In 1967, an internationally renowned mathematician called
Beihang-17-april-2014
Beihang-17-april-2014 1
Beihang-17-april-2014 2
Beihang-17-april-2014 3
Beihang-17-april-2014 4
Beihang-17-april-2014 5
Beihang-17-april-2014 6
Beihang-17-april-2014 7
k(AB) = U i k(A) U i k(B)
k(λA) = λ(U i k+1(A))
k(n) =
0(B)
Beihang-17-april-2014 8
k(A) as ϕi kA.
kB)
0 B
k(λA)
k+1 A)
k(A1 A2)
k A1) (ϕi k A2)
k n
Beihang-17-april-2014 9
Beihang-17-april-2014 10
Beihang-17-april-2014 11
⇑ ::= IN | Λσt ⇑Λσt ⇑ | λΛσt ⇑ | Λσt ⇑[Λσs ⇑]
⇑ ::= id | ↑ | ⇑ (Λσs ⇑) | Λσt ⇑ · Λσs ⇑ | Λσs ⇑ ◦ Λσs ⇑.
Beihang-17-april-2014 12
Beihang-17-april-2014 13
Beihang-17-april-2014 14
kB)
Beihang-17-april-2014 15
k A) σj B
k
k A) σj B
k(A σj−i+1 B)
k(A σj B)
k+1 A) σj (ϕi k+1−j B)
k (ϕj l A)
l (ϕi k+1−j A)
k (ϕj l A)
l
Beihang-17-april-2014 16
k
k(A){
k(U j l (A)) = U j+i−1 l
k(A){
k(A{
Beihang-17-april-2014 17
k+p(U j p(A)) = U j p(U i k+p+1−j(A)) .
k(A{
k+1(A){
k+1−j(B)}
Beihang-17-april-2014 18
Beihang-17-april-2014 19
Beihang-17-april-2014 20
Beihang-17-april-2014 21
Beihang-17-april-2014 22
Beihang-17-april-2014 23
Beihang-17-april-2014 24
Beihang-17-april-2014 25
Beihang-17-april-2014 26
βIθK P →
βe
Beihang-17-april-2014 27
Beihang-17-april-2014 28
Beihang-17-april-2014 29
Beihang-17-april-2014 30
Beihang-17-april-2014 31
Beihang-17-april-2014 32
Beihang-17-april-2014 33
Beihang-17-april-2014 34
Beihang-17-april-2014 35
kΛs
kΛsop
Beihang-17-april-2014 36
kd with j ≤ k.
kb, where b is an se-nf of the form X, or c σjd with j > k + 1, or ϕj lc
Beihang-17-april-2014 37
ka = (ϕi k)a.
k)(ϕj l) and k < l
k)(b σj) and k < j − 1
k) and j ≤ k.
Beihang-17-april-2014 38
Beihang-17-april-2014 39
Beihang-17-april-2014 40
Beihang-17-april-2014 41
Beihang-17-april-2014 42
Beihang-17-april-2014 43
Beihang-17-april-2014 44
Beihang-17-april-2014 45
Beihang-17-april-2014 46
Beihang-17-april-2014 47
Beihang-17-april-2014 48
✲ ✻ ✶
Beihang-17-april-2014 49
Beihang-17-april-2014 50
Beihang-17-april-2014 51
Beihang-17-april-2014 52
Beihang-17-april-2014 53
Beihang-17-april-2014 54
Beihang-17-april-2014 55
Beihang-17-april-2014 56
Beihang-17-april-2014 57
→
→
j=1
j=1
Beihang-17-april-2014 58
→β(M).
Beihang-17-april-2014 59
Beihang-17-april-2014 60
✲ ✻ ✶ ✲ ✻ ✶
Beihang-17-april-2014 61
Beihang-17-april-2014 62
Beihang-17-april-2014 63
Beihang-17-april-2014 64
Beihang-17-april-2014 65
Beihang-17-april-2014 66
Beihang-17-april-2014 67
⋄
⋄
1). Then B1 =♭ B2 if:
2) and B′ 1 =β B′ 2,
2) and A′ =β C′.
Beihang-17-april-2014 68
Beihang-17-april-2014 69
Beihang-17-april-2014 70
Beihang-17-april-2014 71
Beihang-17-april-2014 72
Beihang-17-april-2014 73
Beihang-17-april-2014 74
Beihang-17-april-2014 75
Beihang-17-april-2014 76
Beihang-17-april-2014 77
Beihang-17-april-2014 78
Beihang-17-april-2014 79
Beihang-17-april-2014 80
Zena M. Ariola, Matthias Felleisen, John Maraist, Martin Odersky, and Philip Wadler. The call-by-need lambda
H.P. Barendregt. The Lambda Calculus: its Syntax and Semantics. Studies in Logic and the Foundations of Mathematics 103. North-Holland, Amsterdam, revised edition, 1984. Z.E.A. Benaissa, D. Briaud, P. Lescanne, and J. Rouyer-Degli. λυ, a calculus of explicit substitutions which preserves strong normalisation. Journal of Functional Programming, 6(5):699–722, 1996. L.S. van Benthem Jutting. Checking Landau’s “Grundlagen” in the Automath system. PhD thesis, Eindhoven University of Technology, 1977. Published as Mathematical Centre Tracts nr. 83 (Amsterdam, Mathematisch Centrum, 1979). Roel Bloo, Fairouz Kamareddine, and Rob Nederpelt. The Barendregt cube with definitions and generalised
N.G. de Bruijn. The mathematical language AUTOMATH, its usage and some of its extensions. In M. Laudet,
Versailles, 1968. Springer Verlag, Berlin, 1970. Lecture Notes in Mathematics 125; also in [Nederpelt et al., 1994], pages 73–100.
Beihang-17-april-2014 81
N.G. de Bruijn. Generalising automath by means of a lambda-typed lambda calculus. 1984. Also in [Nederpelt et al., 1994], pages 313–337.
N.G. de Bruijn. Lambda calculus notation with nameless dummies, a tool for automatic formula manipulation, with application to the chuirch rosser theorem. In Indagationes Math, pages 381–392. 1972. Also in [Nederpelt et al., 1994]. Philippe de Groote. The conservation theorem revisited. In Proc. Int’l Conf. Typed Lambda Calculi and Applications, pages 163–178. Springer, 1993.
J.H. Geuvers. Logics and Type Systems. PhD thesis, Catholic University of Nijmegen, 1993. J.-Y. Girard. Interpr´ etation fonctionelle et ´ elimination des coupures dans l’arithm´ etique d’ordre sup´
Universit´ e Paris VII, 1972.
Beihang-17-april-2014 82
in Computer Science, pages 194–204, Washington D.C., 1987. IEEE.
From Frege to G¨
Harvard University Press, Cambridge, Massachusetts, 1967.
Grundz¨ uge der Theoretischen Logik. Die Grundlehren der Mathematischen Wissenschaften in Einzeldarstellungen, Band XXVII. Springer Verlag, Berlin, first edition, 1928. J.R. Hindley and J.P. Seldin. Introduction to Combinators and λ-calculus, volume 1 of London Mathematical Society Student Texts. Cambridge University Press, 1986.
ıos. A λ-calculus ` a la de bruijn with explicit substitutions. Proceedings of Programming Languages Implementation and the Logic of Programs PLILP’95, Lecture Notes in Computer Science, 982:45–62, 1995.
the Fifth International Symposium on Functional and Logic Programming, FLOPS 2001, pages 375–389, 2001a.
Beihang-17-april-2014 83
54:65–107, 2003. Fairouz Kamareddine. Typed lambda-calculi with one binder. J. Funct. Program., 15(5):771–796, 2005. Fairouz Kamareddine. Postponement, conservation and preservation of strong normalisation for generalised reduction.
Fairouz Kamareddine and Rob Nederpelt. Refining reduction in the λ-calculus. J. Funct. Programming, 5(4): 637–651, October 1995. Fairouz Kamareddine and Rob Nederpelt. A useful λ-notation. Theoret. Comput. Sci., 155(1):85–109, 1996. Fairouz Kamareddine, Alejandro R´ ıos, and J. B. Wells. Calculi of generalised β-reduction and explicit substitutions: The type free and simply typed versions. J. Funct. Logic Programming, 1998(5), June 1998. Fairouz Kamareddine, Roel Bloo, and Rob Nederpelt. On pi-conversion in the lambda-cube and the combination with abbreviations. Ann. Pure Appl. Logic, 97(1-3):27–45, 1999b. Fairouz Kamareddine, Roel Bloo, and Rob Nederpelt. De Bruijn’s syntax and reductional equivalence of lambda
1-58113-388-X.
Beihang-17-april-2014 84
λ-calculus. In Proc. 1994 ACM Conf. LISP Funct. Program., pages 196–207, 1994. ISBN 0-89791-643-3.
λ-calculi. In Proc. 10th Ann. IEEE Symp. Logic in Comput. Sci., pages 311–321, 1995. ISBN 0-8186-7050-9. URL http://www.church-project.org/reports/electronic/Kfo+Wel:LICS-1995.pdf.%gz. Assaf J. Kfoury, Jerzy Tiuryn, and Pawe l Urzyczyn. An analysis of ML typability. J. ACM, 41(2):368–398, March 1994. Twan Laan and Michael Franssen. Parameters for first order logic. Logic and Computation, 2001.
Constructive natural deduction and its modest interpretation. Technical Report CMU-CS-88-131, Carnegie Mellono University, Pittsburgh, USA, 1988. Rob Nederpelt. Strong Normalization in a Typed Lambda Calculus With Lambda Structured Types. PhD thesis, Eindhoven, 1973. R.P. Nederpelt, J.H. Geuvers, and R.C. de Vrijer, editors. Selected Papers on Automath. Studies in Logic and the Foundations of Mathematics 133. North-Holland, Amsterdam, 1994. F.P. Ramsey. The foundations of mathematics. Proceedings of the London Mathematical Society, 2nd series, 25: 338–384, 1926.
Beihang-17-april-2014 85
Laurent Regnier. Lambda calcul et r´
G.R. Renardel de Lavalette. Strictness analysis via abstract interpretation for recursively defined types. Information and Computation, 99:154–177, 1991. J.C. Reynolds. Towards a theory of type structure, volume 19 of Lecture Notes in Computer Science, pages 408–425. Springer, 1974.
A.N. Whitehead and B. Russell. Principia Mathematica, volume I, II, III. Cambridge University Press, 19101,
Beihang-17-april-2014 86