applied category theory
play

Applied category theory @KenScambler The emerging science of - PowerPoint PPT Presentation

Applied category theory @KenScambler The emerging science of compositionality Category theory Applied category theory prepare lemon meringue pie prepared crust fill crust lemon unbaked lemon make butter lemon pie filling lemon


  1. Diagrams inside diagrams prepare lemon meringue pie prepared crust fill crust lemon Blend unbaked butter lemon pie Combine lemon unbaked filling sugar add pie Beat yolk meringue separate egg egg white make meringue sugar meringue

  2. prepare lemon meringue pie unbaked prepare lemon meringue pie pie baked pie bake pie oven oven

  3. Surprise! It’s another operad unbaked pie baked pie bake pie oven oven

  4. Lemon Meringue Pie operad sugar ⨂ white � meringue egg � yolk ⨂ white lemon ⨂ butter ⨂ sugar ⨂ prepared crust ⨂ lemon ⨂ butter prepare lemon yolk � lemon filling ⨂ sugar ⨂ egg ⨂ sugar � meringue pie unbaked pie prepared crust ⨂ lemon filling � unbaked lemon pie unbaked lemon pie ⨂ meringue � unbaked pie

  5. String diagrams in software architecture • Fantastic for software design • I’ve used them for years to train junior & senior developers • Modularity, boundaries

  6. Simon Brown

  7. Level 1

  8. Level 1 Level 2

  9. Level 1 Level 2 Level 3

  10. Level 1 Level 2 Level 4 Level 3 Operad! (maybe)

  11. Operad of wiring diagrams from 
 “The operad of wiring diagrams: formalizing a graphical language for databases, recursion and plug-and-play circuits” by David I. Spivak (2013)

  12. Inputs x 1 , x 2 , x 3

  13. Input types {s,r,t} {w, x, y, z} {u, v} Output type {a,b,c,d,e}

  14. Compositional SQL queries SELECT L.student, L.address FROM attends a1, gender g1, attends a2, gender g2, lives L WHERE a1.student=g1.student AND a2.student=g2.student AND L.student=g1.student AND a1.course=a2.course AND g1.gender=‘male’ AND g2.gender=‘female’

  15. SELECT L.student, L.address FROM attends a1, gender g1, attends a2, gender g2, lives L WHERE a1.student=g1.student AND a2.student=g2.student AND L.student=g1.student AND a1.course=a2.course AND g1.gender=‘male’ AND g2.gender=‘female’

  16. SELECT L.student, L.address FROM attends a1, gender g1, attends a2, gender g2, lives L WHERE a1.student=g1.student AND a2.student=g2.student AND L.student=g1.student AND a1.course=a2.course AND g1.gender=‘male’ AND g2.gender=‘female’ Constants Tables

  17. SELECT L.student, L.address FROM attends a1, gender g1, attends a2, gender g2, lives L WHERE a1.student=g1.student AND a2.student=g2.student AND L.student=g1.student AND a1.course=a2.course AND g1.gender=‘male’ AND g2.gender=‘female’ SELECT

  18. SELECT L.student, L.address FROM attends a1, gender g1, attends a2, gender g2, lives L WHERE a1.student=g1.student AND a2.student=g2.student AND L.student=g1.student AND a1.course=a2.course AND g1.gender=‘male’ AND g2.gender=‘female’ WHERE 
 (wiring)

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend