Five Basic Concepts of. Axiomatic Rewriting Theory

Size: px
Start display at page:

Download "Five Basic Concepts of. Axiomatic Rewriting Theory"

Transcription

1 Five Basic Concepts of Axiomatic Rewriting Theory Paul-André Melliès Institut de Recherche en Informatique Fondamentale (IRIF) CNRS & Université Paris Denis Diderot 5th International Workshop on Confluence Obergurgl September 2016

2 Rewriting paths modulo homotopy An algebraic and topological notion of confluence 2

3 The λ-calculus with explicit substitutions Terms M ::= 1 MN λm M[s] Substitutions s ::= id M s s t Key idea: replace the β-rule of the λ-calculus (λx.m) N M [x := N] by the Beta-rule of the λσ-calculus (λ M) N M [N id] where the substitution is explicit and thus similar to a closure. 3

4 The eleven rewriting rules of the λσ-calculus Beta (λm)n M[N id] App (MN)[s] M[s]N[s] Abs (λm)[s] λ(m[1 (s )]) Clos M[s][t] M[s t] VarCons 1[M s] M VarId 1[id] 1 Map (M s) t M[t] (s t) IdL id s s Ass (s 1 s 2 ) s 3 s 1 (s 2 s 3 ) Shi f tcons (M s) s Shi f tid id 4

5 The eleven critical pairs of the λσ-calculus App + Beta (λm)[s](n[s]) App ((λm)n)[s] Beta M[N id][s] Clos + App (MN)[s t] Clos + Abs (λm)[s t] Clos + VarId 1[id s] Clos + VarCons 1[(M s) t] Clos + Clos M[s][t t ] Clos Clos Clos Clos (MN)[s][t] (λm)[s][t] 1[id][s] 1[M s][t] Clos M[s][t][t ] App Abs VarId VarCons (M[s](N[s]))[t] (λ(m[1 s ]))[t] 1[s] M[t] Clos M[s t][t ] Ass + Map (M s) (t t ) Ass + IdL id (s t) Ass + Shi f tid (id s) Ass + Shi f tcons ((M s) t) Ass + Ass (s s ) (t t ) Ass ((M s) t) t Map (M[t] s t) t Ass Ass Ass (id s) t ( id) s IdL Shi f tid Shi f tcons s t s ( (M s)) t s t Ass ((s s ) t) t Ass (s (s t)) t 5

6 A very dangerous critical pair ((λp)q)[s] App (λp)[s]q[s] Lam (λ(p[1 s ]))Q[s] Beta Beta P[Q id][s] P[1 s ][Q[s] id] Clos+Map Clos+Map P[Q[s] id s] P[Q[s] (s ) (Q[s] id)] IdL Ass+Shi f t P[Q[s] s] when s=m 1 M 2 M n id and the M is are in σ normal f orm P[Q[s] (s id)] This critical pair leads to a counter-example to strong normalization in the simply-typed λσ-calculus (TLCA 1995). 6

7 A fundamental problem Hence, one main challenge of Rewriting Theory: Classify the rewriting paths from a term P to its normal form Q f P Q g Very complicated in the case of the λσ-calculus... 7

8 I. Permutation tiles A geometric account of redex permutations 8

9 A key observation Theorem [Lévy 1978] In the λ-calculus, every two paths to the normal form f P Q are equal modulo a series of β-redex permutations: g f P Q g 9

10 A geometric intuition It is nice and clarifying to think of the redex permutation equivalence between f and g in a geometric way as a homotopy relation between rewriting paths This intuition can be made rigorous mathematically using Albert Burroni s notion of polygraph. 10

11 Permutation tiles [1] MQ MN v u u v P Q the redex u : M P and the redex v : N Q are independent P N 11

12 Permutation tiles [2] (λx.y)p (λx.y)m v u y the outer redex u : (λx.y) M y erases the inner redex v : M P u 12

13 Permutation tiles [3] (λx.xx)p (λx.xx)m u v MM v 1 u v 2 MP P P the outer redex u : (λx.xx) M MM duplicates the inner redex v : M P 13

14 Illustration of the theorem There is a 2-dimensional hole in the λ-calculus v (λx.x)(λy.y)z (λx.x)z (λy.y)z because the outer redex u u : (λx.x) (λy.y) z (λy.y) z is not equivalent modulo homotopy to the inner redex v : (λx.x) (λy.y) z (λx.x) z 14

15 Illustration of the theorem When one extends the two redexes u and v with w v (λx.x)(λy.y)z (λx.x)z w z the resulting rewriting paths u w and v w are normalizing and thus equivalent modulo homotopy! u 15

16 In the λσ-calculus... Critical pairs like ((λp)q)[s] App (λp)[s]q[s] Lam (λ(p[1 s ]))Q[s] Beta Beta P[Q id][s] P[1 s ][Q[s] id] Clos+Map Clos+Map P[Q[s] id s] P[Q[s] (s ) (Q[s] id)] IdL Ass+Shi f t P[Q[s] s] when s=m 1 M 2 M n id and the M is are in σ normal f orm P[Q[s] (s id)] generate 2-dimensional holes in the rewriting geometry and thus obstructions to homotopy equivalence... 16

17 A bridge between λσ and λ Key theorem [Abadi-Cardelli-Curien-Lévy 1990] Every rewriting path between λσ-terms f : P Q induces a rewriting path (modulo homotopy) σ( f ) : σ(p) σ(q) between the underlying λ-terms. Moreover, the translation preserves homotopy equivalence: f λσ g σ( f ) λ σ(g) 17

18 A remarkable consequence Fact. Two rewriting paths in the λσ-calculus f P Q are transported to the same homotopy class of rewriting paths g σ( f ) σ(p) λ σ(q) σ(g) when the λσ-term Q is in normal form. 18

19 What about head-normal forms? Can we classify the head-rewriting paths of the λσ-calculus? This requires to resolve two very serious difficulties: define a general notion of head-rewriting path for a term rewriting system admitting critical pairs establish that every head-rewriting path in the λσ-calculus f : P V is transported to a head-rewriting path σ( f ) : σ(p) σ(v) of the λ-calculus. 19

