A Canonical 1 Local Representation of Binding. α -equivalence is identity. Randy Pollack. Masahiko Sato. LFCS, University of Edinburgh

Size: px
Start display at page:

Download "A Canonical 1 Local Representation of Binding. α -equivalence is identity. Randy Pollack. Masahiko Sato. LFCS, University of Edinburgh"

Transcription

1 A Canonical 1 Local Representation of Binding Randy Pollack LFCS, University of Edinburgh Masahiko Sato Graduate School of Informatics, Kyoto University Version of May 12, α -equivalence is identity

2 Isabelle theory files: Full paper (submitted): These are older than the work presented in this talk.

3 Outline Introduction: Local Representations Symbolic Expressions (sexpr) Syntax B-Algebras, Substitution and Equivariance Variable-Closed Sexprs A Canonical Representation Examples: β -reduction and typing

4 Introduction: Local Representations Outline Introduction: Local Representations Symbolic Expressions (sexpr) Syntax B-Algebras, Substitution and Equivariance Variable-Closed Sexprs A Canonical Representation Examples: β -reduction and typing

5 Introduction: Local Representations Local Representations Syntactically distinct classes for (locally) bound variables vs (globally bound) free parameters. The idea goes back to Frege, Gentzen and Prawitz. Different styles: Locally named: two species of names. McKinna/Pollack (1993) formalized Pure Type System metatheory. Not canonical representation. This talk: idea of Sato allows canonical representation. Locally nameless: names for parameters, de Bruijn indices for locally bound variables. Canonical representation. POPL 08 paper by Ademir, Chargueraud, Pierce, Pollack and Weirich.

6 Introduction: Local Representations Local Representations are Concrete Close to informal usage. Anything true can be proved. Relatively light infrastructure (compared to Twelf or nominal Isabelle). Can be used in intensional logics (e.g. Coq). Some technologies make local representations convenient: McKinna/Pollack style strengthened induction and inversion. Urban and Pollack, WMM 07, Strong Induction Principles in the Locally Nameless Representation of Binders. POPL 08 paper by Ademir, Chargueraud, Pierce, Pollack and Weirich.

7 Symbolic Expressions (sexpr) Outline Introduction: Local Representations Symbolic Expressions (sexpr) Syntax B-Algebras, Substitution and Equivariance Variable-Closed Sexprs A Canonical Representation Examples: β -reduction and typing

8 Symbolic Expressions (sexpr) Syntax Syntax Names: Countable set V of atoms used for local variables: x, y, z. Countable set X of atoms, used for global parameters: X, Y, Z. Only relation needed on V, X is decidable equality. Nominal Isabelle atom types are convenient. Symbolic Expressions ( S[X] ): The syntax of pure λ -terms, ranged over by M, N, P, Q : M ::= x X P Q [x]m Usual induction principles for this datatype. Name-carrying syntax. In general, may be other classes of variables, parameters and expressions e.g. types and terms in System F.

9 Symbolic Expressions (sexpr) Syntax Occurrences of (Global) Parameters Define X A means X does not occur syntactically in A. We use X A polymorphically for... X from any type of parameters A from types of structures: terms, contexts, judgements,... Each instance of is easily defined by structural recursion. In nominal Isabelle, our corresponds to nominal freshness (also written ). Nominal Isabelle provides polymorphic over classes of atoms and finitely supported structures for free.

10 Symbolic Expressions (sexpr) Syntax Occurrences of Local Variables (LV) Defined by structural recursion. Respects intended scoping of abstraction. LV(X) LV(x) LV(M N) LV([x]M) = {} = {x} = LV(M) LV(N) = LV(M) {x}

11 Symbolic Expressions (sexpr) B-Algebras, Substitution and Equivariance B-Algebras A B-algebra is a triple A, () : A A A, [ ] : V A A where A is a set containing V as a subset. A B-algebra homomorphism is a function h on B-algebras s.t.: 1. h(x) = x ( h fixes V ), 2. h(m N) = h(m) h(n), 3. h([x]m) = [x]h(m).

12 Symbolic Expressions (sexpr) B-Algebras, Substitution and Equivariance Free B-Algebras: Substitution Abstractly S[X] is a free B-algebra with free generating set X. S[X], () : S S S, [] : V S S Let B be a B-algebra; any ρ : X B can be uniquely extended to a B-algebra homomorphism [ρ] : S[X] B : 1. [ρ]x = ρ(x). 2. [ρ]x = x. 3. [ρ]m N = [ρ]m [ρ]n. 4. [ρ][x]m = [x][ρ]m. In particular, a finite map ρ : X S is a substitution. [ρ] : S S is an endomorphism

