Categorical Databases
|
|
- Anne Conley
- 6 years ago
- Views:
Transcription
1 Categorical Databases Patrick Schultz, David Spivak MIT Ryan Wisnesky Categorical Informatics and others October 2017
2 Introduction This talk describes a new algebraic (purely equational) way to formalize databases based on category theory. Category theory was designed to migrate theorems from one area of mathematics to another, but researchers at MIT developed a way to use it to migrate data from one schema to another. Research has culminated in an open-source prototype ETL and data integration tool, AQL (Algebraic Query Language), available at categoricaldata.net/aql.html. (These slides are also there.) Goal: Categorical databases needs you needs a community to grow. Please, talk to us and to each other and get involved. Outline: Review of basic category theory. Introduction to AQL. AQL demo. Optional interlude: additional AQL constructions. How AQL instances model the simply-typed λ-calculus. 2 / 35
3 Category Theory A category C consists of a set of objects, ObpCq forall X, Y P ObpCq, a set CpX, Y q of morphisms a.k.a arrows forall X P ObpCq, a morphism id P CpX, Xq forall X, Y, Z P ObpCq, a function : CpY, Zq ˆ CpX, Y q Ñ CpX, Zq s.t. f id f id f f pf gq h f pg hq The category Set has sets as objects and functions as arrows, and the category Haskell has types as objects and programs as arrows. A functor F : C Ñ D between categories C, D consists of a function ObpCq Ñ ObpDq forall X, Y P ObpCq, a function CpX, Y q Ñ DpF pxq, F py qq s.t. F pidq id F pf gq F pfq F pgq The functor P : Set Ñ Set takes each set to its power set, and the functor List : Haskell Ñ Haskell takes each type t to the type List t. 3 / 35
4 Schemas and Instances manager Emp works secretary Dept last first String rmanager.workss rworkss rsecretary.workss rs Emp mgr works first last q10 Al Akin x02 Bob Bo q10 Carl Cork Dept sec q CS x Math String Al Bob... 4 / 35
5 An AQL Schema: Code entities Emp Dept foreign keys manager : Emp -> Emp works : Emp -> Dept secretary : Dept -> Emp attributes first last : Emp -> string : Dept -> string path equations manager.works = works secretary.works = Department 5 / 35
6 Categorical Semantics of Schemas and Instances The meaning of a schema S is a category S. Ob(S) is the nodes of S. Forall nodes X, Y, SpX, Y q is the set of finite paths X Ñ Y, modulo the path equivalences in S. Path equivalence in S may not be decidable! ( the word problem ) A morphism of schemas (a schema mapping ) S Ñ T is a functor S Ñ T. It can be defined as an equation-preserving function: nodespsq Ñ nodespt q edgespsq Ñ pathspt q. An S-instance is a functor S Ñ Set. It can be defined as a set of tables, one per node in S and one column per edge in S, satisfying the path equivalences in S. A morphism of S-instances I Ñ J (a data mapping ) is a natural transformation I Ñ J. Instances on S and their mappings form a category, written S-inst. 6 / 35
7 Schema Mappings A schema mapping F : S Ñ T is an equation-preserving function: nodespsq Ñ nodespt q edgespsq Ñ pathspt q N1 String f N2 F ÝÝÝÑ String N salary Int age salary Int age F pintq Int F pstringq String F pn1q N F pn2q N F pq rs F pageq rages F psalaryq rsalarys F pfq rs 7 / 35
8 Functorial Data Migration A schema mapping F : S Ñ T induces three data migration functors: F : T -inst Ñ S-inst (like project) S F T I F piq : I F Set Π F : S-inst Ñ T -inst (right adjoint to F ; like J. S-instp F piq, Jq T -instpi, Π F pjqq Σ F : S-inst Ñ T -inst (left adjoint to F ; like outer union then J. S-instpJ, F piqq T -instpσ F pjq, Iq 8 / 35
9 (Project) N1 String N2 F ÝÝÝÑ String N salary Int age salary Int age N1 salary 1 Alice $100 2 Bob $250 3 Sue $300 N2 age F ÐÝÝ N salary age a Alice $ b Bob $ c Sue $ / 35
10 Π (Product) N1 String N2 F ÝÝÝÑ String N salary Int age salary Int age N1 salary 1 Alice $100 2 Bob $250 3 Sue $300 N2 age Π F ÝÝÑ N salary age a Alice $ b Alice $ c Alice $ d Bob $ e Bob $ f Bob $ g Sue $ h Sue $ i Sue $ / 35
11 Σ (Outer Union) N1 String N2 F ÝÝÝÑ String N salary Int age salary Int age N1 Name Salary 1 Alice $100 2 Bob $250 3 Sue $300 N2 Age Σ F ÝÝÑ N Name Salary Age a Alice $100 null 1 b Bob $250 null 2 c Sue $300 null 3 d null 4 null 5 20 e null 6 null 7 20 f null 8 null / 35
12 Unit of Σ F % F N1 Name Salary 1 Alice $100 2 Bob $250 3 Sue $300 N1 Name Salary a Alice $100 b Bob $250 c Sue $300 d null 4 null 5 e null 6 null 7 f null 8 null 9 đη N2 Age N2 Age a null 1 b null 2 c null 3 d 20 e 20 f 30 Σ F ÝÝÑ F Ö N Name Salary Age a Alice $100 null 1 b Bob $250 null 2 c Sue $300 null 3 d null 4 null 5 20 e null 6 null 7 20 f null 8 null / 35
13 A Foreign Key N1 salary String f Int N2 age F ÝÝÝÑ String N salary Int age N1 salary f 1 Alice $ Bob $ Sue $300 6 N2 age F ÐÝÝ Π F,Σ F ÝÝÝÝÑ N salary age a Alice $ b Bob $ c Sue $ / 35
14 Queries A query Q : S Ñ T is a schema X and mappings F : S Ñ X and G : T Ñ X. eval Q G Π F coeval Q F Π G These can be specified using comprehension notation similar to SQL. N1 String f N2 Q ÐÝ String N salary Int age salary Int age N1 -> select n1. as, n1.salary as salary from N as n1 N2 -> select n2.age as age from N as n2 f -> {n2 -> n1} 14 / 35
15 A Foreign Key N1 salary String f Int N2 age Q ÐÝ String N salary Int age N1 salary f 1 Alice $ Bob $ Sue $300 6 N2 age eval Q ÐÝÝÝÝ coeval Q ÝÝÝÝÝÑ N salary age a Alice $ b Bob $ c Sue $ / 35
16 AQL Demo AQL implements, Σ, Π, and more in software. catinf.com The AQL execution engine is an automated theorem prover. Value proposition: AQL catches mistakes at compile time that existing ETL / data integration tools catch at runtime if at all. Data import and export by JDBC-SQL and CSV. We are looking for collaborators for a real-world pilot project. 16 / 35
17 Interlude - Additional Constructions What is algebraic here? AQL vs SQL. Pivot. Non-equational data integrity constraints. Data integration via pushouts. AQL vs comprehension calculi. 17 / 35
18 Why Algebraic? A schema can be identified with an algebraic (equational) theory. Emp Dept String : Type first last : Emp Ñ String : Dept Ñ String works : Emp Ñ Dept mgr : Emp Ñ Emp secr : Dept Ñ : Emp. workspmanagerpeqq : Dept. workspsecretarypdqq d This perspective makes it easy to add functions such as ` : Int, Int Ñ Int to a schema. See Algebraic Databases. An S-instance can be identified with the initial algebra of an algebraic theory extending S : Emp q10 x02 : Dept mgrp101q 103 worksp101q q10... Treating instances as theories allows instances that are infinite or inconsistent (e.g., Alice=Bob). 18 / 35
19 AQL vs SQL Data migration triplets of the form Σ F Π G H can be expressed using relational algebra and keygen, provided: F is a discrete op-fibration (ensures union compatibility). G is surjective on attributes (ensures domain independence). All categories are finite (ensures computability). The difference-free fragment of relational algebra can be expressed using such triplets. See Relational Foundations. Such triplets can be written in foreign-key aware SQL-ish syntax. 19 / 35
20 Select-From-Where Syntax manager Emp works secretary Dept last first String Find the of every manager s department: AQL select e.manager.works. from Emp as e SQL select d. from Emp as e1, Emp as e2, Dept as d where e1.manager = e2. and e2.works = d. 20 / 35
21 Pivot (Instance ô Schema) CS q first works last Al Akin Math x02 works mgr works first mgr first last Bob last Carl Bo Cork mgr Emp mgr works first last q10 Al Akin x02 Bob Bo q10 Carl Cork Dept q10 CS x02 Math 21 / 35
22 Richer Constraints Not all data integrity constraints are equational (e.g., keys). A data mapping ϕ : A Ñ E defines a constraint: instance I satisfies ϕ if for every α : A Ñ I there exists an ɛ : E Ñ I s.t α ɛ ϕ. ϕ A E Most constraints used in practice can be captured the above way. E.g., α ɛ I is captured 1, d 2 : Dept. pd 1 q pd 2 q Ñ d 1 d 2 ApDeptq td 1, d 2 u EpDeptq tdu Apqpd 1 q Apqpd 2 q ϕpd 1 q ϕpd 2 q d See Database Queries and Constraints via Lifting Problems and Algebraic Model Management. 22 / 35
23 Pushouts A pushout of p, q is f, g s.t. for every f 1, g 1 there is a unique m s.t.: p q f g f 1 m g 1 The category of schemas has all pushouts. For every schema S, the category S-inst has all pushouts. Pushouts of schemas, instances, and Σ are used together to integrate data - see Algebraic Data Integration. 23 / 35
24 Using Pushouts for Data Integration Step 1: integrate schemas. Given input schemas S 1, S 2, an overlap schema S, and mappings F 1, F 2 : F S 1 F 1 Ð S Ñ 2 S2 we propose to use their pushout T as the integrated schema: G S 1 G 1 Ñ T Ð 2 S2 Step 2: integrate data. Given input S 1 -instance I 1, S 2 -instance I 2, overlap S-instance I and data mappings h 1 : Σ F1 piq Ñ I 1 and h 2 : Σ F2 piq Ñ I 2, we propose to use the pushout of: Σ G1 pi 1 q Σ G 1 ph 1 q Ð as the integrated T -instance. `Σ G1 F 1 piq Σ G2 F 2 piq Σ G 2 ph 2 q Ñ Σ G2 pi 2 q 24 / 35
25 Schema Integration Observation Observation g 1 Method Person f Ó g Type ÝÝÑ Person f Ó g 2 Type Observation Observation g 1 Method Person f h Gender g Type ÝÝÑ Person f h Gender g 2 Type 25 / 35
26 Data Integration Observation f g Person p Type BP Wt Ñ Gender F M Type BP Wt HR Observation f g o 5 Peter BP o 6 Paul HR o 7 Peter Wt Person h Paul M Peter M Ó Ó Method g2 m 1 BP m 2 BP m 3 Wt m 4 Wt Observation f g1 o 1 Pete m 1 o 2 Pete m 2 o 3 Jane m 3 o 4 Jane m 1 Type BP Wt Person Jane Pete Ñ Method g2 null 1 BP null 2 Wt null 3 HR m 1 BP m 2 BP m 3 Wt m 4 Wt Gender F M null 4 Type BP Wt HR Observation f g1 o 1 Peter m 1 o 2 Peter m 2 o 3 Jane m 3 o 4 Jane m 1 o 5 Peter null 1 o 6 Paul null 2 o 7 Peter null 3 Person h Jane null 4 Paul M Peter M 26 / 35
27 AQL vs LINQ Treating entity sets as types rather than terms makes AQL a conceptual dual to comprehension calculi (e.g., LINQ). See QINL: Query-Integrated Languages. LINQ enriches programs with (schemas, queries and instances). Collections are terms Employee: Set Int e: Employee is not a judgment. There is a term P: Int ˆ Set Int Ñ Bool. manager: Set pint ˆ Intq AQL enriches (schemas, queries and instances) with programs. Collections are types Employee: Type manager: Employee Ñ Employee e: Employee is a judgment. There is not a term P: Employee ˆ Type Ñ Bool. LINQ is more popular, but AQL s style is common in Coq, Agda, etc. 27 / 35
28 AQL is one level up from LINQ LINQ Schemas are collection types over a base type theory Set pint ˆ Stringq Instances are terms tp1, CSqu Y tp2, Mathqu Data migrations are functions π 1 : Set pint ˆ Stringq Ñ Set Int AQL Schemas are type theories over a base type theory Dept, : Dept Ñ String Instances are term models (initial algebras) of theories d 1, d 2 : Dept, pd 1 q CS, pd 2 q Math Data migrations are functors Dept : pdept, : Dept Ñ Stringq - inst Ñ pdeptq - inst 28 / 35
29 Part 2 For every schema S, S-inst models simply-typed λ-calculus (STLC). The STLC is the core of typed functional languages ML, Haskell, etc. We will use the internal language of a cartesian closed category, which is equivalent to the STLC. Lots of point-free functional programming ahead. The category of schemas and mappings is also cartesian closed - see talk at Boston Haskell. 29 / 35
30 Categorical Abstract Machine Language (CAML) Types t: t :: 1 t ˆ t t t Terms f, g: id t : t Ñ t pq t : t Ñ 1 π 1 s,t : s ˆ t Ñ s π 2 s,t : s ˆ t Ñ t eval s,t : t s ˆ s Ñ t Equations: f : s Ñ u g f : s Ñ t g : u Ñ t f : s ˆ u Ñ t λf : s Ñ t u f : s Ñ t g : s Ñ u pf, gq : s Ñ t ˆ u id f f f id f f pg hq pf gq h pq f pq π 1 pf, gq f π 2 pf, gq g pπ 1 f, π 2 fq f eval pλf π 1, π 2 q f λpeval pf π 1, π 2 qq f 30 / 35
31 Programming AQL in CAML For every schema S, the category S-inst is cartesian closed. Given a type t, you get an S-instance rts. Given a term f : t Ñ t 1, you get a data mapping rfs : rts Ñ rt 1 s. All equations obeyed. S-inst is further a topos (model of higher-order logic / set theory). We consider the following schema in the examples that follow: a f b 31 / 35
32 Programming AQL in CAML: Unit The unit instance 1 has one row per table: a x f x b x The data mapping pq t : t Ñ 1 sends every row in t to the only row in 1. For example, t a p r f q t b q t pq t ÝÝÑ a x f x b x 1 p, q, r, t pq t ÝÝÑ x 32 / 35
33 Programming AQL in CAML: Products Products s ˆ t are computed row-by-row, with evident projections π 1 : s ˆ t Ñ s and π 2 : s ˆ t Ñ t. For example: a f b 3 4 ˆ a a b f c c b c d a (1,a) (1,b) (2,a) (2,b ) f (3,c) (3,c) (3,c) (3,c) b (3,c) (3,d) (4,c) (4,d) Given data mappings f : s Ñ t and g : s Ñ u, how to define pf, gq : s Ñ t ˆ u is left to the reader. hint: try it on π 1 and π 2 and verify that pπ 1, π 2 q id. 33 / 35
34 Programming AQL in CAML: Exponentials Exponentials t s are given by finding all data mappings s Ñ t: a f b 3 4 Ñ a a b f c c b c d a f 1 ÞÑ a, 2 ÞÑ b, 3 ÞÑ c, 4 ÞÑ d 3 ÞÑ c, 4 ÞÑ d 1 ÞÑ b, 2 ÞÑ a, 3 ÞÑ c, 4 ÞÑ d 3 ÞÑ c, 4 ÞÑ d 1 ÞÑ a, 2 ÞÑ a, 3 ÞÑ c, 4 ÞÑ d 3 ÞÑ c, 4 ÞÑ d 1 ÞÑ b, 2 ÞÑ b, 3 ÞÑ c, 4 ÞÑ d 3 ÞÑ c, 4 ÞÑ d 1 ÞÑ a, 2 ÞÑ b, 3 ÞÑ d, 4 ÞÑ c 3 ÞÑ d, 4 ÞÑ c 1 ÞÑ b, 2 ÞÑ a, 3 ÞÑ d, 4 ÞÑ c 3 ÞÑ d, 4 ÞÑ c 1 ÞÑ a, 2 ÞÑ a, 3 ÞÑ d, 4 ÞÑ c 3 ÞÑ d, 4 ÞÑ c 1 ÞÑ b, 2 ÞÑ b, 3 ÞÑ d, 4 ÞÑ c 3 ÞÑ d, 4 ÞÑ c b 3 ÞÑ c, 4 ÞÑ c 3 ÞÑ c, 4 ÞÑ d 3 ÞÑ d, 4 ÞÑ c 3 ÞÑ d, 4 ÞÑ d Defining eval and λ are left to the reader. 34 / 35
35 Concusion We described a new algebraic approach to databases based on category theory. Schemas are categories, instances are set-valued functors. Three adjoint data migration functors, Σ,, Π manipulate data. Instances on a schema model the simply-typed λ-calculus. Our approach is implemented in AQL, an open-source project, available at catinf.com. Collaborators welcome! We are looking for a real-world pilot project. 35 / 35
A Functorial Query Language
A Funtoril Query Lnguge Ryn Wisnesky, Dvid Spivk Deprtment of Mthemtis Msshusetts Institute of Tehnology {wisnesky, dspivk}@mth.mit.edu Presented t Boston Hskell April 16, 2014 Outline Introdution to FQL.
More informationarxiv: v6 [cs.db] 29 Sep 2017
1 Algebraic Data Integration arxiv:1503.03571v6 [cs.db] 29 Sep 2017 Patrick Schultz Department of Mathematics Massachusetts Institute of Technology and Ryan Wisnesky Categorical Informatics, Inc. Abstract
More informationThe 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 informationarxiv: v1 [cs.db] 5 Sep 2012
KLEISLI DATABASE INSTANCES DAVID I. SPIVAK arxiv:1209.1011v1 [cs.db] 5 Sep 2012 Abstract. We use monads to relax the atomicity requirement for data in a database. Depending on the choice of monad, the
More informationElements 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 informationA categorical model for a quantum circuit description language
A categorical model for a quantum circuit description language Francisco Rios (joint work with Peter Selinger) Department of Mathematics and Statistics Dalhousie University CT July 16th 22th, 2017 What
More informationThe simple essence of automatic differentiation
The simple essence of automatic differentiation Conal Elliott Target January/June 2018 Conal Elliott January/June 2018 1 / 51 Differentiable programming made easy Current AI revolution runs on large data,
More informationarxiv: v2 [math.ct] 15 Nov 2016
ALGEBRAIC DATABASES PATRICK SCHULTZ, DAVID I. SPIVAK, CHRISTINA VASILAKOPOULOU, AND RYAN WISNESKY arxiv:1602.03501v2 [math.ct] 15 Nov 2016 Contents Abstract. Databases have been studied category-theoretically
More informationBaby's First Diagrammatic Calculus for Quantum Information Processing
Baby's First Diagrammatic Calculus for Quantum Information Processing Vladimir Zamdzhiev Department of Computer Science Tulane University 30 May 2018 1 / 38 Quantum computing ˆ Quantum computing is usually
More informationAlgebraic Groups. Anand Sawant Ludwig-Maximilians Universität, München. Summer Semester Version: July 8, 2016
Algebraic Groups Anand Sawant Ludwig-Maximilians Universität, München Summer Semester 2016 Version: July 8, 2016 Note: This file will be constantly updated till the end of the semester. Contents 1 Affine
More informationThe simple essence of automatic differentiation
The simple essence of automatic differentiation Conal Elliott Target January 2018 Conal Elliott January 2018 1 / 45 What s a derivative? Number Vector Covector Matrix Higher derivatives Chain rule for
More informationHomework Assignment 2. Due Date: October 17th, CS425 - Database Organization Results
Name CWID Homework Assignment 2 Due Date: October 17th, 2017 CS425 - Database Organization Results Please leave this empty! 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.10 2.11 2.12 2.15 2.16 2.17 2.18 2.19 Sum
More informationRelational Algebra by Way of Adjunctions. Jeremy Gibbons (joint work with Fritz Henglein, Ralf Hinze, Nicolas Wu) DBPL, October 2015
Relational Algebra by Way of Adjunctions Jeremy Gibbons (joint work with Fritz Henglein, Ralf Hinze, Nicolas Wu) DBPL, October 2015 Relational Algebra by Way of Adjunctions 2 1. Summary bulk types (sets,
More informationFINITE RESOLUTIONS DIGEST NORTHWESTERN TAF SEMINAR FEBRUARY 21, Introduction
FINITE RESOLUTIONS DIGEST NORTHWESTERN TAF SEMINAR FEBRUARY, 04 Remark 0.. My main reference is A Resolution of the Kpq-Local Sphere at the Pme 3 by Goerss, Henn, Mahowald and Rezk, and Finite Resolutions
More informationFunctional Programming with F# Overview and Basic Concepts
Functional Programming with F# Overview and Basic Concepts Radu Nicolescu Department of Computer Science University of Auckland 27 Sep 2017 1 / 52 1 Background 2 Overview 3 Type System and Type Inference
More informationInternalizing the simplicial model structure in Homotopy Type Theory. Simon Boulier
Internalizing the simplicial model structure in Homotopy Type Theory Simon Boulier A type theory with two equalities Model structures in mathematics Internalizing the simplicial model structure in HoTT
More informationComplete 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 informationCategory theory and set theory: algebraic set theory as an example of their interaction
Category theory and set theory: algebraic set theory as an example of their interaction Brice Halimi May 30, 2014 My talk will be devoted to an example of positive interaction between (ZFC-style) set theory
More informationBicubical Directed Type Theory
Bicubical Directed Type Theory Matthew Weaver General Examination May 7th, 2018 Advised by Andrew Appel and Dan Licata Bicubical Directed Type Theory Bicubical directed type theory is a constructive model
More informationIntroduction to type theory and homotopy theory
Introduction to type theory and homotopy theory Michael Shulman January 24, 2012 1 / 47 Homotopy theory Homotopy type theory types have a homotopy theory Intensional type theory New perspectives on extensional
More informationThe simple essence of automatic differentiation
The simple essence of automatic differentiation Conal Elliott Target January/June 2018 Conal Elliott January/June 2018 1 / 52 Machine learning: promise and problems Current AI revolution runs on large
More information1 / A bird s-eye view of type theory. 2 A bird s-eye view of homotopy theory. 3 Path spaces and identity types. 4 Homotopy type theory
Introduction to type theory and homotopy theory Michael Shulman January 24, 2012 Homotopy theory Homotopy type theory types have a homotopy theory New perspectives on extensional vs. intensional Intensional
More informationUniform Schemata for Proof Rules
Uniform Schemata for Proof Rules Ulrich Berger and Tie Hou Department of omputer Science, Swansea University, UK {u.berger,cshou}@swansea.ac.uk Abstract. Motivated by the desire to facilitate the implementation
More informationA higher-order temporal logic for dynamical systems
A higher-order temporal logic for dynamical systems David I. Spivak and Patrick Schultz Mathematics Department Massachusetts Institute of Technology AMS Fall Sectional, Riverside CA November 4, 2017 0
More informationRELATIVE THEORY IN SUBCATEGORIES. Introduction
RELATIVE THEORY IN SUBCATEGORIES SOUD KHALIFA MOHAMMED Abstract. We generalize the relative (co)tilting theory of Auslander- Solberg [9, 1] in the category mod Λ of finitely generated left modules over
More informationTOPOSES ARE SYMMETRIC MONOIDAL CLOSED CATEGORIES
Please cite this article as: Viliam Slodičák, Toposes are symmetric monoidal closed categories, Scientific Research of the Institute of Mathematics and Computer Science, 2012, Volume 11, Issue 1, pages
More informationSemantics 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 informationJUSTIFYING BOOLE S ALGEBRA of LOGIC for CLASSES
Outline The Paradigm The Starting Point Boole s Partial Algebras Boole s Translations Laws and Rules of Inference Characteristic Functions Signed Multisets NCR 1 R01 Horn Formulas Relativizing Quantifiers
More informationHomotopy Theory of Topological Spaces and Simplicial Sets
Homotopy Theory of Topological Spaces and Simplicial Sets Jacobien Carstens May 1, 2007 Bachelorthesis Supervision: prof. Jesper Grodal KdV Institute for mathematics Faculty of Natural Sciences, Mathematics
More informationTHE OPERAD OF WIRING DIAGRAMS: FORMALIZING A GRAPHICAL LANGUAGE FOR DATABASES, RECURSION, AND PLUG-AND-PLAY CIRCUITS
THE OPERAD OF WIRING DIAGRAMS: FORMALIZING A GRAPHICAL LANGUAGE FOR DATABASES, RECURSION, AND PLUG-AND-PLAY CIRCUITS DAVID I. SPIVAK Abstract. Wiring diagrams, as seen in digital circuits, can be nested
More informationConservation of Information
Conservation of Information Amr Sabry (in collaboration with Roshan P. James) School of Informatics and Computing Indiana University May 8, 2012 Amr Sabry (in collaboration with Roshan P. James) (IU SOIC)
More informationStatic Program Analysis
Static Program Analysis Xiangyu Zhang The slides are compiled from Alex Aiken s Michael D. Ernst s Sorin Lerner s A Scary Outline Type-based analysis Data-flow analysis Abstract interpretation Theorem
More informationEDA045F: Program Analysis LECTURE 10: TYPES 1. Christoph Reichenbach
EDA045F: Program Analysis LECTURE 10: TYPES 1 Christoph Reichenbach In the last lecture... Performance Counters Challenges in Dynamic Performance Analysis Taint Analysis Binary Instrumentation 2 / 44 Types
More informationUniversity 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 informationA Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation
Dichotomy for Non-Repeating Queries with Negation Queries with Negation in in Probabilistic Databases Robert Dan Olteanu Fink and Dan Olteanu Joint work with Robert Fink Uncertainty in Computation Simons
More informationQuantum Functional Programming Language & Its Denotational Semantics
Quantum Functional Programming Language & Its Denotational Semantics Ichiro Hasuo Dept. Computer Science University of Tokyo Naohiko Hoshino Research Inst. for Math. Sci. Kyoto University Talk based on:
More informationUnbounded 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 informationDenoting computation
A jog from Scott Domains to Hypercoherence Spaces 13/12/2006 Outline Motivation 1 Motivation 2 What Does Denotational Semantic Mean? Trivial examples Basic things to know 3 Scott domains di-domains 4 Event
More informationQuantum groupoids and logical dualities
Quantum groupoids and logical dualities (work in progress) Paul-André Melliès CNS, Université Paris Denis Diderot Categories, ogic and Foundations of Physics ondon 14 May 2008 1 Proof-knots Aim: formulate
More informationvia Topos Theory Olivia Caramello University of Cambridge The unification of Mathematics via Topos Theory Olivia Caramello
in University of Cambridge 2 / 23 in in In this lecture, whenever I use the word topos, I really mean Grothendieck topos. Recall that a Grothendieck topos can be seen as: a generalized space a mathematical
More informationRelational Algebra & Calculus
Relational Algebra & Calculus Yanlei Diao UMass Amherst Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 Outline v Conceptual Design: ER model v Logical Design: ER to relational model v Querying and
More informationFrom syntax to semantics of Dependent Type Theories - Formalized
RDP 2015, Jun. 30, 2015, WCMCS, Warsaw. From syntax to semantics of Dependent Type Theories - Formalized by Vladimir Voevodsky from the Institute for Advanced Study in Princeton, NJ. I will be speaking
More informationHigher Order Containers
Higher Order Containers Thorsten Altenkirch 1, Paul Levy 2, and Sam Staton 3 1 University of Nottingham 2 University of Birmingham 3 University of Cambridge Abstract. Containers are a semantic way to talk
More informationNICTA Advanced Course. Theorem Proving Principles, Techniques, Applications
NICTA Advanced Course Theorem Proving Principles, Techniques, Applications λ 1 CONTENT Intro & motivation, getting started with Isabelle Foundations & Principles Lambda Calculus Higher Order Logic, natural
More informationBringing class diagrams to life
Bringing class diagrams to life Luis S. Barbosa & Sun Meng DI-CCTC, Minho University, Braga & CWI, Amsterdam UML & FM Workshop 2009 Rio de Janeiro 8 December, 2009 Formal Methods proofs problems structures
More informationThe modality of physical law in modal homotopy type theory
The modality of physical law in modal homotopy type theory David Corfield University of Kent 13 September, 2016 The modality of physical law in modal homotopy type theory 13 September, 2016 1 / 39 What
More informationLocally 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 informationEntity-Relationship Diagrams and FOL
Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof. Enrico Franconi for provoding the slides What is a
More informationCOMMUTATIVE ALGEBRA LECTURE 1: SOME CATEGORY THEORY
COMMUTATIVE ALGEBRA LECTURE 1: SOME CATEGORY THEORY VIVEK SHENDE A ring is a set R with two binary operations, an addition + and a multiplication. Always there should be an identity 0 for addition, an
More informationMonads as a Solution for Generalized Opacity
Monads as a Solution for Generalized Opacity Gianluca Giorgolo & Ash Asudeh April 27, 2014 - TTNLS 2014 Denotations vs. senses 1 + 1 = 2 The two sides of the equality have the same denotation But they
More informationPersistent Homology & Category Theory. November 8, 2016
Persistent Homology & Category Theory November 8, 2016 Persistent Homology There are many introductory papers written on the topic of persistent homology... Persistent Homology Here is the Topology & Data
More informationAlgebraic model structures
Algebraic model structures Emily Riehl Harvard University http://www.math.harvard.edu/~eriehl 18 September, 2011 Homotopy Theory and Its Applications AWM Anniversary Conference ICERM Emily Riehl (Harvard
More informationCellularity, composition, and morphisms of algebraic weak factorization systems
Cellularity, composition, and morphisms of algebraic weak factorization systems Emily Riehl University of Chicago http://www.math.uchicago.edu/~eriehl 19 July, 2011 International Category Theory Conference
More informationNames and Symmetry in Computer Science
1/27 Names and Symmetry in Computer Science Andrew Pitts Computer Laboratory LICS 2015 Tutorial 2/27 An introduction to nominal techniques motivated by Programming language semantics Automata theory Constructive
More informationFibrational 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 informationDomain theory and denotational semantics of functional programming
Domain theory and denotational semantics of functional programming Martín Escardó School of Computer Science, Birmingham University MGS 2007, Nottingham, version of April 20, 2007 17:26 What is denotational
More informationTeooriaseminar. TTÜ Küberneetika Instituut. May 10, Categorical Models. for Two Intuitionistic Modal Logics. Wolfgang Jeltsch.
TTÜ Küberneetika Instituut Teooriaseminar May 10, 2012 1 2 3 4 1 2 3 4 Modal logics used to deal with things like possibility, belief, and time in this talk only time two new operators and : ϕ now and
More informationarxiv: v1 [math.ct] 10 Jul 2016
ON THE FIBREWISE EFFECTIVE BURNSIDE -CATEGORY arxiv:1607.02786v1 [math.ct] 10 Jul 2016 CLARK BARWICK AND SAUL GLASMAN Abstract. Effective Burnside -categories, introduced in [1], are the centerpiece of
More informationCategorical Homotopy Type Theory
Categorical Homotopy Type Theory André Joyal UQÀM MIT Topology Seminar, March 17, 2014 Warning The present slides include corrections and modifications that were made during the week following my talk.
More informationCategories and Quantum Informatics: Hilbert spaces
Categories and Quantum Informatics: Hilbert spaces Chris Heunen Spring 2018 We introduce our main example category Hilb by recalling in some detail the mathematical formalism that underlies quantum theory:
More informationFrom 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 informationWrite your own Theorem Prover
Write your own Theorem Prover Phil Scott 27 October 2016 Phil Scott Write your own Theorem Prover 27 October 2016 1 / 31 Introduction We ll work through a toy LCF style theorem prover for classical propositional
More informationImage schemas via finite-state methods structured category-theoretically
Objective predication Subjective predication Reconciliation Image schemas via finite-state methods structured category-theoretically Tim Fernando Bolzano, 22 August 2016, PROSECCO a recurring structure
More informationHigher toposes Internal logic Modalities Sub- -toposes Formalization. Modalities in HoTT. Egbert Rijke, Mike Shulman, Bas Spitters 1706.
Modalities in HoTT Egbert Rijke, Mike Shulman, Bas Spitters 1706.07526 Outline 1 Higher toposes 2 Internal logic 3 Modalities 4 Sub- -toposes 5 Formalization Two generalizations of Sets Groupoids: To keep
More informationCategory Theory. Categories. Definition.
Category Theory Category theory is a general mathematical theory of structures, systems of structures and relationships between systems of structures. It provides a unifying and economic mathematical modeling
More informationLogic for Computational Effects: work in progress
1 Logic for Computational Effects: work in progress Gordon Plotkin and John Power School of Informatics University of Edinburgh King s Buildings Mayfield Road Edinburgh EH9 3JZ Scotland gdp@inf.ed.ac.uk,
More informationSchema Refinement & Normalization Theory: Functional Dependencies INFS-614 INFS614, GMU 1
Schema Refinement & Normalization Theory: Functional Dependencies INFS-614 INFS614, GMU 1 Background We started with schema design ER model translation into a relational schema Then we studied relational
More informationINTRODUCTION 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 informationGeneric 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 informationFormal Verification. Lecture 1: Introduction to Model Checking and Temporal Logic¹
Formal Verification Lecture 1: Introduction to Model Checking and Temporal Logic¹ Jacques Fleuriot jdf@inf.ed.ac.uk ¹Acknowledgement: Adapted from original material by Paul Jackson, including some additions
More informationProvenance Semirings. Todd Green Grigoris Karvounarakis Val Tannen. presented by Clemens Ley
Provenance Semirings Todd Green Grigoris Karvounarakis Val Tannen presented by Clemens Ley place of origin Provenance Semirings Todd Green Grigoris Karvounarakis Val Tannen presented by Clemens Ley place
More informationClassical 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 informationA Graph Theoretic Perspective on CPM(Rel)
A Graph Theoretic Perspective on CPM(Rel) Daniel Marsden Mixed states are of interest in quantum mechanics for modelling partial information. More recently categorical approaches to linguistics have also
More informationDeveloping Modal Tableaux and Resolution Methods via First-Order Resolution
Developing Modal Tableaux and Resolution Methods via First-Order Resolution Renate Schmidt University of Manchester Reference: Advances in Modal Logic, Vol. 6 (2006) Modal logic: Background Established
More informationRelativizing 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 informationPostulated colimits and left exactness of Kan-extensions
Postulated colimits and left exactness of Kan-extensions Anders Kock If A is a small category and E a Grothendieck topos, the Kan extension LanF of a flat functor F : A E along any functor A D preserves
More informationAlgebraic Geometry
MIT OpenCourseWare http://ocw.mit.edu 18.726 Algebraic Geometry Spring 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 18.726: Algebraic Geometry
More informationSound and Efficient Language-Integrated Query
Sound and Efficient Language-Integrated Query Maintaining the ORDER Oleg Kiselyov Tatsuya Katsushima Tohoku University, Japan APLAS 2017 November, 2017 2 Outline Motivation Core SQUR Core SQUR with Ranking
More informationProgramming Languages in String Diagrams. [ one ] String Diagrams. Paul-André Melliès. Oregon Summer School in Programming Languages June 2011
Programming Languages in String Diagrams [ one ] String Diagrams Paul-ndré Melliès Oregon Summer School in Programming Languages June 2011 String diagrams diagrammatic account o logic and programming 2
More informationA [Monad-Based] Semantics for Hybrid Iteration
A [Monad-Based] Semantics for Hybrid Iteration Sergey Goncharov a Julian Jakob a Renato Neves b CONCUR 2018, September 4-7, Beijing a Friedrich-Alexander-Universität Erlangen-Nürnberg b INESC TEC (HASLab)
More informationFunctor Semantics for Refactoring-Induced Data Migration
Functor Semantics for Refactoring-Induced Data Migration Harald König, Michael Löwe, Christoph Schulz Bericht Nr.: 02007/01 Impressum Forschungsberichte der FHDW Hannover Veröffentlichungen aus dem Bereich
More informationDatabase Applications (15-415)
Database Applications (15-415) Relational Calculus Lecture 6, January 26, 2016 Mohammad Hammoud Today Last Session: Relational Algebra Today s Session: Relational calculus Relational tuple calculus Announcements:
More informationExotic Crossed Products
Exotic Crossed Products Rufus Willett (joint with Alcides Buss and Siegfried Echterhoff, and with Paul Baum and Erik Guentner) University of Hawai i WCOAS, University of Denver, November 2014 1 / 15 G
More informationDerived Algebraic Geometry I: Stable -Categories
Derived Algebraic Geometry I: Stable -Categories October 8, 2009 Contents 1 Introduction 2 2 Stable -Categories 3 3 The Homotopy Category of a Stable -Category 6 4 Properties of Stable -Categories 12 5
More informationMorita Equivalence. Eamon Quinlan
Morita Equivalence Eamon Quinlan Given a (not necessarily commutative) ring, you can form its category of right modules. Take this category and replace the names of all the modules with dots. The resulting
More informationIn the beginning God created tensor... as a picture
In the beginning God created tensor... as a picture Bob Coecke coecke@comlab.ox.ac.uk EPSRC Advanced Research Fellow Oxford University Computing Laboratory se10.comlab.ox.ac.uk:8080/bobcoecke/home en.html
More informationRelational lattices via duality
1/25 via duality Luigi Santocanale LIF, Axi-Marseille Université E-mail: luigi.santocanale@lif.univ-mrs.fr URL: http://pageperso.lif.univ-mrs.fr/~luigi.santocanale TACL, Ischia, June 2015 2/25 Outline
More informationConnecting the categorical and the modal logic approaches to Quantum Mech
Connecting the categorical and the modal logic approaches to Quantum Mechanics based on MSc thesis supervised by A. Baltag Institute for Logic, Language and Computation University of Amsterdam 30.11.2013
More informationTwo-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 informationComplex Systems from the Perspective of Category. Theory: II. Covering Systems and Sheaves
Complex Systems from the Perspective of Category Theory: II. Covering Systems and Sheaves Abstract Using the concept of adjunction, for the comprehension of the structure of a complex system, developed
More informationOn the Semantics of Parsing Actions
On the Semantics of Parsing Actions Hayo Thielecke School of Computer Science University of Birmingham Birmingham B15 2TT, United Kingdom Abstract Parsers, whether constructed by hand or automatically
More informationNICTA 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 informationAbout categorical semantics
About categorical semantics Dominique Duval LJK, University of Grenoble October 15., 2010 Capp Café, LIG, University of Grenoble Outline Introduction Logics Effects Conclusion The issue Semantics of programming
More informationA few bridges between operational and denotational semantics of programming languages
A few bridges between operational and denotational semantics of programming languages Soutenance d habilitation à diriger les recherches Tom Hirschowitz November 17, 2017 Hirschowitz Bridges between operational
More informationBoolean Algebra and Propositional Logic
Boolean Algebra and Propositional Logic Takahiro Kato June 23, 2015 This article provides yet another characterization of Boolean algebras and, using this characterization, establishes a more direct connection
More informationDatabase Applications (15-415)
Database Applications (15-415) Relational Calculus Lecture 5, January 27, 2014 Mohammad Hammoud Today Last Session: Relational Algebra Today s Session: Relational algebra The division operator and summary
More informationClassical Program Logics: Hoare Logic, Weakest Liberal Preconditions
Chapter 1 Classical Program Logics: Hoare Logic, Weakest Liberal Preconditions 1.1 The IMP Language IMP is a programming language with an extensible syntax that was developed in the late 1960s. We will
More information26. Januar Introduction to Computational Semantics
1 Lehrstuhl für Künstliche Intelligenz Institut für Informatik Friedrich-Alexander-Universität Erlangen-Nürnberg 26. Januar 2006 1 Slides are mainly due to J. Bos and P. Blackburn course on An Introduction
More informationData Dependencies in the Presence of Difference
Data Dependencies in the Presence of Difference Tsinghua University sxsong@tsinghua.edu.cn Outline Introduction Application Foundation Discovery Conclusion and Future Work Data Dependencies in the Presence
More informationAdjunctions! 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