string diagrams for regular logic - category theory · introduction string diagrams for regular...
TRANSCRIPT
![Page 1: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/1.jpg)
String diagrams for regular logic
David I. Spivak (joint with Brendan Fong)
Presented on 2018/10/27
Octoberfest
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 0 / 19
![Page 2: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/2.jpg)
Introduction
Outline
1 IntroductionApplication: playing with logicImplications for string diagramsString diagrams for regular logic
2 Regular categories and regular logic
3 Bringing it all together
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 0 / 19
![Page 3: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/3.jpg)
Introduction Application: playing with logic
Minority Report
The 2002 movie Minority report showed detective Tom Cruise playingseamlessly with logic.
A computer database held relevant information.
Cruise could pull it up, and manipulate it, to solve crimes.
Let’s imagine such a detective scenario. The knowledge base says:
Any two people who work in the same tiny company are acquainted.
Categorical Informatics is a tiny company.
David works at Categorical Informatics.
Ryan works at Categorical Informatics.
We of course want to conclude that David and Ryan are acquainted.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 1 / 19
![Page 4: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/4.jpg)
Introduction Application: playing with logic
Minority Report
The 2002 movie Minority report showed detective Tom Cruise playingseamlessly with logic.
A computer database held relevant information.
Cruise could pull it up, and manipulate it, to solve crimes.
Let’s imagine such a detective scenario. The knowledge base says:
Any two people who work in the same tiny company are acquainted.
Categorical Informatics is a tiny company.
David works at Categorical Informatics.
Ryan works at Categorical Informatics.
We of course want to conclude that David and Ryan are acquainted.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 1 / 19
![Page 5: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/5.jpg)
Introduction Application: playing with logic
Sample scenario
Assume:
works workscompany
tiny
person personacquainted`
Ci
Ci
Ci
company
=
true David works Ci= Ryan works Ci= Ci tiny=
Show:
true David acquainted Ryan=
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 2 / 19
![Page 6: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/6.jpg)
Introduction Application: playing with logic
Sample scenario
Assume:
works workscompany
tiny
person personacquainted`
Ci
Ci
Ci
company
=
true David works Ci= Ryan works Ci= Ci tiny=
Show:
true David acquainted Ryan=
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 2 / 19
![Page 7: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/7.jpg)
Introduction Application: playing with logic
Sample scenario
Assume:
works workscompany
tiny
person personacquainted`
Ci
Ci
Ci
company
=
true David works Ci= Ryan works Ci= Ci tiny=
Show:
true David acquainted Ryan=
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 2 / 19
![Page 8: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/8.jpg)
Introduction Application: playing with logic
Sample scenario
Assume:
works workscompany
tiny
person personacquainted`
Ci
Ci
Ci
company
=
true David works Ci= Ryan works Ci= Ci tiny=
Show:
true David acquainted Ryan=
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 2 / 19
![Page 9: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/9.jpg)
Introduction Application: playing with logic
Picture proof
true David works Ci= Ryan works Ci= Ci tiny=
Combine!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 10: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/10.jpg)
Introduction Application: playing with logic
Picture proof
Combined:
David works Ci
Ryan works Ci
tiny Ci
true =
Group two Ci’s!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 11: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/11.jpg)
Introduction Application: playing with logic
Picture proof
Ci’s grouped:
David works
Ci
Ryan works Ci
tiny Ci
true =
Substitute!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 12: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/12.jpg)
Introduction Application: playing with logic
Picture proof
Substituted:
David works
Ryan works
Ci
Ci
tinytrue =
Group two Ci’s!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 13: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/13.jpg)
Introduction Application: playing with logic
Picture proof
Two Ci’s grouped:
David works
Ryan works
Ci
Ci
tinytrue =
Substitute!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 14: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/14.jpg)
Introduction Application: playing with logic
Picture proof
Substituted:
David works
Ryan works
Ci
tinytrue =
Group Ci!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 15: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/15.jpg)
Introduction Application: playing with logic
Picture proof
Ci grouped:
David works
Ryan works
Ci
tinytrue =
Discard group!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 16: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/16.jpg)
Introduction Application: playing with logic
Picture proof
Group discarded:
David works
Ryan works
tinytrue =
Group!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 17: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/17.jpg)
Introduction Application: playing with logic
Picture proof
Grouped:
David works
Ryan works
tinytrue =
Substitute!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 18: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/18.jpg)
Introduction Application: playing with logic
Picture proof
Substituted:
David
Ryan
acquaintedtrue =
Done!
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 3 / 19
![Page 19: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/19.jpg)
Introduction Implications for string diagrams
Two-dimensional manipulation of string diagrams
In this talk we discuss a 2-dimensional language for wiring diagrams.
It includes all the sorts of operations shown above.
Together with operations like discarding and breaking wires:
`
`` etc...
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 4 / 19
![Page 20: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/20.jpg)
Introduction Implications for string diagrams
Comparing to other string diagram languages
Let’s compare to string diagram calculus for traced SMCs and hypercats.
In traced SMCs, you can compose, tensor, swap, and trace.
You can do these anywhere in the diagram, with axioms.These can be considered generators and relations for an operad.Traced categories are algebras on the operad 1-Cob.
In hypergraph categories, add Frobenius maps, plus axioms.
Hypergraph categories are algebras on the operad Cospan.
In our picture proof, we had more operations and relations.
Order on elements of each arity, preserved by substitution.Meet-semilattice structures on elements of each arity.Top element (true) can be discarded; corresponding structure for ∧.Removing dots, breaking wires.
We will see that this is a 2-dimensional structure.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 5 / 19
![Page 21: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/21.jpg)
Introduction Implications for string diagrams
Comparing to other string diagram languages
Let’s compare to string diagram calculus for traced SMCs and hypercats.
In traced SMCs, you can compose, tensor, swap, and trace.
You can do these anywhere in the diagram, with axioms.
These can be considered generators and relations for an operad.Traced categories are algebras on the operad 1-Cob.
In hypergraph categories, add Frobenius maps, plus axioms.
Hypergraph categories are algebras on the operad Cospan.
In our picture proof, we had more operations and relations.
Order on elements of each arity, preserved by substitution.Meet-semilattice structures on elements of each arity.Top element (true) can be discarded; corresponding structure for ∧.Removing dots, breaking wires.
We will see that this is a 2-dimensional structure.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 5 / 19
![Page 22: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/22.jpg)
Introduction Implications for string diagrams
Comparing to other string diagram languages
Let’s compare to string diagram calculus for traced SMCs and hypercats.In traced SMCs, you can compose, tensor, swap, and trace.
You can do these anywhere in the diagram, with axioms.These can be considered generators and relations for an operad.Traced categories are algebras on the operad 1-Cob.
X1 X2
Y
X1a
X1b
X1c X2a
X2b
X2c
Ya
Yb
Yc
Yd
−X1a
−X1b
+X1c
−X2a
+X2b
+X2c
− Ya
− Yb
+ Yc
+ Yd
In hypergraph categories, add Frobenius maps, plus axioms.Hypergraph categories are algebras on the operad Cospan.
In our picture proof, we had more operations and relations.Order on elements of each arity, preserved by substitution.Meet-semilattice structures on elements of each arity.Top element (true) can be discarded; corresponding structure for ∧.Removing dots, breaking wires.
We will see that this is a 2-dimensional structure.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 5 / 19
![Page 23: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/23.jpg)
Introduction Implications for string diagrams
Comparing to other string diagram languages
Let’s compare to string diagram calculus for traced SMCs and hypercats.In traced SMCs, you can compose, tensor, swap, and trace.
You can do these anywhere in the diagram, with axioms.These can be considered generators and relations for an operad.Traced categories are algebras on the operad 1-Cob.
In hypergraph categories, add Frobenius maps, plus axioms.Hypergraph categories are algebras on the operad Cospan.
a b
c2
t
1
1u3 2
v
4
3w
14
x1
2y
2
s
3
z
6
5
1 2 3 4 1 2 1 2 3
a b c
s t u v w x y z
1 2 3 4 5 6
outer
In our picture proof, we had more operations and relations.Order on elements of each arity, preserved by substitution.Meet-semilattice structures on elements of each arity.Top element (true) can be discarded; corresponding structure for ∧.Removing dots, breaking wires.
We will see that this is a 2-dimensional structure.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 5 / 19
![Page 24: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/24.jpg)
Introduction Implications for string diagrams
Comparing to other string diagram languages
Let’s compare to string diagram calculus for traced SMCs and hypercats.
In traced SMCs, you can compose, tensor, swap, and trace.
You can do these anywhere in the diagram, with axioms.These can be considered generators and relations for an operad.Traced categories are algebras on the operad 1-Cob.
In hypergraph categories, add Frobenius maps, plus axioms.
Hypergraph categories are algebras on the operad Cospan.
In our picture proof, we had more operations and relations.
Order on elements of each arity, preserved by substitution.Meet-semilattice structures on elements of each arity.Top element (true) can be discarded; corresponding structure for ∧.Removing dots, breaking wires.
We will see that this is a 2-dimensional structure.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 5 / 19
![Page 25: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/25.jpg)
Introduction String diagrams for regular logic
Formal presentation of the calculus I.
The graphical calculus shown above can be understood as follows.
Fix a set Λ (elements will be string labels).
Consider the monoidal bicategory CospancoΛ .
Objects: arities nv−→ Λ, i.e. lists (v(1), . . . , v(n)) ∈ Λn.
1-morphisms:n1 n12 n2
Λv1 v2
2-morphisms: opposite of usual direction (hence −co)Monoidal structure: (0,+).
Consider the (locally posetal) monoidal bicategory Poset.
Obj: posets; 1-morphisms: monotone maps; 2-morphisms: nat. trans.Monoidal structure: (1,×).
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 6 / 19
![Page 26: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/26.jpg)
Introduction String diagrams for regular logic
Formal presentation of the calculus I.
The graphical calculus shown above can be understood as follows.
Fix a set Λ (elements will be string labels).
Consider the monoidal bicategory CospancoΛ .
Objects: arities nv−→ Λ, i.e. lists (v(1), . . . , v(n)) ∈ Λn.
1-morphisms:n1 n12 n2
Λv1 v2
2-morphisms: opposite of usual direction (hence −co)Monoidal structure: (0,+).
Consider the (locally posetal) monoidal bicategory Poset.
Obj: posets; 1-morphisms: monotone maps; 2-morphisms: nat. trans.Monoidal structure: (1,×).
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 6 / 19
![Page 27: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/27.jpg)
Introduction String diagrams for regular logic
Formal presentation of the calculus I.
The graphical calculus shown above can be understood as follows.
Fix a set Λ (elements will be string labels).
Consider the monoidal bicategory CospancoΛ .
Objects: arities nv−→ Λ, i.e. lists (v(1), . . . , v(n)) ∈ Λn.
1-morphisms:n1 n12 n2
Λv1 v2
2-morphisms: opposite of usual direction (hence −co)Monoidal structure: (0,+).
Consider the (locally posetal) monoidal bicategory Poset.
Obj: posets; 1-morphisms: monotone maps; 2-morphisms: nat. trans.Monoidal structure: (1,×).
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 6 / 19
![Page 28: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/28.jpg)
Introduction String diagrams for regular logic
Formal presentation of the calculus II.
We have monoidal bicategories Cospan and Poset.
Definition
A regular hypergraph category is a lax monoidal 2-functor
T : CospancoΛ → Poset
such that the laxators are right adjoints.
Silly terminology: ajax monoidal functors: the laxators
1 T (0)ρ1
and T (v)× T (v ′) T (v + v ′)
ρv,v′
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 7 / 19
![Page 29: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/29.jpg)
Introduction String diagrams for regular logic
Formal presentation of the calculus II.
We have monoidal bicategories Cospan and Poset.
Definition
A regular hypergraph category is a lax monoidal 2-functor
T : CospancoΛ → Poset
such that the laxators are right adjoints.
Silly terminology: ajax monoidal functors: the laxators
1 T (0)ρ1
and T (v)× T (v ′) T (v + v ′)
ρv,v′
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 7 / 19
![Page 30: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/30.jpg)
Introduction String diagrams for regular logic
Formal presentation of the calculus II.
We have monoidal bicategories Cospan and Poset.
Definition
A regular hypergraph category is a lax monoidal 2-functor
T : CospancoΛ → Poset
such that the laxators are right adjoints.
Silly terminology: ajax monoidal functors: the laxators are adjoints
1 T (0)ρ1
>λ1
and T (v)× T (v ′) T (v + v ′)
ρv,v′
>λv,v′
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 7 / 19
![Page 31: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/31.jpg)
Introduction String diagrams for regular logic
Aside: we’re pushing this notation for adjunctions
Throughout this talk, I’ll use a new notation for adjunctions.
Usual notation: C DR
>L
C DR
⊥L
D C .L
⊥R
Note that > is sometimes used as the name of a monad, but...... it really doesn’t indicate where the monad is (it’s on D).
Our notation: C DR⇐L
C DR
⇐L
D CL⇒R
The 2-arrow points in the direction of the left adjoint.Reason: it tells you the direction of the unit and counit.
C
D
C
R
⇐L
D
C
D
R
⇐L
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 8 / 19
![Page 32: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/32.jpg)
Introduction String diagrams for regular logic
Aside: we’re pushing this notation for adjunctions
Throughout this talk, I’ll use a new notation for adjunctions.
Usual notation: C DR
>L
C DR
⊥L
D C .L
⊥R
Note that > is sometimes used as the name of a monad, but...... it really doesn’t indicate where the monad is (it’s on D).
Our notation: C DR⇐L
C DR
⇐L
D CL⇒R
The 2-arrow points in the direction of the left adjoint.Reason: it tells you the direction of the unit and counit.
C
D
C
R
⇐L
D
C
D
R
⇐L
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 8 / 19
![Page 33: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/33.jpg)
Introduction String diagrams for regular logic
Aside: we’re pushing this notation for adjunctions
Throughout this talk, I’ll use a new notation for adjunctions.
Usual notation: C DR
>L
Note that > is sometimes used as the name of a monad, but...... it really doesn’t indicate where the monad is (it’s on D).
Our notation: C DR⇐L
The 2-arrow points in the direction of the left adjoint.Reason: it tells you the direction of the unit and counit.
C
D
C
R
⇐L
D
C
D
R
⇐L
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 8 / 19
![Page 34: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/34.jpg)
Introduction String diagrams for regular logic
Regular hypergraph categories and regular categories
Denote by Cospan-Alg the category of regular hypergraph categories, i.e.sets Λ and ajax 2-functors
T : CospancoΛ → Poset.
Theorem
There is an adjunction
Cospan-Alg RegCatΦ⇒Ψ
,
such that for any regular category R, the counit Ψ(Φ(R))→ R is anequivalence of categories.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 9 / 19
![Page 35: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/35.jpg)
Introduction String diagrams for regular logic
Regular hypergraph categories and regular categories
Denote by Cospan-Alg the category of regular hypergraph categories, i.e.sets Λ and ajax 2-functors
T : CospancoΛ → Poset.
Theorem
There is an adjunction
Cospan-Alg RegCatΦ⇒Ψ
,
such that for any regular category R, the counit Ψ(Φ(R))→ R is anequivalence of categories.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 9 / 19
![Page 36: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/36.jpg)
Introduction String diagrams for regular logic
Plan
We’ll return to the theorem shortly.
First we want to recall the definition of regular categories.
We also want to make the connection to regular logic.
The Cospan-algebra story is a graphical representation of the logic.This will be evident, but one can take the theorem as justification.
Then we’ll unpack the theorem and conclude.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 10 / 19
![Page 37: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/37.jpg)
Regular categories and regular logic
Outline
1 Introduction
2 Regular categories and regular logicRegular categoriesRegular logic
3 Bringing it all together
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 10 / 19
![Page 38: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/38.jpg)
Regular categories and regular logic Regular categories
Regular categories
Definition
A regular category is a category for which
all finite limits exist,
the kernel pair of any morphism admits a coequalizer, and
coequalizers are stable under pullback.
Examples of regular categories:
Set, and more generally any topos;
Setop, opposite of any topos, TopSpop;
The category of models of any Lawvere theory (Groups, Rings, ...);
The slice (also the coslice) of any regular category over any object;
Exponential ideal: if R regular and C a category, then RC is regular.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 11 / 19
![Page 39: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/39.jpg)
Regular categories and regular logic Regular categories
Regular categories
Definition
A regular category is a category for which
all finite limits exist,
the kernel pair of any morphism admits a coequalizer, and
coequalizers are stable under pullback.
Examples of regular categories:
Set, and more generally any topos;
Setop, opposite of any topos, TopSpop;
The category of models of any Lawvere theory (Groups, Rings, ...);
The slice (also the coslice) of any regular category over any object;
Exponential ideal: if R regular and C a category, then RC is regular.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 11 / 19
![Page 40: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/40.jpg)
Regular categories and regular logic Regular categories
How to think of regular categories
Regular categories are those with a good bicategory of relations.
A relation in R is a subobject S ⊆ A× B.
When R is regular, pullbacks and images play nicely...
... so that relations form a posetal bicategory RelR.
That is, relations can be composed and compared.One can recover the morphisms in R as the adjunctions in RelR !
Every young category theorist should prove to themselves that Set isthe category of adjunctions in Rel.
Regular categories have enough structure to do regular logic.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 12 / 19
![Page 41: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/41.jpg)
Regular categories and regular logic Regular categories
How to think of regular categories
Regular categories are those with a good bicategory of relations.
A relation in R is a subobject S ⊆ A× B.
When R is regular, pullbacks and images play nicely...
... so that relations form a posetal bicategory RelR.
That is, relations can be composed and compared.One can recover the morphisms in R as the adjunctions in RelR !
Every young category theorist should prove to themselves that Set isthe category of adjunctions in Rel.
Regular categories have enough structure to do regular logic.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 12 / 19
![Page 42: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/42.jpg)
Regular categories and regular logic Regular categories
How to think of regular categories
Regular categories are those with a good bicategory of relations.
A relation in R is a subobject S ⊆ A× B.
When R is regular, pullbacks and images play nicely...
... so that relations form a posetal bicategory RelR.
That is, relations can be composed and compared.One can recover the morphisms in R as the adjunctions in RelR !
Every young category theorist should prove to themselves that Set isthe category of adjunctions in Rel.
Regular categories have enough structure to do regular logic.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 12 / 19
![Page 43: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/43.jpg)
Regular categories and regular logic Regular categories
How to think of regular categories
Regular categories are those with a good bicategory of relations.
A relation in R is a subobject S ⊆ A× B.
When R is regular, pullbacks and images play nicely...
... so that relations form a posetal bicategory RelR.
That is, relations can be composed and compared.One can recover the morphisms in R as the adjunctions in RelR !
Every young category theorist should prove to themselves that Set isthe category of adjunctions in Rel.
Regular categories have enough structure to do regular logic.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 12 / 19
![Page 44: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/44.jpg)
Regular categories and regular logic Regular logic
Regular logic and regular categories
In regular logic, one has
A set of types Λ
A set of relation symbols `a1:A1,...,ak :AkR1(a1, . . . , ak) : Prop
Operations ∧, true , =, and ∃, from which to build up formulas ϕ,ψ.
A notion of entailment: ϕ `a:A,b:B ψ.
A set of axioms involving entailment.
Example: the regular theory of “two sets and a function”:
Λ = {A,B}, one relation symbol: `a:A,b:B f (a, b) : Prop
Axioms:
f is “total”: true `a:A ∃(b : B). f (a, b)f is “deterministic”: ∃(a : A). f (a, b) = f (a, b′) `b,b′:B b = b′
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 13 / 19
![Page 45: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/45.jpg)
Regular categories and regular logic Regular logic
Regular logic and regular categories
In regular logic, one has
A set of types Λ
A set of relation symbols `a1:A1,...,ak :AkR1(a1, . . . , ak) : Prop
Operations ∧, true , =, and ∃, from which to build up formulas ϕ,ψ.
A notion of entailment: ϕ `a:A,b:B ψ.
A set of axioms involving entailment.
Example: the regular theory of “two sets and a function”:
Λ = {A,B}, one relation symbol: `a:A,b:B f (a, b) : Prop
Axioms:
f is “total”: true `a:A ∃(b : B). f (a, b)f is “deterministic”: ∃(a : A). f (a, b) = f (a, b′) `b,b′:B b = b′
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 13 / 19
![Page 46: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/46.jpg)
Regular categories and regular logic Regular logic
Regular logic and regular categories
In regular logic, one has
A set of types Λ
A set of relation symbols `a1:A1,...,ak :AkR1(a1, . . . , ak) : Prop
Operations ∧, true , =, and ∃, from which to build up formulas ϕ,ψ.
A notion of entailment: ϕ `a:A,b:B ψ.
A set of axioms involving entailment.
Example: the regular theory of “two sets and a function”:
Λ = {A,B}, one relation symbol: `a:A,b:B f (a, b) : Prop
Axioms:
f is “total”: true `a:A ∃(b : B). f (a, b)f is “deterministic”: ∃(a : A). f (a, b) = f (a, b′) `b,b′:B b = b′
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 13 / 19
![Page 47: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/47.jpg)
Regular categories and regular logic Regular logic
Regular logic and regular categories
In regular logic, one has
A set of types Λ
A set of relation symbols `a1:A1,...,ak :AkR1(a1, . . . , ak) : Prop
Operations ∧, true , =, and ∃, from which to build up formulas ϕ,ψ.
A notion of entailment: ϕ `a:A,b:B ψ.
A set of axioms involving entailment.
Example: the regular theory of “two sets and a function”:
Λ = {A,B}, one relation symbol: `a:A,b:B f (a, b) : Prop
Axioms:
f is “total”: true `a:A ∃(b : B). f (a, b)f is “deterministic”: ∃(a : A). f (a, b) = f (a, b′) `b,b′:B b = b′
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 13 / 19
![Page 48: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/48.jpg)
Regular categories and regular logic Regular logic
Regular logic and regular categories
In regular logic, one has
A set of types Λ
A set of relation symbols `a1:A1,...,ak :AkR1(a1, . . . , ak) : Prop
Operations ∧, true , =, and ∃, from which to build up formulas ϕ,ψ.
A notion of entailment: ϕ `a:A,b:B ψ.
A set of axioms involving entailment.
Example: the regular theory of “two sets and a function”:
Λ = {A,B}, one relation symbol: `a:A,b:B f (a, b) : Prop
Axioms:
f is “total”: true `a:A ∃(b : B). f (a, b)f is “deterministic”: ∃(a : A). f (a, b) = f (a, b′) `b,b′:B b = b′
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 13 / 19
![Page 49: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/49.jpg)
Regular categories and regular logic Regular logic
Regular logic and regular categories
In regular logic, one has
A set of types Λ
A set of relation symbols `a1:A1,...,ak :AkR1(a1, . . . , ak) : Prop
Operations ∧, true , =, and ∃, from which to build up formulas ϕ,ψ.
A notion of entailment: ϕ `a:A,b:B ψ.
A set of axioms involving entailment.
Example: the regular theory of “two sets and a function”:
Λ = {A,B}, one relation symbol: `a:A,b:B f (a, b) : Prop
Axioms:
f is “total”: true `a:A ∃(b : B). f (a, b)f is “deterministic”: ∃(a : A). f (a, b) = f (a, b′) `b,b′:B b = b′
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 13 / 19
![Page 50: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/50.jpg)
Regular categories and regular logic Regular logic
Regular logic and cospan-algebras
truea fb
a`a:A
true `a:A ∃(b : B). f (a, b)
f
f
ab1
b2
b1
b2
`b1,b2:B
∃(a : A). f (a, b1) = f (a, b2) `b1,b2:B b1 = b2
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 14 / 19
![Page 51: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/51.jpg)
Regular categories and regular logic Regular logic
Regular logic and cospan-algebras
truea fb
a`a:A
true `a:A ∃(b : B). f (a, b)
f
f
ab1
b2
b1
b2
`b1,b2:B
∃(a : A). f (a, b1) = f (a, b2) `b1,b2:B b1 = b2
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 14 / 19
![Page 52: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/52.jpg)
Bringing it all together
Outline
1 Introduction
2 Regular categories and regular logic
3 Bringing it all togetherWhere are we?Recalling and justifying the theoremConcluding
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 14 / 19
![Page 53: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/53.jpg)
Bringing it all together Where are we?
Where are we?
We have regular categories, regular logic, and cospan-algebras.
They are three different perspectives on the same subject.
Regular logic is an “internal language” for regular categories.
The bicategory of cospans is a “string diagram language” for regcats.
Next we’ll recall the theorem, give one slide of justification, and conclude.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 15 / 19
![Page 54: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/54.jpg)
Bringing it all together Where are we?
Where are we?
We have regular categories, regular logic, and cospan-algebras.
They are three different perspectives on the same subject.
Regular logic is an “internal language” for regular categories.
The bicategory of cospans is a “string diagram language” for regcats.
Next we’ll recall the theorem, give one slide of justification, and conclude.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 15 / 19
![Page 55: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/55.jpg)
Bringing it all together Where are we?
Where are we?
We have regular categories, regular logic, and cospan-algebras.
They are three different perspectives on the same subject.
Regular logic is an “internal language” for regular categories.
The bicategory of cospans is a “string diagram language” for regcats.
Next we’ll recall the theorem, give one slide of justification, and conclude.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 15 / 19
![Page 56: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/56.jpg)
Bringing it all together Recalling and justifying the theorem
Recalling the theorem
Recall that a Cospan-algebra is an ajax 2-functor T : CospancoΛ → Poset.
Theorem
There is an adjunction Cospan-Alg RegCat⇒ , such that
Ψ(Φ(R))→ R is an equivalence for any regular category R.
Comments:
We can beef this up to a 2-reflection RegCat ⊆ Cospan-Alg.
Cospan algebras and regular categories look different on the surface.
Remember how complicated the def. of regcats was?Finite limits, coequalizers of kernel pairs, pullback stability.Cospan-Alg is certain functors Cospan→ Poset.
Easier to see posets and adjunctions in RegCat: subobject lattices.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 16 / 19
![Page 57: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/57.jpg)
Bringing it all together Recalling and justifying the theorem
Recalling the theorem
Recall that a Cospan-algebra is an ajax 2-functor T : CospancoΛ → Poset.
Theorem
There is an adjunction Cospan-Alg RegCat⇒ , such that
Ψ(Φ(R))→ R is an equivalence for any regular category R.
Comments:
We can beef this up to a 2-reflection RegCat ⊆ Cospan-Alg.
Cospan algebras and regular categories look different on the surface.
Remember how complicated the def. of regcats was?Finite limits, coequalizers of kernel pairs, pullback stability.Cospan-Alg is certain functors Cospan→ Poset.
Easier to see posets and adjunctions in RegCat: subobject lattices.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 16 / 19
![Page 58: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/58.jpg)
Bringing it all together Recalling and justifying the theorem
Recalling the theorem
Recall that a Cospan-algebra is an ajax 2-functor T : CospancoΛ → Poset.
Theorem
There is an adjunction Cospan-Alg RegCat⇒ , such that
Ψ(Φ(R))→ R is an equivalence for any regular category R.
Comments:
We can beef this up to a 2-reflection RegCat ⊆ Cospan-Alg.
Cospan algebras and regular categories look different on the surface.
Remember how complicated the def. of regcats was?Finite limits, coequalizers of kernel pairs, pullback stability.Cospan-Alg is certain functors Cospan→ Poset.
Easier to see posets and adjunctions in RegCat: subobject lattices.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 16 / 19
![Page 59: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/59.jpg)
Bringing it all together Recalling and justifying the theorem
Recalling the theorem
Recall that a Cospan-algebra is an ajax 2-functor T : CospancoΛ → Poset.
Theorem
There is an adjunction Cospan-Alg RegCat⇒ , such that
Ψ(Φ(R))→ R is an equivalence for any regular category R.
Comments:
We can beef this up to a 2-reflection RegCat ⊆ Cospan-Alg.
Cospan algebras and regular categories look different on the surface.
Remember how complicated the def. of regcats was?Finite limits, coequalizers of kernel pairs, pullback stability.Cospan-Alg is certain functors Cospan→ Poset.
Easier to see posets and adjunctions in RegCat: subobject lattices.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 16 / 19
![Page 60: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/60.jpg)
Bringing it all together Recalling and justifying the theorem
Why it works
One can form the syntactic category RT of T : CospanΛ → Poset.
Ob(RT ) := {(v , ϕ) | n v−→ Λ, ϕ ∈ T (v)}. ϕ
RT ((v , ϕ), (v ′, ϕ′)) := {θ ∈ T (v+v ′) | θ ` ϕ, θ ` ϕ′, θ is functional}
θ ϕ` θ ψ` + another logical condition
One shows that this syntactic category is regular.
E.g. for each v , the poset T (v) is automatically a meet-semilattice.
Why? Any function vf−→ w is an adjoint in Cospan...
... so T (f ) will be an adjoint in Poset. Thus we get adjunctions:
1 T (0) T (v)ρ1
⇐ ⇐
T (v)× T (v) T (v + v) T (v)ρv,v
⇐ ⇐
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 17 / 19
![Page 61: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/61.jpg)
Bringing it all together Recalling and justifying the theorem
Why it works
One can form the syntactic category RT of T : CospanΛ → Poset.
Ob(RT ) := {(v , ϕ) | n v−→ Λ, ϕ ∈ T (v)}. ϕ
RT ((v , ϕ), (v ′, ϕ′)) := {θ ∈ T (v+v ′) | θ ` ϕ, θ ` ϕ′, θ is functional}
θ ϕ` θ ψ` + another logical condition
One shows that this syntactic category is regular.
E.g. for each v , the poset T (v) is automatically a meet-semilattice.
Why? Any function vf−→ w is an adjoint in Cospan...
... so T (f ) will be an adjoint in Poset. Thus we get adjunctions:
1 T (0) T (v)ρ1
⇐ ⇐
T (v)× T (v) T (v + v) T (v)ρv,v
⇐ ⇐
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 17 / 19
![Page 62: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/62.jpg)
Bringing it all together Recalling and justifying the theorem
Why it works
One can form the syntactic category RT of T : CospanΛ → Poset.
Ob(RT ) := {(v , ϕ) | n v−→ Λ, ϕ ∈ T (v)}. ϕ
RT ((v , ϕ), (v ′, ϕ′)) := {θ ∈ T (v+v ′) | θ ` ϕ, θ ` ϕ′, θ is functional}
θ ϕ` θ ψ` + another logical condition
One shows that this syntactic category is regular.
E.g. for each v , the poset T (v) is automatically a meet-semilattice.
Why? Any function vf−→ w is an adjoint in Cospan...
... so T (f ) will be an adjoint in Poset. Thus we get adjunctions:
1 T (0) T (v)ρ1
⇐ ⇐
T (v)× T (v) T (v + v) T (v)ρv,v
⇐ ⇐
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 17 / 19
![Page 63: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/63.jpg)
Bringing it all together Recalling and justifying the theorem
Why it works
One can form the syntactic category RT of T : CospanΛ → Poset.
Ob(RT ) := {(v , ϕ) | n v−→ Λ, ϕ ∈ T (v)}. ϕ
RT ((v , ϕ), (v ′, ϕ′)) := {θ ∈ T (v+v ′) | θ ` ϕ, θ ` ϕ′, θ is functional}
θ ϕ` θ ψ` + another logical condition
One shows that this syntactic category is regular.
E.g. for each v , the poset T (v) is automatically a meet-semilattice.
Why? Any function vf−→ w is an adjoint in Cospan...
... so T (f ) will be an adjoint in Poset. Thus we get adjunctions:
1 T (0) T (v)ρ1
⇐ ⇐
T (v)× T (v) T (v + v) T (v)ρv,v
⇐ ⇐
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 17 / 19
![Page 64: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/64.jpg)
Bringing it all together Recalling and justifying the theorem
Why it works
One can form the syntactic category RT of T : CospanΛ → Poset.
Ob(RT ) := {(v , ϕ) | n v−→ Λ, ϕ ∈ T (v)}. ϕ
RT ((v , ϕ), (v ′, ϕ′)) := {θ ∈ T (v+v ′) | θ ` ϕ, θ ` ϕ′, θ is functional}
θ ϕ` θ ψ` + another logical condition
One shows that this syntactic category is regular.
E.g. for each v , the poset T (v) is automatically a meet-semilattice.
Why? Any function vf−→ w is an adjoint in Cospan...
... so T (f ) will be an adjoint in Poset. Thus we get adjunctions:
1 T (0) T (v)ρ1
⇐ ⇐
T (v)× T (v) T (v + v) T (v)ρv,v
⇐ ⇐
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 17 / 19
![Page 65: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/65.jpg)
Bringing it all together Recalling and justifying the theorem
Why it works
One can form the syntactic category RT of T : CospanΛ → Poset.
Ob(RT ) := {(v , ϕ) | n v−→ Λ, ϕ ∈ T (v)}. ϕ
RT ((v , ϕ), (v ′, ϕ′)) := {θ ∈ T (v+v ′) | θ ` ϕ, θ ` ϕ′, θ is functional}
θ ϕ` θ ψ` + another logical condition
One shows that this syntactic category is regular.
E.g. for each v , the poset T (v) is automatically a meet-semilattice.
Why? Any function vf−→ w is an adjoint in Cospan...
... so T (f ) will be an adjoint in Poset. Thus we get adjunctions:
1 T (0) T (v)ρ1
⇐ ⇐
T (v)× T (v) T (v + v) T (v)ρv,v
⇐ ⇐
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 17 / 19
![Page 66: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/66.jpg)
Bringing it all together Concluding
Conjecture and outlook
We conjecture that this story extends to coherent and geometric logic.
Conjecture
The 2-category of categories is reflective in that of: lax monoidal2-functors Cospanco → whose composite with → Poset is ajax.
Dropping the ajax condition may give something like quantaloids.
Landing in categories other than Poset gives “fuzzy regcats.”
E.g. Cospan→ LawvMetSp: “distance to entailment” ϕ `17 ψ.Other quantales (e.g. powerset of a monoid) give other fuzz.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 18 / 19
![Page 67: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/67.jpg)
Bringing it all together Concluding
Conjecture and outlook
We conjecture that this story extends to coherent and geometric logic.
Conjecture
The 2-category of coherent categories is reflective in that of:
lax monoidal2-functors Cospanco → J Lat whose composite with J Lat→ Poset is ajax.
Dropping the ajax condition may give something like quantaloids.
Landing in categories other than Poset gives “fuzzy regcats.”
E.g. Cospan→ LawvMetSp: “distance to entailment” ϕ `17 ψ.Other quantales (e.g. powerset of a monoid) give other fuzz.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 18 / 19
![Page 68: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/68.jpg)
Bringing it all together Concluding
Conjecture and outlook
We conjecture that this story extends to coherent and geometric logic.
Conjecture
The 2-category of coherent categories is reflective in that of: lax monoidal2-functors Cospanco → J Lat
whose composite with J Lat→ Poset is ajax.
Dropping the ajax condition may give something like quantaloids.
Landing in categories other than Poset gives “fuzzy regcats.”
E.g. Cospan→ LawvMetSp: “distance to entailment” ϕ `17 ψ.Other quantales (e.g. powerset of a monoid) give other fuzz.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 18 / 19
![Page 69: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/69.jpg)
Bringing it all together Concluding
Conjecture and outlook
We conjecture that this story extends to coherent and geometric logic.
Conjecture
The 2-category of coherent categories is reflective in that of: lax monoidal2-functors Cospanco → J Lat whose composite with J Lat→ Poset is ajax.
Dropping the ajax condition may give something like quantaloids.
Landing in categories other than Poset gives “fuzzy regcats.”
E.g. Cospan→ LawvMetSp: “distance to entailment” ϕ `17 ψ.Other quantales (e.g. powerset of a monoid) give other fuzz.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 18 / 19
![Page 70: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/70.jpg)
Bringing it all together Concluding
Conjecture and outlook
We conjecture that this story extends to coherent and geometric logic.
Conjecture
The 2-category of geometric categories is reflective in that of: laxmonoidal 2-functors Cospanco → SupLat whose composite withSupLat → Poset is ajax.
Dropping the ajax condition may give something like quantaloids.
Landing in categories other than Poset gives “fuzzy regcats.”
E.g. Cospan→ LawvMetSp: “distance to entailment” ϕ `17 ψ.Other quantales (e.g. powerset of a monoid) give other fuzz.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 18 / 19
![Page 71: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/71.jpg)
Bringing it all together Concluding
Conjecture and outlook
We conjecture that this story extends to coherent and geometric logic.
Conjecture
The 2-category of geometric categories is reflective in that of: laxmonoidal 2-functors Cospanco → SupLat whose composite withSupLat → Poset is ajax.
Dropping the ajax condition may give something like quantaloids.
Landing in categories other than Poset gives “fuzzy regcats.”
E.g. Cospan→ LawvMetSp: “distance to entailment” ϕ `17 ψ.Other quantales (e.g. powerset of a monoid) give other fuzz.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 18 / 19
![Page 72: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/72.jpg)
Bringing it all together Concluding
Conjecture and outlook
We conjecture that this story extends to coherent and geometric logic.
Conjecture
The 2-category of geometric categories is reflective in that of: laxmonoidal 2-functors Cospanco → SupLat whose composite withSupLat → Poset is ajax.
Dropping the ajax condition may give something like quantaloids.
Landing in categories other than Poset gives “fuzzy regcats.”
E.g. Cospan→ LawvMetSp: “distance to entailment” ϕ `17 ψ.Other quantales (e.g. powerset of a monoid) give other fuzz.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 18 / 19
![Page 73: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/73.jpg)
Bringing it all together Concluding
Summary
Formulas in regular logic looks like this:
∃b. f (a, b) ∧ g(b, a′) `a,a′ ∃c . h(c , a) ∧ a = a′.
Such things can be represented pictorially in a regular hypercat:
f ga a′b
h
c
a a′`a,a′
i.e. as an inequality of elements in an ajax monoidal 2-functor
T : Cospanco → Poset.
We have 2-reflectivity, suggesting that the diagram language is robust.
Thanks! Comments and questions welcome.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 19 / 19
![Page 74: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/74.jpg)
Bringing it all together Concluding
Summary
Formulas in regular logic looks like this:
∃b. f (a, b) ∧ g(b, a′) `a,a′ ∃c . h(c , a) ∧ a = a′.
Such things can be represented pictorially in a regular hypercat:
f ga a′b
h
c
a a′`a,a′
i.e. as an inequality of elements in an ajax monoidal 2-functor
T : Cospanco → Poset.
We have 2-reflectivity, suggesting that the diagram language is robust.
Thanks! Comments and questions welcome.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 19 / 19
![Page 75: String diagrams for regular logic - Category Theory · Introduction String diagrams for regular logic Formal presentation of the calculus II. We have monoidal bicategories Cospan](https://reader033.vdocuments.net/reader033/viewer/2022051912/60029f5f7bbc0b032d45086c/html5/thumbnails/75.jpg)
Bringing it all together Concluding
Summary
Formulas in regular logic looks like this:
∃b. f (a, b) ∧ g(b, a′) `a,a′ ∃c . h(c , a) ∧ a = a′.
Such things can be represented pictorially in a regular hypercat:
f ga a′b
h
c
a a′`a,a′
i.e. as an inequality of elements in an ajax monoidal 2-functor
T : Cospanco → Poset.
We have 2-reflectivity, suggesting that the diagram language is robust.
Thanks! Comments and questions welcome.
David I. Spivak String diagrams for regular logic Presented on 2018/10/27 19 / 19