13 Symbolic Expressions (sexpr) B-Algebras, Substitution and Equivariance Substitution, Concretely If ρ : X i M i (and fixes the rest) then [ρ] is concretely defined by structural recursion: [M i /X i ]x = x [M i /X i ]Y = if X i = Y then M i else Y [M i /X i ]N 1 N 2 = ([M i /X i ]N 1 ) [M i /X i ]N 2 [M i /X i ]([x]n) = [x][m i /X i ]N Deterministic: no choosing arbitrary names. Thus has natural properties; e.g. [X/X]M = M. X M [P/X]M = M. Does not prevent capture, e.g. [x/x][x]x = [x]x. Will only be use in safe ways.

14 Symbolic Expressions (sexpr) B-Algebras, Substitution and Equivariance Equivariance G X group of finite permutations of X (with composition). For π G X, [π] : S S is a B-algebra automorphism. G X acts on B-algebra S[X] by group action [π]m. [πσ]m = [π][σ]m, [ ]M = M. Suppose that G X acts on two sets U, V. f : U V is equivariant if π u. f ([π]u) = [π]f (u). U or V might be a product (e.g. multi-argument f ). U or V might have trivial G X action (e.g. V or B, truth values). If R : U B is an equivariant relation π u. R([π]u) = [π]r(u) = R(u) then the relation is preserved by permutations of parameters. Can permute parameters in arguments about equivariant relations.

15 Symbolic Expressions (sexpr) B-Algebras, Substitution and Equivariance Not Substitution: a purely technical operation Used to fill a hole (free variable) created by going under a binder. Defined by structural recursion: [M/y]x = if y = x then M else x [M/y]X = X [M/y]([x]N) = [x](if y = x then N else [M/y]N) [M/y]N 1 N 2 = ([M/y]N 1 ) [M/y]N 2 Not a B-algebra homomorophism. E.g. doesn t fix V. Does not prevent capture, e.g. [x/y][x]y = [x]x.

16 Outline Introduction: Local Representations Symbolic Expressions (sexpr) Syntax B-Algebras, Substitution and Equivariance Variable-Closed Sexprs A Canonical Representation Examples: β -reduction and typing

17 Overview: Symbolic expressions vs λ -terms Sexprs do not faithfully represent λ -terms for two reasons. 1. Local variables may appear unbound in sexprs. X is an sexpr representing a λ -term with one (particular) global variable. x is an sexpr, but is not intended to represent any λ -term. The fix: select the set of sexprs with no unbound variables (variable closed, vclosed ). Substitution is capture-avoiding on vclosed. 2. Different sexprs in vclosed may represent the same λ -term. [x]x and [y]y The fix: select a canonical subset of vclosed.

18 Overview: Symbolic expressions vs λ -terms Sexprs do not faithfully represent λ -terms for two reasons. 1. Local variables may appear unbound in sexprs. X is an sexpr representing a λ -term with one (particular) global variable. x is an sexpr, but is not intended to represent any λ -term. The fix: select the set of sexprs with no unbound variables (variable closed, vclosed ). Substitution is capture-avoiding on vclosed. 2. Different sexprs in vclosed may represent the same λ -term. [x]x and [y]y The fix: select a canonical subset of vclosed.

19 Overview: Symbolic expressions vs λ -terms Sexprs do not faithfully represent λ -terms for two reasons. 1. Local variables may appear unbound in sexprs. X is an sexpr representing a λ -term with one (particular) global variable. x is an sexpr, but is not intended to represent any λ -term. The fix: select the set of sexprs with no unbound variables (variable closed, vclosed ). Substitution is capture-avoiding on vclosed. 2. Different sexprs in vclosed may represent the same λ -term. [x]x and [y]y The fix: select a canonical subset of vclosed.

20 Overview: Symbolic expressions vs λ -terms Sexprs do not faithfully represent λ -terms for two reasons. 1. Local variables may appear unbound in sexprs. X is an sexpr representing a λ -term with one (particular) global variable. x is an sexpr, but is not intended to represent any λ -term. The fix: select the set of sexprs with no unbound variables (variable closed, vclosed ). Substitution is capture-avoiding on vclosed. 2. Different sexprs in vclosed may represent the same λ -term. [x]x and [y]y The fix: select a canonical subset of vclosed.

21 Variable-Closed Sexprs Variable-Closed Sexprs A predicate meaning no free variables. vclosed X vclosed M vclosed N vclosed M N vclosed M vclosed [x][x/x]m Every parameter is vclosed and no variable is vclosed. Use vclosed induction instead of sexpr structural induction no case for unbound variables. Essential property: vclosed is closed under substitution: Trivial to prove. vclosed M vclosed N vclosed [M/X]N Remark: We could equivalently replace the last rule with vclosed [X/x]M vclosed [x]m

22 Variable-Closed Sexprs Variable-Closed Sexprs(2) Think of vclosed as a weak typing judgement. vclosed terms behave well for substitution, just as well-typed terms behave well for computation. vclosed M is provably equivalent to LV(M) = {}. Thus vclosed is intuitively correct. It is the induction principle for vclosed that we want. Remark: The vclosed representation has been used for a big formalisation of type theory [McKinna/Pollack, TLCA 93]. The technology of [McKinna/Pollack] is another story it is necessary for the present story too. Remember: vclosed representation not canonical.

