SlideShare a Scribd company logo
1/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Dialectica Categories and Petri Nets
Valeria de Paiva
Before ACT Summer School 2020
January, 2020
Valeria de Paiva ACT 2020
2/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Goals
Thank you, ACT Summer School organizers!
I want talk about the application of Dialectica categories to
modelling Petri Nets.
I start by describing Petri nets and Dialectica categories.
Then I show how to think of special Petri nets as a kind of
Dialectica category (following Brown and Gurr) and how to think
of usual Petri nets as dialectica categories.
Then we discuss if this is good modelling or not, and why
Valeria de Paiva ACT 2020
3/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Outline
Petri nets
Dialectica categories
Elementary nets
Petri nets as double dialectica constructions
Time permitting I will try to compare with new work on Petri nets.
Valeria de Paiva ACT 2020
4/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Using Categories
Category: a collection of objects and of morphisms, satisfying
obvious laws for composition of morphisms;
there is an identity for each object and morphisms of the correct
domain and co-domain compose, associatively.
Functors: the natural notion of morphism between categories
Natural transformations: the natural notion of morphisms between
functors
Constructors: products, sums, functions spaces, limits, duals....
Adjunctions: an abstract version of equality
Valeria de Paiva ACT 2020
5/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Categorical models of Petri Nets
Types are formulae/objects in appropriate category,
Terms/programs are proofs/morphisms in the category,
Logical constructors are appropriate categorical constructions.
Most important: Reduction is proof normalization (Tait)
Outcome: Transfer results/tools from logic to CT to CSci, etc
Valeria de Paiva ACT 2020
6/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Brown and Gurr, LICS 1990, Info & Comp 1995
Valeria de Paiva ACT 2020
7/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Based on Winskel, LiCS 1988
Valeria de Paiva ACT 2020
8/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Motivation for Petri nets: Vending Machine
Valeria de Paiva ACT 2020
9/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Motivation: Modelling Petri nets firing
Valeria de Paiva ACT 2020
10/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Why Petri Nets?
Modeling is hard. People seem to like Petri nets.
Concurrency is hard. People seem to like Petri nets
(non-determinism vs causal independence).
Huge number of types: colored, stochastic, higher-order, etc..
Huge number of papers/books/systems
Natural application of Linear Logic
Recent work on Baez/Master/Moeller and independently of
Lopes/Hauesler/Benevides
Valeria de Paiva ACT 2020
11/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Which Petri nets?
Valeria de Paiva ACT 2020
12/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
What’s the problem?
A long-standing problem in the theory of Petri nets has
been the lack of any clear methodology for producing a
compositional theory of nets (and indeed the lack of even
a clear notion as to what a map between nets should be).
Brown and Gurr, 1990
Winskel suggests that Petri nets and other models of concurrency
can be profitably cast into an algebraic framework.
Many people followed this suggestion with several categorical
models of Petri nets proposed.
Our proposal is to use Dialectica morphisms, so let us check the
Dialectica construction for Linear Logic
Valeria de Paiva ACT 2020
13/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Linear Logic
A proof theoretic logic described by Girard in 1986.
Basic idea: assumptions cannot be discarded or duplicated.
They must be used exactly once – just like dollar bills (except
when they’re marked by a modality !)
Other approaches to accounting for logical resources before.
Relevance Logic!
Great win of Linear Logic:
Account for resources when you want to, otherwise fall back
to traditional logic via translation A → B iff !A −◦ B
Valeria de Paiva ACT 2020
14/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Linear Implication and (Multiplicative) Conjunction
Traditional implication: A, A → B B
A, A → B A ∧ B Re-use A
Linear implication: A, A −◦ B B
A, A −◦ B A ⊗ B Cannot re-use A
Traditional conjunction: A ∧ B A Discard B
Linear conjunction: A ⊗ B A Cannot discard B
Of course: !A !A⊗!A Re-use
!(A) ⊗ B B Discard
Valeria de Paiva ACT 2020
15/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
The challenges of modeling Linear Logic
Traditional modeling of intuitionistic logic:
formula A object A of appropriate category
A ∧ B A × B (real product)
A → B BA (set of functions from A to B) and
they relate via adjunction
A ∧ B → C ⇐⇒ A → Hom(B, C) = CB
These are real products, have projections (A × B → A)
and diagonals (A → A × A) corresponding to deletion and
duplication of resources.
Not linear!!!
Need to use tensor products and internal homs.
Hard to define the “make-everything-usual”operator ”!”.
Valeria de Paiva ACT 2020
16/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Dialectica Categories
The category Dial2(Sets) has as objects triples A = (U, X, α),
where U, X are sets and α is an ordinary relation between U and
X. (so either u and x are α related, α(u, x) = 1 or not.)
A map from A = (U, X, α) to B = (V , Y , β) is a pair of functions
(f , F), where f : U → V and F : X → Y such that
U 
α
X
⇓ ∀u ∈ U, ∀y ∈ Y α(u, Fy) implies β(fu, y)
V
f
?

