Zooms for Effects Dominique Duval Udine, September 11., 2009 IFIP - - PowerPoint PPT Presentation

zooms for effects
SMART_READER_LITE
LIVE PREVIEW

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-1
SLIDE 1

Zooms for Effects

Dominique Duval Udine, September 11., 2009 IFIP W.G.1.3. meeting

slide-2
SLIDE 2

Outline

Introduction Diagrammatic logics Parameterization Sequential product Conclusion

slide-3
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
SLIDE 4

In this talk

A category of logics

◮ objects: “logics” with models and proofs ◮ morphisms: “stands for” should be a morphism

slide-5
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
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
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
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
SLIDE 9

Outline

Introduction Diagrammatic logics Parameterization Sequential product Conclusion

slide-10
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
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
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Σ′

1 (Lτ)−1

LΣ1

slide-13
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
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
SLIDE 15

Outline

Introduction Diagrammatic logics Parameterization Sequential product Conclusion

slide-16
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
SLIDE 17

Parameterization and diagrammatic logics

◮ Parameterization: a zoom ◮ Parameter passing: a zoom and a 2-morphism

slide-18
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
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
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
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
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
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
SLIDE 24

Outline

Introduction Diagrammatic logics Parameterization Sequential product Conclusion

slide-25
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
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
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
SLIDE 28

Outline

Introduction Diagrammatic logics Parameterization Sequential product Conclusion

slide-29
SLIDE 29

Zooms

Dec undecoration expansion Far Near PROOFS MODELS

slide-30
SLIDE 30

THANK YOU!