23 A Canonical Representation A Canonical Representation Consider the vclosed rules: vclosed X vclosed M vclosed N vclosed M N vclosed M vclosed [x][x/x]m The variable x is not determined in the rule for abstraction. To define a canonical relation L, choose x deterministically: X : L M : L M N : L N : L M : L x = F X (M) [x][x/x]m : L where F : X S V is a height function. Still to do: specify F such that L is closed under substitution.

24 A Canonical Representation The Height Function Interpret V as N. H : X S N defined by structural recursion: H X (Y ) H X (x) H X (M N) H X ([x]m) = = 0 { 1 if X = Y 0 if X Y = max(h { X (M), H X (N)) = HX (M) if H X (M) = 0 or x = 0 or H X (M) > x x + 1 otherwise

25 A Canonical Representation Three Axioms About F : X S V (FE) Assume every F -like function is equivariant: (FP) F is preserved by substitution: X Y X Q F X (M) = F [π]x ([π]m). F X (M) = F X ([Q/Y ]M). (FF) F X (M) does not occur in binding position on any path from the root of M to any occurrence of X in M. F X (M) / E X (M) where E X (M) : X S (V set) is defined: E X (α) E X (M N) E X ([x]m) = {} if α is atomic = E{ X (M) E X (N) {} if X M = {x} E X (M) otherwise

26 A Canonical Representation Derived Properties L is equivariant: M : L [π]m : L Among equivariant functions F, (FP) and (FF) are independent properties. By simple examples. H satisfies all three axioms. Height lemma: F X (M) / LV(M) [Z/F X (M)][F X (M)/X]M = [Z/X]M. A common case is when X = Z

27 A Canonical Representation Equivalent Forms of L X : L M : L M N : L N : L M : L x = F X (M) [x][x/x]m : L ( ) ( ) can equivalently be written X M [X/x]M : L x = F X ([X/x]M) [x]m : L ( ) In ( ) X varies independently of M. Any sufficiently fresh X will do in the premises of ( ) so the following rule is also equivalent X. X M [X/x]M : L x = F X ([X/x]M) [x]m : L ( )

28 A Canonical Representation Strong Induction Principle for L As in [McKinna/Pollack, TLCA 93] and [Ayedemir et al., POPL 08], the following strong induction rule is admissible: (1) X. Φ(X) (2) M N. M : L Φ(M) N : L Φ(N) Φ(M N) (3) x M. ( X. X M x = F X ([X/x]M) [X/x]M : L Φ([X/x]M)) Φ([x]M) N. N : L Φ(N) This makes reasoning about L convenient. Nominal Isabelle can automatically infer a similar strong induction principle.

29 A Canonical Representation Some Properties of L Using the strong induction, can prove key theorem: L is closed by substitution M : L N : L [M/X]N : L There is a substitution preserving isomorphism between L and the nominal Isabelle representation of pure lambda terms. In extensional logics (HOL, NuPrl,... ) can make a type of L.

30 Examples: β -reduction and typing Example: β -reduction [x]p : L N : L ([x]p) N [N/x]P M 1 M 2 N : L M 1 N M 2 N (β) M : L N 1 N 2 M N 1 M N 2 M N x = F X (M) y = F X (N) [x][x/x]m [y][y/x]n Note change of bound names in rule (ξ) and side conditions on x and y. is well behaved, e.g. is equivariant. M N implies M : L and N : L. (ξ)

31 Examples: β -reduction and typing Example: Simple Type Assignment Let S, T range over simple types. A type context, Γ, is a set of pairs (X, T ) such that no two different pairs have the same first component. (X, T ) Γ Γ X : T Γ M : S T Γ (X, S) M : T Type assignment is equivariant. Γ M N : T Γ [x][x/x]m : S T x = F X (M) Γ M : S Γ M : T M : L. To prove weakening of we must derive a strengthened induction principle, as usual. Nominal Isabelle can do this automatically.

32 Examples: β -reduction and typing Conclusion We presented a canonical name-carrying representation of binding. Well formed terms are an inductively defined subset of a datatype. All definitions by structural recursion. More beautiful than [McKinna/Pollack, TLCA 93] ours is canonical. More beautiful than locally nameless [Ayedemir et al., POPL 08]... name carrying, no indexes. Light infrastructure. Formalisable in intensional constructive logic in a few days. Can use nominal Isabelle package for some free automation.

A Canonical 1 Locally Named Representation of Binding. α -equivalence is identity. Randy Pollack. Masahiko Sato. LFCS, University of Edinburgh

A Canonical 1 Locally Named Representation of Binding. α -equivalence is identity. Randy Pollack. Masahiko Sato. LFCS, University of Edinburgh A Canonical 1 Locally Named Representation of Binding Randy Pollack LFCS, University of Edinburgh Masahiko Sato Graduate School of Informatics, Kyoto University Version of September 3, 2009 1 α -equivalence

More information

Local Representations of Binding

Local Representations of Binding Local Representations of Binding Randy Pollack LFCS, University of Edinburgh Joint work with James McKinna, Christian Urban, Arthur Charguéraud, Brian Aydemir, Benjamin Pierce, Stephanie Weirich Version

More information

Editorial Manager(tm) for Journal of Automated Reasoning Manuscript Draft

Editorial Manager(tm) for Journal of Automated Reasoning Manuscript Draft Editorial Manager(tm) for Journal of Automated Reasoning Manuscript Draft Manuscript Number: Title: A Canonical Locally Named Representation of Binding Article Type: Special Issue TAASN Keywords: binding;

More information

Formal SOS-Proofs for the Lambda-Calculus

Formal SOS-Proofs for the Lambda-Calculus LSFA 8 Formal SOS-Proofs for the Lambda-Calculus Christian Urban 1 and Julien Narboux TU Munich, Germany University of Strasbourg, France Abstract We describe in this paper formalisations for the properties

More information

HOAS by example What is a Formal System? A Simply Typed Framework What Does it Mean? Canonical LF References HOAS. Randy Pollack

HOAS by example What is a Formal System? A Simply Typed Framework What Does it Mean? Canonical LF References HOAS. Randy Pollack HOAS Randy Pollack Version of November 2, 2011 Outline 1 HOAS by example 2 What is a Formal System? 3 A Simply Typed Framework 4 What Does it Mean? 5 Canonical LF Judgement Forms and Rules Hereditary Substitution

More information

Nominal Inversion Principles

Nominal Inversion Principles Nominal Inversion Principles Stefan Berghofer and Christian Urban Technische Universität München Institut für Informatik, Boltzmannstraße 3, 85748 Garching, Germany Abstract. When reasoning about inductively

More information

The Locally Nameless Representation

The Locally Nameless Representation Noname manuscript No. (will be inserted by the editor) The Locally Nameless Representation Arthur Charguéraud Received: date / Accepted: date Abstract This paper provides an introduction to the locally

More information

Lectures on The Lambda Calculus (I)

Lectures 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 information

A Recursion Combinator for Nominal Datatypes Implemented in Isabelle/HOL

A Recursion Combinator for Nominal Datatypes Implemented in Isabelle/HOL A Recursion Combinator for Nominal Datatypes Implemented in Isabelle/HOL Christian Urban and Stefan Berghofer Technische Universität München {urbanc,berghofe}@in.tum.de Abstract. The nominal datatype package

More information

Automated Reasoning Lecture 5: First-Order Logic

Automated Reasoning Lecture 5: First-Order Logic Automated Reasoning Lecture 5: First-Order Logic Jacques Fleuriot jdf@inf.ac.uk Recap Over the last three lectures, we have looked at: Propositional logic, semantics and proof systems Doing propositional

More information

The Curry-Howard Isomorphism

The 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 information

The Calculus of Inductive Constructions

The 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 information

02 The Axiomatic Method

02 The Axiomatic Method CAS 734 Winter 2005 02 The Axiomatic Method Instructor: W. M. Farmer Revised: 11 January 2005 1 What is Mathematics? The essence of mathematics is a process consisting of three intertwined activities:

More information

Propositional and Predicate Logic. jean/gbooks/logic.html

Propositional and Predicate Logic.   jean/gbooks/logic.html CMSC 630 February 10, 2009 1 Propositional and Predicate Logic Sources J. Gallier. Logic for Computer Science, John Wiley and Sons, Hoboken NJ, 1986. 2003 revised edition available on line at http://www.cis.upenn.edu/

More information

Formalising the π-calculus in Isabelle

Formalising the π-calculus in Isabelle Formalising the π-calculus in Isabelle Jesper Bengtson Department of Computer Systems University of Uppsala, Sweden 30th May 2006 Overview This talk will cover the following Motivation Why are we doing

More information

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January )

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January ) Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January 23 30 2017) John Lasseter Revised February 14, 2017 The following notes are a record of the class sessions we ve devoted to the