β
Y
6
F
or α(u, F(y)) ≤ β(f (u), y)
Valeria de Paiva ACT 2020
17/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Dialectica Categories Constructions
On the board, lost slides.
Do internal-hom and tensor. and maybe adjunction.
Theorem: The category Dial2(Sets) is a sound model for
(intuitionistic and classical) Linear Logic.
And Petri Nets...
Valeria de Paiva ACT 2020
18/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Dialectica Categories as (safe) Petri Nets
A category of safe nets SNet objects are of the form
(E, B, pre, post). (pre, post are relations E × B → 2) Morphisms
are pairs of functions (f , F) making the two diagrams below
commute.
E 
pre
B
⇓
E
f
?

pre
B
6
F
E 
post
B
⇑
E
f
?

post
B
6
F
where as before ∀e ∈ E, ∀b ∈ B pre(e, Fb ) implies pre (fe, b )
and also, the corresponding reversed implication for post:
∀e ∈ E, ∀b ∈ B post(e, Fb ) is implied by post (fe, b ).
Brown and Gurr 1990
Valeria de Paiva ACT 2020
19/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Dialectica Categories as Petri Nets
Why is this good? Structurally safe nets, say Brown and Gurr.
Can construct refinement morphisms of nets.
Can lift all the categorical structure of Dial2(Sets) to a given
category of nets. Are these nets any good?
Similar to Winskel’s nets, constructed for different reasons.
Valeria de Paiva ACT 2020
20/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Dialectica Categories as (general) Petri Nets
A category of safe nets SNet objects are of the form
(E, B, pre, post), BUT where pre, post are maps into N, a lineale.
Morphisms are pairs of functions (f , F) making the two diagrams
below commute.
E 
pre
B
⇓
E
f
?

pre
B
6
F
E 
post
B
⇑
E
f
?

post
B
6
F
where as before ∀e ∈ E, ∀b ∈ B pre(e, Fb ) implies pre (fe, b )
and also, the corresponding reversed implication for post
conditions:
∀e ∈ E, ∀b ∈ B post(e, Fb ) is implied by post (fe, b )
Valeria de Paiva ACT 2020
21/21
Introduction
Petri Nets
Linear Logic
Dialetica cats
Dialectica and Petri
Conclusions
Dialectica morphisms correspond to simulations between
Petri nets, using markings.
CCS constructors can be simulated too.
Nielsen and Winskel have a collection of work on categories of
concurrency models, how much of that can be reproduced in
our setting?
Is this good modelling? Clearly people like Petri nets,
especially probabilistic ones. What is the theorem that we
want to prove?
Can this work shed some light on how to model probabilistic
theories using category theory?
at least it gives me the impulse to read about it!
Valeria de Paiva ACT 2020

More Related Content

What's hot

