A Type Theory for Formalising Category Theory

Size: px
Start display at page:

Download "A Type Theory for Formalising Category Theory"

Transcription

1 A Type Theory for Formalising Category Theory Robin Adams 24 July 2012 Robin Adams Type Theory for Category Theory 24 July / 28

2 1 Introduction The Problem of Notation Category Theory in Five Minutes 2 The Type Theory Syntax 3 Conclusion Robin Adams Type Theory for Category Theory 24 July / 28

3 Notation is Important Euclid IX.36 If as many numbers as we please beginning from an unit be set out continuously in double proportion, until the sum of all becomes prime, and if the sum multiplied into the last make some number, the product will be perfect. Robin Adams Type Theory for Category Theory 24 July / 28

4 Notation is Important Euclid IX.36 If as many numbers as we please beginning from an unit be set out continuously in double proportion, until the sum of all becomes prime, and if the sum multiplied into the last make some number, the product will be perfect. If k = p is prime, then p2 k is perfect. Robin Adams Type Theory for Category Theory 24 July / 28

5 From a Category Theory Textbook (We have defined y : Nat(D(r, ), K) Kr.) The Yoneda map y [...] is natural in K and r. To state this fact formally, we must consider K as an object in the functor category Set D, regard both domain and codomain of the map y as functors of the pair K, r, and consider this pair as an object in the category Set D D. The codomain for y is then the evaluation functor E, which maps each pair K, r to the value Kr of the functor K at the object r; the domain is the functor N which maps the object K, r to the set Nat(D(r, ), K) of all natural transformations and which maps a pair of arrows F : K K, f : r r to Nat(D(f, ), F ). Robin Adams Type Theory for Category Theory 24 July / 28

6 In my Notation Let N = λk.λr.nat(λx.d(r, x), K) and E = λk.λr.kr. There is a natural isomorphism between N and E, namely λk.λr.λα.α r 1 r Robin Adams Type Theory for Category Theory 24 July / 28

7 In my Notation Let N = λk.λr.nat(λx.d(r, x), K) and E = λk.λr.kr. There is a natural isomorphism between N and E, namely λk.λr.λα.α r 1 r Problem: How can we guarantee that a lambda-expression of the appropriate type defines a functor or a natural transformation? Robin Adams Type Theory for Category Theory 24 July / 28

8 Categories A category A consists of: a class A of objects; given any two objects A, B, a set A[A, B] of arrows from A to B. We write f : A B iff f is an arrow from A to B; for any object A, an arrow 1 A : A A, the identity on A; given arrows f : A B, g : B C, an arrow g f : A C, the composite of g with f such that, for all f : A B, g : B C, h : C D, 1 B f = f f 1 A = f h (g f ) = (h g) f Robin Adams Type Theory for Category Theory 24 July / 28

9 Functors Given categories A, B, a functor F : A B consists of: for every object A on A, an object FA of B; for every arrow f : A A in A, an arrow Ff : FA FA such that F 1 A = 1 FA F (g f ) = Fg Ff Robin Adams Type Theory for Category Theory 24 July / 28

10 Natural Transformations Given functors F, G : A B, a natural transformation τ : F G consists of: such that for every object A of A, an arrow τ A : FA GA in B for every arrow f : A B in A, Gf τ A = τ B Ff Robin Adams Type Theory for Category Theory 24 July / 28

11 The Setup We have six syntactic categories: categories A, B, C,... objects A, B, C,..., X, Y, Z sets S, T,... elements a, b, c,..., x, y, z propositions φ, ψ,... proofs δ,..., p, q A context consists of declarations of the form X : A, x : S and p : φ. Robin Adams Type Theory for Category Theory 24 July / 28

12 The Setup We have six judgement forms: Γ A cat Γ A : A Γ S set Γ a : S Γ φ prop Γ δ : φ Robin Adams Type Theory for Category Theory 24 July / 28

13 Reduction We are going to introduce a reduction relation. We define convertibility as usual, and have the rules Γ A : A Γ B cat (A B) Γ A : B Γ a : S Γ T set (S T ) Γ a : T Γ δ : φ Γ ψ prop (φ ψ) Γ δ : ψ Robin Adams Type Theory for Category Theory 24 July / 28

14 Propositions Let there be propositions. Robin Adams Type Theory for Category Theory 24 July / 28

15 Propositions Let there be propositions. Let propositions have proofs. Robin Adams Type Theory for Category Theory 24 July / 28

16 Propositions Let there be propositions. Let propositions have proofs. There is no notion of equality between proofs. Robin Adams Type Theory for Category Theory 24 July / 28

17 Sets Let there be sets. Robin Adams Type Theory for Category Theory 24 July / 28

18 Sets Let there be sets. Let sets have elements. Robin Adams Type Theory for Category Theory 24 July / 28

19 Sets Let there be sets. Let sets have elements. Given elements a and b of the set S, let there be a proposition a = b : S. Robin Adams Type Theory for Category Theory 24 July / 28