More information

Candidates for Substitution

Candidates 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 information

The Reflection Theorem

The Reflection Theorem The Reflection Theorem Formalizing Meta-Theoretic Reasoning Lawrence C. Paulson Computer Laboratory Lecture Overview Motivation for the Reflection Theorem Proving the Theorem in Isabelle Applying the Reflection

More information

Binding in Nominal Equational Logic

Binding in Nominal Equational Logic MFPS 2010 Binding in Nominal Equational Logic Ranald Clouston 1,2 Computer Laboratory, University of Cambridge, Cambridge CB3 0DF, United Kingdom Abstract Many formal systems, particularly in computer

More information

Type 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 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 information

Completeness Theorems and λ-calculus

Completeness 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 information

hal , version 1-21 Oct 2009

hal , version 1-21 Oct 2009 ON SKOLEMISING ZERMELO S SET THEORY ALEXANDRE MIQUEL Abstract. We give a Skolemised presentation of Zermelo s set theory (with notations for comprehension, powerset, etc.) and show that this presentation

More information

Propositional Logic: Syntax

Propositional Logic: Syntax Logic Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and programs) epistemic

More information

Reasoning with Higher-Order Abstract Syntax and Contexts: A Comparison

Reasoning 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 information

Type Systems as a Foundation for Reliable Computing