Benchmarking Linear Logic Proofs, Valeria de Paiva
Benchmarking Linear Logic Proofs, Valeria de PaivaBenchmarking Linear Logic Proofs, Valeria de Paiva
Benchmarking Linear Logic Proofs, Valeria de Paiva
Valeria 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
 
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
Valeria de Paiva
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
Valeria 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 Shulman
Valeria de Paiva
 
A Dialectica Model of Relevant Type Theory
A Dialectica Model of Relevant Type TheoryA Dialectica Model of Relevant Type Theory
A Dialectica Model of Relevant Type Theory
Valeria de Paiva
 
Dialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de PaivaDialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de Paiva
Valeria de Paiva
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
Valeria de Paiva
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek Calculus
Valeria de Paiva
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit Substitutions
Valeria de Paiva
 
Modal Type Theory
Modal Type TheoryModal Type Theory
Modal Type Theory
Valeria de Paiva
 
Fun with Constructive Modalities
Fun with Constructive ModalitiesFun with Constructive Modalities
Fun with Constructive Modalities
Valeria de Paiva
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
Valeria de Paiva
 
Categorical Explicit Substitutions
Categorical Explicit SubstitutionsCategorical Explicit Substitutions
Categorical Explicit Substitutions
Valeria de Paiva
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit Substitutions
Valeria de Paiva
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
Valeria de Paiva
 
Intuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years laterIntuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years later
Valeria de Paiva
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical System
Valeria de Paiva
 
Dialectica amongst friends
Dialectica amongst friendsDialectica amongst friends
Dialectica amongst friends
Valeria de Paiva
 
Natural Language Inference for Humans
Natural Language Inference for HumansNatural Language Inference for Humans
Natural Language Inference for Humans
Valeria de Paiva
 

What's hot (20)

Benchmarking Linear Logic Proofs, Valeria de Paiva
Benchmarking Linear Logic Proofs, Valeria de PaivaBenchmarking Linear Logic Proofs, Valeria de Paiva
Benchmarking Linear Logic Proofs, Valeria 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)
 
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
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
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
 
A Dialectica Model of Relevant Type Theory
A Dialectica Model of Relevant Type TheoryA Dialectica Model of Relevant Type Theory
A Dialectica Model of Relevant Type Theory
 
Dialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de PaivaDialectica Categories: the Relevant version, Valeria de Paiva
Dialectica Categories: the Relevant version, Valeria de Paiva
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek Calculus
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit Substitutions
 
Modal Type Theory
Modal Type TheoryModal Type Theory
Modal Type Theory
 
Fun with Constructive Modalities
Fun with Constructive ModalitiesFun with Constructive Modalities
Fun with Constructive Modalities
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
 
Categorical Explicit Substitutions
Categorical Explicit SubstitutionsCategorical Explicit Substitutions
Categorical Explicit Substitutions
 
Categorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit SubstitutionsCategorical Semantics for Explicit Substitutions
Categorical Semantics for Explicit Substitutions
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
 
Intuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years laterIntuitionistic Modal Logic: fifteen years later
Intuitionistic Modal Logic: fifteen years later
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical System
 
Dialectica amongst friends
Dialectica amongst friendsDialectica amongst friends
Dialectica amongst friends
 
Natural Language Inference for Humans
Natural Language Inference for HumansNatural Language Inference for Humans
Natural Language Inference for Humans
 

Similar to Dialectica Categories and Petri Nets

Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories Revisited
Valeria de Paiva
 
Dialectica Petri Nets
Dialectica Petri NetsDialectica Petri Nets
Dialectica Petri Nets
Valeria de Paiva
 
Dialectica Categorical Constructions
Dialectica Categorical ConstructionsDialectica Categorical Constructions
Dialectica Categorical Constructions
Valeria de Paiva
 
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
Valeria de Paiva
 
Fibrational Versions of Dialectica Categories
Fibrational Versions of Dialectica CategoriesFibrational Versions of Dialectica Categories
Fibrational Versions of Dialectica CategoriesValeria de Paiva
 
