SlideShare a Scribd company logo
1 of 30
Download to read offline
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Dialectica Comonoids
Valeria de Paiva
Logic And Algebra Seminar
Denver University
February 2023
1 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Thank You, Charlotte!
2 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Dialectica?
Dialectica is for Gödel’s interpretation
We will not discuss much Proof Theory, we concentrate in Algebra
and hence talk about the Dialectica construction and dialectica
spaces https://en.wikipedia.org/wiki/Dialectica_space.
3 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Dialectica construction?
This is the main subject of this talk, we will define it properly
soon. But think about taking two objects of C, U and X and a
relation between them, α : U × X → 2, and imagine a neat notion
of morphism between such objects (U, X, α).
Meanwhile, think about having a cartesian closed category C and
applying the dialectica construction to it.
We obtain the dialectica category Dial(C) with some interesting
logical properties.
Then we want to see what are comonoids in Dial(C) and in C and
what they can tell us.
4 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Comonoids?
Monoids are very useful and very used.
For comonoids, you just invert all the arrows.
Much less used, so far (it seems to me).
But many applications appearing.
We will discuss one coming from categorical logic.
5 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Categorical logic
Elegant mathematics will of itself tell a tale, and one
with the merit of simplicity. This may carry philosophi-
cal weight. But that cannot be guaranteed: in the end
one cannot escape the need to form a judgement of sig-
nificance.
Martin Hyland, Proof Theory in the Abstract, 2002. (Kleisli in the picture)
6 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Constructive reasoning
Why: Reasoning principles that are safer
if I ask you whether “is there an x such that P(x)?”
I’m happier with the answer “yes, x0”, than with an answer
“yes, for all x it is not the case that not P(x)”
want reasoning to be as precise and safe as possible
How: constructive reasoning as much as possible, classical if
need be, but tell me where and why
Today: monoids, comonoids and (co)monads in categorical
logic
7 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
8 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Basic Case of Categorical logic
Attach lambda-terms to Natural Deduction proofs and think of
them as morphisms in a Cartesian closed category:
Γ, x : A ` t : B
Γ ` λx : A.t : A → B
(→ I)
Γ ` t : A → B Γ ` u : A
Γ ` tu : B
(→ E)
Logical implication (→) is the internal-hom (or exponential object)
and conjunction is the product × in the cartesian closed category.
The categorical adjunction corresponds to the Deduction theorem
A × B → C iff A → (B → C)
9 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Comonoids in CCCs
For each object A in C we have an identity morphism idA : A → A.
When C is a CCC, we have a diagonal map ∆ : A → A × A and
co-unit maps ρ : A → A × 1 and λ : A → 1 × A with commuting
diagrams.
so every object is a comonoid with respect to the product.
Thus in cartesian closed categories comonoids are not that
interesting, as every object is a comonoid, naturally.
This comonoid structure corresponds to the satisfaction of the
structural rules of weakening and contraction:
Γ ` B
Γ, A ` B
Γ, A, A ` B
Γ, A ` B
10 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Linear Logic and Modalities
Girard’s idea: remove contraction and weakening from usual
rules of logic, so logic becomes resource-aware.
This is GOOD! easier to model features of the world
But the logic is too weak: to get back the expressive power of
usual logic use a modality, written as ! ( read as ”of course!”)
Contraction and weakening available only for !A
formulas/objects.
! or bang is a unary operator over a linear basis whose rules
correspond to the  (or necessity) S4 modality
It was realized very early on that this modality should be a
comonad categorically. Why? Which kind of comonad?
11 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Modalities
Before embarking on details, here is one general piece of advice.
One often hears that modal (or some other) logic is pointless because it can be translated into some
simpler language in a first-order way. Take no notice of such arguments. There is no weight to the
claim that the original system must therefore be replaced by the new one. What is essential is to
single out important concepts and to investigate their properties. [Scott, 1971]
12 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Modalities as algebra
Basic idea: Modalities are unary operators over a logic basis.
Many logical bases possible: here linear, intuitionistic or classic
logic. Operators can be:
constructive ∧, ∨, →, ¬
or linear ones ( , ` , ⊗
Which modalities are useful? Which basis?
Why? How?
Why so many modalities? How to choose?
Which are the important theorems?
Which are the most useful applications?
Today: using modalities as motivation for comonoids
13 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Modality Rules
Sequent rules for the modality !
!Γ ` B
!Γ `!B
Γ ` B
Γ, !A ` B
Γ, A ` B
Γ, !A ` B
Γ, !A, !A ` B
Γ, !A ` B
Reading them as morphisms in a category:
Γ =!A, B =!A
δ: !A →!!A
Γ = ∅, B = 1
er: !A → 1
Γ = ∅, B = A
der: !A → A
∅, B =!A⊗!A
copy: !A →!A⊗!A
14 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Linear Logic Bang !
Basic idea: each !A needs to be a comonoid with respect to the
tensor product. That means it has natural maps:
!A
copy
- !A⊗!A
!A
counit
- I
satisfying comonoid requirements
Less obviously !A also needs a coalgebra structure:
!A
der
- A
!A
prom
- !!A
These structures need to interact in a consistent and coherent way.
15 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Dialectica construction
Dialectica categories are being discussed, because lenses,
containers and polynomials look like it
Most of the conversation has been about the Dialectica
morphisms and the symmetric monoidal structure
But the hard work on Dialectica was proving that it has
appropriate comonoids/comonads
This story is worth telling as it seems to generalize in
interesting ways
16 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Dialectica Categories
A precise model of Linear Logic
All connectives correspond to distinct structures in the
categories
Two families of models:
for ILL original Dialectica categories Dial2(C)
for CLL/FILL Dialectica-like categories DDial2(C)
Difference is mostly on morphisms, objects are the same, i.e.
triples (U, X, α: A ,→ U × X) where U, X are objects of C
cartesian closed
Different notions of morphism ⇒ different structures in the
cats
Both dialectica cats Dial2(C) and DDial2(C) are symmetric
monoidal closed categories with products.
17 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Original Dialectica Categories
A map in Dial2(C) between objects A = (U, X, α) and
B = (V , Y , β) is a pair of maps in C, (f : U → V , F : U × Y → X)
satisfying the pullback condition below
◦ - A
◦ - U × Y
? hπ1, Fi
- U × X
?
α
B
? β- V × Y
?
f × Y
18 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Dialectica Categories 1
Theorem: (de Paiva 1987) [Linear structure]
The category Dial2(C) has a symmetric monoidal closed struc-
ture (and products, weak coproducts), that makes it a model of
(exponential-free) intuitionistic linear logic.
19 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Back to comonads and comonoids
Surprisingly the ! operator in Dial2(C) is a cofree comonad
Many useful well-known monads like exceptions, powerset,
continuations, etc... Fewer known and loved comonads
In our case a comonoid is simply some object that is a monoid
in C in the second coordinate, this defines a comonad in
Dial(C).
Take !(U, X, α) = (U, X∗, α∗), where (−)∗ is the free
commutative monoid in C.
Theorem: [linear and usual logic together]
The monoidal comonad ! in Dial2(C) above models modalities and
recovers Intuitionistic (and Classical) Logic.
20 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Free comonad in Dial2(C)
First cofree comonad model, not purely syntactic
Tensor product is easy (U, X, α) ⊗ (V , Y , β) is
(U × V , X × Y , α × β)
! is a monoidal comonad. There is a natural transformation
m(−,−) :!A⊗!B →!(A ⊗ B) and a morphism MI : I →!I
satisfying many commutative diagrams
! induces a commutative comonoid structure on !A
!A also has naturally a coalgebra structure induced by the
comonad !
The comonoid and coalgebra structures interact in a nice way.
21 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
A picture
22 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Comonoids in Dialectica
The approach so far has been:
We wanted to model a logical system, Linear Logic
We know what is necessary for a categorical model ⇒ objects
of a SMCC with both a comonoid and a coalgebra structure
(wrt a tensor product and a comonad) interacting nicely
We prove that we can provide one example of comonoids and
coalgebras interacting nicely in the specific case of the
Dialectica construction Dial(C)
23 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
What if we change the approach?
We have a Dialectica construction, applied to a cartesian
closed category C with finite limits and commutative monoids
We know Dial(C) has a notion of tensor product ⊗ which is
easy to calculate
We can describe the category of comonoids for this notion of
tensor product
We know there is at least one object in Dial(C) which is a
comonoid, the object (1, 1, id1).
What are the other comonoids in Dial(C)?
What can we say about the category Comon⊗(C)?
24 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Comonoids and coalgebras in Math
Barr JPAA 1973 ”Coalgebras Over a Commutative Ring”
about K-modules that have a comonoid structure
Hans Porst on local presentability of cats of coalgebras
Agore on limits of algebras, coalgebras and Hopf algebras
a warning: Sometimes “cocommutative coalgebra” in a symmetric
monoidal category is used as a synonym for cocommutative
comonoid object.
https://ncatlab.org/nlab/show/cocommutative+coalgebra
Our terminology comes from MacLane’s CWM, adding cos whenever necessary.
25 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
More comonoids and coalgebras in Math
From https:
//ncatlab.org/nlab/show/coalgebra+over+a+comonad
Related concepts:
partial differential equations are the coalgebras of a jet
comonad
well-behaved lenses (in computer science) are the coalgebras
of the costate comonad
model category-structures on coalgebras over a comonad,
Hess and Shipley ”The homotopy theory of coalgebras over a
comonad” arXiv:1205.3979
26 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Two specific examples
Vaughan Pratt, 2003
http://boole.stanford.edu/pub/comonoids.pdf, “Comonoids in
chu: a large cartesian closed sibling of topological spaces”
Niu and Spivak, arXiv:2112.11518v3, “Collectives:
Compositional protocols for contributions and returns”,
comonoids in Poly.
Both Chu and Poly are constructions similar to Dialectica.
Chu has the same objects, different morphisms, equalities instead
of implications.
Poly has objects that are a dependent version of Dialectica objects,
but morphisms as in Chu.
27 / 30
Motivation
Dialectica
Dialectica Comonoids
Conclusions
Conclusions
I promised you a story of comonoids in the Dialectica
construction
I could have called these comonoids ‘Linear Modalities’ as the
(co)monad that introduces them behaves like an S4 modality
when considered as logic
I showed you how dialectica cats introduce several different
(co)monads useful to provide models of LL
I have not talked about constructive modal linear logics
Constructive modal logics are interesting for programmers,
logicians and philosophers. Shame they don’t talk much to
each other.
There’s much to say on other applications of comonoids,
especially in programming languages
But also on categorical ways of thinking of differentiation!
28 / 30
Appendix Some References
Some References I
V de Paiva
The Dialectica Categories
PhD thesis, University of Cambridge, 1991.
G. Bierman, V de Paiva
On an Intuitionistic Modal Logic
Studia Logica (65):383-416. 2000.
V. Pratt
Comonoids in chu
boole.stanford.edu/pub/comonoids.pdf, 2003.
N. Niu and D. Spivak
Collectives
arxiv 2112.11518v3, 2022.
29 / 30
Appendix Some References
Some References II
M. Marvan
A note on the category of partial differential equations
Proceedings of the Conference DIFFERENTIAL GEOMETRY
AND ITS APPLICATIONS, August 24-30, 1986, Brno
30 / 30

