Simply Typed λ-calculus
|
|
- Claud Harper
- 5 years ago
- Views:
Transcription
1 Simply Typed λ-calculus Lecture 1 Jeremy Dawson The Australian National University Semester 2, 2017 Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
2 A Brief History of Type Theory First developed by Bertrand Russell (around 1903), to avoid certain paradoxes in the foundations of math, e.g., Russell s paradox. A hierarchy of types introduced to solve this. Typically, a class of all sets is of a different type than a set, etc. Formalised by Alonzo Church in the 1930 s in his simple type theory, which introduces types to (untyped) λ-calculus. The full simple type theory deals with logical concepts as well (also known as higher-order logic). We shall deal only with the functional part, i.e., we only consider the β-equality part of Church s simple theory of types. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
3 Types in computation Types are used to restrict the behaviours of a program. Maxim: Well-typed programs don t go wrong. In the case of λ-calculus, types can be used to enforce termination. Think of it as a light-weight theorem proving: types correspond to the property we want the program to satisfy. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
4 Outline of the course Lecture 1: Introduction, Church & Curry type systems. Lecture 2: The type preservation theorem. Lecture 3: Type inference. Lecture 4: The normalisation theorem (typed terms always have normal forms); Kripke semantics. Lecture 5: Curry-Howard correspondence, relating intuitionistic logic and simply typed lambda calculus. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
5 References Henk Barendregt. Lambda calculi with types. Handbook of Logic in Computer Science, Vol. II, Editors: S. Abramsky, D.M. Gabbay, T.S.E. Maibaum, Oxford University Press, J. Roger Hindley. Basic Simple Type Theory. Cambridge University Press, Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
6 Course website Course materials will be made available on Wattle and/or the COMP4630 website: me at phone (612)57778 I am in the RSISE building, bldg 115, Tuesdays, Thursdays and alternate Mondays. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
7 Overview of untyped λ-calculus Syntax: M,N ::= x M N λx.m α-equivalence: syntactic equality modulo renaming of bound variables, e.g., λxλy.x λuλv.u. Substitution. Notation: M[x := N]. (Other notations exist also). Capture avoiding: no free variables in N got captured in M after substitution: use α-equivalence first to avoid the problem (λv. u v)[u := v] λv. v v but (λv. u v)[u := v] λw. v w. Substitute for free variables only (λv. u v)[v := w] λv. u w but (λv. u v)[v := w] λv. u v Computation via β-reduction: (λx.m) N β M[x := N] Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
8 Two type systems There are two ways to define typed λ-calculus: Curry s style: type assignment (also, implicit typing) Terms are as untyped λ-calculus. Given a term M, what types can be assigned to M? There can be zero or many. Church s style: type annotations (also, explicit typing). Terms are explicitly annotated with type expressions. Given a term M, if it is typeable, it has a unique type. We shall see that the two systems are essentially equivalent. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
9 Some questions Some typical questions one asks about a type system: What are the properties of well-typed terms? Termination: A well-typed term has a normal form. Type preservation: If M has type τ and M β N, then N has type τ. Type checking: Given a term M and a type τ, is it decidable to check whether M has type τ? Type inference: Given a term M, is there a type τ such that M has type τ? Type inhabitant: Given a type τ, is there a term M such that M has type τ? We ll see answers to some of these questions for simple type systems. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
10 Simple types Assume an infinite set of type variables. We use α,β,γ to denote type variables. The set T of simple types is the smallest set such that: Type variables: α T, for every type variable α. Function types: If τ1,τ 2 T, then τ 1 τ 2 T. We write τ τ if τ and τ are syntactically equal. Notational convention: we assume associate to the right, so α 1 α 2 α 3 means α 1 (α 2 α 3 ). Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
11 Typing statements, type declarations and typing contexts When assigning a type to a term (in both Church & Curry type systems), we to assign types to free variables in the term. A type declaration is a pair x : τ of a (term) variable x and a type τ. A typing statement is a pair M : τ of a term and a type (read M has type τ). A typing context Γ is a finite set of typing declarations {x 1 : τ 1,...,x n : τ n } where x 1,...,x n are pairwise distinct. Typing judgments: Γ M : τ Read: the statement M : τ is derivable (in a type system) from the typing context Γ Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
12 λ Cu : Curry s type system The typing judgment Γ λcu M : τ is derivable in λ Cu if Γ λcu M : τ can be produced by the following rules: Γ λcu x : τ axiom,if (x : τ) Γ Γ,x : τ 1 λcu M : τ 2 Γ λcu (λx.m) : τ 1 τ 2 intro Γ λcu M : τ τ Γ λcu N : τ Γ λcu (M N) : τ elim Here Γ,x : τ 1 means Γ {x : τ 1 }. Note that in intro, x has to be fresh w.r.t. Γ (ie, x not in Γ) Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
13 Example of a typing deduction (or typing derivation) For simplicity, we omit the subscript λ Cu in λcu : x : α β,y : α x : α β x : α β,y : α y : α x : α β,y : α (x y) : β x : α β (λy.x y) : α β (λxλy.x y) : (α β) α β Exercises: prove the following typing judgments. (λx.x) : α α. (λx.x) : (β β) (β β). λxλyλz. x z (y z) : (α β γ) (α β) α γ. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
14 Example: an untypable term The term λx.x x is untypeable in λ Cu, i.e., for every type τ, there does not exist a derivation of (λx.x x) : τ. Exercise: Prove this. (We ll see a more systematic way to prove this in Lecture 3). Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
15 Church s type system λ Ch : annotated terms In λ Ch, types are incorporated explicitly into terms. The set of T-annotated terms Λ T is defined inductively as follows: x ΛT for every term variable x. If M,N ΛT then (M N) Λ T. If M ΛT and τ T then (λx : τ.m) Λ T. The notions of type declarations, typing statement, typing contexts and typing judgments are as in Curry s system. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
16 Reductions in λ Ch -terms Strictly speaking, terms in Λ T are not λ-terms, so one needs to define its equality theory, reductions, etc. The notions of β-reduction β, multi-step reduction β are defined as in untyped λ-calculus. (λx : τ.m) N β M[x := N]. Church-Rosser property also holds for T-annotated terms. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
17 Inference rules of λ Ch Γ λch x : τ axiom, if (x : τ) Γ Γ,x : τ 1 λch M : τ 2 Γ λch (λx : τ 1.M) : (τ 1 τ 2 ) intro Note that x has to be fresh w.r.t. Γ. Γ λch M : τ τ Γ λch N : τ Γ λch (M N) : τ elim Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
18 Example The following are derivable in λ Ch : (λx : τ.x) : (τ τ). (λx : σλy : τ.x) : (σ τ σ). x : σ (λy : τ.x) : (τ σ). Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
19 Church s system: uniqueness of types Theorem Suppose Γ λch M : τ and Γ M : τ. Then τ τ. Proof. By induction on the structure of M. Exercise: complete the proof. Type uniqueness does not hold for Curry s system, but we ll see that every typeable term in λ Cu has a unique principal type. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
20 Relating the Curry and Church systems Church s system can be simulated by Curry s system by forgetting the type annotations. Let Λ denote the set of unannotated λ-terms. Define a forgetful map from Λ T to Λ as follows: x x M N M N λx : τ.m λx. M Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
21 Relating the Curry and Church systems Theorem (Church to Curry) Let M Λ T. Then Γ λch M : τ implies Γ λcu M : τ. Proof: (exercise) Theorem (Curry to Church) Let M Λ. Then Γ λcu M : τ implies that there exists M Λ T such that Γ λch M : τ and M M. Proof: (exercise) Corollary A type τ T is inhabited in λ Ch if and only if it is inhabited in λ Cu. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
22 On-line type checking and inferencing - Haskell Haskell: a functional language with types based on simple type theory ghci on the departmental systems To download it yourself, can use Hugs (adequate and much smaller) λxλyλz. x z (y z) is entered as \x -> \y -> \z -> x z (y z) to get the type of this, > :t \x -> \y -> \z -> x z (y z) Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
23 Summary We have covered two styles of type systems for λ-calculus. Church s system annotates the λ-terms with types explicitly. Curry s system leaves types implicit. Both are essentially the same. For next lecture, we shall be studying mainly properties of Curry s system. Jeremy Dawson (ANU) COMP4630,Lecture 1 Semester 2, / 23
Simply Typed λ-calculus
Simply Typed λ-calculus Lecture 2 Jeremy Dawson The Australian National University Semester 2, 2017 Jeremy Dawson (ANU) COMP4630,Lecture 2 Semester 2, 2017 1 / 19 Outline Properties of Curry type system:
More informationCOMP6463: λ-calculus
COMP6463: λ-calculus 1. Basics Michael Norrish Michael.Norrish@nicta.com.au Canberra Research Lab., NICTA Semester 2, 2015 Outline Introduction Lambda Calculus Terms Alpha Equivalence Substitution Dynamics
More informationHenk 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 informationConstructive 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 information3.2 Reduction 29. Truth. The constructor just forms the unit element,. Since there is no destructor, there is no reduction rule.
32 Reduction 29 32 Reduction In the preceding section, we have introduced the assignment of proof terms to natural deductions If proofs are programs then we need to explain how proofs are to be executed,
More informationNICTA Advanced Course. Theorem Proving Principles, Techniques, Applications
NICTA Advanced Course Theorem Proving Principles, Techniques, Applications λ 1 CONTENT Intro & motivation, getting started with Isabelle Foundations & Principles Lambda Calculus Higher Order Logic, natural
More informationHarvard School of Engineering and Applied Sciences CS 152: Programming Languages
Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Lecture 17 Tuesday, April 2, 2013 1 There is a strong connection between types in programming languages and propositions
More informationConsequence Relations and Natural Deduction
Consequence Relations and Natural Deduction Joshua D. Guttman Worcester Polytechnic Institute September 9, 2010 Contents 1 Consequence Relations 1 2 A Derivation System for Natural Deduction 3 3 Derivations
More informationAlonzo 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 informationCategories, 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 informationLambda Calculus. Week 12 The canonical term models for λ. Henk Barendregt, Freek Wiedijk assisted by Andrew Polonsky
Lambda Calculus Week 12 The canonical term models for λ Henk Barendregt, Freek Wiedijk assisted by Andrew Polonsky Two version of λ Curry version (type assignment). Λ Γ (A) {M Λ Γ M : A} with (axiom) Γ
More informationLambda 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 informationRealisability methods of proof and semantics with application to expansion
Realisability methods of proof and semantics with application to expansion First Year Examination Supervisors : Professor Fairouz Kamareddine and Doctor Joe B. Wells Student : Vincent Rahli ULTRA group,
More informationCompleteness Theorems and λ-calculus
Thierry Coquand Apr. 23, 2005 Content of the talk We explain how to discover some variants of Hindley s completeness theorem (1983) via analysing proof theory of impredicative systems We present some remarks
More informationLazy 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 informationLambda-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 informationConsequence Relations and Natural Deduction
Consequence Relations and Natural Deduction Joshua D Guttman Worcester Polytechnic Institute September 16, 2010 Contents 1 Consequence Relations 1 2 A Derivation System for Natural Deduction 3 3 Derivations
More informationNotes on Logical Frameworks
Notes on Logical Frameworks Robert Harper IAS November 29, 2012 1 Introduction This is a brief summary of a lecture on logical frameworks given at the IAS on November 26, 2012. See the references for technical
More informationλ 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 informationLecture Notes on Combinatory Modal Logic
Lecture Notes on Combinatory Modal Logic 15-816: Modal Logic Frank Pfenning Lecture 9 February 16, 2010 1 Introduction The connection between proofs and program so far has been through a proof term assignment
More informationA 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 informationIntroduction to Type Theory
Introduction to Type Theory Herman Geuvers Radboud University Nijmegen & Technical University Eindhoven, The Netherlands July 8, 2008 1 Overview These notes comprise the lecture Introduction to Type Theory
More informationTyped Arithmetic Expressions
Typed Arithmetic Expressions CS 550 Programming Languages Jeremy Johnson TAPL Chapters 3 and 5 1 Types and Safety Evaluation rules provide operational semantics for programming languages. The rules provide
More information3.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 informationNatural deduction for propositional logic via truth tables
Natural deduction for propositional logic via truth tables Herman Geuvers Nijmegen, NL (Joint work with Tonny Hurkens) Bengt Nordström honorary workshop Marstrand, Sweden April 2016 H. Geuvers - April
More informationOrigin 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 informationIntroduction 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 informationAdvanced Lambda Calculus Lecture 5
Advanced Lambda Calculus Lecture 5 The fathers Alonzo Church (1903-1995) as mathematics student at Princeton University (1922 or 1924) Haskell B. Curry (1900-1982) as BA in mathematics at Harvard (1920)
More informationCSCI 490 problem set 6
CSCI 490 problem set 6 Due Tuesday, March 1 Revision 1: compiled Tuesday 23 rd February, 2016 at 21:21 Rubric For full credit, your solutions should demonstrate a proficient understanding of the following
More informationIf-then-else and other constructive and classical connectives (Or: How to derive natural deduction rules from truth tables)
If-then-else and other constructive and classical connectives (Or: How to derive natural deduction rules from truth tables) Herman Geuvers Nijmegen, NL (Joint work with Tonny Hurkens) Types for Proofs
More information185.A09 Advanced Mathematical Logic
185.A09 Advanced Mathematical Logic www.volny.cz/behounek/logic/teaching/mathlog13 Libor Běhounek, behounek@cs.cas.cz Lecture #1, October 15, 2013 Organizational matters Study materials will be posted
More informationTERMS FOR NATURAL DEDUCTION, SEQUENT CALCULUS AND CUT ELIMINATION IN CLASSICAL LOGIC
TERMS FOR NATURAL DEDUCTION, SEQUENT CALCULUS AND CUT ELIMINATION IN CLASSICAL LOGIC SILVIA GHILEZAN Faculty of Engineering, University of Novi Sad, Novi Sad, Serbia e-mail address: gsilvia@uns.ns.ac.yu
More informationType Theory and Constructive Mathematics. Type Theory and Constructive Mathematics Thierry Coquand. University of Gothenburg
Type Theory and Constructive Mathematics Type Theory and Constructive Mathematics Thierry Coquand University of Gothenburg Content An introduction to Voevodsky s Univalent Foundations of Mathematics The
More informationCMSC 336: Type Systems for Programming Languages Lecture 10: Polymorphism Acar & Ahmed 19 February 2008
CMSC 336: Type Systems for Programming Languages Lecture 10: Polymorphism Acar & Ahmed 19 February 2008 Contents 1 Polymorphism 1 2 Polymorphic λ-calculus: Syntax 1 3 Static Semantics 2 4 Dynamic Semantics
More informationThe 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 informationSequent Combinators: A Hilbert System for the Lambda Calculus
Sequent Combinators: A Hilbert System for the Lambda Calculus Healfdene Goguen Department of Computer Science, University of Edinburgh The King s Buildings, Edinburgh, EH9 3JZ, United Kingdom Fax: (+44)
More informationModels 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 informationA BRIEF INTRODUCTION TO TYPED PREDICATE LOGIC
A BRIEF INTRODUCTION TO TYPED PREDICATE LOGIC Raymond Turner December 6, 2010 Abstract Typed Predicate Logic 1 was developed to o er a unifying framework for many of the current logical systems, and especially
More informationTraditional 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 informationc 2002 Published by Elsevier Science B. V. Open access under CC BY-NC-ND license.
URL: http://www.elsevier.nl/locate/entcs/volume67.html 17 pages Studying provability in implicational intuitionistic logic: the formula tree approach Sabine roda & Lu s Damas fsbb,luisg@ncc.up.pt DCC-FC
More informationLogic and Probability Lecture 3: Beyond Boolean Logic
Logic and Probability Lecture 3: Beyond Boolean Logic Wesley Holliday & Thomas Icard UC Berkeley & Stanford August 13, 2014 ESSLLI, Tübingen Wesley Holliday & Thomas Icard: Logic and Probability, Lecture
More informationLecture 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 informationSubtyping and Intersection Types Revisited
Subtyping and Intersection Types Revisited Frank Pfenning Carnegie Mellon University International Conference on Functional Programming (ICFP 07) Freiburg, Germany, October 1-3, 2007 Joint work with Rowan
More informationLambda Calculus with Types. Henk Barendregt ICIS Radboud University Nijmegen The Netherlands
Lambda Calculus with Types Henk Barendregt ICIS Radboud University Nijmegen The Netherlands New book Cambridge University Press / ASL Perspectives in Logic, 2011 Lambda Calculus with Types (698 pp) Authors:
More informationIntroduction to lambda calculus Part 6
Introduction to lambda calculus Part 6 Antti-Juhani Kaijanaho 2017-02-16 1 Untyped lambda calculus 2 Typed lambda calculi 2.1 Dynamically typed lambda calculus with integers 2.2 A model of Lisp 2.3 Simply
More informationThe Calculus of Inductive Constructions
The Calculus of Inductive Constructions Hugo Herbelin 10th Oregon Programming Languages Summer School Eugene, Oregon, June 16-July 1, 2011 1 Outline - A bit of history, leading to the Calculus of Inductive
More informationBeyond First-Order Logic
Beyond First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) Beyond First-Order Logic MFES 2008/09 1 / 37 FOL
More informationOn a computational interpretation of sequent calculus for modal logic S4
On a computational interpretation of sequent calculus for modal logic S4 Yosuke Fukuda Graduate School of Informatics, Kyoto University Second Workshop on Mathematical Logic and Its Applications March
More informationLectures on The Lambda Calculus (I)
Lectures on The Lambda Calculus (I) Masahiko Sato Graduate School of Informatics, Kyoto University Autumn school Proof and Computation Fischbachau, Germany October 4, 2016 Overview In these lectures, I
More informationType Systems Winter Semester 2006
Type Systems Winter Semester 2006 Week 7 November 29 November 29, 2006 - version 1.0 Plan PREVIOUSLY: 1. type safety as progress and preservation 2. typed arithmetic expressions 3. simply typed lambda
More informationAsterix 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 informationCS 4110 Programming Languages & Logics. Lecture 16 Programming in the λ-calculus
CS 4110 Programming Languages & Logics Lecture 16 Programming in the λ-calculus 30 September 2016 Review: Church Booleans 2 We can encode TRUE, FALSE, and IF, as: TRUE λx. λy. x FALSE λx. λy. y IF λb.
More informationChurch and Curry: Combining Intrinsic and Extrinsic Typing
Church and Curry: Combining Intrinsic and Extrinsic Typing Frank Pfenning Dedicated to Peter Andrews on the occasion of his retirement Department of Computer Science Carnegie Mellon University April 5,
More informationClassical 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 informationIntersection Synchronous Logic
UnB 2007 p. 1/2 Intersection Synchronous Logic Elaine Gouvêa Pimentel Simona Ronchi della Rocca Luca Roversi UFMG/UNITO, 2007 UnB 2007 p. 2/2 Outline Motivation UnB 2007 p. 2/2 Outline Motivation Intuitionistic
More informationExample. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s
Summary Summary Last Lecture Computational Logic Π 1 Γ, x : σ M : τ Γ λxm : σ τ Γ (λxm)n : τ Π 2 Γ N : τ = Π 1 [x\π 2 ] Γ M[x := N] Georg Moser Institute of Computer Science @ UIBK Winter 2012 the proof
More informationNameless Representation of Terms
Nameless Representation of Terms CIS500: Software Foundations Nameless Representation of Terms p.1/29 First, some review... A Proof on λ-terms Nameless Representation of Terms p.2/29 Proof (1) We want
More informationKomponenten- und Service-orientierte Softwarekonstruktion
Komponenten- und Service-orientierte Softwarekonstruktion Vorlesung 5: Combinatory Logic Synthesis Jakob Rehof LS XIV Software Engineering TU Dortmund Sommersemester 2015 SS 2015 J. Rehof (TU Dortmund)
More informationAdvanced 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 informationIntroduction to Type Theory
Introduction to Type Theory Erik Barendsen version November 2005 selected from: Basic Course Type Theory Dutch Graduate School in Logic, June 1996 lecturers: Erik Barendsen (KUN/UU), Herman Geuvers (TUE)
More informationTyped Lambda Calculi. Nikos Tzeveλekos Queen Mary, University of London 1 / 23
Typed Lambda Calculi Nikos Tzeveλekos Queen Mary, University of London 1 / 23 What is the Lambda Calculus A minimal formalism expressing computation with functionals s ::= x λx.s ss All you need is lambda.
More informationCS522 - Programming Language Semantics
1 CS522 - Programming Language Semantics Simply Typed Lambda Calculus Grigore Roşu Department of Computer Science University of Illinois at Urbana-Champaign 2 We now discuss a non-trivial extension of
More informationEquivalence 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 informationThe Safe Lambda Calculus
The Safe Lambda Calculus William Blum Linacre College Submitted in partial fulfilment of the requirements for the degree of Doctor of Philosophy Oxford University Computing Laboratory Michaelmas 2008 Abstract
More informationOrigin 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 informationStrong Normalization with Singleton Types
Electronic Notes in Theoretical Computer Science 70 No 1 (2002) URL: http://wwwelseviernl/locate/entcs/volume70html 19 pages Strong Normalization with Singleton Types Judicaël Courant 1 LRI, CNRS UMR 8623
More informationCall-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 informationThe Curry-Howard Isomorphism
The Curry-Howard Isomorphism Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) The Curry-Howard Isomorphism MFES 2008/09
More informationCommand = Value Context. Hans-Dieter Hiep. 15th of June, /17
1/17 Command = Value Context Hans-Dieter Hiep 15th of June, 2018 2/17 Example Consider a total functional programming language. swap :: A B B A swap (a, b) = (b, a) paws :: A B B A paws a = a paws b =
More informationPropositional natural deduction
Propositional natural deduction COMP2600 / COMP6260 Dirk Pattinson Australian National University Semester 2, 2016 Major proof techniques 1 / 25 Three major styles of proof in logic and mathematics Model
More informationKleene realizability and negative translations
Q E I U G I C Kleene realizability and negative translations Alexandre Miquel O P. D E. L Ō A U D E L A R April 21th, IMERL Plan 1 Kleene realizability 2 Gödel-Gentzen negative translation 3 Lafont-Reus-Streicher
More informationRules and derivations in an elementary logic course arxiv: v1 [cs.lo] 7 Jan 2016
Rules and derivations in an elementary logic course arxiv:160101483v1 [cslo] 7 Jan 2016 Gilles Dowek Inria, 23 avenue d Italie, CS 81321, 75214 Paris Cedex 13, France gillesdowek@inriafr When teaching
More informationClassical Propositional Logic
The Language of A Henkin-style Proof for Natural Deduction January 16, 2013 The Language of A Henkin-style Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,
More informationA Common Notation System for the Lambda-Calculus and Combinatory Logic
A Common Notation System for the Lambda-Calculus and Combinatory Logic Masahiko Sato Graduate School of Informatics, Kyoto University Joint work with Takafumi Sakurai and Helmut Schwichtenberg IFIP WG
More informationTyping λ-terms. Types. Typed λ-terms. Base Types. The Typing Relation. Advanced Formal Methods. Lecture 3: Simply Typed Lambda calculus
Course 2D1453, 200607 Advanced Formal Methods Lecture 3: Simply Typed Lambda calculus Mads Dam KTH/CSC Some material from B. Pierce: TAPL + some from G. Klein, NICTA Typing λterms The uptyped λcalculus
More informationOn Modal Logics of Partial Recursive Functions
arxiv:cs/0407031v1 [cs.lo] 12 Jul 2004 On Modal Logics of Partial Recursive Functions Pavel Naumov Computer Science Pennsylvania State University Middletown, PA 17057 naumov@psu.edu June 14, 2018 Abstract
More informationParallel Reduction in Type Free Lambda-mu- Calculus
九州大学学術情報リポジトリ Kyushu University Institutional Repository Parallel Reduction in Type Free Lambda-mu- Calculus Baba, Kensuke Graduate School of Information Science and Electrical Engineering, Kyushu University
More informationCandidates for Substitution
Candidates for Substitution Healfdene Goguen hhg@dcs.ed.ac.uk James McKinna jhm@dcs.ed.ac.uk Laboratory for Foundations of Computer Science Department of Computer Science The King s Buildings, University
More informationAN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC
Bulletin of the Section of Logic Volume 45/1 (2016), pp 33 51 http://dxdoiorg/1018778/0138-068045103 Mirjana Ilić 1 AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC Abstract
More informationCOSE212: Programming Languages. Lecture 1 Inductive Definitions (1)
COSE212: Programming Languages Lecture 1 Inductive Definitions (1) Hakjoo Oh 2017 Fall Hakjoo Oh COSE212 2017 Fall, Lecture 1 September 4, 2017 1 / 9 Inductive Definitions Inductive definition (induction)
More informationType Inference Algorithms
Type Inference Algorithms February 19, 2009 S. Saeidi Mobarakeh ( 0559938 ) Abstract In this paper we are going to describe the Wand s type inference algorithm and we ll try to extend this algorithm with
More informationOn a Logical Foundation for Explicit Substitutions
On a Logical Foundation for Explicit Substitutions Frank Pfenning Carnegie Mellon University Joint Invited Talk Typed Lambda Calculi and Applications (TLCA 07) Rewriting Techniques and Applications (RTA
More informationThe Lambda Calculus. Stephen A. Edwards. Fall Columbia University
The Lambda Calculus Stephen A. Edwards Columbia University Fall 2014 Lambda Expressions Function application written in prefix form. Add four and five is (+ 4 5) Evaluation: select a redex and evaluate
More informationRewriting, 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 informationLecture Notes on Subject Reduction and Normal Forms
Lecture Notes on Subject Reduction and Normal Forms 15-814: Types and Programming Languages Frank Pfenning Lecture 4 September 13, 2018 1 Introduction In the last lecture we proved some key aspect of a
More informationA call-by-name lambda-calculus machine
A call-by-name lambda-calculus machine Jean-Louis Krivine University Paris VII, C.N.R.S. 2 place Jussieu 75251 Paris cedex 05 (krivine@pps.jussieu.fr) Introduction We present, in this paper, a particularly
More informationThe λ-calculus and Curry s Paradox Drew McDermott , revised
The λ-calculus and Curry s Paradox Drew McDermott drew.mcdermott@yale.edu 2015-09-23, revised 2015-10-24 The λ-calculus was invented by Alonzo Church, building on earlier work by Gottlob Frege and Moses
More informationλ-calculus and types
λ-calculus and types Lecture notes Midland Graduate School / APPSEM Spring School 2004 Thorsten Altenkirch School of Computer Science and Information Technology, Nottingham University txa@cs.nott.ac.uk
More informationCOSE212: Programming Languages. Lecture 1 Inductive Definitions (1)
COSE212: Programming Languages Lecture 1 Inductive Definitions (1) Hakjoo Oh 2018 Fall Hakjoo Oh COSE212 2018 Fall, Lecture 1 September 5, 2018 1 / 10 Inductive Definitions Inductive definition (induction)
More informationDependent 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 informationEvaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic
Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic Mauro Ferrari 1, Camillo Fiorentini 2 1 DiSTA, Univ. degli Studi dell Insubria, Varese, Italy 2 DI, Univ.
More informationApplied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw
Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018
More informationHypersequent Calculi for some Intermediate Logics with Bounded Kripke Models
Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models Agata Ciabattoni Mauro Ferrari Abstract In this paper we define cut-free hypersequent calculi for some intermediate logics semantically
More informationGerwin Klein, June Andronick, Ramana Kumar S2/2016
COMP4161: Advanced Topics in Software Verification {} Gerwin Klein, June Andronick, Ramana Kumar S2/2016 data61.csiro.au Content Intro & motivation, getting started [1] Foundations & Principles Lambda
More information1. each λ-variable is a λρ-term, called atom or atomic term, 2. if M and N are λρ-term then (MN) is a λρ-term called application,
Yuichi Komori Arato Cho λρ-calculus abstract. In [K02], one of the authors introduced the system λρ-calculus and stated without proof that the strong normalization theorem hold. We have discovered an elegant
More informationIntroduction to lambda calculus Part 2
Introduction to lambda calculus Part 2 Antti-Juhani Kaijanaho 2017-01-24... 1 Untyped lambda calculus 1.1 Syntax... x, y, z Var t, u Term t, u ::= x t u λx t... In this document, I will be using the following
More informationReasoning with Higher-Order Abstract Syntax and Contexts: A Comparison
1 Reasoning with Higher-Order Abstract Syntax and Contexts: A Comparison Amy Felty University of Ottawa July 13, 2010 Joint work with Brigitte Pientka, McGill University 2 Comparing Systems We focus on
More informationParallel Reduction in Type Free λµ-calculus
Electronic Notes in Theoretical Computer Science 42 (2001) URL: http://www.elsevier.nl/locate/entcs/volume42.html 15 pages Parallel Reduction in Type Free λµ-calculus Kensuke Baba 1 Graduate School of
More informationForcing-based cut-elimination for Gentzen-style intuitionistic sequent calculus
Forcing-based cut-elimination for Gentzen-style intuitionistic sequent calculus Hugo Herbelin 1 and Gyesik Lee 2 1 INRIA & PPS, Paris Université 7 Paris, France Hugo.Herbelin@inria.fr 2 ROSAEC center,
More informationType-theory of acyclic recursion and its calculi
Type-theory of acyclic recursion and its calculi Roussanka Loukanova Stockholm University, Sweden Second Workshop on Mathematical Logic and its Applications 5-9 March 2018, Kanazawa, Japan 1 / 29 Outline
More information