20 Sets Let there be sets. Let sets have elements. Given elements a and b of the set S, let there be a proposition a = b : S. Γ a : S Γ ref (a) : a = a : S Γ, x : S φ[x] prop Γ δ : a = b : S Γ δ : φ[a] Γ sub ([x : S]φ[x], δ, δ ) : φ[b] Robin Adams Type Theory for Category Theory 24 July / 28

21 Categories Let there be categories. Robin Adams Type Theory for Category Theory 24 July / 28

22 Categories Let there be categories. Let categories have objects. Robin Adams Type Theory for Category Theory 24 July / 28

23 Categories Let there be categories. Let categories have objects. Given objects A and B of C, let there be a set A B : C. Robin Adams Type Theory for Category Theory 24 July / 28

24 Categories Let there be categories. Let categories have objects. Given objects A and B of C, let there be a set A B : C. Γ A : C Γ 1 A : A A : C Γ f : A B : C Γ g : B C : C Γ g f : A C : C Γ f : A B : C Γ unitl (f ) : 1 B f = f : A B : C Γ f : A B : C Γ unitr (f ) : f 1 A = f : A B : C Γ f : A B : C Γ g : B C : C Γ h : C D : C Γ assoc (f, g, h) : h (g f ) = (h g) f : A D : C Robin Adams Type Theory for Category Theory 24 July / 28

25 Implication Given propositions φ and ψ, let there be a proposition φ ψ. Robin Adams Type Theory for Category Theory 24 July / 28

26 Implication Given propositions φ and ψ, let there be a proposition φ ψ. Γ, p : φ δ : ψ Γ impi([p : φ]δ) : φ ψ Γ δ : φ ψ Γ δ : φ Γ impe(δ, δ ) : ψ Robin Adams Type Theory for Category Theory 24 July / 28

27 Functions Given sets S and T, let there be a set S T, whose elements are called functions. Robin Adams Type Theory for Category Theory 24 July / 28

28 Functions Given sets S and T, let there be a set S T, whose elements are called functions. Γ, x : S b : T Γ λx : S.b : S T S Γ f : S T Γ a : S Γ f (a) : T Γ, x : S b : T Γ a : S Γ β([x : S]b, a) : (λx : S.b)(a) = [a/x]b : T Γ, x : S δ : f (x) = g(x) : T Γ ext ([x : S]δ) : f = g : S T Robin Adams Type Theory for Category Theory 24 July / 28

29 Γ F : A B Γ A : AΓ FA : B Γ F : A B Γ f : A A Γ Ff : FA FA : B Γ τ : F G : A B Γ A : AΓ τ A : FA GA : B Robin Adams Type Theory for Category Theory 24 July / 28

30 Given categories A and B, let there be a category A B, whose objects are called functors and whose arrows are called natural transformations. Γ, X : A B : BΓ ΛX : A.B : A B Γ, X : A f : FX GX : BΓ λx : A.f : F G : A B Robin Adams Type Theory for Category Theory 24 July / 28

31 Γ τ : F G : A B Γ f : A B : AΓ nat (τ, f ) : Gf τ A = τ B Ff : FA GB : B We introduce rules to guarantee the desired properties of functors and natural transformations: Γ F : A B Γ A : AΓ funcid (F, A) : F 1 A = 1 FA : FA FA : B Γ F : A B Γ f : A B : A Γ g : B C : AΓ funcomp (F, f, g) : F (g f ) = Fg Ff : FA FC : B Robin Adams Type Theory for Category Theory 24 July / 28

32 Introduce the reduction rule (ΛX : A.B)A [A/X ]B. Γ, X : A f : FX GX : B Γ A : AΓ β nat ([X : A]f, A) : (λx : A.f ) A = [A/X ]f : FA GA : B Robin Adams Type Theory for Category Theory 24 July / 28

33 What should (ΛX : A.B)f mean? Introduce the reduction rule (ΛX : A.B)A [A/X ]B. Γ, X : A f : FX GX : B Γ A : AΓ β nat ([X : A]f, A) : (λx : A.f ) A = [A/X ]f : FA GA : B Robin Adams Type Theory for Category Theory 24 July / 28

34 The definition is: {f /X }X f {f /X }Y 1 Y {f /X }(ΛY : C.D) λy : C.{f /X }D {f : A A /X }(FB) [A /X ]F {f /X }B ({f /X }F ) [A/X ]B Define a new notion of substitution. {f : A A /X }B (f an element, X an object variable, A an object, result an element) We want the following rule to be admissible: Γ, X : A B : B Γ f : A A : AΓ {f : A A /X }B : [A/X ]B [A /X ]B : B Robin Adams Type Theory for Category Theory 24 July / 28

35 Now introduce the rule: Γ, X : A B : B Γ f : A A : AΓ β func ([X : A]B, f ) : (ΛX : A.B)f = {f /X }B : [A/X ]B [A /X ]B : B Robin Adams Type Theory for Category Theory 24 July / 28

36 Γ σ : F G : A B Γ τ : G H : A B Γ A : A Γ nat comp (σ, τ, A) : (σ τ) A = σ A τ A : FA HA : B Our rules for categories automatically give us identity natural transformations, and We introduce rules specifying how these behave under application. Γ F : A B Γ A : AΓ nat id (F, A) : (1 F ) A = 1 FA : FA FA : B Robin Adams Type Theory for Category Theory 24 July / 28

