SLIDE 1
Zooms for Effects Dominique Duval Udine, September 11., 2009 IFIP - - PowerPoint PPT Presentation
Zooms for Effects Dominique Duval Udine, September 11., 2009 IFIP - - PowerPoint PPT Presentation
Zooms for Effects Dominique Duval Udine, September 11., 2009 IFIP W.G.1.3. meeting Outline Introduction Diagrammatic logics Parameterization Sequential product Conclusion Motivations Wanted. A framework for the semantics of effects.
SLIDE 2
SLIDE 3
Motivations
- Wanted. A framework for the semantics of effects.
- Monads. For two kinds of morphisms:
◮ in general f : X→Y “stands for” some f ′ : X → T(Y) ◮ sometimes v : X→Y is pure, then v′ = η ◦ v
- Wanted. Several kinds of objects, of arrows, of equations,...
each kind “stands for” something...
SLIDE 4
In this talk
A category of logics
◮ objects: “logics” with models and proofs ◮ morphisms: “stands for” should be a morphism
SLIDE 5
“stands for”?
E.g., a monad.
◮ in general f : X → Y “stands for” some f ′ : X → T(Y)
X
f
Y X
f
T(Y) Far Near
SLIDE 6
“stands for” is part of a “zoom”
E.g., a monads
◮ in general f : X→Y “stands for” some f ′ : X → T(Y) ◮ sometimes v : X→Y is pure, then v′ = η ◦ v
X
f v
Y “Decorated” X
f v
Y X
f ′ v′ = v
T(Y) Y
η
Far Near
SLIDE 7
“zooms” are spans
Dec Far Near X
f v
Y Decorated X
f v
Y X
f ′ v′ = v
T(Y) Y
η
Far Near Slogan. First be wrong, then add corrections, in order to finally get right.
SLIDE 8
This talk
◮ Diagrammatic logics (categories...)
with Christian Lair.
◮ Zooms for parameterization
with C´ esar Dom´ ınguez.
◮ A zoom for sequential product
with Jean-Guillaume Dumas and Jean-Claude Reynaud.
SLIDE 9
Outline
Introduction Diagrammatic logics Parameterization Sequential product Conclusion
SLIDE 10
A diagrammatic logic
- Definition. A logic L is a functor
with a full and faithful right adjoint R: S
L ⊥ff
T
R
In addition, this is induced by a morphism of limit sketches. Properties.
◮ R makes T a full subcategory of S ◮ L(R(Θ)) ∼
= Θ for each theory Θ
◮ S and T have colimits, and L preserves colimits
SLIDE 11
Models
S
L ⊥ff
T
R
Definitions.
◮ S is the category of specifications ◮ T is the category of theories ◮ Σ presents Θ when Θ ∼
= L(Σ).
◮ Σ and Σ′ are equivalent when L(Σ) ∼
= L(Σ′).
- Models. Mod(Σ, Θ) = T[L(Σ), Θ] ∼
= S[Σ, R(Θ)] The models form a category iff T is a 2-category.
SLIDE 12
Proofs
- Theorem. [Gabriel-Zisman 1967] (for homotopy theory)
Up to equivalence, L is a localization: it adds inverses to some morphisms in S.
- Definition. An entailment is τ : Σ → Σ′ in S
such that L(τ) is invertible in T. Then Σ and Σ′ are equivalent. Hence: the bicategory of fractions S2.
- Definition. A proof is a fraction.
in S2: Σ
σ
Σ′
1
Σ1
τ
in S: in T: Σ
σ
Σ′
1
Σ1
τ
LΣ
Lσ
LΣ′
1 (Lτ)−1
LΣ1
Lτ
SLIDE 13
Morphisms of logics
- Definition. A morphism of logics F : L1 → L2
is a pair of functors (FS, FT) such that: S1
L1 FS
T1
FT
S2
L2
T2
∼ =
In addition, they are induced by morphisms of limit sketches.
- Definition. A 2-morphism of logics ℓ: F ⇒ F ′ : L1 → L2
is a pair of natural transformations (ℓS, ℓT) such that: S1
L1 FS F ′
S
⇒ lS
T1
FT F ′
T
⇒ lT
S2
L2
T2
=
SLIDE 14
Altogether...
◮ A 2-category of logics DiaLog
with a 2-functor that focuses on the theories: DiaLog → Cat (L : S → T) → T
◮ “Everything” happens in the bicategory of fractions:
a specification Σ should be seen up to equivalence.
SLIDE 15
Outline
Introduction Diagrammatic logics Parameterization Sequential product Conclusion
SLIDE 16
Parameterization
Starting point: Sergeraert’s software for effective homology. Goal: formalize the process of:
◮ adding a parameter to some operations ◮ then passing a value (an argument) to the parameter
A kind of benchmark, that may be treated with monads (T(X) = X A), hidden algebras, coalgebras, institutions...
SLIDE 17
Parameterization and diagrammatic logics
◮ Parameterization: a zoom ◮ Parameter passing: a zoom and a 2-morphism
SLIDE 18
Example: Differential monoids
A specification of monoids Mon:
◮ type G ◮ operations prd : G2 → G, e: → G ◮ equations prd(x, prd(y, z)) = prd(prd(x, y), z),
prd(x, e) = x, prd(e, x) = x A specification of differential monoids DMon:
◮ Mon with ◮ operation dif : G → G ◮ equations dif(prd(x, y)) = prd(dif(x), dif(y)),
dif(e) = e, dif(dif(x)) = e
SLIDE 19
A specification of decorated differential monoids DecDMon:
◮ Mon with ◮ operation dif : G → G ◮ equations dif(prd(x, y)) = prd(dif(x), dif(y)),
dif(e) = e, dif(dif(x)) = e A specification for monoids with a parameterized differential ParDMon:
◮ Mon with ◮ type A ◮ operation dif ′ : A × G → G ◮ equations dif ′(p, (prd(x, y))) = prd(dif ′(p, x), dif ′(p, y)),
dif ′(p, e) = e, dif ′(p, dif ′(p, x)) = e
SLIDE 20
A zoom for parametererizing
Dec Far Near G2
prd
G G
dif
G DecDMon G2
prd
G G
dif
G A × G2 G2 prd G A × G
dif ′
G DMon ParDMon
SLIDE 21
Parameter passing
Each parameterized differential monoid PM together with an argument α ∈ PM(A) ⇒ a differential monoid Mα with: – the same underlying monoid as PM – the differential x → Mα(dif)(x) = PM(dif ′)(α, x) In the specifications: Add a constant a : 1 → A in the “near” logic.
SLIDE 22
A zoom for parameter passing...
Dec Far Near G
dif
G DecDMon G
dif
G G
a×GA × G dif ′
G DMon ParDMon
SLIDE 23
...with a 2-morphism of logics
Dec Far
⇒
Near G
dif
G DecDMon G
dif
G G
a×GA × G dif ′
G DMon ParDMon ↑ G
dif
G
SLIDE 24
Outline
Introduction Diagrammatic logics Parameterization Sequential product Conclusion
SLIDE 25
Sequential product
Goal: formalize the fact that the order of evaluation of the arguments does matter when there are effects. Monads: the strength. In the framework of diagrammatic logics: A zoom, from an ordinay product to a sequential product. There are two kinds of morphisms And two kinds of equations!
SLIDE 26
About products
X = X1 × X2, Y = Y1 × Y2, Z = Y1 × X2. Without effects: g × f = (id × g) ◦ (f × id) X1
f
Y1 X
f×g = =
Y X2
g
Y2 = X1
f
Y1
id
Y1 X
f×id = =
Z
id×g = =
Y X2
id
X2
g
Y2
SLIDE 27
A zoom for the sequential product
Dec Far Near X1
f
Y1 X
f×v = ≈
Y X2
v
Y2 X1
f
Y1 X
f×v = =
Y X2
v
Y2 S × X1
f
S × X2 S × X
f×v = =
S × Y X2
v
Y2
SLIDE 28
Outline
Introduction Diagrammatic logics Parameterization Sequential product Conclusion
SLIDE 29
Zooms
Dec undecoration expansion Far Near PROOFS MODELS
SLIDE 30