20 Axiomatic Rewriting Theory Main claim. This problem is arguably too difficult to resolve by working directly on the syntax of the λσ-calculus. One should move to a purely diagrammatic approach based on the 2-dimensional notion of permutation tile. The purpose of Axiomatic Rewriting Theory is to establish a number of important structural properties: standardisation theorem factorisation theorem stability theorem from the generic properties of permutation tiles in rewriting. 20

21 Axiomatic rewriting system Definition. A graph G = (V, E, 0, 1 ) defined by its source and target functions 0, 1 : E V together with a set of 2-dimensional tiles of the form Q v u M N u f P where the rewriting path f is of arbitrary length. 21

22 Reversible permutations Definition: a permutation tile Q v u M N u f P is called reversible when it has an inverse. Note that f is of length 1 in that specific case. 22

23 Reversible permutation tiles MQ v u MN P Q u v P N 23

24 Irreversible permutation tiles (λx.y)p v u (λx.y)m y u 24

25 Irreversible permutation tiles (λx.xx)p v u (λx.xx)m P P u MM v 1 v 2 MP 25

26 II. Standardisation cells Rewriting surfaces between rewriting paths 26

27 Key idea: let us track ancestors! MQ v u MN PQ u v PN 27

28 Key idea: let us track ancestors! λy.x P v u λy.x M y u 28

29 Key idea: let us track ancestors! v λx.x x P u λx.x x M u MM v 1 v MP P P 2 29

30 Standardisation cells (λx.(λy.x))mq b (λy.m)q c a M (λx.(λy.x))mn u (λy.m)n v 30

31 Illustration λx. λy. x MQ b λy. M Q c a M λx. λy. x MN u λy.m N v 31

32 Standardisation cells Definition. A standardisation cell θ : f g : M N is a triple ( f, g, ϕ) consisting of two coinitial and cofinal paths u 1 u 2 u p v 1 v 2 v q f = M N g = M N and of a function ϕ : {1,..., q} {1,..., p} called the ancestor function of the standardisation cell. 32

33 A 2-category of rewriting and standardisation Theorem. Every axiomatic rewriting system G induces a 2-category its objects are the terms, its morphisms are the rewriting paths, its cells are the standardisation cells. 33

34 III. Standard rewriting paths The normal forms of the 2-dimensional rewriting 34

35 Standard rewriting paths Definition. A rewriting path f : M N is called standard when every standardisation cell f g is reversible. 35

36 A diagrammatic standardisation theorem Theorem. For every rewriting path f, there exists a 2-dimensional cell f g transforming f into a standard path g. Moreover, the standard path g associated to the path f is unique, modulo reversible permutations. The 2-dimensional cell f g itself is unique, up to canonical 3-dimensional deformations. 36

37 Standardisation (λx.(λy.x))mq b (λy.m)q c a M (λx.(λy.x))mn u (λy.m)n v A two-dimensional process revealing the causal dependencies 37

38 IV. External rewriting paths The external-internal factorisation theorem 38

39 External rewriting paths Definition. A rewriting path M e P is called external when it satisfies the following property: P f Q e f standard = M P Q standard. 39

40 External rewriting paths The β-redex (λx.(λy.x))mn a (λx.(λy.x))mp is standard but not external in the diagram below: (λx.(λy.x))mq b (λy.m)q c a M (λx.(λy.x))mn u (λy.m)n v 40

41 Internal rewriting paths Definition. A rewriting path M m N is called internal when every factorization up to homotopy M e m P f N satisfies the following property: e is external = e is equal to the identity. 41

42 Factorization theorem [Existence] Suppose given an axiomatic rewriting system. Theorem. Every rewriting path M f N factors as e m M P N where the rewriting path e is external the rewriting path m is internal 42

43 Factorization theorem [uniqueness] For every commutative diagram M 1 P 1 N 1 u e 1 m 1 v e 1 and e 2 external m 1 and m 2 internal M 2 P 2 N 2 e 2 m 2 there exists a unique path h : P 1 P 2 such that e 1 m 1 M 1 P 1 N 1 u h v e 2 m 2 M 2 P 2 N 2 commutes. 43

44 Factorization theorem [uniqueness] For every commutative diagram (up to homotopy) M 1 P 1 N 1 u e 1 m 1 v e 1 and e 2 external m 1 and m 2 internal M 2 P 2 N 2 e 2 m 2 there exists a unique path h : P 1 P 2 (up to homotopy) such that e 1 m 1 M 1 P 1 N 1 u h v commutes (up to homotopy.) e 2 m 2 M 2 P 2 N 2 44

45 V. Head rewriting paths A universal cone of head-rewriting paths 45

46 Axiomatic set of values Definition. An axiomatic set H of values is a set of terms satisfying three properties: [1] the set H is closed under reduction: V H and V W = W H 46

47 Axiomatic set of values [2] In every reversible tile V 2 v u M W u v V 1 V 1 H and V 2 H = M H 47

48 Axiomatic set of values [3] In every irreversible tile V v u M W u f N V H = M H 48

49 Stability theorem Suppose given an axiomatic set H of values. Theorem. For every term M, there exists a cone of paths ( M e i ) V i i I satisfying the following property: for every rewriting path f : M W where W H there exists a unique index i I and a unique path such that h : V i W up to homotopy M f W e i h M V i W 49

50 A cone of head-rewriting paths This means that there is a unique head-rewriting path in the cone such that f factors as e i : M V i M f e i up to homotopy. V i h W 50

51 Application to the λσ-calculus Suppose that M is a λ-term seen as a λσ-term. Theorem. Every head rewriting path e i : M V i V i H λσ to the set H λσ of λσ-head-normal forms is transported to e : M σ(v i ) the unique head-rewriting path from M to the set H λ of head-normal forms in the λ-calculus. 51