Type Systems as a Foundation for Reliable Computing Type Systems as a Foundation for Reliable Computing Robert Harper Carnegie Mellon University Summer School on Reliable Computing University of Oregon July, 2005 References These lectures are based on the

More information

Notation for Logical Operators:

Notation for Logical Operators: Notation for Logical Operators: always true always false... and...... or... if... then...... if-and-only-if... x:x p(x) x:x p(x) for all x of type X, p(x) there exists an x of type X, s.t. p(x) = is equal

More information

Gödel s Incompleteness Theorem. Overview. Computability and Logic

Gödel s Incompleteness Theorem. Overview. Computability and Logic Gödel s Incompleteness Theorem Overview Computability and Logic Recap Remember what we set out to do in this course: Trying to find a systematic method (algorithm, procedure) which we can use to decide,

More information

CS522 - Programming Language Semantics

CS522 - 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 information

Gödel s Incompleteness Theorem. Overview. Computability and Logic

Gödel s Incompleteness Theorem. Overview. Computability and Logic Gödel s Incompleteness Theorem Overview Computability and Logic Recap Remember what we set out to do in this course: Trying to find a systematic method (algorithm, procedure) which we can use to decide,

More information

The constructible universe

The constructible universe The constructible universe In this set of notes I want to sketch Gödel s proof that CH is consistent with the other axioms of set theory. Gödel s argument goes well beyond this result; his identification

More information

A Common Notation System for the Lambda-Calculus and Combinatory Logic

A 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 information

Mathematical Synthesis of Equational Deduction Systems. Marcelo Fiore. Computer Laboratory University of Cambridge

Mathematical Synthesis of Equational Deduction Systems. Marcelo Fiore. Computer Laboratory University of Cambridge Mathematical Synthesis of Equational Deduction Systems Marcelo Fiore Computer Laboratory University of Cambridge TLCA 2009 3.VII.2009 Context concrete theories meta-theories Context concrete theories meta-theories

More information

Predicate Logic. Xinyu Feng 09/26/2011. University of Science and Technology of China (USTC)

Predicate Logic. Xinyu Feng 09/26/2011. University of Science and Technology of China (USTC) University of Science and Technology of China (USTC) 09/26/2011 Overview Predicate logic over integer expressions: a language of logical assertions, for example x. x + 0 = x Why discuss predicate logic?

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

Tutorial on Axiomatic Set Theory. Javier R. Movellan

Tutorial on Axiomatic Set Theory. Javier R. Movellan Tutorial on Axiomatic Set Theory Javier R. Movellan Intuitively we think of sets as collections of elements. The crucial part of this intuitive concept is that we are willing to treat sets as entities

More information

Axiomatic Semantics. Lecture 9 CS 565 2/12/08

Axiomatic Semantics. Lecture 9 CS 565 2/12/08 Axiomatic Semantics Lecture 9 CS 565 2/12/08 Axiomatic Semantics Operational semantics describes the meaning of programs in terms of the execution steps taken by an abstract machine Denotational semantics

More information

Bootstrapping Mathematics

Bootstrapping Mathematics Bootstrapping Mathematics Masahiko Sato Graduate School of Informatics, Kyoto University Mathematical Logic: Development and Evolution into Various Sciences Kanazawa, Japan March 9, 2012 Contents What

More information

HORSes: format, termination and confluence

HORSes: format, termination and confluence HORSes: format, termination and confluence Jean-Pierre Jouannaud INRIA-LIAMA and singhua Software Chair Joint on-going work with Jianqi Li School of Software, singhua University Project CoqLF NList Cross-discipline

More information

Basic Algebraic Logic

Basic Algebraic Logic ELTE 2013. September Today Past 1 Universal Algebra 1 Algebra 2 Transforming Algebras... Past 1 Homomorphism 2 Subalgebras 3 Direct products 3 Varieties 1 Algebraic Model Theory 1 Term Algebras 2 Meanings

More information

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now

Peano Arithmetic. CSC 438F/2404F Notes (S. Cook) Fall, Goals Now CSC 438F/2404F Notes (S. Cook) Fall, 2008 Peano Arithmetic Goals Now 1) We will introduce a standard set of axioms for the language L A. The theory generated by these axioms is denoted PA and called Peano

More information

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)

More information

Omitting Types in Fuzzy Predicate Logics

Omitting Types in Fuzzy Predicate Logics University of Ostrava Institute for Research and Applications of Fuzzy Modeling Omitting Types in Fuzzy Predicate Logics Vilém Novák and Petra Murinová Research report No. 126 2008 Submitted/to appear:

More information