37 Special Functors We can define 1 A ΛX : A.X G F ΛX : A.G(FX ) The following equalities then hold: 1 B F F F 1 A F H (G F ) (H G) F Robin Adams Type Theory for Category Theory 24 July / 28

38 And So On... We can go on to introduce: negation, conjunction, disjunction, quantification over sets, quantification over the objects of a category Robin Adams Type Theory for Category Theory 24 July / 28

39 And So On... We can go on to introduce: negation, conjunction, disjunction, quantification over sets, quantification over the objects of a category product sets, disjoint unions, the empty set, natural numbers with elimination over a set Robin Adams Type Theory for Category Theory 24 July / 28

40 And So On... We can go on to introduce: negation, conjunction, disjunction, quantification over sets, quantification over the objects of a category product sets, disjoint unions, the empty set, natural numbers with elimination over a set product categories, sum categories, empty category, unit category Robin Adams Type Theory for Category Theory 24 July / 28

41 And So On... We can go on to introduce: negation, conjunction, disjunction, quantification over sets, quantification over the objects of a category product sets, disjoint unions, the empty set, natural numbers with elimination over a set product categories, sum categories, empty category, unit category set of propositions/truth values, category of sets (behave like universes) Robin Adams Type Theory for Category Theory 24 July / 28

42 And So On... We can go on to introduce: negation, conjunction, disjunction, quantification over sets, quantification over the objects of a category product sets, disjoint unions, the empty set, natural numbers with elimination over a set product categories, sum categories, empty category, unit category set of propositions/truth values, category of sets (behave like universes) sets {x : S φ[x]} and categories ΣX : A.S[X ] Robin Adams Type Theory for Category Theory 24 July / 28

43 And So On... We can go on to introduce: negation, conjunction, disjunction, quantification over sets, quantification over the objects of a category product sets, disjoint unions, the empty set, natural numbers with elimination over a set product categories, sum categories, empty category, unit category set of propositions/truth values, category of sets (behave like universes) sets {x : S φ[x]} and categories ΣX : A.S[X ] comma categories, universals, limits, adjunctions,... Robin Adams Type Theory for Category Theory 24 July / 28

44 Technical Comments We have: an intensional notion of equality between sets, categories and objects; an extensional notion of equality between elements; no notion of equality between proofs. (We are also free to define notions, e.g. equivalence of propositions, isomorphism of objects.) It is thus halfway between good and evil. Robin Adams Type Theory for Category Theory 24 July / 28

45 Categories may not depend on object variables. Sets, objects and categories may not depend on element variables. If an element variable x may occur in an expression E[x], you must have an answer to the question If x = y, what is the relation between E[x] and E[y]? If an object variable X may occur in an expression E[X ], you must have an answer to the question Given an arrow f : X Y, what is the relation between E[X ] and E[Y ]? Robin Adams Type Theory for Category Theory 24 July / 28

46 To Do: Justify system by proving metatheoretic properties giving semantics in terms of category theory formalising loads of examples Extend to 2-categories. Implement this system? Robin Adams Type Theory for Category Theory 24 July / 28

47 To Do: I want to formalise fibred category theory in a non-evil way because the paper would be called Good Fibrations Robin Adams Type Theory for Category Theory 24 July / 28

48 To Do: I want to formalise fibred category theory in a non-evil way because the paper would be called Good Fibrations and Conor hasn t written a paper with that title yet. Robin Adams Type Theory for Category Theory 24 July / 28

Two-dimensional models of type theory

Two-dimensional models of type theory Two-dimensional models of type theory Richard Garner Uppsala University Logic Colloquium 2008, Bern 1/33 Outline Motivation Two-dimensional type theory: syntax Two-dimensional type theory: semantics Further

More information

From Categories with Families to Locally Cartesian Closed Categories. Pierre Clairambault June 12, 2006

From Categories with Families to Locally Cartesian Closed Categories. Pierre Clairambault June 12, 2006 From Categories with Families to Locally Cartesian Closed Categories Pierre Clairambault June 12, 2006 1 Contents 1 Introduction 3 2 Mathematical preliminaries 3 2.1 Basic categorical elements...................................

More information

Dependent type theory

Dependent type theory Dependent type theory Γ, ::= () Γ, x : A Contexts t, u, A, B ::= x λx. t t u (x : A) B Π-types (t, u) t.1 t.2 (x : A) B Σ-types We write A B for the non-dependent product type and A B for the non-dependent

More information

INTRODUCTION TO CATEGORY THEORY FOR FUNCTIONAL PROGRAMMING

INTRODUCTION TO CATEGORY THEORY FOR FUNCTIONAL PROGRAMMING INTRODUCTION TO CATEGORY THEORY FOR FUNCTIONAL PROGRAMMING Andrew R. Plummer Department of Linguistics The Ohio State University 14 Oct, 2009 OUTLINE 1 INTRODUCTION TO CATEGORIES 2 FUNCTORS AND FUNCTOR

More information

The synthetic theory of -categories vs the synthetic theory of -categories