52 Short bibliography On the λσ-calculus: Typed lambda-calculi with explicit substitutions may not terminate. Proceedings of TLCA 1995, LNCS 902, pp , The lambda-sigma calculus enjoys finite normalisation cones. Journal of Logic and Computation, vol 10 No. 3, pp , On axiomatic rewriting theory: A diagrammatic standardisation theorem. Processes, Terms and Cycles: Steps on the Road to Infinity. Jan Willem Klop Festschrift, LNCS 3838, A factorisation theorem in Rewriting Theory. Proceedings of CTCS 1997, LNCS 1290, A stability theorem in Rewriting Theory. Proceedings of LICS 1998, pp ,

Five Basic Concepts of Axiomatic Rewriting Theory

Five Basic Concepts of Axiomatic Rewriting Theory Fie Basic Concepts of Axiomatic Rewriting Theory Pal-André Melliès Institt de Recherche en Informatiqe Fondamentale (IRIF) CNRS, Uniersité Paris Diderot Abstract In this inited talk, I will reiew fie basic

More information

The Lambda-Calculus Reduction System

The Lambda-Calculus Reduction System 2 The Lambda-Calculus Reduction System 2.1 Reduction Systems In this section we present basic notions on reduction systems. For a more detailed study see [Klop, 1992, Dershowitz and Jouannaud, 1990]. Definition

More information

The Permutative λ-calculus

The Permutative λ-calculus The Permutative λ-calculus Beniamino Accattoli 1 Delia Kesner 2 INRIA and LIX (École Polytechnique) PPS (CNRS and Université Paris-Diderot) 1 / 34 Outline 1 λ-calculus 2 Permutative extension 3 Confluence

More information

Small families. (at INRIA with Gérard and in the historical λ-calculus) Jean-Jacques Lévy

Small families. (at INRIA with Gérard and in the historical λ-calculus) Jean-Jacques Lévy Small families (at INRIA with Gérard and in the historical λ-calculus) Jean-Jacques Lévy INRIA Rocquencourt and Microsoft Research-INRIA Joint Centre June 22, 2007 caml years coq sixty years is 31,557,600

More information

SHARING IN THE WEAK LAMBDA-CALCULUS REVISITED

SHARING IN THE WEAK LAMBDA-CALCULUS REVISITED SHARING IN THE WEAK LAMBDA-CALCULUS REVISITED TOMASZ BLANC, JEAN-JACQUES LÉVY, AND LUC MARANGET INRIA e-mail address: tomasz.blanc@inria.fr INRIA, Microsoft Research-INRIA Joint Centre e-mail address:

More information

Call-by-value non-determinism in a linear logic type discipline

Call-by-value non-determinism in a linear logic type discipline Call-by-value non-determinism in a linear logic type discipline Alejandro Díaz-Caro? Giulio Manzonetto Université Paris-Ouest & INRIA LIPN, Université Paris 13 Michele Pagani LIPN, Université Paris 13

More information

A Normalisation Result for Higher-Order Calculi with Explicit Substitutions

A Normalisation Result for Higher-Order Calculi with Explicit Substitutions A Normalisation Result for Higher-Order Calculi with Explicit Substitutions Eduardo Bonelli 1,2 1 LIFIA, Facultad de Informática, Universidad Nacional de La Plata, 50 y 115, La Plata (1900), Buenos Aires,

More information

An introduction to Yoneda structures

An introduction to Yoneda structures An introduction to Yoneda structures Paul-André Melliès CNRS, Université Paris Denis Diderot Groupe de travail Catégories supérieures, polygraphes et homotopie Paris 21 May 2010 1 Bibliography Ross Street

More information

arxiv: v1 [cs.lo] 29 May 2014

arxiv: v1 [cs.lo] 29 May 2014 An Introduction to the Clocked Lambda Calculus Jörg Endrullis, Dimitri Hendriks, Jan Willem Klop, and Andrew Polonsky VU University Amsterdam, The Netherlands Abstract We give a brief introduction to the

More information

3.2 Equivalence, Evaluation and Reduction Strategies

3.2 Equivalence, Evaluation and Reduction Strategies 3.2 Equivalence, Evaluation and Reduction Strategies The λ-calculus can be seen as an equational theory. More precisely, we have rules i.e., α and reductions, for proving that two terms are intensionally

More information

Dependent Types and Explicit Substitutions

Dependent Types and Explicit Substitutions NASA/CR-1999-209722 ICASE Report No. 99-43 Dependent Types and Explicit Substitutions César Muñoz ICASE, Hampton, Virginia Institute for Computer Applications in Science and Engineering NASA Langley Research

More information

Variations on a theme: call-by-value and factorization

Variations on a theme: call-by-value and factorization Variations on a theme: call-by-value and factorization Beniamino Accattoli INRIA & LIX, Ecole Polytechnique Accattoli (INRIA Parsifal) Variations on a theme: call-by-value and factorization 1 / 31 Outline

More information

MacLane s coherence theorem expressed as a word problem

MacLane s coherence theorem expressed as a word problem MacLane s coherence theorem expressed as a word problem Paul-André Melliès Preuves, Programmes, Systèmes CNRS UMR-7126, Université Paris 7 ÑÐÐ ÔÔ ºÙ ÙºÖ DRAFT In this draft, we reduce the coherence theorem

More information

Constructive approach to relevant and affine term calculi

Constructive approach to relevant and affine term calculi Constructive approach to relevant and affine term calculi Jelena Ivetić, University of Novi Sad, Serbia Silvia Ghilezan,University of Novi Sad, Serbia Pierre Lescanne, University of Lyon, France Silvia

More information

Distributed transactions and reversibility

Distributed transactions and reversibility Distributed transactions and reversibility Pawel Sobocinski, University of Cambridge Southampton, 26 September 2006 based on joint work with Vincent Danos and Jean Krivine Motivation Reversible CCS (RCCS)

More information

Equivalence of Algebraic λ -calculi extended abstract