Completeness and Incompleteness in nominal Kleene algebra

Completeness and Incompleteness in nominal Kleene algebra 1/35 Completeness and Incompleteness in nominal Kleene algebra Dexter Kozen, Konstantinos Mamouras, Alexandra Silva Cornell University, University College London & HasLab INESC TEC September 28th, 2015

More information

Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction)

Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction) Overview Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction) Jeremy Avigad Department of Philosophy Carnegie Mellon University avigad@cmu.edu http://andrew.cmu.edu/

More information

Applied 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 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 information

An Introduction to Gödel s Theorems

An Introduction to Gödel s Theorems An Introduction to Gödel s Theorems In 1931, the young Kurt Gödel published his First Incompleteness Theorem, which tells us that, for any sufficiently rich theory of arithmetic, there are some arithmetical

More information

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction Jacques Fleuriot jdf@inf.ed.ac.uk Logic Puzzles 1. Tomorrow will be sunny or rainy. Tomorrow will not be sunny. What will the weather

More information

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism A. Avron 1, A. Ciabattoni 2, and A. Zamansky 1 1 Tel-Aviv University 2 Vienna University of Technology Abstract. We apply the semantic

More information

Consequence Relations and Natural Deduction

Consequence 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 information

TR : Possible World Semantics for First Order LP

TR : Possible World Semantics for First Order LP City University of New York (CUNY) CUNY Academic Works Computer Science Technical Reports Graduate Center 2011 TR-2011010: Possible World Semantics for First Order LP Melvin Fitting Follow this and additional

More information

Nominal Completion for Rewrite Systems with Binders

Nominal Completion for Rewrite Systems with Binders Nominal Completion for Rewrite Systems with Binders Maribel Fernández King s College London July 2012 Joint work with Albert Rubio Summary Motivations Nominal Rewriting Closed nominal rules Confluence

More information

Nominal Unification. Key words: Abstract Syntax, Alpha-Conversion, Binding Operations, Unification

Nominal Unification. Key words: Abstract Syntax, Alpha-Conversion, Binding Operations, Unification Nominal Unification Christian Urban a Andrew M. Pitts a Murdoch J. Gabbay b a University of Cambridge, Cambridge, UK b INRIA, Paris, France Abstract We present a generalisation of first-order unification

More information

Predicate Logic. x. x + 0 = x. Predicate logic over integer expressions: a language of logical assertions, for example. Why discuss predicate logic?

Predicate Logic. x. x + 0 = x. Predicate logic over integer expressions: a language of logical assertions, for example. Why discuss predicate logic? Predicate Logic Predicate logic over integer expressions: a language of logical assertions, for example x. x + 0 = x Why discuss predicate logic? It is an example of a simple language It has simple denotational

More information

Groups and higher groups in homotopy type theory

Groups and higher groups in homotopy type theory Groups and higher groups in homotopy type theory Ulrik Buchholtz TU Darmstadt Arbeitstagung Bern-München, December 14, 2017 1 Groups 2 Higher Groups 3 Nominal Types 4 Formalizing type theory 5 Conclusion

More information

Final Exam (100 points)

Final Exam (100 points) Final Exam (100 points) Honor Code: Each question is worth 10 points. There is one bonus question worth 5 points. In contrast to the homework assignments, you may not collaborate on this final exam. You

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

FORMALISING THE π-calculus USING NOMINAL LOGIC

FORMALISING THE π-calculus USING NOMINAL LOGIC Logical Methods in Computer Science Vol. 5 (2:16) 2009, pp. 1 36 www.lmcs-online.org Submitted Mar. 24, 2009 Published Jun. 30, 2009 FORMALISING THE π-calculus USING NOMINAL LOGIC JESPER BENGTSON AND JOACHIM

More information

Learning Goals of CS245 Logic and Computation

Learning Goals of CS245 Logic and Computation Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1 1 Propositional Logic Introduction

More information

TR : Binding Modalities

TR : Binding Modalities City University of New York (CUNY) CUNY Academic Works Computer Science Technical Reports Graduate Center 2012 TR-2012011: Binding Modalities Sergei N. Artemov Tatiana Yavorskaya (Sidon) Follow this and

More information

From Constructibility and Absoluteness to Computability and Domain Independence

From Constructibility and Absoluteness to Computability and Domain Independence From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main

More information

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19. Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015

More information

Math 144 Summer 2012 (UCR) Pro-Notes June 24, / 15

Math 144 Summer 2012 (UCR) Pro-Notes June 24, / 15 Before we start, I want to point out that these notes are not checked for typos. There are prbally many typeos in them and if you find any, please let me know as it s extremely difficult to find them all

More information

Complete Partial Orders, PCF, and Control

Complete Partial Orders, PCF, and Control Complete Partial Orders, PCF, and Control Andrew R. Plummer TIE Report Draft January 2010 Abstract We develop the theory of directed complete partial orders and complete partial orders. We review the syntax

More information

Logic: The Big Picture