The synthetic theory of -categories vs the synthetic theory of -categories Emily Riehl Johns Hopkins University The synthetic theory of -categories vs the synthetic theory of -categories joint with Dominic Verity and Michael Shulman Vladimir Voevodsky Memorial Conference The

More information

Review of category theory

Review of category theory Review of category theory Proseminar on stable homotopy theory, University of Pittsburgh Friday 17 th January 2014 Friday 24 th January 2014 Clive Newstead Abstract This talk will be a review of the fundamentals

More information

Syntactic Characterisations in Model Theory

Syntactic Characterisations in Model Theory Department of Mathematics Bachelor Thesis (7.5 ECTS) Syntactic Characterisations in Model Theory Author: Dionijs van Tuijl Supervisor: Dr. Jaap van Oosten June 15, 2016 Contents 1 Introduction 2 2 Preliminaries

More information

Structural Foundations for Abstract Mathematics

Structural Foundations for Abstract Mathematics May 5, 2013 What no foundation can give us: Certainty What foundations need not give us: Ontological reduction What set theory gives us: Common language in which all mathematics can be encoded:,,,... Dispute

More information

Algebras. Larry Moss Indiana University, Bloomington. TACL 13 Summer School, Vanderbilt University

Algebras. Larry Moss Indiana University, Bloomington. TACL 13 Summer School, Vanderbilt University 1/39 Algebras Larry Moss Indiana University, Bloomington TACL 13 Summer School, Vanderbilt University 2/39 Binary trees Let T be the set which starts out as,,,, 2/39 Let T be the set which starts out as,,,,

More information

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall c Dr Oksana Shatalov, Fall 2014 1 3 FUNCTIONS 3.1 Definition and Basic Properties DEFINITION 1. Let A and B be nonempty sets. A function f from A to B is a rule that assigns to each element in the set

More information

Fibrational Semantics

Fibrational Semantics Fibrational Semantics Brice Halimi Paris Ouest University & Sphere Introduction The question What can Set Theory do for Philosophy? would never be asked nowadays. The main reason for dismissing such a

More information

9 Direct products, direct sums, and free abelian groups

9 Direct products, direct sums, and free abelian groups 9 Direct products, direct sums, and free abelian groups 9.1 Definition. A direct product of a family of groups {G i } i I is a group i I G i defined as follows. As a set i I G i is the cartesian product

More information

Lecture 2 Sheaves and Functors

Lecture 2 Sheaves and Functors Lecture 2 Sheaves and Functors In this lecture we will introduce the basic concept of sheaf and we also will recall some of category theory. 1 Sheaves and locally ringed spaces The definition of sheaf

More information

Today s Topics. Methods of proof Relationships to logical equivalences. Important definitions Relationships to sets, relations Special functions

Today s Topics. Methods of proof Relationships to logical equivalences. Important definitions Relationships to sets, relations Special functions Today s Topics Set identities Methods of proof Relationships to logical equivalences Functions Important definitions Relationships to sets, relations Special functions Set identities help us manipulate

More information

Relativizing Tarskian Variables

Relativizing Tarskian Variables Relativizing Tarskian Variables Brice Halimi Paris Ouest University Two main goals: Introducing the concept of fibration (that comes from geometry) and showing that it holds out a natural way to formalize

More information

Generic Fibrational Induction

Generic Fibrational Induction Archived version from NCDOCKS Institutional Repository http://libres.uncg.edu/ir/asu/ Generic Fibrational Induction By: Ghani, Neil; Johann, Patricia; and Fumex, Clement Abstract This paper provides an

More information

University of Oxford, Michaelis November 16, Categorical Semantics and Topos Theory Homotopy type theor

University of Oxford, Michaelis November 16, Categorical Semantics and Topos Theory Homotopy type theor Categorical Semantics and Topos Theory Homotopy type theory Seminar University of Oxford, Michaelis 2011 November 16, 2011 References Johnstone, P.T.: Sketches of an Elephant. A Topos-Theory Compendium.

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

Linear Temporal Logic (LTL)

Linear Temporal Logic (LTL) Chapter 9 Linear Temporal Logic (LTL) This chapter introduces the Linear Temporal Logic (LTL) to reason about state properties of Labelled Transition Systems defined in the previous chapter. We will first