Equivalence of Algebraic λ -calculi extended abstract Equivalence of Algebraic λ -calculi extended abstract Alejandro Díaz-Caro LIG, Université de Grenoble, France Alejandro.Diaz-Caro@imag.fr Christine Tasson CEA-LIST, MeASI, France Christine.Tasson@cea.fr

More information

Explicit Substitutions and Programming Languages

Explicit Substitutions and Programming Languages Explicit Substitutions and Programming Languages Jean-Jacques Lévy and Luc Maranget INRIA - Rocquencourt, Jean-Jacques.Levy@inria.fr Luc.Maranget@inria.fr, http://para.inria.fr/ {levy,maranget} Abstract.

More information

Topology in Denotational Semantics

Topology in Denotational Semantics Journées Topologie et Informatique Thomas Ehrhard Preuves, Programmes et Systèmes (PPS) Université Paris Diderot - Paris 7 and CNRS March 21, 2013 What is denotational semantics? The usual stateful approach

More information

Third-Order Matching via Explicit Substitutions

Third-Order Matching via Explicit Substitutions Third-Order Matching via Explicit Substitutions Flávio L. C. de Moura 1 and Mauricio Ayala-Rincón 1 and Fairouz Kamareddine 2 1 Departamento de Matemática, Universidade de Brasília, Brasília D.F., Brasil.

More information

Advanced Lambda Calculus. Henk Barendregt & Giulio Manzonetto ICIS Faculty of Science Radboud University Nijmegen, The Netherlands

Advanced Lambda Calculus. Henk Barendregt & Giulio Manzonetto ICIS Faculty of Science Radboud University Nijmegen, The Netherlands Advanced Lambda Calculus Henk Barendregt & Giulio Manzonetto ICIS Faculty of Science Radboud University Nijmegen, The Netherlands Form of the course Ordinary lecture Seminar form Exam: working out an exercise

More information

Lambda-Calculus (I) 2nd Asian-Pacific Summer School on Formal Methods Tsinghua University, August 23, 2010

Lambda-Calculus (I) 2nd Asian-Pacific Summer School on Formal Methods Tsinghua University, August 23, 2010 Lambda-Calculus (I) jean-jacques.levy@inria.fr 2nd Asian-Pacific Summer School on Formal Methods Tsinghua University, August 23, 2010 Plan computation models lambda-notation bound variables conversion

More information

An Algorithmic Interpretation of a Deep Inference System

An Algorithmic Interpretation of a Deep Inference System n lgorithmic Interpretation of a eep Inference System Kai rünnler and ichard McKinley Institut für angewandte Mathematik und Informatik Neubrückstr 10, H 3012 ern, Switzerland bstract We set out to find

More information

On the Standardization Theorem for λβη-calculus

On the Standardization Theorem for λβη-calculus On the Standardization Theorem for λβη-calculus Ryo Kashima Department of Mathematical and Computing Sciences Tokyo Institute of Technology Ookayama, Meguro, Tokyo 152-8552, Japan. e-mail: kashima@is.titech.ac.jp

More information

Explicit Substitutions with de Bruijn s levels

Explicit Substitutions with de Bruijn s levels Explicit Substitutions with de ruijn s levels Pierre LESCANNE and Jocelyne ROUYER-DEGLI Centre de Recherche en Informatique de Nancy (CNRS) and INRIA-Lorraine Campus Scientifique, P 239, F54506 Vandœuvre-lès-Nancy,

More information

The Suspension Notation as a Calculus of Explicit Substitutions