More Related Content

Similar to Dialectica Comonoids

Dialectica Categories Surprising Application: Cardinalities of the Continuum
Dialectica Categories Surprising Application: Cardinalities of the ContinuumDialectica Categories Surprising Application: Cardinalities of the Continuum
Dialectica Categories Surprising Application: Cardinalities of the ContinuumValeria de Paiva
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsValeria de Paiva
 
A Coq Library for the Theory of Relational Calculus
A Coq Library for the Theory of Relational CalculusA Coq Library for the Theory of Relational Calculus
A Coq Library for the Theory of Relational CalculusYoshihiro Mizoguchi
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusValeria de Paiva
 
Commutative algebra
Commutative algebraCommutative algebra
Commutative algebraSpringer
 
June 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAISTJune 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAISTMarco Benini
 
Theory of Relational Calculus and its Formalization
Theory of Relational Calculus and its FormalizationTheory of Relational Calculus and its Formalization
Theory of Relational Calculus and its FormalizationYoshihiro Mizoguchi
 
Dialectica amongst friends
Dialectica amongst friendsDialectica amongst friends
Dialectica amongst friendsValeria de Paiva
 
Proof-Theoretic Semantics: Point-free meaninig of first-order systems
Proof-Theoretic Semantics: Point-free meaninig of first-order systemsProof-Theoretic Semantics: Point-free meaninig of first-order systems
Proof-Theoretic Semantics: Point-free meaninig of first-order systemsMarco Benini
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusValeria de Paiva
 
