Introduction
On the reduction of the type-free computational λ-calculus
Ugo de’Liguoro,Riccardo Treglia
University of Turin
IWC 2020 30/06/2020
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 1 / 18
On the reduction of the type-free computational -calculus Ugo - - PowerPoint PPT Presentation
Introduction On the reduction of the type-free computational -calculus Ugo deLiguoro,Riccardo Treglia University of Turin IWC 2020 30/06/2020 Ugo deLiguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. -Calc.
Introduction
University of Turin
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 1 / 18
Introduction
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 1 / 18
Introduction
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 2 / 18
Calculus
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 3 / 18
Calculus
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 4 / 18
wrt Moggi’s calculus
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 5 / 18
wrt Moggi’s calculus
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 5 / 18
wrt Moggi’s calculus
c that preserves reductions.
c into λC that preserves the
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 6 / 18
Confluence
c has three basic rules whose left-hand sides may overlap (not
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 7 / 18
Confluence
c has three basic rules whose left-hand sides may overlap (not
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 7 / 18
Confluence
1
2
3
4
5
6
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 8 / 18
Confluence
1
2
3
4
5
6
˚
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 8 / 18
Confluence
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 9 / 18
Confluence
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 9 / 18
Confluence
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 9 / 18
Confluence
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 10 / 18
Confluence
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 11 / 18
Confluence
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 11 / 18
Confluence
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 12 / 18
Confluence
“
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 13 / 18
Confluence
˚
Newman lemma
Parallel reduction Takahashi traslation
Hindley ´ Rosen lemma
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 14 / 18
Factorization
˚
˚
˚
˚
˚
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 15 / 18
Factorization
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 16 / 18
Factorization
n´1
Definition (Indexed parallel reduction) The relation n ù ñ Ď Term ˆ Term is inductively defined by: 1 x ù ñ x 2 M n ù ñ N ñ λx.M n ù ñ λx.N 3 V n ù ñ V 1 ñ unit V n ù ñ unit V 1 4 M n ù ñ M1 and V m ù ñ V 1 ñ M ‹ V n`m ù ù ù ñ M1 ‹ V 1 5 M n ù ñ M1 and V m ù ñ V 1 ñ unit V ‹ λx.M n`|M1|x ¨m`1 ù ù ù ù ù ù ù ù ù ù ù ñ M1rV 1{xs 6 M n ù ñ M1 ñ M ‹ λx.unit x n ù ñ M1 7 L n ù ñ L1 and M m ù ñ M1 and N p ù ñ N1 ñ pL ‹ λx.Mq ‹ λy.N n`m`p ù ù ù ù ù ù ñ L1 ‹ λx.pM1 ‹ λy.N1q
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 17 / 18
Factorization
1
2
n
n´1
3
˚
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 18 / 18
Factorization
1
2
n
n´1
3
˚
˚
˚
˚
˚
˚
e Ď ˚
˚
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 18 / 18
Factorization
1
2
n
n´1
3
˚
˚
˚
˚
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 18 / 18
Factorization
1
2
n
n´1
3
˚
˚
˚
˚
Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 18 / 18
Factorization Beniamino Accattoli, Claudia Faggian, and Giulio Guerrieri. Factorization and normalization, essentially. In APLAS 2019: Programming Languages and Systems, volume 11893 of Lecture Notes in Computer Science, page 159–180. Springer Verlag, 12 2019. Zena M. Ariola, Matthias Felleisen, John Maraist, Martin Odersky, and Philip Wadler. The call-by-need lambda calculus. In Ron K. Cytron and Peter Lee, editors, Conference Record of POPL’95: 22nd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, San Francisco, California, USA, January 23-25, 1995, pages 233–246. ACM Press, 1995. Franz Baader and Tobias Nipkow. Term rewriting and all that. Cambridge University Press, 1998.
The Lambda Calculus: its Syntax and Semantics. North-Holland, Amsterdam, revised edition, 1984. Alberto Carraro and Giulio Guerrieri. A semantical and operational account of call-by-value solvability. In Anca Muscholl, editor, Foundations of Software Science and Computation Structures - 17th International Conference, FOSSACS 2014, volume 8412 of Lecture Notes in Computer Science, pages 103–118. Springer, 2014. John Maraist, Martin Odersky, David N. Turner, and Philip Wadler. Call-by-name, call-by-value, call-by-need and the linear lambda calculus.
Terese. Term Rewriting Systems, volume 55 of Cambridge Tracts in Theoretical Computer Science. Cambridge University Press, 2003. Ugo de’Liguoro,Riccardo Treglia (University of Turin) On the reduction of Comp. λ-Calc. IWC 2020 18 / 18