The Suspension Notation as a Calculus of Explicit Substitutions The Suspension Notation as a Calculus of Explicit Substitutions Gopalan Nadathur Digital Technology Center and Department of Computer Science University of Minnesota [Joint work with D.S. Wilson and A.

More information

Geometry of Interaction

Geometry of Interaction Linear logic, Ludics, Implicit Complexity, Operator Algebras Geometry of Interaction Laurent Regnier Institut de Mathématiques de Luminy Disclaimer Syntax/Semantics Syntax = nite (recursive) sets Semantics

More information

Explicit Substitutions

Explicit Substitutions Explicit Substitutions M. Abadi L. Cardelli P.-L. Curien J.-J. Lévy September 18, 1996 Abstract The λσ-calculus is a refinement of the λ-calculus where substitutions are manipulated explicitly. The λσ-calculus

More information

A Differential Model Theory for Resource Lambda Calculi - Part I

A Differential Model Theory for Resource Lambda Calculi - Part I A Differential Model Theory for Resource Lambda Calculi - Part I Giulio Manzonetto g.manzonetto@cs.ru.nl Intelligent Systems Radboud University Nijmegen FMCS 2011 - Calgary - 11 th June 2011 Giulio Manzonetto

More information

Categories, Logic, Physics Birmingham

Categories, Logic, Physics Birmingham Categories, Logic, Physics Birmingham Septemr 21, 2010 should What is and What should higher dimensional group? should Optimistic answer: Real analysis many variable analysis higher dimensional group What

More information

Lazy Strong Normalization

Lazy Strong Normalization Lazy Strong Normalization Luca Paolini 1,2 Dipartimento di Informatica Università di Torino (ITALIA) Elaine Pimentel 1,2 Departamento de Matemática Universidade Federal de Minas Gerais (BRASIL) Dipartimento

More information

Modularity of Confluence: A Simplified Proof

Modularity of Confluence: A Simplified Proof 1 Modularity of Confluence: A Simplified Proof Jan Willem Klop 1,2,5,6 Aart Middeldorp 3,5 Yoshihito Toyama 4,7 Roel de Vrijer 2 1 Department of Software Technology CWI, Kruislaan 413, 1098 SJ Amsterdam

More information

Formalizing a Named Explicit Substitutions Calculus in Coq

Formalizing a Named Explicit Substitutions Calculus in Coq Formalizing a Named Explicit Substitutions Calculus in Coq Washington L. R. de C. Segundo 1, Flávio L. C. de Moura 1, Daniel L. Ventura 2 1 Departamento de Ciência da Computação Universidade de Brasília,

More information

Comparing Calculi of Explicit Substitutions with Eta-reduction

Comparing Calculi of Explicit Substitutions with Eta-reduction Replace this file with prentcsmacro.sty for your meeting, or with entcsmacro.sty for your meeting. Both can be found at the ENTCS Macro Home Page. Comparing Calculi of Explicit Substitutions with Eta-reduction

More information

Towards a Formal Theory of Graded Monads

Towards a Formal Theory of Graded Monads Towards a Formal Theory of Graded Monads Soichiro Fujii 1, Shin-ya Katsumata 2, and Paul-André Melliès 3 1 Department of Computer Science, The University of Tokyo 2 RIMS, Kyoto University 3 Laboratoire

More information

Formal Methods Lecture 6. (B. Pierce's slides for the book Types and Programming Languages )

Formal Methods Lecture 6. (B. Pierce's slides for the book Types and Programming Languages ) Formal Methods Lecture 6 (B. Pierce's slides for the book Types and Programming Languages ) This Saturday, 10 November 2018, room 335 (FSEGA), we will recover the following activities: 1 Formal Methods

More information

Classical Combinatory Logic

Classical Combinatory Logic Computational Logic and Applications, CLA 05 DMTCS proc. AF, 2006, 87 96 Classical Combinatory Logic Karim Nour 1 1 LAMA - Equipe de logique, Université de Savoie, F-73376 Le Bourget du Lac, France Combinatory

More information

Resource lambda-calculus: the differential viewpoint

Resource lambda-calculus: the differential viewpoint Resource lambda-calculus: the differential viewpoint Preuves, Programmes et Systèmes (PPS) Université Paris Diderot and CNRS September 13, 2011 History ( 1985): Girard Girard had differential intuitions

More information

Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky. Radboud University Nijmegen. March 5, 2012

Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky. Radboud University Nijmegen. March 5, 2012 1 λ Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky Radboud University Nijmegen March 5, 2012 2 reading Femke van Raamsdonk Logical Verification Course Notes Herman Geuvers Introduction to

More information

Simply Typed λ-calculus

Simply Typed λ-calculus Simply Typed λ-calculus Lecture 1 Jeremy Dawson The Australian National University Semester 2, 2017 Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, 2017 1 / 23 A Brief History of Type Theory First developed

More information

sset(x, Y ) n = sset(x [n], Y ).

sset(x, Y ) n = sset(x [n], Y ). 1. Symmetric monoidal categories and enriched categories In practice, categories come in nature with more structure than just sets of morphisms. This extra structure is central to all of category theory,

More information

Lecture 3. Lambda calculus. Iztok Savnik, FAMNIT. October, 2015.

Lecture 3. Lambda calculus. Iztok Savnik, FAMNIT. October, 2015. Lecture 3 Lambda calculus Iztok Savnik, FAMNIT October, 2015. 1 Literature Henk Barendregt, Erik Barendsen, Introduction to Lambda Calculus, March 2000. Lambda calculus Leibniz had as ideal the following

More information

Rewriting, Explicit Substitutions and Normalisation

Rewriting, Explicit Substitutions and Normalisation Rewriting, Explicit Substitutions and Normalisation XXXVI Escola de Verão do MAT Universidade de Brasilia Part 1/3 Eduardo Bonelli LIFIA (Fac. de Informática, UNLP, Arg.) and CONICET eduardo@lifia.info.unlp.edu.ar

More information

Reducibility proofs in λ-calculi with intersection types

Reducibility proofs in λ-calculi with intersection types Reducibility proofs in λ-calculi with intersection types Fairouz Kamareddine, Vincent Rahli, and J. B. Wells ULTRA group, Heriot-Watt University, http://www.macs.hw.ac.uk/ultra/ March 14, 2008 Abstract

More information

Non deterministic classical logic: the λµ ++ -calculus

Non deterministic classical logic: the λµ ++ -calculus Paru dans : Mathematical Logic Quarterly, 48, pp. 357-366, 2002 Non deterministic classical logic: the λµ ++ -calculus Karim NOUR LAMA - Equipe de Logique, Université de Savoie 73376 Le Bourget du Lac

More information

Programming Languages in String Diagrams. [ one ] String Diagrams. Paul-André Melliès. Oregon Summer School in Programming Languages June 2011

Programming Languages in String Diagrams. [ one ] String Diagrams. Paul-André Melliès. Oregon Summer School in Programming Languages June 2011 Programming Languages in String Diagrams [ one ] String Diagrams Paul-ndré Melliès Oregon Summer School in Programming Languages June 2011 String diagrams diagrammatic account o logic and programming 2

More information

Asynchronous Games vs. Concurrent Games

Asynchronous Games vs. Concurrent Games Asynchronous Games vs. Concurrent Games Paul-André Melliès Samuel Mimram Abstract Game semantics reveals the dynamic and interactive nature of logic, by interpreting every proof of a formula as a winning

More information

Coherence in monoidal track categories

Coherence in monoidal track categories Coherence in monoidal track categories Yves Guiraud Philippe Malbos INRIA Université Lyon 1 Institut Camille Jordan Institut Camille Jordan guiraud@math.univ-lyon1.fr malbos@math.univ-lyon1.fr Abstract

More information

Modèles des langages de programmation Domaines, catégories, jeux. Programme de cette seconde séance:

Modèles des langages de programmation Domaines, catégories, jeux. Programme de cette seconde séance: Modèles des langages de programmation Domaines, catégories, jeux Programme de cette seconde séance: Modèle ensembliste du lambda-calcul ; Catégories cartésiennes fermées 1 Synopsis 1 the simply-typed λ-calculus,

More information

Hungry, Hungry Homology

Hungry, Hungry Homology September 27, 2017 Motiving Problem: Algebra Problem (Preliminary Version) Given two groups A, C, does there exist a group E so that A E and E /A = C? If such an group exists, we call E an extension of

More information

Probabilistic Applicative Bisimulation and Call-by-Value Lam

Probabilistic Applicative Bisimulation and Call-by-Value Lam Probabilistic Applicative and Call-by-Value Lambda Calculi Joint work with Ugo Dal Lago ENS Lyon February 9, 2014 Probabilistic Applicative and Call-by-Value Lam Introduction Fundamental question: when

More information

About Typed Algebraic Lambda-calculi

About Typed Algebraic Lambda-calculi About Typed Algebraic Lambda-calculi Benoît Valiron INRIA Saclay/LIX Palaiseau, France valiron@lix.polytechnique.fr Abstract Arrighi and Dowek (2008) introduce an untyped lambdacalculus together with a

More information

The lambda calculus with constructors

The lambda calculus with constructors The lambda calculus with constructors Categorical semantic and Continuations Barbara Petit Focus - Univ. Bologna CaCos 2012 Barbara Petit (Focus - Univ. Bologna) The lambda calculus with constructors 1

More information

Formal Methods Lecture 6. (B. Pierce's slides for the book Types and Programming Languages )

Formal Methods Lecture 6. (B. Pierce's slides for the book Types and Programming Languages ) Formal Methods Lecture 6 (B. Pierce's slides for the book Types and Programming Languages ) Programming in the Lambda-Calculus, Continued Testing booleans Recall: tru = λt. λf. t fls = λt. λf. f We showed

More information

The Rewriting Calculus as a Combinatory Reduction System

The Rewriting Calculus as a Combinatory Reduction System The Rewriting Calculus as a Combinatory Reduction System Clara Bertolissi 1, Claude Kirchner 2 1 LIF-CMI, Université de Provence, Marseille, France 2 INRIA & LORIA, Nancy, France first.last@loria.fr, clara.bertolissi@lif.univ-mrs.fr

More information

Origin in Mathematical Logic

Origin in Mathematical Logic Lambda Calculus Origin in Mathematical Logic Foundation of mathematics was very much an issue in the early decades of 20th century. Cantor, Frege, Russel s Paradox, Principia Mathematica, NBG/ZF The Combinatory

More information

Models of computation

Models of computation Lambda-Calculus (I) jean-jacques.levy@inria.fr 2nd Asian-Pacific Summer School on Formal ethods Tsinghua University, August 23, 2010 Plan computation models lambda-notation bound variables odels of computation

More information

Computational Soundness of a Call by Name Calculus of Recursively-scoped Records. UMM Working Papers Series, Volume 2, Num. 3.

Computational Soundness of a Call by Name Calculus of Recursively-scoped Records. UMM Working Papers Series, Volume 2, Num. 3. Computational Soundness of a Call by Name Calculus of Recursively-scoped Records. UMM Working Papers Series, Volume 2, Num. 3. Elena Machkasova Contents 1 Introduction and Related Work 1 1.1 Introduction..............................

More information

Quantum groupoids and logical dualities

Quantum groupoids and logical dualities Quantum groupoids and logical dualities (work in progress) Paul-André Melliès CNS, Université Paris Denis Diderot Categories, ogic and Foundations of Physics ondon 14 May 2008 1 Proof-knots Aim: formulate

More information

Sub-λ-calculi, Classified

Sub-λ-calculi, Classified Electronic Notes in Theoretical Computer Science 203 (2008) 123 133 www.elsevier.com/locate/entcs Sub-λ-calculi, Classified François-Régis Sinot Universidade do Porto (DCC & LIACC) Rua do Campo Alegre

More information

The Minimal Graph Model of Lambda Calculus

The Minimal Graph Model of Lambda Calculus The Minimal Graph Model of Lambda Calculus Antonio Bucciarelli 1 and Antonino Salibra 2 1 Université Paris 7, Equipe PPS, 2 place Jussieu, 72251 Paris Cedex 05, France buccia@pps.jussieu.fr, 2 Università

More information

Alonzo Church ( ) Lambda Calculus. λ-calculus : syntax. Grammar for terms : Inductive denition for λ-terms

Alonzo Church ( ) Lambda Calculus. λ-calculus : syntax. Grammar for terms : Inductive denition for λ-terms Alonzo Church (1903-1995) Lambda Calculus 2 λ-calculus : syntax Grammar for terms : t, u ::= x (variable) t u (application) λx.t (abstraction) Notation : Application is left-associative so that t 1 t 2...

More information

Sémantique des jeux asynchrones et réécriture 2-dimensionnelle

Sémantique des jeux asynchrones et réécriture 2-dimensionnelle Sémantique des jeux asynchrones et réécriture 2-dimensionnelle Soutenance de thèse de doctorat Samuel Mimram Laboratoire PPS (CNRS Université Paris Diderot) 1 er décembre 2008 1 / 64 A program is a text

More information

Diagrams for Meaning Preservation

Diagrams for Meaning Preservation Diagrams for Meaning Preservation 2003-06-13 Joe Wells Detlef Plump Fairouz Kamareddine Heriot-Watt University University of York www.cee.hw.ac.uk/ultra www.cs.york.ac.uk/ det Diagrams for Meaning Preservation

More information

Observability for Pair Pattern Calculi

Observability for Pair Pattern Calculi Observability for Pair Pattern Calculi Antonio Bucciarelli 1, Delia Kesner 2, and Simona Ronchi Della Rocca 3 1,2 Univ Paris Diderot, Sorbonne Paris Cité, PPS, UMR 7126, CNRS, Paris, France 3 Dipartimento

More information

Lambda Calculus. Andrés Sicard-Ramírez. Semester Universidad EAFIT

Lambda Calculus. Andrés Sicard-Ramírez. Semester Universidad EAFIT Lambda Calculus Andrés Sicard-Ramírez Universidad EAFIT Semester 2010-2 Bibliography Textbook: Hindley, J. R. and Seldin, J. (2008). Lambda-Calculus and Combinators. An Introduction. Cambridge University

More information

Standardization of a call-by-value calculus

Standardization of a call-by-value calculus Standardization of a call-by-value calculus Giulio Guerrieri 1, Luca Paolini 2, and Simona Ronchi Della Rocca 2 1 Laboratoire PPS, UMR 7126, Université Paris Diderot, Sorbonne Paris Cité F-75205 Paris,

More information

The Call-by-Need Lambda Calculus

The Call-by-Need Lambda Calculus The Call-by-Need Lambda Calculus John Maraist, Martin Odersky School of Computer and Information Science, University of South Australia Warrendi Road, The Levels, Adelaide, South Australia 5095 fmaraist,oderskyg@cis.unisa.edu.au

More information

Origin in Mathematical Logic

Origin in Mathematical Logic Lambda Calculus Origin in Mathematical Logic Foundation of mathematics was very much an issue in the early decades of 20th century. Cantor, Frege, Russel s Paradox, Principia Mathematica, NBG/ZF Origin

More information

Traditional and Non Traditional lambda calculi

Traditional and Non Traditional lambda calculi Strategies July 2009 Strategies Syntax Semantics Manipulating Expressions Variables and substitutions Free and bound variables Subterms and substitution Grafting and substitution Ordered list of variables

More information

Categories, Proofs and Programs

Categories, Proofs and Programs Categories, Proofs and Programs Samson Abramsky and Nikos Tzevelekos Lecture 4: Curry-Howard Correspondence and Cartesian Closed Categories In A Nutshell Logic Computation 555555555555555555 5 Categories

More information

The algebraicity of the lambda-calculus

The algebraicity of the lambda-calculus The algebraicity of the lambda-calculus André Hirschowitz 1 and Marco Maggesi 2 1 Université de Nice Sophia Antipolis http://math.unice.fr/~ah 2 Università degli Studi di Firenze http://www.math.unifi.it/~maggesi

More information

Non-Idempotent Typing Operators, beyond the λ-calculus

Non-Idempotent Typing Operators, beyond the λ-calculus Non-Idempotent Typing Operators, beyond the λ-calculus Soutenance de thèse Pierre VIAL IRIF (Univ. Paris Diderot and CNRS) December 7, 2017 Non-idempotent typing operators P. Vial 0 1 /46 Certification

More information

Cartesian closed 2-categories and rewriting

Cartesian closed 2-categories and rewriting Cartesian closed 2-categories and rewriting Aurore Alcolei A brief presentation of Tom Hirschowitz s paper, Cartesian closed 2-categories and permutation equivalence in higher-order rewriting June 7, 2014

More information

arxiv:math/ v1 [math.at] 5 Oct 1999

arxiv:math/ v1 [math.at] 5 Oct 1999 arxiv:math/990026v [math.at] 5 Oct 999 REPRESENTATIONS OF THE HOMOTOPY SURFACE CATEGORY OF A SIMPLY CONNECTED SPACE MARK BRIGHTWELL AND PAUL TURNER. Introduction At the heart of the axiomatic formulation

More information

Introduction to λ-calculus

Introduction to λ-calculus p.1/65 Introduction to λ-calculus Ken-etsu FUJITA fujita@cs.gunma-u.ac.jp http://www.comp.cs.gunma-u.ac.jp/ fujita/ Department of Computer Science Gunma University :Church 32, 36, 40; Curry 34 1. Universal

More information

Sharing in the weak lambda-calculus (2)

Sharing in the weak lambda-calculus (2) Sharing in the weak lambda-calculus (2) Jean-Jacques Lévy INRIA Joint work with Tomasz Blanc and Luc aranget Happy birthday Henk! Happy birthday Henk! Happy birthday Henk! History Sharing in the lambda-calculus

More information

A Rewrite System for Strongly Normalizable Terms

A Rewrite System for Strongly Normalizable Terms A Rewrite System for Strongly Normalizable Terms IRIF Seminar Olivier Hermant & Ronan Saillard CRI, MINES ParisTech, PSL University June 28, 2018 O. Hermant (MINES ParisTech) Intersection Types in DMT

More information

Lecture 2. Lambda calculus. Iztok Savnik, FAMNIT. March, 2018.

Lecture 2. Lambda calculus. Iztok Savnik, FAMNIT. March, 2018. Lecture 2 Lambda calculus Iztok Savnik, FAMNIT March, 2018. 1 Literature Henk Barendregt, Erik Barendsen, Introduction to Lambda Calculus, March 2000. Lambda calculus Leibniz had as ideal the following

More information

A Fully Labelled Lambda Calculus: Towards Closed Reduction in the Geometry of Interaction Machine

A Fully Labelled Lambda Calculus: Towards Closed Reduction in the Geometry of Interaction Machine Electronic Notes in Theoretical Computer Science 171 (2007) 111 126 www.elsevier.com/locate/entcs A Fully Labelled Lambda Calculus: Towards Closed Reduction in the Geometry of Interaction Machine Nikolaos

More information

λ Slide 1 Content Exercises from last time λ-calculus COMP 4161 NICTA Advanced Course Advanced Topics in Software Verification

λ Slide 1 Content Exercises from last time λ-calculus COMP 4161 NICTA Advanced Course Advanced Topics in Software Verification Content COMP 4161 NICTA Advanced Course Advanced Topics in Software Verification Toby Murray, June Andronick, Gerwin Klein λ Slide 1 Intro & motivation, getting started [1] Foundations & Principles Lambda

More information

Call-by-value solvability, revisited

Call-by-value solvability, revisited Call-by-value solvability, revisited Beniamino Accattoli 1 and Luca Paolini 2 1 INRIA and LIX (École Polytechnique), France 2 Dipartimento di Informatica, Università degli Studi di Torino, Italy Abstract.

More information

Lambda calculus L9 103

Lambda calculus L9 103 Lambda calculus L9 103 Notions of computability L9 104 Church (1936): λ-calculus Turing (1936): Turing machines. Turing showed that the two very different approaches determine the same class of computable

More information

Asterix calculus - classical computation in detail

Asterix calculus - classical computation in detail Asterix calculus - classical computation in detail (denoted X ) Dragiša Žunić 1 Pierre Lescanne 2 1 CMU Qatar 2 ENS Lyon Logic and Applications - LAP 2016 5th conference, September 19-23, Dubrovnik Croatia

More information

Delayed substitutions

Delayed substitutions Delayed substitutions José Espírito Santo Departamento de Matemática Universidade do Minho Portugal jes@math.uminho.pt Abstract. This paper investigates an approach to substitution alternative to the implicit

More information

Graph lambda theories

Graph lambda theories Under consideration for publication in Math. Struct. in Comp. Science Graph lambda theories A N T O N I O B U C C I A R E L L I 1 and A N T O N I N O S A L I B R A 2 1 Equipe PPS (case 7014), Université

More information

Denoting computation

Denoting computation A jog from Scott Domains to Hypercoherence Spaces 13/12/2006 Outline Motivation 1 Motivation 2 What Does Denotational Semantic Mean? Trivial examples Basic things to know 3 Scott domains di-domains 4 Event

More information

Relational Graph Models, Taylor Expansion and Extensionality

Relational Graph Models, Taylor Expansion and Extensionality Relational Graph Models, Taylor Expansion and Extensionality Domenico Ruoppolo Giulio Manzonetto Laboratoire d Informatique de Paris Nord Université Paris-Nord Paris 13 (France) MFPS XXX Ithaca, New York

More information

Solvability in Resource Lambda-Calculus

Solvability in Resource Lambda-Calculus Solvability in Resource Lambda-Calculus Michele Pagani and Simona Ronchi della Rocca Dipartimento di Informatica Università di Torino C.so Svizzera 185 10149 Torino (IT) {pagani,ronchi}@di.unito.it Abstract.

More information

Mathematical Logic IV

Mathematical Logic IV 1 Introduction Mathematical Logic IV The Lambda Calculus; by H.P. Barendregt(1984) Part One: Chapters 1-5 The λ-calculus (a theory denoted λ) is a type free theory about functions as rules, rather that

More information

Type Systems. Lecture 2 Oct. 27th, 2004 Sebastian Maneth.

Type Systems. Lecture 2 Oct. 27th, 2004 Sebastian Maneth. Type Systems Lecture 2 Oct. 27th, 2004 Sebastian Maneth http://lampwww.epfl.ch/teaching/typesystems/2004 Today 1. What is the Lambda Calculus? 2. Its Syntax and Semantics 3. Church Booleans and Church

More information

ON THE CHARACTERIZATION OF MODELS OF H : THE SEMANTICAL ASPECT

ON THE CHARACTERIZATION OF MODELS OF H : THE SEMANTICAL ASPECT Logical Methods in Computer Science Vol. 12(1:4)2016, pp. 1 34 www.lmcs-online.org Submitted Jan. 13, 2014 Published Apr. 27, 2016 ON THE CHARACTERIZATION OF MODELS OF H : THE SEMANTICAL ASPECT FLAVIEN

More information

A Behavioural Model for Klop s Calculus

A Behavioural Model for Klop s Calculus Replace this file with prentcsmacro.sty for your meeting, or with entcsmacro.sty for your meeting. Both can be found at the ENTCS Macro Home Page. A Behavioural Model for Klop s Calculus Mariangiola Dezani-Ciancaglini

More information

Call-by-Value Non-determinism in a Linear Logic Type Discipline

Call-by-Value Non-determinism in a Linear Logic Type Discipline Call-by-Value Non-determinism in a Linear Logic Type Discipline Alejandro Díaz-Caro 1,, Giulio Manzonetto 1,2, and Michele Pagani 1,2 1 Université Paris 13, Sorbonne Paris Cité, LIPN, F-93430, Villetaneuse,

More information

Typage et déduction dans le calcul de

Typage et déduction dans le calcul de Typage et déduction dans le calcul de réécriture Benjamin Wack Encadrants : C. Kirchner, L. Liquori Deduction and computation λ-calculus [Church 40] is a simple and powerful computational model Explicit

More information

A Terminating and Confluent Linear Lambda Calculus

A Terminating and Confluent Linear Lambda Calculus A Terminating and Confluent Linear Lambda Calculus Yo Ohta and Masahito Hasegawa Research Institute for Mathematical Sciences, Kyoto University Kyoto 606-8502, Japan Abstract. We present a rewriting system

More information

Karim NOUR 1 LAMA - Equipe de Logique, Université de Savoie Le Bourget du Lac cedex 2

Karim NOUR 1 LAMA - Equipe de Logique, Université de Savoie Le Bourget du Lac cedex 2 S-STORAGE OPERATORS Karim NOUR 1 LAMA - Equipe de Logique, Université de Savoie - 73376 Le Bourget du Lac cedex 2 Abstract In 1990, JL Krivine introduced the notion of storage operator to simulate, for

More information

On the Semantics of Parsing Actions

On the Semantics of Parsing Actions On the Semantics of Parsing Actions Hayo Thielecke School of Computer Science University of Birmingham Birmingham B15 2TT, United Kingdom Abstract Parsers, whether constructed by hand or automatically

More information

Programming Languages in String Diagrams. [ four ] Local stores. Paul-André Melliès. Oregon Summer School in Programming Languages June 2011

Programming Languages in String Diagrams. [ four ] Local stores. Paul-André Melliès. Oregon Summer School in Programming Languages June 2011 Programming Languages in String iagrams [ four ] Local stores Paul-André Melliès Oregon Summer School in Programming Languages June 2011 Finitary monads A monadic account of algebraic theories Algebraic

More information

A few bridges between operational and denotational semantics of programming languages

A few bridges between operational and denotational semantics of programming languages A few bridges between operational and denotational semantics of programming languages Soutenance d habilitation à diriger les recherches Tom Hirschowitz November 17, 2017 Hirschowitz Bridges between operational

More information

Abstract Convexity: Results and Speculations

Abstract Convexity: Results and Speculations Abstract Convexity: Results and Speculations Tobias Fritz Max Planck Institut für Mathematik, Bonn Mathematical Colloquium Hagen, 26 Nov 29 Overview. Introducing convex spaces 2. A Hahn-Banach theorem

More information