Point-free semantics of dependent type theories
Point-free semantics of dependent type theoriesPoint-free semantics of dependent type theories
Point-free semantics of dependent type theoriesMarco Benini
 
Dialectica Categories... and Lax Topological Spaces?
Dialectica Categories... and Lax Topological Spaces?Dialectica Categories... and Lax Topological Spaces?
Dialectica Categories... and Lax Topological Spaces?Valeria de Paiva
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsValeria de Paiva
 
ANU ASTR 4004 / 8004 Astronomical Computing : Lecture 2
ANU ASTR 4004 / 8004 Astronomical Computing : Lecture 2ANU ASTR 4004 / 8004 Astronomical Computing : Lecture 2
ANU ASTR 4004 / 8004 Astronomical Computing : Lecture 2tingyuansenastro
 
Dialectica Categories Surprising Application: mapping cardinal invariants
Dialectica Categories Surprising Application: mapping cardinal invariantsDialectica Categories Surprising Application: mapping cardinal invariants
Dialectica Categories Surprising Application: mapping cardinal invariantsValeria de Paiva
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its roleValeria de Paiva
 
Kahler Differential and Application to Ramification - Ryan Lok-Wing Pang
Kahler Differential and Application to Ramification - Ryan Lok-Wing PangKahler Differential and Application to Ramification - Ryan Lok-Wing Pang
Kahler Differential and Application to Ramification - Ryan Lok-Wing PangRyan Lok-Wing Pang
 

Similar to Dialectica Comonoids (20)

Dialectica Categories Surprising Application: Cardinalities of the Continuum
Dialectica Categories Surprising Application: Cardinalities of the ContinuumDialectica Categories Surprising Application: Cardinalities of the Continuum
Dialectica Categories Surprising Application: Cardinalities of the Continuum
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
 
A Coq Library for the Theory of Relational Calculus
A Coq Library for the Theory of Relational CalculusA Coq Library for the Theory of Relational Calculus
A Coq Library for the Theory of Relational Calculus
 
C2.0 propositional logic
C2.0 propositional logicC2.0 propositional logic
C2.0 propositional logic
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek Calculus
 
Commutative algebra
Commutative algebraCommutative algebra
Commutative algebra
 
June 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAISTJune 22nd 2014: Seminar at JAIST
June 22nd 2014: Seminar at JAIST
 
Theory of Relational Calculus and its Formalization
Theory of Relational Calculus and its FormalizationTheory of Relational Calculus and its Formalization
Theory of Relational Calculus and its Formalization
 
Dialectica amongst friends
Dialectica amongst friendsDialectica amongst friends
Dialectica amongst friends
 
Proof-Theoretic Semantics: Point-free meaninig of first-order systems
Proof-Theoretic Semantics: Point-free meaninig of first-order systemsProof-Theoretic Semantics: Point-free meaninig of first-order systems
Proof-Theoretic Semantics: Point-free meaninig of first-order systems
 
Side 2019 #12
Side 2019 #12Side 2019 #12
Side 2019 #12
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek Calculus
 
Point-free semantics of dependent type theories
Point-free semantics of dependent type theoriesPoint-free semantics of dependent type theories
Point-free semantics of dependent type theories
 
Dialectica Categories... and Lax Topological Spaces?
Dialectica Categories... and Lax Topological Spaces?Dialectica Categories... and Lax Topological Spaces?
Dialectica Categories... and Lax Topological Spaces?
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
 