Logic: The Big Picture Logic: The Big Picture A typical logic is described in terms of syntax: what are the legitimate formulas semantics: under what circumstances is a formula true proof theory/ axiomatization: rules for proving

More information

Logic. Propositional Logic: Syntax

Logic. Propositional Logic: Syntax Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

Classical First-Order Logic

Classical First-Order Logic Classical 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) First-Order Logic (Classical) MFES 2008/09

More information

Inductive Definitions with Inference Rules 1 / 27

Inductive Definitions with Inference Rules 1 / 27 Inductive Definitions with Inference Rules 1 / 27 Outline Introduction Specifying inductive definitions Inference rules in action Judgments, axioms, and rules Reasoning about inductive definitions Direct

More information

Axiomatic Semantics. Semantics of Programming Languages course. Joosep Rõõmusaare

Axiomatic Semantics. Semantics of Programming Languages course. Joosep Rõõmusaare Axiomatic Semantics Semantics of Programming Languages course Joosep Rõõmusaare 2014 Direct Proofs of Program Correctness Partial correctness properties are properties expressing that if a given program

More information

NICTA Advanced Course. Theorem Proving Principles, Techniques, Applications. Gerwin Klein Formal Methods

NICTA Advanced Course. Theorem Proving Principles, Techniques, Applications. Gerwin Klein Formal Methods NICTA Advanced Course Theorem Proving Principles, Techniques, Applications Gerwin Klein Formal Methods 1 ORGANISATORIALS When Mon 14:00 15:30 Wed 10:30 12:00 7 weeks ends Mon, 20.9.2004 Exceptions Mon

More information

A Formalised Proof of Craig s Interpolation Theorem in Nominal Isabelle

A Formalised Proof of Craig s Interpolation Theorem in Nominal Isabelle A Formalised Proof of Craig s Interpolation Theorem in Nominal Isabelle Overview We intend to: give a reminder of Craig s theorem, and the salient points of the proof introduce the proof assistant Isabelle,

More information

23.1 Gödel Numberings and Diagonalization

23.1 Gödel Numberings and Diagonalization Applied Logic Lecture 23: Unsolvable Problems in Logic CS 4860 Spring 2009 Tuesday, April 14, 2009 The fact that Peano Arithmetic is expressive enough to represent all computable functions means that some

More information

Mathematical Logic. Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. Chiara Ghidini. FBK-IRST, Trento, Italy

Mathematical Logic. Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. Chiara Ghidini. FBK-IRST, Trento, Italy Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. FBK-IRST, Trento, Italy Deciding logical consequence Problem Is there an algorithm to determine whether a formula

More information

Formal (natural) deduction in propositional logic

Formal (natural) deduction in propositional logic Formal (natural) deduction in propositional logic Lila Kari University of Waterloo Formal (natural) deduction in propositional logic CS245, Logic and Computation 1 / 67 I know what you re thinking about,

More information

Beyond First-Order Logic

Beyond 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 information

Binding Structures as an Abstract Data Type

Binding Structures as an Abstract Data Type Binding Structures as an Abstract Data Type Wilmer Ricciotti IRIT Institut de Recherche en Informatique de Toulouse Université de Toulouse Wilmer.Ricciotti@irit.fr Abstract. A long line of research has

More information

Short Introduction to Admissible Recursion Theory

Short Introduction to Admissible Recursion Theory Short Introduction to Admissible Recursion Theory Rachael Alvir November 2016 1 Axioms of KP and Admissible Sets An admissible set is a transitive set A satisfying the axioms of Kripke-Platek Set Theory

More information

arxiv: v3 [cs.pl] 15 May 2011

arxiv: v3 [cs.pl] 15 May 2011 A Step-indexed Semantic Model of Types for the Call-by-Name Lambda Calculus arxiv:1105.1985v3 [cs.pl] 15 May 2011 Abstract Step-indexed semantic models of types were proposed as an alternative to purely

More information

NOTES ON DIFFERENTIAL FORMS. PART 3: TENSORS

NOTES ON DIFFERENTIAL FORMS. PART 3: TENSORS NOTES ON DIFFERENTIAL FORMS. PART 3: TENSORS 1. What is a tensor? Let V be a finite-dimensional vector space. 1 It could be R n, it could be the tangent space to a manifold at a point, or it could just

More information

Introduction to dependent type theory. CIRM, May 30

Introduction to dependent type theory. CIRM, May 30 CIRM, May 30 Goals of this presentation Some history and motivations Notations used in type theory Main goal: the statement of main properties of equality type and the univalence axiom First talk P ropositions

More information

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P. First-Order Logic Syntax The alphabet of a first-order language is organised into the following categories. Logical connectives:,,,,, and. Auxiliary symbols:.,,, ( and ). Variables: we assume a countable

More information

Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic

Evaluation 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 information

Forcing-based cut-elimination for Gentzen-style intuitionistic sequent calculus

Forcing-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 information

Equational Reasoning in Algebraic Structures: a Complete Tactic