More information

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT)

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT) CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT) MATH 378, CSUSM. SPRING 2009. AITKEN This chapter reviews some of the background concepts needed for Math 378. This chapter is new to the course (added Spring

More information

A fully abstract semantics for a nondeterministic functional language with monadic types

A fully abstract semantics for a nondeterministic functional language with monadic types A fully abstract semantics for a nondeterministic functional language with monadic types Alan Jeffrey 1 School of Cognitive and Computing Sciences University of Sussex, Brighton BN1 9QH, UK alanje@cogs.susx.ac.uk

More information

Chapter 4: Classical Propositional Semantics

Chapter 4: Classical Propositional Semantics Chapter 4: Classical Propositional Semantics Language : L {,,, }. Classical Semantics assumptions: TWO VALUES: there are only two logical values: truth (T) and false (F), and EXTENSIONALITY: the logical

More information

ECE473 Lecture 15: Propositional Logic

ECE473 Lecture 15: Propositional Logic ECE473 Lecture 15: Propositional Logic Jeffrey Mark Siskind School of Electrical and Computer Engineering Spring 2018 Siskind (Purdue ECE) ECE473 Lecture 15: Propositional Logic Spring 2018 1 / 23 What

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

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

More information

Walker Ray Econ 204 Problem Set 3 Suggested Solutions August 6, 2015

Walker Ray Econ 204 Problem Set 3 Suggested Solutions August 6, 2015 Problem 1. Take any mapping f from a metric space X into a metric space Y. Prove that f is continuous if and only if f(a) f(a). (Hint: use the closed set characterization of continuity). I make use of

More information

Stone-Čech compactification of Tychonoff spaces

Stone-Čech compactification of Tychonoff spaces The Stone-Čech compactification of Tychonoff spaces Jordan Bell jordan.bell@gmail.com Department of Mathematics, University of Toronto June 27, 2014 1 Completely regular spaces and Tychonoff spaces A topological

More information

Weak ω-groupoids in Type Theory

Weak ω-groupoids in Type Theory Weak ω-groupoids in Type Theory Based on joint work with Ondrej Rypacek Thorsten Altenkirch Functional Programming Laboratory School of Computer Science University of Nottingham April 2, 2012 Thorsten

More information

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

Elements of Category Theory

Elements of Category Theory Elements of Category Theory Robin Cockett Department of Computer Science University of Calgary Alberta, Canada robin@cpsc.ucalgary.ca Estonia, Feb. 2010 Functors and natural transformations Adjoints and

More information

Homotopy Type Theory

Homotopy Type Theory Homotopy Type Theory Jeremy Avigad Department of Philosophy and Department of Mathematical Sciences Carnegie Mellon University February 2016 Homotopy Type Theory HoTT relies on a novel homotopy-theoretic

More information

Introduction to Topology

Introduction to Topology Introduction to Topology Randall R. Holmes Auburn University Typeset by AMS-TEX Chapter 1. Metric Spaces 1. Definition and Examples. As the course progresses we will need to review some basic notions about

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

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Ordinal Strength of Logic-Enriched Type Theories

Ordinal Strength of Logic-Enriched Type Theories Ordinal Strength of Logic-Enriched Type Theories Robin Adams Royal Holloway, University of London 27 March 2012 Robin Adams (RHUL) Ordinal Strength of LTTs 27 March 2012 1 / 27 Introduction Type theories

More information

CHAPTER THREE: RELATIONS AND FUNCTIONS

CHAPTER THREE: RELATIONS AND FUNCTIONS CHAPTER THREE: RELATIONS AND FUNCTIONS 1 Relations Intuitively, a relation is the sort of thing that either does or does not hold between certain things, e.g. the love relation holds between Kim and Sandy

More information

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007)

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007) Löwenheim-Skolem Theorems, Countable Approximations, and L ω 0. Introduction David W. Kueker (Lecture Notes, Fall 2007) In its simplest form the Löwenheim-Skolem Theorem for L ω1 ω states that if σ L ω1

More information

Parameterizations and Fixed-Point Operators on Control Categories

Parameterizations and Fixed-Point Operators on Control Categories Parameterizations and Fixed-Point Operators on Control Categories oshihiko Kakutani 1 and Masahito Hasegawa 12 1 Research Institute for Mathematical Sciences, Kyoto University {kakutani,hassei}@kurims.kyoto-u.ac.jp

More information

Chapter-2 Relations and Functions. Miscellaneous

Chapter-2 Relations and Functions. Miscellaneous 1 Chapter-2 Relations and Functions Miscellaneous Question 1: The relation f is defined by The relation g is defined by Show that f is a function and g is not a function. The relation f is defined as It

More information

A model-independent theory of -categories

A model-independent theory of -categories Emily Riehl Johns Hopkins University A model-independent theory of -categories joint with Dominic Verity Joint International Meeting of the AMS and the CMS Dominic Verity Centre of Australian Category

More information

1. The Method of Coalgebra

1. The Method of Coalgebra 1. The Method of Coalgebra Jan Rutten CWI Amsterdam & Radboud University Nijmegen IMS, Singapore - 15 September 2016 Overview of Lecture one 1. Category theory (where coalgebra comes from) 2. Algebras

More information

Subtyping and Intersection Types Revisited

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

LING 501, Fall 2004: Quantification

LING 501, Fall 2004: Quantification LING 501, Fall 2004: Quantification The universal quantifier Ax is conjunctive and the existential quantifier Ex is disjunctive Suppose the domain of quantification (DQ) is {a, b}. Then: (1) Ax Px Pa &

More information

VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents

VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0 BENJAMIN LEDEAUX Abstract. This expository paper introduces model theory with a focus on countable models of complete theories. Vaught

More information

A categorical structure of realizers for the Minimalist Foundation

A categorical structure of realizers for the Minimalist Foundation A categorical structure of realizers for the Minimalist Foundation S.Maschio (joint work with M.E.Maietti) Department of Mathematics University of Padua TACL 2015 Ischia The Minimalist Foundation Many

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

3. The Sheaf of Regular Functions