ANU ASTR 4004 / 8004 Astronomical Computing : Lecture 2
ANU ASTR 4004 / 8004 Astronomical Computing : Lecture 2ANU ASTR 4004 / 8004 Astronomical Computing : Lecture 2
ANU ASTR 4004 / 8004 Astronomical Computing : Lecture 2
 
Dialectica Categories Surprising Application: mapping cardinal invariants
Dialectica Categories Surprising Application: mapping cardinal invariantsDialectica Categories Surprising Application: mapping cardinal invariants
Dialectica Categories Surprising Application: mapping cardinal invariants
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its role
 
Paola Zizzi
Paola ZizziPaola Zizzi
Paola Zizzi
 
Kahler Differential and Application to Ramification - Ryan Lok-Wing Pang
Kahler Differential and Application to Ramification - Ryan Lok-Wing PangKahler Differential and Application to Ramification - Ryan Lok-Wing Pang
Kahler Differential and Application to Ramification - Ryan Lok-Wing Pang
 

More from Valeria de Paiva

Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021Valeria de Paiva
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear LogicsValeria de Paiva
 
Networked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceNetworked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceValeria de Paiva
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its roleValeria de Paiva
 
Problemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoProblemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoValeria de Paiva
 
Natural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesNatural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesValeria de Paiva
 
The importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseThe importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseValeria de Paiva
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical SystemValeria de Paiva
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear LogicsValeria de Paiva
 
Semantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTSemantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTValeria de Paiva
 
Categorical Explicit Substitutions
Categorical Explicit SubstitutionsCategorical Explicit Substitutions
Categorical Explicit SubstitutionsValeria de Paiva
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogValeria de Paiva
 
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Valeria de Paiva
 
Gender Gap in Computing 2014
Gender Gap in Computing 2014Gender Gap in Computing 2014
Gender Gap in Computing 2014Valeria de Paiva
 
Categorical Proof Theory for Everyone
Categorical Proof Theory for EveryoneCategorical Proof Theory for Everyone
Categorical Proof Theory for EveryoneValeria de Paiva
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsValeria de Paiva
 
Linear Logic and Constructive Mathematics, after Shulman
Linear Logic and Constructive Mathematics, after ShulmanLinear Logic and Constructive Mathematics, after Shulman
Linear Logic and Constructive Mathematics, after ShulmanValeria de Paiva
 

More from Valeria de Paiva (20)

Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
PLN para Tod@s
PLN para Tod@sPLN para Tod@s
PLN para Tod@s
 
Networked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceNetworked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better Science
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its role
 
Problemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoProblemas de Kolmogorov-Veloso
Problemas de Kolmogorov-Veloso
 
Natural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesNatural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and Machines
 
Dialectica Petri Nets
Dialectica Petri NetsDialectica Petri Nets
Dialectica Petri Nets
 
The importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseThe importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in Portuguese
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical System
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
Semantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTSemantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACT
 
NLCS 2013 opening slides
NLCS 2013 opening slidesNLCS 2013 opening slides
NLCS 2013 opening slides
 
Categorical Explicit Substitutions
Categorical Explicit SubstitutionsCategorical Explicit Substitutions
Categorical Explicit Substitutions
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for Dialog
 
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
 
Gender Gap in Computing 2014
Gender Gap in Computing 2014Gender Gap in Computing 2014
Gender Gap in Computing 2014
 
Categorical Proof Theory for Everyone
Categorical Proof Theory for EveryoneCategorical Proof Theory for Everyone
Categorical Proof Theory for Everyone
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit Substitutions
 
Linear Logic and Constructive Mathematics, after Shulman
Linear Logic and Constructive Mathematics, after ShulmanLinear Logic and Constructive Mathematics, after Shulman
Linear Logic and Constructive Mathematics, after Shulman
 

Recently uploaded

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

