×

Non-idempotent types for classical calculi in natural deduction style. (English) Zbl 1528.03127

Summary: In the first part of this paper, we define two resource aware typing systems for the \(\lambda\mu\)-calculus based on non-idempotent intersection and union types. The non-idempotent approach provides very simple combinatorial arguments – based on decreasing measures of type derivations – to characterize head and strongly normalizing terms. Moreover, typability provides upper bounds for the lengths of the head reduction and the maximal reduction sequences to normal-form.
In the second part of this paper, the \(\lambda\mu\)-calculus is refined to a small-step calculus called \(\lambda\mu\)s, which is inspired by the substitution at a distance paradigm. The \(\lambda\mu\)s-calculus turns out to be compatible with a natural extension of the non-idempotent interpretations of \(\lambda\mu\), i.e., \(\lambda\mu\)s-reduction preserves and decreases typing derivations in an extended appropriate typing system. We thus derive a simple arithmetical characterization of strongly \(\lambda\mu\)s-normalizing terms by means of typing.

MSC:

03B40 Combinatory logic and lambda calculus

References:

[1] B. Accattoli, E. Bonelli, D. Kesner, and C. Lombardi. A nonstandard standardization theorem. In P. Sewell, editor,Proceedings of the 41st Annual ACM Symposium on Principles of Programming Languages (POPL), pages 659-670. ACM Press, 2014. · Zbl 1284.68121
[2] B. Accattoli and D. Kesner. The structural lambda-calculus. In A. Dawar and H. Veith, editors, Proceedings of 24th EACSL Conference on Computer Science Logic, volume 6247 ofLecture Notes in · Zbl 1287.03034
[3] S. Amini and T. Ehrhard. On Classical PCF, Linear Logic and the MIX Rule. In S. Kreutzer, editor,24th EACSL Annual Conference on Computer Science Logic (CSL 2015), volume 41 ofLeibniz International Proceedings in Informatics (LIPIcs), pages 582-596. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 2015. · Zbl 1373.68172
[4] Y. Andou. Church-Rosser property of a simple reduction for full first-order classical natural deduction. Annals of Pure Applied Logic, 119(1-3):225-237, 2003. · Zbl 1016.03006
[5] Z. M. Ariola, H. Herbelin, and A. Saurin. Classical call-by-need and duality. In Ong [39], pages 27-44. · Zbl 1331.68041
[6] H. Barendregt, M. Coppo, and M. Dezani-Ciancaglini. A filter lambda model and the completeness of type assignment.Bulletin of Symbolic Logic, 48:931-940, 1983. · Zbl 0545.03004
[7] P. Batty´anyi and K. Nour. An estimation for the lengths of reduction sequences of theλµρθ-calculus. Logical Methods in Computer Science, 14(2), 2018. · Zbl 1453.03007
[8] A. Bernadet and S. Lengrand. Complexity of strongly normalisingλ-terms via non-idempotent intersection types. In M. Hofmann, editor,Foundations of Software Science and Computation Structures (FOSSACS), volume 6604 ofLecture Notes in Computer Science, pages 88-107. Springer-Verlag, 2011. · Zbl 1326.68067
[9] A. Bernadet and S. Lengrand. Non-idempotent intersection types and strong normalisation.Logical Methods in Computer Science, 9(4), 2013. · Zbl 1297.03010
[10] A. Bucciarelli, D. Kesner, and S. Ronchi Della Rocca. The inhabitation problem for non-idempotent intersection types. In D´ıaz et al. [19], pages 341-354. · Zbl 1417.68027
[11] A. Bucciarelli, D. Kesner, and D. Ventura. Non-idempotent intersection types for the lambda-calculus. Logic Journal of the IGPL, 2017. · Zbl 1405.03036
[12] M. Coppo and M. Dezani-Ciancaglini. A new type assignment for lambda-terms.Archive for Mathematical Logic, 19:139-156, 1978. · Zbl 0418.03010
[13] M. Coppo and M. Dezani-Ciancaglini. An extension of the basic functionality theory for theλ-calculus. Notre Dame Journal of Formal Logic, 4:685-693, 1980. · Zbl 0423.03010
[14] P. Curien and H. Herbelin. The duality of computation. In M. Odersky and P. Wadler, editors,Proceedings of the Fifth ACM SIGPLAN International Conference on Functional Programming (ICFP ’00), Montreal, Canada, September 18-21, 2000., pages 233-243. ACM, 2000. · Zbl 1321.68146
[15] R. David and K. Nour. A short proof of the strong normalization of classical natural deduction with disjunction.J. Symb. Log., 68(4):1277-1288, 2003. · Zbl 1066.03056
[16] E. De Benedetti and S. Ronchi Della Rocca. Bounding normalization time through intersection types. In Graham-Lengrand and Paolini [25], pages 48-57. · Zbl 1464.03011
[17] D. de Carvalho.S´emantiques de la logique lin´eaire et temps de calcul. These de doctorat, Universit´e Aix-Marseille II, 2007.
[18] D. de Carvalho. Execution time ofλ-terms via denotational semantics and intersection types.Mathematical Structures in Computer Science, 28(7):1169-1203, 2018. · Zbl 1475.03073
[19] J. D´ıaz, I. Lanese, and D. Sangiorgi, editors.Proceedings of the 8th International Conference on Theoretical Computer Science (TCS), volume 8705 ofLecture Notes in Computer Science. Springer-Verlag, 2014.
[20] D. J. Dougherty, S. Ghilezan, and P. Lescanne. Characterizing strong normalization in the CurienHerbelin symmetric lambda calculus: Extending the coppo-dezani heritage.Theoretical Computer Science, 398(1-3):114-128, 2008. · Zbl 1146.68028
[21] T. Ehrhard. Collapsing non-idempotent intersection types. In P. C´egielski and A. Durand, editors, Proceedings of 26th EACSL Conference on Computer Science Logic, volume 16 ofLIPIcs, pages 259-273. Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik, 2012. · Zbl 1252.03142
[22] P. Gardner. Discovering needed reductions using type theory. In M. Hagiya and J. C. Mitchell, editors, Theoretical Aspects of Computer Software, International Conference TACS ’94, Sendai, Japan, April · Zbl 0942.03508
[23] J.-Y. Girard. Linear logic.Theoretical Computer Science, 50:1-102, 1987. 3:30D. Kesner and P. VialVol. 16:1 · Zbl 0647.03016
[24] J.-Y. Girard, Y. Lafont, and P. Taylor.Proofs and Types. Cambridge University Press, 1990. · Zbl 0671.68002
[25] S. Graham-Lengrand and L. Paolini, editors.Proceedings of the Sixth Workshop on Intersection Types and Related Systems (ITRS), Dubrovnik, Croatia, 2012, volume 121 ofElectronic Proceedings in Theoretical · Zbl 1415.68029
[26] T. Griffin. A formulae-as-types notion of control. In17th Annual ACM Symposium on Principles of Programming Languages (POPL), pages 47-58. ACM Press, 1990.
[27] D. Kesner. A theory of explicit substitutions with safe and full composition.Logical Methods in Computer Science, 5(3:1):1-29, 2009. · Zbl 1168.68008
[28] D. Kesner. Reasoning about call-by-need by means of types. In B. Jacobs and C. L¨oding, editors, Foundations of Software Science and Computation Structures - 19th International Conference, FOSSACS · Zbl 1475.68064
[29] D. Kesner and D. Ventura. Quantitative types for the linear substitution calculus. In D´ıaz et al. [19], pages 296-310. · Zbl 1418.03180
[30] D. Kesner and D. Ventura. A resource aware computational interpretation for Herbelin’s syntax. In M. Leucker, C. Rueda, and F. D. Valencia, editors,Theoretical Aspects of Computing - ICTAC 2015 · Zbl 1407.68272
[31] D. Kesner and P. Vial. Types as resources for classical natural deduction. In D. Miller, editor,Proceedings of the 2nd International Conference on Formal Structures for Computation and Deduction, FSCD 2017, · Zbl 1528.03127
[32] A. Kfoury. A linearization of the lambda-calculus and consequences. Technical report, Boston Universsity, 1996. · Zbl 0953.03014
[33] A. Kfoury and J. Wells. Principality and type inference for intersection types using expansion variables. Theoretical Computer Science, 311(1-3):1-70, 2004. · Zbl 1070.68021
[34] K. Kikuchi and T. Sakurai. A translation of intersection and union types for theλµ-calculus. In J. Garrigue, editor,Programming Languages and Systems - 12th Asian Symposium, APLAS 2014, Singapore, November 17-19, 2014, Proceedings, volume 8858 ofLecture Notes in Computer Science, pages 120-139. Springer-Verlag, 2014. · Zbl 1453.68037
[35] J.-L. Krivine.Lambda-calculus, types and models. Ellis Horwood, 1993. · Zbl 0779.03005
[36] O. Laurent. On the denotational semantics of the untyped lambda-mu calculus, 2004. Unpublished note.
[37] B. V. Mario Coppo, Mariangiola Dezani-Ciancaglini. Functional characters of solvable terms.Mathematical Logic Quarterly, 27:45-58, 1981. · Zbl 0479.03006
[38] P. M. Neergaard and H. G. Mairson. Types, potency, and idempotency: why nonlinearity and amnesia make a type system work. In C. Okasaki and K. Fisher, editors,Proceedings of the Ninth ACM SIGPLAN International Conference on Functional Programming (ICFP), pages 138-149. ACM Press, 2004. · Zbl 1323.68223
[39] L. Ong, editor.Typed Lambda Calculi and Applications - 10th International Conference, TLCA 2011, Novi Sad, Serbia, June 1-3, 2011. Proceedings, volume 6690 ofLecture Notes in Computer Science. Springer-Verlag, 2011. · Zbl 1215.03009
[40] L. Ong and S. J. Ramsay. Verifying higher-order functional programs with pattern matching algebraic data type s. In T. Ball and M. Sagiv, editors,Proceedings of the 38th Annual ACM Symposium on Principles of Programming Languages (POPL), pages 587-598. ACM Press, 2011. · Zbl 1284.68193
[41] M. Pagani and S. Ronchi Della Rocca. Solvability in resource lambda-calculus. In L. Ong, editor, Foundations of Software Science and Computation Structures, volume 6014 ofLecture Notes in Computer Science, pages 358-373. Springer-Verlag, 2010. · Zbl 1246.68086
[42] M. Parigot.λµ-calculus: an algorithmic interpretation of classical natural deduction. In A. Voronkov, editor,International Conference on Logic Programming and Automated Reasoning, volume 624 ofLecture Notes in Computer Science, pages 190-201. Springer-Verlag, July 1992. · Zbl 0925.03092
[43] P. P´edrot and A. Saurin. Classical by-need. In P. Thiemann, editor,Programming Languages and Systems - 25th European Symposium on Programming, ESOP 2016, Held as Part of the European Joint · Zbl 1335.68034
[44] E. Polonovski.Substitutions explicites, logique et normalisation. Th‘ese de doctorat, Universit´e Paris 7, 2004.
[45] P. Selinger. Control categories and duality: on the categorical semantics of the lambda-mu calculus. Mathematical Structures in Computer Science, 11(2):207-260, 2001. · Zbl 0984.18003
[46] P. Urzyczyn. The emptiness problem for intersection types.Journal of Symbolic Logic, 64(3):1195-1215, 1999. · Zbl 0937.03022
[47] S. van Bakel. Sound and complete typing for lambda-mu. In E. Pimentel, B. Venneri, and J. B. Wells, editors,Proceedings Fifth Workshop on Intersection Types and Related Systems, ITRS 2010, Edinburgh, · Zbl 1469.03044
[48] S. van Bakel, F. Barbanera, and U. de’Liguoro. A filter model for theλµ-calculus - (extended abstract). In Ong [39], pages 213-228. · Zbl 1331.03021
[49] S. van Bakel, F. Barbanera, and U. de’Liguoro. Characterisation of strongly normalising lambda-mu-terms. In Graham-Lengrand and Paolini [25], pages 1-17. · Zbl 1464.03013
[50] F. van Raamsdonk, P. Severi, M. H. Sørensen, and H. Xi. Perpetual reductions in lambda-calculus.Inf. Comput., 149(2):173-225, 1999. · Zbl 0920.03024
This reference list is based on information provided by the publisher or from digital mathematics libraries. Its items are heuristically matched to zbMATH identifiers and may contain data conversion errors. In some cases that data have been complemented/enhanced by data from zbMATH Open. This attempts to reflect the references listed in the original paper as accurately as possible without claiming completeness or a perfect matching.