3. The Sheaf of Regular Functions 24 Andreas Gathmann 3. The Sheaf of Regular Functions After having defined affine varieties, our next goal must be to say what kind of maps between them we want to consider as morphisms, i. e. as nice

More information

1 Categories, Functors, and Natural Transformations. Discrete categories. A category is discrete when every arrow is an identity.

1 Categories, Functors, and Natural Transformations. Discrete categories. A category is discrete when every arrow is an identity. MacLane: Categories or Working Mathematician 1 Categories, Functors, and Natural Transormations 1.1 Axioms or Categories 1.2 Categories Discrete categories. A category is discrete when every arrow is an

More information

MATH 101A: ALGEBRA I PART C: TENSOR PRODUCT AND MULTILINEAR ALGEBRA. This is the title page for the notes on tensor products and multilinear algebra.

MATH 101A: ALGEBRA I PART C: TENSOR PRODUCT AND MULTILINEAR ALGEBRA. This is the title page for the notes on tensor products and multilinear algebra. MATH 101A: ALGEBRA I PART C: TENSOR PRODUCT AND MULTILINEAR ALGEBRA This is the title page for the notes on tensor products and multilinear algebra. Contents 1. Bilinear forms and quadratic forms 1 1.1.

More information

Week Some Warm-up Questions

Week Some Warm-up Questions 1 Some Warm-up Questions Week 1-2 Abstraction: The process going from specific cases to general problem. Proof: A sequence of arguments to show certain conclusion to be true. If... then... : The part after

More information

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

More information

Locally cartesian closed categories

Locally cartesian closed categories Locally cartesian closed categories Clive Newstead 80-814 Categorical Logic, Carnegie Mellon University Wednesday 1st March 2017 Abstract Cartesian closed categories provide a natural setting for the interpretation

More information

arxiv:math/ v1 [math.ct] 4 Oct 1998

arxiv:math/ v1 [math.ct] 4 Oct 1998 arxiv:math/9810017v1 [math.ct] 4 Oct 1998 Basic Bicategories Tom Leinster Department of Pure Mathematics, University of Cambridge Email: leinster@dpmms.cam.ac.uk Web: http://www.dpmms.cam.ac.uk/ leinster

More information

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Spring

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Spring c Dr Oksana Shatalov, Spring 2016 1 3 FUNCTIONS 3.1 Definition and Basic Properties DEFINITION 1. Let A and B be nonempty sets. A function f from A to B is a rule that assigns to each element in the set

More information

Homework 8/Solutions

Homework 8/Solutions MTH 309-4 Linear Algebra I F11 Homework 8/Solutions Section Exercises 6.2 1,2,9,12,16,21 Section 6.2 Exercise 2. For each of the following functions, either show the function is onto by choosing an arbitrary

More information

Adjunctions! Everywhere!

Adjunctions! Everywhere! Adjunctions! Everywhere! Carnegie Mellon University Thursday 19 th September 2013 Clive Newstead Abstract What do free groups, existential quantifiers and Stone-Čech compactifications all have in common?

More information

PART I. Abstract algebraic categories

PART I. Abstract algebraic categories PART I Abstract algebraic categories It should be observed first that the whole concept of category is essentially an auxiliary one; our basic concepts are those of a functor and a natural transformation.

More information

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

Unbounded quantifiers via 2-categorical logic

Unbounded quantifiers via 2-categorical logic via Unbounded via A. University of Chicago March 18, 2010 via Why? For the same reasons we study 1-categorical. 1 It tells us things about 2-categories. Proofs about fibrations and stacks are simplified

More information

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker CSCE 222 Discrete Structures for Computing Propositional Logic Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Propositions A proposition is a declarative sentence that is either true or false

More information

Numbers, sets, and functions

Numbers, sets, and functions Chapter 1 Numbers, sets, and functions 1.1. The natural numbers, integers, and rational numbers We assume that you are familiar with the set of natural numbers the set of integers and the set of rational

More information

C2.7: CATEGORY THEORY

C2.7: CATEGORY THEORY C2.7: CATEGORY THEORY PAVEL SAFRONOV WITH MINOR UPDATES 2019 BY FRANCES KIRWAN Contents Introduction 2 Literature 3 1. Basic definitions 3 1.1. Categories 3 1.2. Set-theoretic issues 4 1.3. Functors 5

More information

The Lifting Lemma. Ralf Hinze

The Lifting Lemma. Ralf Hinze The Lifting Lemma Ralf Hinze Computing Laboratory, University of Oxford Wolfson Building, Parks Road, Oxford, OX1 3QD, England ralf.hinze@comlab.ox.ac.uk http://www.comlab.ox.ac.uk/ralf.hinze/ June 2009

More information

Conceptual Connections of Circularity and Category Theory

Conceptual Connections of Circularity and Category Theory 1/64 Conceptual Connections of Circularity and Category Theory Larry Moss Indiana University, Bloomington ESSLLI 2012, Opole 2/64 The conceptual comparison chart Filling out the details is my goal for

More information

Logic Synthesis and Verification