Dialectica Categories and Cardinalities of the Continuum (March2014)
Dialectica Categories and  Cardinalities of the Continuum (March2014)Dialectica Categories and  Cardinalities of the Continuum (March2014)
Dialectica Categories and Cardinalities of the Continuum (March2014)
Valeria de Paiva
 
Dialectica Comonoids
Dialectica ComonoidsDialectica Comonoids
Dialectica Comonoids
Valeria de Paiva
 
Categorical Proof Theory for Everyone
Categorical Proof Theory for EveryoneCategorical Proof Theory for Everyone
Categorical Proof Theory for Everyone
Valeria de Paiva
 
Why (categorical) representation theory?
Why (categorical) representation theory?Why (categorical) representation theory?
Why (categorical) representation theory?
Daniel Tubbenhauer
 

Similar to Dialectica Categories and Petri Nets (9)

Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories Revisited
 
Dialectica Petri Nets
Dialectica Petri NetsDialectica Petri Nets
Dialectica Petri Nets
 
Dialectica Categorical Constructions
Dialectica Categorical ConstructionsDialectica Categorical Constructions
Dialectica Categorical Constructions
 
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
 
Fibrational Versions of Dialectica Categories
Fibrational Versions of Dialectica CategoriesFibrational Versions of Dialectica Categories
Fibrational Versions of Dialectica Categories
 
Dialectica Categories and Cardinalities of the Continuum (March2014)
Dialectica Categories and  Cardinalities of the Continuum (March2014)Dialectica Categories and  Cardinalities of the Continuum (March2014)
Dialectica Categories and Cardinalities of the Continuum (March2014)
 
Dialectica Comonoids
Dialectica ComonoidsDialectica Comonoids
Dialectica Comonoids
 
Categorical Proof Theory for Everyone
Categorical Proof Theory for EveryoneCategorical Proof Theory for Everyone
Categorical Proof Theory for Everyone
 
Why (categorical) representation theory?
Why (categorical) representation theory?Why (categorical) representation theory?
Why (categorical) representation theory?
 

More from Valeria de Paiva

Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021
Valeria de Paiva
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
Valeria de Paiva
 
PLN para Tod@s
PLN para Tod@sPLN para Tod@s
PLN para Tod@s
Valeria 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 Science
Valeria 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 role
Valeria de Paiva
 
Problemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoProblemas de Kolmogorov-Veloso
Problemas de Kolmogorov-Veloso
Valeria 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 Machines
Valeria 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 Portuguese
Valeria 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 ACT
Valeria de Paiva
 
NLCS 2013 opening slides
NLCS 2013 opening slidesNLCS 2013 opening slides
NLCS 2013 opening slides
Valeria de Paiva
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for Dialog
Valeria de Paiva
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
Valeria de Paiva
 
Gender Gap in Computing 2014
Gender Gap in Computing 2014Gender Gap in Computing 2014
Gender Gap in Computing 2014
Valeria de Paiva
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
Valeria de Paiva
 

More from Valeria de Paiva (14)

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
 
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
 
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
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for Dialog
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
 
Gender Gap in Computing 2014
Gender Gap in Computing 2014Gender Gap in Computing 2014
Gender Gap in Computing 2014
 
Dialectica and Kolmogorov Problems
Dialectica and Kolmogorov ProblemsDialectica and Kolmogorov Problems
Dialectica and Kolmogorov Problems
 

Recently uploaded

6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
obonagu
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Self-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptxSelf-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptx
iemerc2024
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
AIR POLLUTION lecture EnE203 updated.pdf
AIR POLLUTION lecture EnE203 updated.pdfAIR POLLUTION lecture EnE203 updated.pdf
AIR POLLUTION lecture EnE203 updated.pdf
RicletoEspinosa1
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 

Recently uploaded (20)