Dialectica Comonoids

  • 1. Motivation Dialectica Dialectica Comonoids Conclusions Dialectica Comonoids Valeria de Paiva Logic And Algebra Seminar Denver University February 2023 1 / 30
  • 3. Motivation Dialectica Dialectica Comonoids Conclusions Dialectica? Dialectica is for Gödel’s interpretation We will not discuss much Proof Theory, we concentrate in Algebra and hence talk about the Dialectica construction and dialectica spaces https://en.wikipedia.org/wiki/Dialectica_space. 3 / 30
  • 4. Motivation Dialectica Dialectica Comonoids Conclusions Dialectica construction? This is the main subject of this talk, we will define it properly soon. But think about taking two objects of C, U and X and a relation between them, α : U × X → 2, and imagine a neat notion of morphism between such objects (U, X, α). Meanwhile, think about having a cartesian closed category C and applying the dialectica construction to it. We obtain the dialectica category Dial(C) with some interesting logical properties. Then we want to see what are comonoids in Dial(C) and in C and what they can tell us. 4 / 30
  • 5. Motivation Dialectica Dialectica Comonoids Conclusions Comonoids? Monoids are very useful and very used. For comonoids, you just invert all the arrows. Much less used, so far (it seems to me). But many applications appearing. We will discuss one coming from categorical logic. 5 / 30
  • 6. Motivation Dialectica Dialectica Comonoids Conclusions Categorical logic Elegant mathematics will of itself tell a tale, and one with the merit of simplicity. This may carry philosophi- cal weight. But that cannot be guaranteed: in the end one cannot escape the need to form a judgement of sig- nificance. Martin Hyland, Proof Theory in the Abstract, 2002. (Kleisli in the picture) 6 / 30
  • 7. Motivation Dialectica Dialectica Comonoids Conclusions Constructive reasoning Why: Reasoning principles that are safer if I ask you whether “is there an x such that P(x)?” I’m happier with the answer “yes, x0”, than with an answer “yes, for all x it is not the case that not P(x)” want reasoning to be as precise and safe as possible How: constructive reasoning as much as possible, classical if need be, but tell me where and why Today: monoids, comonoids and (co)monads in categorical logic 7 / 30
  • 9. Motivation Dialectica Dialectica Comonoids Conclusions Basic Case of Categorical logic Attach lambda-terms to Natural Deduction proofs and think of them as morphisms in a Cartesian closed category: Γ, x : A ` t : B Γ ` λx : A.t : A → B (→ I) Γ ` t : A → B Γ ` u : A Γ ` tu : B (→ E) Logical implication (→) is the internal-hom (or exponential object) and conjunction is the product × in the cartesian closed category. The categorical adjunction corresponds to the Deduction theorem A × B → C iff A → (B → C) 9 / 30
  • 10. Motivation Dialectica Dialectica Comonoids Conclusions Comonoids in CCCs For each object A in C we have an identity morphism idA : A → A. When C is a CCC, we have a diagonal map ∆ : A → A × A and co-unit maps ρ : A → A × 1 and λ : A → 1 × A with commuting diagrams. so every object is a comonoid with respect to the product. Thus in cartesian closed categories comonoids are not that interesting, as every object is a comonoid, naturally. This comonoid structure corresponds to the satisfaction of the structural rules of weakening and contraction: Γ ` B Γ, A ` B Γ, A, A ` B Γ, A ` B 10 / 30
  • 11. Motivation Dialectica Dialectica Comonoids Conclusions Linear Logic and Modalities Girard’s idea: remove contraction and weakening from usual rules of logic, so logic becomes resource-aware. This is GOOD! easier to model features of the world But the logic is too weak: to get back the expressive power of usual logic use a modality, written as ! ( read as ”of course!”) Contraction and weakening available only for !A formulas/objects. ! or bang is a unary operator over a linear basis whose rules correspond to the (or necessity) S4 modality It was realized very early on that this modality should be a comonad categorically. Why? Which kind of comonad? 11 / 30
  • 12. Motivation Dialectica Dialectica Comonoids Conclusions Modalities Before embarking on details, here is one general piece of advice. One often hears that modal (or some other) logic is pointless because it can be translated into some simpler language in a first-order way. Take no notice of such arguments. There is no weight to the claim that the original system must therefore be replaced by the new one. What is essential is to single out important concepts and to investigate their properties. [Scott, 1971] 12 / 30
  • 13. Motivation Dialectica Dialectica Comonoids Conclusions Modalities as algebra Basic idea: Modalities are unary operators over a logic basis. Many logical bases possible: here linear, intuitionistic or classic logic. Operators can be: constructive ∧, ∨, →, ¬ or linear ones ( , ` , ⊗ Which modalities are useful? Which basis? Why? How? Why so many modalities? How to choose? Which are the important theorems? Which are the most useful applications? Today: using modalities as motivation for comonoids 13 / 30
  • 14. Motivation Dialectica Dialectica Comonoids Conclusions Modality Rules Sequent rules for the modality ! !Γ ` B !Γ `!B Γ ` B Γ, !A ` B Γ, A ` B Γ, !A ` B Γ, !A, !A ` B Γ, !A ` B Reading them as morphisms in a category: Γ =!A, B =!A δ: !A →!!A Γ = ∅, B = 1 er: !A → 1 Γ = ∅, B = A der: !A → A ∅, B =!A⊗!A copy: !A →!A⊗!A 14 / 30
  • 15. Motivation Dialectica Dialectica Comonoids Conclusions Linear Logic Bang ! Basic idea: each !A needs to be a comonoid with respect to the tensor product. That means it has natural maps: !A copy - !A⊗!A !A counit - I satisfying comonoid requirements Less obviously !A also needs a coalgebra structure: !A der - A !A prom - !!A These structures need to interact in a consistent and coherent way. 15 / 30
  • 16. Motivation Dialectica Dialectica Comonoids Conclusions Dialectica construction Dialectica categories are being discussed, because lenses, containers and polynomials look like it Most of the conversation has been about the Dialectica morphisms and the symmetric monoidal structure But the hard work on Dialectica was proving that it has appropriate comonoids/comonads This story is worth telling as it seems to generalize in interesting ways 16 / 30
  • 17. Motivation Dialectica Dialectica Comonoids Conclusions Dialectica Categories A precise model of Linear Logic All connectives correspond to distinct structures in the categories Two families of models: for ILL original Dialectica categories Dial2(C) for CLL/FILL Dialectica-like categories DDial2(C) Difference is mostly on morphisms, objects are the same, i.e. triples (U, X, α: A ,→ U × X) where U, X are objects of C cartesian closed Different notions of morphism ⇒ different structures in the cats Both dialectica cats Dial2(C) and DDial2(C) are symmetric monoidal closed categories with products. 17 / 30
  • 18. Motivation Dialectica Dialectica Comonoids Conclusions Original Dialectica Categories A map in Dial2(C) between objects A = (U, X, α) and B = (V , Y , β) is a pair of maps in C, (f : U → V , F : U × Y → X) satisfying the pullback condition below ◦ - A ◦ - U × Y ? hπ1, Fi - U × X ? α B ? β- V × Y ? f × Y 18 / 30
  • 19. Motivation Dialectica Dialectica Comonoids Conclusions Dialectica Categories 1 Theorem: (de Paiva 1987) [Linear structure] The category Dial2(C) has a symmetric monoidal closed struc- ture (and products, weak coproducts), that makes it a model of (exponential-free) intuitionistic linear logic. 19 / 30
  • 20. Motivation Dialectica Dialectica Comonoids Conclusions Back to comonads and comonoids Surprisingly the ! operator in Dial2(C) is a cofree comonad Many useful well-known monads like exceptions, powerset, continuations, etc... Fewer known and loved comonads In our case a comonoid is simply some object that is a monoid in C in the second coordinate, this defines a comonad in Dial(C). Take !(U, X, α) = (U, X∗, α∗), where (−)∗ is the free commutative monoid in C. Theorem: [linear and usual logic together] The monoidal comonad ! in Dial2(C) above models modalities and recovers Intuitionistic (and Classical) Logic. 20 / 30
  • 21. Motivation Dialectica Dialectica Comonoids Conclusions Free comonad in Dial2(C) First cofree comonad model, not purely syntactic Tensor product is easy (U, X, α) ⊗ (V , Y , β) is (U × V , X × Y , α × β) ! is a monoidal comonad. There is a natural transformation m(−,−) :!A⊗!B →!(A ⊗ B) and a morphism MI : I →!I satisfying many commutative diagrams ! induces a commutative comonoid structure on !A !A also has naturally a coalgebra structure induced by the comonad ! The comonoid and coalgebra structures interact in a nice way. 21 / 30
  • 23. Motivation Dialectica Dialectica Comonoids Conclusions Comonoids in Dialectica The approach so far has been: We wanted to model a logical system, Linear Logic We know what is necessary for a categorical model ⇒ objects of a SMCC with both a comonoid and a coalgebra structure (wrt a tensor product and a comonad) interacting nicely We prove that we can provide one example of comonoids and coalgebras interacting nicely in the specific case of the Dialectica construction Dial(C) 23 / 30
  • 24. Motivation Dialectica Dialectica Comonoids Conclusions What if we change the approach? We have a Dialectica construction, applied to a cartesian closed category C with finite limits and commutative monoids We know Dial(C) has a notion of tensor product ⊗ which is easy to calculate We can describe the category of comonoids for this notion of tensor product We know there is at least one object in Dial(C) which is a comonoid, the object (1, 1, id1). What are the other comonoids in Dial(C)? What can we say about the category Comon⊗(C)? 24 / 30
  • 25. Motivation Dialectica Dialectica Comonoids Conclusions Comonoids and coalgebras in Math Barr JPAA 1973 ”Coalgebras Over a Commutative Ring” about K-modules that have a comonoid structure Hans Porst on local presentability of cats of coalgebras Agore on limits of algebras, coalgebras and Hopf algebras a warning: Sometimes “cocommutative coalgebra” in a symmetric monoidal category is used as a synonym for cocommutative comonoid object. https://ncatlab.org/nlab/show/cocommutative+coalgebra Our terminology comes from MacLane’s CWM, adding cos whenever necessary. 25 / 30
  • 26. Motivation Dialectica Dialectica Comonoids Conclusions More comonoids and coalgebras in Math From https: //ncatlab.org/nlab/show/coalgebra+over+a+comonad Related concepts: partial differential equations are the coalgebras of a jet comonad well-behaved lenses (in computer science) are the coalgebras of the costate comonad model category-structures on coalgebras over a comonad, Hess and Shipley ”The homotopy theory of coalgebras over a comonad” arXiv:1205.3979 26 / 30
  • 27. Motivation Dialectica Dialectica Comonoids Conclusions Two specific examples Vaughan Pratt, 2003 http://boole.stanford.edu/pub/comonoids.pdf, “Comonoids in chu: a large cartesian closed sibling of topological spaces” Niu and Spivak, arXiv:2112.11518v3, “Collectives: Compositional protocols for contributions and returns”, comonoids in Poly. Both Chu and Poly are constructions similar to Dialectica. Chu has the same objects, different morphisms, equalities instead of implications. Poly has objects that are a dependent version of Dialectica objects, but morphisms as in Chu. 27 / 30
  • 28. Motivation Dialectica Dialectica Comonoids Conclusions Conclusions I promised you a story of comonoids in the Dialectica construction I could have called these comonoids ‘Linear Modalities’ as the (co)monad that introduces them behaves like an S4 modality when considered as logic I showed you how dialectica cats introduce several different (co)monads useful to provide models of LL I have not talked about constructive modal linear logics Constructive modal logics are interesting for programmers, logicians and philosophers. Shame they don’t talk much to each other. There’s much to say on other applications of comonoids, especially in programming languages But also on categorical ways of thinking of differentiation! 28 / 30
  • 29. Appendix Some References Some References I V de Paiva The Dialectica Categories PhD thesis, University of Cambridge, 1991. G. Bierman, V de Paiva On an Intuitionistic Modal Logic Studia Logica (65):383-416. 2000. V. Pratt Comonoids in chu boole.stanford.edu/pub/comonoids.pdf, 2003. N. Niu and D. Spivak Collectives arxiv 2112.11518v3, 2022. 29 / 30
  • 30. Appendix Some References Some References II M. Marvan A note on the category of partial differential equations Proceedings of the Conference DIFFERENTIAL GEOMETRY AND ITS APPLICATIONS, August 24-30, 1986, Brno 30 / 30