Logic Synthesis and Verification Logic Synthesis and Verification Boolean Algebra Jie-Hong Roland Jiang 江介宏 Department of Electrical Engineering National Taiwan University Fall 2014 1 2 Boolean Algebra Reading F. M. Brown. Boolean Reasoning:

More information

A Non-Topological View of Dcpos as Convergence Spaces

A Non-Topological View of Dcpos as Convergence Spaces A Non-Topological View of Dcpos as Convergence Spaces Reinhold Heckmann AbsInt Angewandte Informatik GmbH, Stuhlsatzenhausweg 69, D-66123 Saarbrücken, Germany e-mail: heckmann@absint.com Abstract The category

More information

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall c Dr Oksana Shatalov, Fall 2016 1 3 FUNCTIONS 3.1 Definition and Basic Properties DEFINITION 1. Let A and B be nonempty sets. A function f from the set A to the set B is a correspondence that assigns to

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

02 Propositional Logic

02 Propositional Logic SE 2F03 Fall 2005 02 Propositional Logic Instructor: W. M. Farmer Revised: 25 September 2005 1 What is Propositional Logic? Propositional logic is the study of the truth or falsehood of propositions or

More information

Math 5801 General Topology and Knot Theory

Math 5801 General Topology and Knot Theory Lecture 3-8/27/2012 Math 5801 Ohio State University August 27, 2012 Course Info Textbook (required) J. R. Munkres, Topology (2nd Edition), Prentice Hall, Englewood Cliffs, NJ, 2000. ISBN-10: 0131816292

More information

Semantics and syntax of higher inductive types

Semantics and syntax of higher inductive types Semantics and syntax of higher inductive types Michael Shulman 1 Peter LeFanu Lumsdaine 2 1 University of San Diego 2 Stockholm University http://www.sandiego.edu/~shulman/papers/stthits.pdf March 20,

More information

EXAMPLES AND EXERCISES IN BASIC CATEGORY THEORY

EXAMPLES AND EXERCISES IN BASIC CATEGORY THEORY EXAMPLES AND EXERCISES IN BASIC CATEGORY THEORY 1. Categories 1.1. Generalities. I ve tried to be as consistent as possible. In particular, throughout the text below, categories will be denoted by capital

More information

Analysis and Construction of Logical Systems: A Category-Theoretic Approach

Analysis and Construction of Logical Systems: A Category-Theoretic Approach University of Warsaw Faculty of Mathematics, Informatics and Mechanics Micha l R. Przyby lek Analysis and Construction of Logical Systems: A Category-Theoretic Approach PhD dissertation Supervisor prof.

More information

Propositional Resolution Introduction

Propositional Resolution Introduction Propositional Resolution Introduction (Nilsson Book Handout) Professor Anita Wasilewska CSE 352 Artificial Intelligence Propositional Resolution Part 1 SYNTAX dictionary Literal any propositional VARIABLE

More information

Univalence for Free. Matthieu Sozeau Joint work with Nicolas Tabareau - INRIA. GT Types & Réalisabilité March 13th 2013

Univalence for Free. Matthieu Sozeau Joint work with Nicolas Tabareau - INRIA. GT Types & Réalisabilité March 13th 2013 Univalence for Free Matthieu Sozeau Joint work with Nicolas Tabareau - INRIA Project Team πr 2 INRIA Rocquencourt & PPS, Paris 7 University GT Types & Réalisabilité March 13th 2013 Univalence for Free

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

Equality and dependent type theory. CIRM, May 31

Equality and dependent type theory. CIRM, May 31 CIRM, May 31 The Axiom of Univalence, a type-theoretic view point In type theory, we reduce proof-checking to type-checking Hence we want type-checking to be decidable This holds as soon as we have the

More information

The equivalence axiom and univalent models of type theory.

The equivalence axiom and univalent models of type theory. The equivalence axiom and univalent models of type theory. (Talk at CMU on February 4, 2010) By Vladimir Voevodsky Abstract I will show how to define, in any type system with dependent sums, products and

More information

Lecture 2: Syntax. January 24, 2018

Lecture 2: Syntax. January 24, 2018 Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified

More information

CS Lecture 19: Logic To Truth through Proof. Prof. Clarkson Fall Today s music: Theme from Sherlock

CS Lecture 19: Logic To Truth through Proof. Prof. Clarkson Fall Today s music: Theme from Sherlock CS 3110 Lecture 19: Logic To Truth through Proof Prof. Clarkson Fall 2014 Today s music: Theme from Sherlock Review Current topic: How to reason about correctness of code Last week: informal arguments

More information

Proseminar on Semantic Theory Fall 2013 Ling 720 An Algebraic Approach to Quantification and Lambda Abstraction: Fregean Interpretations 1