6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Self-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptxSelf-Control of Emotions by Slidesgo.pptx
Self-Control of Emotions by Slidesgo.pptx
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
AIR POLLUTION lecture EnE203 updated.pdf
AIR POLLUTION lecture EnE203 updated.pdfAIR POLLUTION lecture EnE203 updated.pdf
AIR POLLUTION lecture EnE203 updated.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 

Dialectica Categories and Petri Nets

  • 1. 1/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Dialectica Categories and Petri Nets Valeria de Paiva Before ACT Summer School 2020 January, 2020 Valeria de Paiva ACT 2020
  • 2. 2/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Goals Thank you, ACT Summer School organizers! I want talk about the application of Dialectica categories to modelling Petri Nets. I start by describing Petri nets and Dialectica categories. Then I show how to think of special Petri nets as a kind of Dialectica category (following Brown and Gurr) and how to think of usual Petri nets as dialectica categories. Then we discuss if this is good modelling or not, and why Valeria de Paiva ACT 2020
  • 3. 3/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Outline Petri nets Dialectica categories Elementary nets Petri nets as double dialectica constructions Time permitting I will try to compare with new work on Petri nets. Valeria de Paiva ACT 2020
  • 4. 4/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Using Categories Category: a collection of objects and of morphisms, satisfying obvious laws for composition of morphisms; there is an identity for each object and morphisms of the correct domain and co-domain compose, associatively. Functors: the natural notion of morphism between categories Natural transformations: the natural notion of morphisms between functors Constructors: products, sums, functions spaces, limits, duals.... Adjunctions: an abstract version of equality Valeria de Paiva ACT 2020
  • 5. 5/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Categorical models of Petri Nets Types are formulae/objects in appropriate category, Terms/programs are proofs/morphisms in the category, Logical constructors are appropriate categorical constructions. Most important: Reduction is proof normalization (Tait) Outcome: Transfer results/tools from logic to CT to CSci, etc Valeria de Paiva ACT 2020
  • 6. 6/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Brown and Gurr, LICS 1990, Info & Comp 1995 Valeria de Paiva ACT 2020
  • 7. 7/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Based on Winskel, LiCS 1988 Valeria de Paiva ACT 2020
  • 8. 8/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Motivation for Petri nets: Vending Machine Valeria de Paiva ACT 2020
  • 9. 9/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Motivation: Modelling Petri nets firing Valeria de Paiva ACT 2020
  • 10. 10/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Why Petri Nets? Modeling is hard. People seem to like Petri nets. Concurrency is hard. People seem to like Petri nets (non-determinism vs causal independence). Huge number of types: colored, stochastic, higher-order, etc.. Huge number of papers/books/systems Natural application of Linear Logic Recent work on Baez/Master/Moeller and independently of Lopes/Hauesler/Benevides Valeria de Paiva ACT 2020
  • 11. 11/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Which Petri nets? Valeria de Paiva ACT 2020
  • 12. 12/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri What’s the problem? A long-standing problem in the theory of Petri nets has been the lack of any clear methodology for producing a compositional theory of nets (and indeed the lack of even a clear notion as to what a map between nets should be). Brown and Gurr, 1990 Winskel suggests that Petri nets and other models of concurrency can be profitably cast into an algebraic framework. Many people followed this suggestion with several categorical models of Petri nets proposed. Our proposal is to use Dialectica morphisms, so let us check the Dialectica construction for Linear Logic Valeria de Paiva ACT 2020
  • 13. 13/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Linear Logic A proof theoretic logic described by Girard in 1986. Basic idea: assumptions cannot be discarded or duplicated. They must be used exactly once – just like dollar bills (except when they’re marked by a modality !) Other approaches to accounting for logical resources before. Relevance Logic! Great win of Linear Logic: Account for resources when you want to, otherwise fall back to traditional logic via translation A → B iff !A −◦ B Valeria de Paiva ACT 2020
  • 14. 14/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Linear Implication and (Multiplicative) Conjunction Traditional implication: A, A → B B A, A → B A ∧ B Re-use A Linear implication: A, A −◦ B B A, A −◦ B A ⊗ B Cannot re-use A Traditional conjunction: A ∧ B A Discard B Linear conjunction: A ⊗ B A Cannot discard B Of course: !A !A⊗!A Re-use !(A) ⊗ B B Discard Valeria de Paiva ACT 2020
  • 15. 15/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri The challenges of modeling Linear Logic Traditional modeling of intuitionistic logic: formula A object A of appropriate category A ∧ B A × B (real product) A → B BA (set of functions from A to B) and they relate via adjunction A ∧ B → C ⇐⇒ A → Hom(B, C) = CB These are real products, have projections (A × B → A) and diagonals (A → A × A) corresponding to deletion and duplication of resources. Not linear!!! Need to use tensor products and internal homs. Hard to define the “make-everything-usual”operator ”!”. Valeria de Paiva ACT 2020
  • 16. 16/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Dialectica Categories The category Dial2(Sets) has as objects triples A = (U, X, α), where U, X are sets and α is an ordinary relation between U and X. (so either u and x are α related, α(u, x) = 1 or not.) A map from A = (U, X, α) to B = (V , Y , β) is a pair of functions (f , F), where f : U → V and F : X → Y such that U α X ⇓ ∀u ∈ U, ∀y ∈ Y α(u, Fy) implies β(fu, y) V f ? β Y 6 F or α(u, F(y)) ≤ β(f (u), y) Valeria de Paiva ACT 2020
  • 17. 17/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Dialectica Categories Constructions On the board, lost slides. Do internal-hom and tensor. and maybe adjunction. Theorem: The category Dial2(Sets) is a sound model for (intuitionistic and classical) Linear Logic. And Petri Nets... Valeria de Paiva ACT 2020
  • 18. 18/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Dialectica Categories as (safe) Petri Nets A category of safe nets SNet objects are of the form (E, B, pre, post). (pre, post are relations E × B → 2) Morphisms are pairs of functions (f , F) making the two diagrams below commute. E pre B ⇓ E f ? pre B 6 F E post B ⇑ E f ? post B 6 F where as before ∀e ∈ E, ∀b ∈ B pre(e, Fb ) implies pre (fe, b ) and also, the corresponding reversed implication for post: ∀e ∈ E, ∀b ∈ B post(e, Fb ) is implied by post (fe, b ). Brown and Gurr 1990 Valeria de Paiva ACT 2020
  • 19. 19/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Dialectica Categories as Petri Nets Why is this good? Structurally safe nets, say Brown and Gurr. Can construct refinement morphisms of nets. Can lift all the categorical structure of Dial2(Sets) to a given category of nets. Are these nets any good? Similar to Winskel’s nets, constructed for different reasons. Valeria de Paiva ACT 2020
  • 20. 20/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Dialectica Categories as (general) Petri Nets A category of safe nets SNet objects are of the form (E, B, pre, post), BUT where pre, post are maps into N, a lineale. Morphisms are pairs of functions (f , F) making the two diagrams below commute. E pre B ⇓ E f ? pre B 6 F E post B ⇑ E f ? post B 6 F where as before ∀e ∈ E, ∀b ∈ B pre(e, Fb ) implies pre (fe, b ) and also, the corresponding reversed implication for post conditions: ∀e ∈ E, ∀b ∈ B post(e, Fb ) is implied by post (fe, b ) Valeria de Paiva ACT 2020
  • 21. 21/21 Introduction Petri Nets Linear Logic Dialetica cats Dialectica and Petri Conclusions Dialectica morphisms correspond to simulations between Petri nets, using markings. CCS constructors can be simulated too. Nielsen and Winskel have a collection of work on categories of concurrency models, how much of that can be reproduced in our setting? Is this good modelling? Clearly people like Petri nets, especially probabilistic ones. What is the theorem that we want to prove? Can this work shed some light on how to model probabilistic theories using category theory? at least it gives me the impulse to read about it! Valeria de Paiva ACT 2020