Equational Reasoning in Algebraic Structures: a Complete Tactic Equational Reasoning in Algebraic Structures: a Complete Tactic Luís Cruz-Filipe 1,2 and Freek Wiedijk 1 1 NIII, University of Nijmegen, Netherlands and 2 CLC, Lisbon, Portugal Abstract We present rational,

More information

Lecture 7. Logic. Section1: Statement Logic.

Lecture 7. Logic. Section1: Statement Logic. Ling 726: Mathematical Linguistics, Logic, Section : Statement Logic V. Borschev and B. Partee, October 5, 26 p. Lecture 7. Logic. Section: Statement Logic.. Statement Logic..... Goals..... Syntax of Statement

More information

Automated Synthesis of Tableau Calculi

Automated Synthesis of Tableau Calculi Automated Synthesis of Tableau Calculi Renate A. Schmidt 1 and Dmitry Tishkovsky 1 School of Computer Science, The University of Manchester Abstract This paper presents a method for synthesising sound

More information

Some Recent Logical Frameworks

Some Recent Logical Frameworks Some Recent Logical Frameworks Randy Pollack LFCS, University of Edinburgh Version of September 13, 2010 Outline Edinburgh Logical Framework (ELF) (LICS 1987) Reminder by Example Some Problems with ELF

More information

PHIL 50 INTRODUCTION TO LOGIC 1 FREE AND BOUND VARIABLES MARCELLO DI BELLO STANFORD UNIVERSITY DERIVATIONS IN PREDICATE LOGIC WEEK #8

PHIL 50 INTRODUCTION TO LOGIC 1 FREE AND BOUND VARIABLES MARCELLO DI BELLO STANFORD UNIVERSITY DERIVATIONS IN PREDICATE LOGIC WEEK #8 PHIL 50 INTRODUCTION TO LOGIC MARCELLO DI BELLO STANFORD UNIVERSITY DERIVATIONS IN PREDICATE LOGIC WEEK #8 1 FREE AND BOUND VARIABLES Before discussing the derivation rules for predicate logic, we should

More information

arxiv: v1 [math.lo] 7 Dec 2017

arxiv: v1 [math.lo] 7 Dec 2017 CANONICAL TRUTH MERLIN CARL AND PHILIPP SCHLICHT arxiv:1712.02566v1 [math.lo] 7 Dec 2017 Abstract. We introduce and study a notion of canonical set theoretical truth, which means truth in a transitive

More information

07 Practical Application of The Axiomatic Method

07 Practical Application of The Axiomatic Method CAS 701 Fall 2002 07 Practical Application of The Axiomatic Method Instructor: W. M. Farmer Revised: 28 November 2002 1 What is the Axiomatic Method? 1. A mathematical model is expressed as a set of axioms

More information

Handout: Proof of the completeness theorem

Handout: Proof of the completeness theorem MATH 457 Introduction to Mathematical Logic Spring 2016 Dr. Jason Rute Handout: Proof of the completeness theorem Gödel s Compactness Theorem 1930. For a set Γ of wffs and a wff ϕ, we have the following.

More information

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO

More information

Proof mining and positive-bounded logic

Proof mining and positive-bounded logic Institute of Mathematics of the Romanian Academy & University of Bucharest September 12, 2016 Colloquium Logicum Hamburg, Germany Proof mining Proof mining (introduced and developed by U. Kohlenbach) aims

More information

Homotopy Type Theory Lecture Notes

Homotopy Type Theory Lecture Notes 15-819 Homotopy Type Theory Lecture Notes Nathan Fulton October 9 and 11, 2013 1 Contents These notes summarize and extend two lectures from Bob Harper s Homotopy Type Theory course. The cumulative hierarchy

More information

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

Computational Logic. Recall of First-Order Logic. Damiano Zanardini Computational Logic Recall of First-Order Logic Damiano Zanardini UPM European Master in Computational Logic (EMCL) School of Computer Science Technical University of Madrid damiano@fi.upm.es Academic

More information

UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane Philosophy 142

UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane Philosophy 142 Plural Quantifiers UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane Philosophy 142 1 Expressive limitations of first-order logic First-order logic uses only quantifiers that bind variables in name

More information

- Introduction to propositional, predicate and higher order logics

- Introduction to propositional, predicate and higher order logics Lecture 1: Deductive Verification of Reactive Systems - Introduction to propositional, predicate and higher order logics - Deductive Invariance Proofs Cristina Seceleanu MRTC, MdH E-mail: cristina.seceleanu@mdh.se

More information

Mechanizing Metatheory in a Logical Framework

Mechanizing Metatheory in a Logical Framework Under consideration for publication in J. Functional Programming 1 Mechanizing Metatheory in a Logical Framework Robert Harper and Daniel R. Licata Carnegie Mellon University (e-mail: {rwh,drl}@cs.cmu.edu)

More information

Consequence Relations and Natural Deduction

Consequence 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 information