Proseminar on Semantic Theory Fall 2013 Ling 720 An Algebraic Approach to Quantification and Lambda Abstraction: Fregean Interpretations 1 An Algebraic Approach to Quantification and Lambda Abstraction: Fregean Interpretations 1 (1) The Disambiguated Language Politics+λ Politics+λ is the disambiguated language γ {Concat,

More information

Normal forms in combinatorial algebra

Normal forms in combinatorial algebra Alberto Gioia Normal forms in combinatorial algebra Master s thesis, defended on July 8, 2009 Thesis advisor: Hendrik Lenstra Mathematisch Instituut Universiteit Leiden ii Contents Introduction iv 1 Generators

More information

Topos Theory. Lectures 17-20: The interpretation of logic in categories. Olivia Caramello. Topos Theory. Olivia Caramello.

Topos Theory. Lectures 17-20: The interpretation of logic in categories. Olivia Caramello. Topos Theory. Olivia Caramello. logic s Lectures 17-20: logic in 2 / 40 logic s Interpreting first-order logic in In Logic, first-order s are a wide class of formal s used for talking about structures of any kind (where the restriction

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

CATEGORY THEORY. Cats have been around for 70 years. Eilenberg + Mac Lane =. Cats are about building bridges between different parts of maths.

CATEGORY THEORY. Cats have been around for 70 years. Eilenberg + Mac Lane =. Cats are about building bridges between different parts of maths. CATEGORY THEORY PROFESSOR PETER JOHNSTONE Cats have been around for 70 years. Eilenberg + Mac Lane =. Cats are about building bridges between different parts of maths. Definition 1.1. A category C consists

More information

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation Knowledge Bases and Databases Part 1: First-Order Queries Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2007/2008 Overview of Part 1: First-order queries 1 First-order

More information

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω 1 Preliminaries In this chapter we first give a summary of the basic notations, terminology and results which will be used in this thesis. The treatment here is reduced to a list of definitions. For the

More information

Journal of Pure and Applied Algebra

Journal of Pure and Applied Algebra Journal of Pure and Applied Algebra 214 (2010) 1384 1398 Contents lists available at ScienceDirect Journal of Pure and Applied Algebra journal homepage: www.elsevier.com/locate/jpaa Homotopy theory of

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information

Theorem 5.3. Let E/F, E = F (u), be a simple field extension. Then u is algebraic if and only if E/F is finite. In this case, [E : F ] = deg f u.

Theorem 5.3. Let E/F, E = F (u), be a simple field extension. Then u is algebraic if and only if E/F is finite. In this case, [E : F ] = deg f u. 5. Fields 5.1. Field extensions. Let F E be a subfield of the field E. We also describe this situation by saying that E is an extension field of F, and we write E/F to express this fact. If E/F is a field

More information

Limit Preservation from Naturality

Limit Preservation from Naturality CTCS 2004 Preliminary Version Limit Preservation from Naturality Mario Caccamo 1 The Wellcome Trust Sanger Institute Cambridge, UK Glynn Winskel 2 University of Cambridge Computer Laboratory Cambridge,

More information

3. Categories and Functors We recall the definition of a category: Definition 3.1. A category C is the data of two collections. The first collection

3. Categories and Functors We recall the definition of a category: Definition 3.1. A category C is the data of two collections. The first collection 3. Categories and Functors We recall the definition of a category: Definition 3.1. A category C is the data of two collections. The first collection is called the objects of C and is denoted Obj(C). Given

More information

Hence, (f(x) f(x 0 )) 2 + (g(x) g(x 0 )) 2 < ɛ

Hence, (f(x) f(x 0 )) 2 + (g(x) g(x 0 )) 2 < ɛ Matthew Straughn Math 402 Homework 5 Homework 5 (p. 429) 13.3.5, 13.3.6 (p. 432) 13.4.1, 13.4.2, 13.4.7*, 13.4.9 (p. 448-449) 14.2.1, 14.2.2 Exercise 13.3.5. Let (X, d X ) be a metric space, and let f

More information

Propositional logic (revision) & semantic entailment. p. 1/34

Propositional logic (revision) & semantic entailment. p. 1/34 Propositional logic (revision) & semantic entailment p. 1/34 Reading The background reading for propositional logic is Chapter 1 of Huth/Ryan. (This will cover approximately the first three lectures.)

More information

Fuzzy and Rough Sets Part I

Fuzzy and Rough Sets Part I Fuzzy and Rough Sets Part I Decision Systems Group Brigham and Women s Hospital, Harvard Medical School Harvard-MIT Division of Health Sciences and Technology Aim Present aspects of fuzzy and rough sets.

More information

arxiv: v3 [cs.lo] 13 Mar 2017

arxiv: v3 [cs.lo] 13 Mar 2017 A Normalizing Computation Rule for Propositional Extensionality in Higher-Order Minimal Logic Robin Adams 1, Marc Bezem 1, and Thierry Coquand 2 1 Universitetet i Bergen, Institutt for Informatikk, Postboks

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

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14 0/0/4 Knowledge based agents Logical Agents Agents need to be able to: Store information about their environment Update and reason about that information Russell and Norvig, chapter 7 Knowledge based agents

More information

arxiv: v1 [cs.pl] 19 May 2016

arxiv: v1 [cs.pl] 19 May 2016 arxiv:1605.05858v1 [cs.pl] 19 May 2016 Domain Theory: An Introduction Robert Cartwright Rice University Rebecca Parsons ThoughtWorks, Inc. Moez AbdelGawad SRTA-City Hunan University This monograph is an

More information

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) Steve Vickers CS Theory Group Birmingham 2. Theories and models Categorical approach to many-sorted

More information