A categorical model for 2-PDAs with states J urgen Koslowski - - PowerPoint PPT Presentation

a categorical model for 2 pdas with states
SMART_READER_LITE
LIVE PREVIEW

A categorical model for 2-PDAs with states J urgen Koslowski - - PowerPoint PPT Presentation

A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science Technical University Braunschweig cmat14, Coimbra (2014-01-25) http://www.iti.cs.tu-bs.de/koslowj/RESEARCH J urgen Koslowski


slide-1
SLIDE 1

A categorical model for 2-PDAs with states

J¨ urgen Koslowski

Department of Theoretical Computer Science Technical University Braunschweig

cmat14, Coimbra

(2014-01-25)

http://www.iti.cs.tu-bs.de/˜koslowj/RESEARCH

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 1 / 17

slide-2
SLIDE 2

Content

1 The context: unification of machine models 2 Categorical approaches to LTSs 3 Moving up the Chomsky hierarchy: Walters’ approach 4 Strategy: towards 2PDAs 5 Example: MIX 6 The missing ingredient 7 Putting it all together 8 To do J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 2 / 17

slide-3
SLIDE 3

The context: unification of machine models

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-4
SLIDE 4

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-5
SLIDE 5

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ),

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-6
SLIDE 6

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ), − push-down automata (PDAs) for context-free languages ( CF ),

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-7
SLIDE 7

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ), − push-down automata (PDAs) for context-free languages ( CF ), − Turing machines (TMs) for semi-decidable languages ( SD ),

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-8
SLIDE 8

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ), − push-down automata (PDAs) for context-free languages ( CF ), − Turing machines (TMs) for semi-decidable languages ( SD ),

display less of a family resemblance than the defining grammars.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-9
SLIDE 9

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ), − push-down automata (PDAs) for context-free languages ( CF ), − Turing machines (TMs) for semi-decidable languages ( SD ),

display less of a family resemblance than the defining grammars. ⊲ 2PDAs (with two stacks), long known to be Turing complete, could rectify this, but never received much attention.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-10
SLIDE 10

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ), − push-down automata (PDAs) for context-free languages ( CF ), − Turing machines (TMs) for semi-decidable languages ( SD ),

display less of a family resemblance than the defining grammars. ⊲ 2PDAs (with two stacks), long known to be Turing complete, could rectify this, but never received much attention. ⊲ But even deterministic 2PDAs with a single state suffice [Koslowski 2013],

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-11
SLIDE 11

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ), − push-down automata (PDAs) for context-free languages ( CF ), − Turing machines (TMs) for semi-decidable languages ( SD ),

display less of a family resemblance than the defining grammars. ⊲ 2PDAs (with two stacks), long known to be Turing complete, could rectify this, but never received much attention. ⊲ But even deterministic 2PDAs with a single state suffice [Koslowski 2013], hence states and storage can be disentagled (impossible for TMs).

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-12
SLIDE 12

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ), − push-down automata (PDAs) for context-free languages ( CF ), − Turing machines (TMs) for semi-decidable languages ( SD ),

display less of a family resemblance than the defining grammars. ⊲ 2PDAs (with two stacks), long known to be Turing complete, could rectify this, but never received much attention. ⊲ But even deterministic 2PDAs with a single state suffice [Koslowski 2013], hence states and storage can be disentagled (impossible for TMs). This allows a natural refinement of the Chomsky hierarchy, but also raises questions about the true nature of states.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-13
SLIDE 13

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ), − push-down automata (PDAs) for context-free languages ( CF ), − Turing machines (TMs) for semi-decidable languages ( SD ),

display less of a family resemblance than the defining grammars. ⊲ 2PDAs (with two stacks), long known to be Turing complete, could rectify this, but never received much attention. ⊲ But even deterministic 2PDAs with a single state suffice [Koslowski 2013], hence states and storage can be disentagled (impossible for TMs). This allows a natural refinement of the Chomsky hierarchy, but also raises questions about the true nature of states. ⊲ We provide an elegant categorification of ss2PDAs that allows states to be incorporated orthogonally to storage.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-14
SLIDE 14

The context: unification of machine models

⊲ The familiar non-deterministic machine models for language recognition over an alphabet Σ in the Chomsky-hierarchy

− finite automata (FAs) for regular languages ( REG ), − push-down automata (PDAs) for context-free languages ( CF ), − Turing machines (TMs) for semi-decidable languages ( SD ),

display less of a family resemblance than the defining grammars. ⊲ 2PDAs (with two stacks), long known to be Turing complete, could rectify this, but never received much attention. ⊲ But even deterministic 2PDAs with a single state suffice [Koslowski 2013], hence states and storage can be disentagled (impossible for TMs). This allows a natural refinement of the Chomsky hierarchy, but also raises questions about the true nature of states. ⊲ We provide an elegant categorification of ss2PDAs that allows states to be incorporated orthogonally to storage. The result bears strong resemblance to the tile model of Gadducci and Montanari [2000] for rewriting and abstract concurrent semantics.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 3 / 17

slide-15
SLIDE 15

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-16
SLIDE 16

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G0

s t

G1

Σ (jointly mono)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet,

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-17
SLIDE 17

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-18
SLIDE 18

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono) G0 × G0

s, t

G1

Σ (jointly mono, relation G0 × G0 Σ)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-19
SLIDE 19

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono) G0 × G0

s, t

G1

Σ (jointly mono, relation G0 × G0 Σ) G0

L

Σ × G0 (non-obvious relation)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-20
SLIDE 20

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono) G0 × G0

s, t

G1

Σ (jointly mono, relation G0 × G0 Σ) G0

L

(Σ × G0)P (coalgebra, Aczel and Mendler [1989])

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-21
SLIDE 21

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono) G0 × G0

s, t

G1

Σ (jointly mono, relation G0 × G0 Σ) G0

L

(Σ × G0)P (coalgebra, Aczel and Mendler [1989]) G0 × Σ

L

G0 (non-obvious relation, textbook LTS?)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-22
SLIDE 22

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono) G0 × G0

s, t

G1

Σ (jointly mono, relation G0 × G0 Σ) G0

L

(Σ × G0)P (coalgebra, Aczel and Mendler [1989]) G0 × Σ

L

G0P (textbook LTS!)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-23
SLIDE 23

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono) G0 × G0

s, t

G1

Σ (jointly mono, relation G0 × G0 Σ) G0

L

(Σ × G0)P (coalgebra, Aczel and Mendler [1989]) G0 × Σ

L

G0P (textbook LTS!) Σ

L

G0 × G0 (reversed obvious relation)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-24
SLIDE 24

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono) G0 × G0

s, t

G1

Σ (jointly mono, relation G0 × G0 Σ) G0

L

(Σ × G0)P (coalgebra, Aczel and Mendler [1989]) G0 × Σ

L

G0P (textbook LTS!) Σ

L

(G0 × G0)P (this looks promising)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-25
SLIDE 25

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono) G0 × G0

s, t

G1

Σ (jointly mono, relation G0 × G0 Σ) G0

L

(Σ × G0)P (coalgebra, Aczel and Mendler [1989]) G0 × Σ

L

G0P (textbook LTS!) Σ

L

(G0, G0)rel (hom-component of a graph morphism)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-26
SLIDE 26

Categorical approaches to LTSs (0)

Most categorical approaches have focussed on labled transition systems (LTSs), that form the core of FAs (disregarding initial/final states):

G

!, ℓ

Σ (faithful graph morphism) G0

s t

G1

Σ (jointly mono) G0 × G0

s, t

G1

Σ (jointly mono, relation G0 × G0 Σ) G0

L

(Σ × G0)P (coalgebra, Aczel and Mendler [1989]) G0 × Σ

L

G0P (textbook LTS!) Σ

L

(G0, G0)rel (hom-component of a graph morphism) Σ

L

rel (“finitary” graph morphism)

where G = (G1

s t

G0) is a finite graph, Σ is an alphabet, and Σ = (Σ

! !

1) is a single-node graph with hom-set Σ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 4 / 17

slide-27
SLIDE 27

Categorical approaches to LTSs (1)

Using the free monoid Σ⋆ and categories K instead one obtains

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 5 / 17

slide-28
SLIDE 28

Categorical approaches to LTSs (1)

Using the free monoid Σ⋆ and categories K instead one obtains

K Σ ⋆ (fibre-small faithful functor) Σ ⋆ rel (lax functor, Rosenthal [1996])

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 5 / 17

slide-29
SLIDE 29

Categorical approaches to LTSs (1)

Using the free monoid Σ⋆ and categories K instead one obtains

K Σ ⋆ (fibre-small faithful functor) Σ⋆ (K0 × K0)P (lax homomorphism) Σ ⋆ rel (lax functor, Rosenthal [1996])

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 5 / 17

slide-30
SLIDE 30

Categorical approaches to LTSs (1)

Using the free monoid Σ⋆ and categories K instead one obtains

K Σ ⋆ (fibre-small faithful functor) (K0 × K0)P Σ⋆P (quantale-enriched category, Betti [1980]) Σ⋆ (K0 × K0)P (lax homomorphism) Σ ⋆ rel (lax functor, Rosenthal [1996])

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 5 / 17

slide-31
SLIDE 31

Categorical approaches to LTSs (1)

Using the free monoid Σ⋆ and categories K instead one obtains

K Σ ⋆ (fibre-small faithful functor) (K0 × K0)P Σ⋆P (quantale-enriched category, Betti [1980]) Σ⋆ (K0 × K0)P (lax homomorphism) Σ ⋆ rel (lax functor, Rosenthal [1996])

⊲ The bottom lines would seem to place our subject squarely into the realm of categorical relational algebra.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 5 / 17

slide-32
SLIDE 32

Categorical approaches to LTSs (1)

Using the free monoid Σ⋆ and categories K instead one obtains

K Σ ⋆ (fibre-small faithful functor) (K0 × K0)P Σ⋆P (quantale-enriched category, Betti [1980]) Σ⋆ (K0 × K0)P (lax homomorphism) Σ ⋆ rel (lax functor, Rosenthal [1996])

⊲ The bottom lines would seem to place our subject squarely into the realm of categorical relational algebra. ⊲ Morphisms of coalgebras G0

L

(Σ × G0)P turn out to be functional bisimulations, while spans are needed to model general bisimulations.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 5 / 17

slide-33
SLIDE 33

Categorical approaches to LTSs (1)

Using the free monoid Σ⋆ and categories K instead one obtains

K Σ ⋆ (fibre-small faithful functor) (K0 × K0)P Σ⋆P (quantale-enriched category, Betti [1980]) Σ⋆ (K0 × K0)P (lax homomorphism) Σ ⋆ rel (lax functor, Rosenthal [1996])

⊲ The bottom lines would seem to place our subject squarely into the realm of categorical relational algebra. ⊲ Morphisms of coalgebras G0

L

(Σ × G0)P turn out to be functional bisimulations, while spans are needed to model general bisimulations. ⊲ Joyal, Winskel and Nielsen [1994] as well as Cockett and Spooner [1997] approach bisimulations synthetically; in an enriched context this has been done by Schmitt and Worytkiewicz [2006].

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 5 / 17

slide-34
SLIDE 34

Remarks

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 6 / 17

slide-35
SLIDE 35

Remarks

The outer bijection persists, when Σ / Σ ⋆ is replaced by an arbitrary graph/category X , giving rise to a Grothendieck-type construction.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 6 / 17

slide-36
SLIDE 36

Remarks

The outer bijection persists, when Σ / Σ ⋆ is replaced by an arbitrary graph/category X , giving rise to a Grothendieck-type construction. But not all intermediate stages admit a similar generalization, in particular not coalgebra.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 6 / 17

slide-37
SLIDE 37

Remarks

The outer bijection persists, when Σ / Σ ⋆ is replaced by an arbitrary graph/category X , giving rise to a Grothendieck-type construction. But not all intermediate stages admit a similar generalization, in particular not coalgebra. Oplax transformations as morphisms between lax functors into rel translate into simulations between LTSs (JK, several talks since 2003, Soboci´ nski [2012]).

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 6 / 17

slide-38
SLIDE 38

Remarks

The outer bijection persists, when Σ / Σ ⋆ is replaced by an arbitrary graph/category X , giving rise to a Grothendieck-type construction. But not all intermediate stages admit a similar generalization, in particular not coalgebra. Oplax transformations as morphisms between lax functors into rel translate into simulations between LTSs (JK, several talks since 2003, Soboci´ nski [2012]). So far we have ignored initial/final states.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 6 / 17

slide-39
SLIDE 39

Remarks

The outer bijection persists, when Σ / Σ ⋆ is replaced by an arbitrary graph/category X , giving rise to a Grothendieck-type construction. But not all intermediate stages admit a similar generalization, in particular not coalgebra. Oplax transformations as morphisms between lax functors into rel translate into simulations between LTSs (JK, several talks since 2003, Soboci´ nski [2012]). So far we have ignored initial/final states. We’d prefer a categorical interpretation rather than selecting arbitrary subsets of states. But the attempt to use simulations from, resp., into a special LTS fails.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 6 / 17

slide-40
SLIDE 40

Remarks

The outer bijection persists, when Σ / Σ ⋆ is replaced by an arbitrary graph/category X , giving rise to a Grothendieck-type construction. But not all intermediate stages admit a similar generalization, in particular not coalgebra. Oplax transformations as morphisms between lax functors into rel translate into simulations between LTSs (JK, several talks since 2003, Soboci´ nski [2012]). So far we have ignored initial/final states. We’d prefer a categorical interpretation rather than selecting arbitrary subsets of states. But the attempt to use simulations from, resp., into a special LTS fails. Instead, one has to use modules rather than oplax natural transfor- mations, from, resp., into the discrete lax functor Σ ⋆

D

rel.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 6 / 17

slide-41
SLIDE 41

Remarks

The outer bijection persists, when Σ / Σ ⋆ is replaced by an arbitrary graph/category X , giving rise to a Grothendieck-type construction. But not all intermediate stages admit a similar generalization, in particular not coalgebra. Oplax transformations as morphisms between lax functors into rel translate into simulations between LTSs (JK, several talks since 2003, Soboci´ nski [2012]). So far we have ignored initial/final states. We’d prefer a categorical interpretation rather than selecting arbitrary subsets of states. But the attempt to use simulations from, resp., into a special LTS fails. Instead, one has to use modules rather than oplax natural transfor- mations, from, resp., into the discrete lax functor Σ ⋆

D

rel. In the context of graphs this means that instead of Σ we need to consider the reflexive graph Σ ǫ with hom-set Σ + {ǫ} .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 6 / 17

slide-42
SLIDE 42

Moving up the Chomsky hierarchy: Walters’ approach

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 7 / 17

slide-43
SLIDE 43

Moving up the Chomsky hierarchy: Walters’ approach

⊲ Some approaches to describe at least real-time PDAs by coalgebraic methods are presently under way, but they seem to be very intricate.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 7 / 17

slide-44
SLIDE 44

Moving up the Chomsky hierarchy: Walters’ approach

⊲ Some approaches to describe at least real-time PDAs by coalgebraic methods are presently under way, but they seem to be very intricate. ⊲ Instead, we slightly extend Walters’ [1989] categorification of a certain type of context-free grammars (CFGs), which functionally separates terminals (= elements of Σ ) from variables,

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 7 / 17

slide-45
SLIDE 45

Moving up the Chomsky hierarchy: Walters’ approach

⊲ Some approaches to describe at least real-time PDAs by coalgebraic methods are presently under way, but they seem to be very intricate. ⊲ Instead, we slightly extend Walters’ [1989] categorification of a certain type of context-free grammars (CFGs), which functionally separates terminals (= elements of Σ ) from variables, rather than (classically) lumping them together and forming a free monoid.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 7 / 17

slide-46
SLIDE 46

Moving up the Chomsky hierarchy: Walters’ approach

⊲ Some approaches to describe at least real-time PDAs by coalgebraic methods are presently under way, but they seem to be very intricate. ⊲ Instead, we slightly extend Walters’ [1989] categorification of a certain type of context-free grammars (CFGs), which functionally separates terminals (= elements of Σ ) from variables, rather than (classically) lumping them together and forming a free monoid. ⊲ Walters views morphisms G

γ

Σ ǫ between finite reflexive graphs as regular grammars rather than as LTSs.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 7 / 17

slide-47
SLIDE 47

Moving up the Chomsky hierarchy: Walters’ approach

⊲ Some approaches to describe at least real-time PDAs by coalgebraic methods are presently under way, but they seem to be very intricate. ⊲ Instead, we slightly extend Walters’ [1989] categorification of a certain type of context-free grammars (CFGs), which functionally separates terminals (= elements of Σ ) from variables, rather than (classically) lumping them together and forming a free monoid. ⊲ Walters views morphisms G

γ

Σ ǫ between finite reflexive graphs as regular grammars rather than as LTSs. Then morphsms between suitable multi-graphs (edges have finitely many inputs and one output; this yields bottom-up parsing) capture a class of CFGs (in Walters Normal Form (WNF)) that generate all context-free languages.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 7 / 17

slide-48
SLIDE 48

Moving up the Chomsky hierarchy: Walters’ approach

⊲ Some approaches to describe at least real-time PDAs by coalgebraic methods are presently under way, but they seem to be very intricate. ⊲ Instead, we slightly extend Walters’ [1989] categorification of a certain type of context-free grammars (CFGs), which functionally separates terminals (= elements of Σ ) from variables, rather than (classically) lumping them together and forming a free monoid. ⊲ Walters views morphisms G

γ

Σ ǫ between finite reflexive graphs as regular grammars rather than as LTSs. Then morphsms between suitable multi-graphs (edges have finitely many inputs and one output; this yields bottom-up parsing) capture a class of CFGs (in Walters Normal Form (WNF)) that generate all context-free languages. ⊲ Walters wanted to illustrate his construction of the free category with products over a multi-graph.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 7 / 17

slide-49
SLIDE 49

Moving up the Chomsky hierarchy: Walters’ approach

⊲ Some approaches to describe at least real-time PDAs by coalgebraic methods are presently under way, but they seem to be very intricate. ⊲ Instead, we slightly extend Walters’ [1989] categorification of a certain type of context-free grammars (CFGs), which functionally separates terminals (= elements of Σ ) from variables, rather than (classically) lumping them together and forming a free monoid. ⊲ Walters views morphisms G

γ

Σ ǫ between finite reflexive graphs as regular grammars rather than as LTSs. Then morphsms between suitable multi-graphs (edges have finitely many inputs and one output; this yields bottom-up parsing) capture a class of CFGs (in Walters Normal Form (WNF)) that generate all context-free languages. ⊲ Walters wanted to illustrate his construction of the free category with products over a multi-graph. However, a more direct way of extracting the generated language becomes available with top-down parsing, hence we revert to co-multi-graphs or cm-graphs, for short.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 7 / 17

slide-50
SLIDE 50

Walters’ approach slightly generalized

Definition

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 8 / 17

slide-51
SLIDE 51

Walters’ approach slightly generalized

Definition (0) Any set Σ induces a cm-graph ΣI

N with a single node H and

Σ + {ǫ} for all hom-sets [H, Hn] , n ∈ I N .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 8 / 17

slide-52
SLIDE 52

Walters’ approach slightly generalized

Definition (0) Any set Σ induces a cm-graph ΣI

N with a single node H and

Σ + {ǫ} for all hom-sets [H, Hn] , n ∈ I N . ( ∅I

N is terminal.)

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 8 / 17

slide-53
SLIDE 53

Walters’ approach slightly generalized

Definition (0) Any set Σ induces a cm-graph ΣI

N with a single node H and

Σ + {ǫ} for all hom-sets [H, Hn] , n ∈ I N . ( ∅I

N is terminal.)

(1) A CFG ` a la Walters (CFW) γ over Σ is a faithful cm-graph morphism G

γ

ΣI

N with G finite.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 8 / 17

slide-54
SLIDE 54

Walters’ approach slightly generalized

Definition (0) Any set Σ induces a cm-graph ΣI

N with a single node H and

Σ + {ǫ} for all hom-sets [H, Hn] , n ∈ I N . ( ∅I

N is terminal.)

(1) A CFG ` a la Walters (CFW) γ over Σ is a faithful cm-graph morphism G

γ

ΣI

N with G finite.

⊲ Terminals (= elements of Σ ) label the edges of ΣI

N , while the set B

  • f variables is the set of G -nodes.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 8 / 17

slide-55
SLIDE 55

Walters’ approach slightly generalized

Definition (0) Any set Σ induces a cm-graph ΣI

N with a single node H and

Σ + {ǫ} for all hom-sets [H, Hn] , n ∈ I N . ( ∅I

N is terminal.)

(1) A CFG ` a la Walters (CFW) γ over Σ is a faithful cm-graph morphism G

γ

ΣI

N with G finite.

⊲ Terminals (= elements of Σ ) label the edges of ΣI

N , while the set B

  • f variables is the set of G -nodes.

⊲ Classical CFG-productions X aY0Y1 . . . Yn−1 in ǫ -Greibach normal form, that is, a ∈ Σ + {ǫ} , can be expressed by

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 8 / 17

slide-56
SLIDE 56

Walters’ approach slightly generalized

Definition (0) Any set Σ induces a cm-graph ΣI

N with a single node H and

Σ + {ǫ} for all hom-sets [H, Hn] , n ∈ I N . ( ∅I

N is terminal.)

(1) A CFG ` a la Walters (CFW) γ over Σ is a faithful cm-graph morphism G

γ

ΣI

N with G finite.

⊲ Terminals (= elements of Σ ) label the edges of ΣI

N , while the set B

  • f variables is the set of G -nodes.

⊲ Classical CFG-productions X aY0Y1 . . . Yn−1 in ǫ -Greibach normal form, that is, a ∈ Σ + {ǫ} , can be expressed by (X

ϕ

Y0 . . . Yn−1)γ = (H

a

Hn)

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 8 / 17

slide-57
SLIDE 57

Walters’ approach slightly generalized

Definition (0) Any set Σ induces a cm-graph ΣI

N with a single node H and

Σ + {ǫ} for all hom-sets [H, Hn] , n ∈ I N . ( ∅I

N is terminal.)

(1) A CFG ` a la Walters (CFW) γ over Σ is a faithful cm-graph morphism G

γ

ΣI

N with G finite.

⊲ Terminals (= elements of Σ ) label the edges of ΣI

N , while the set B

  • f variables is the set of G -nodes.

⊲ Classical CFG-productions X aY0Y1 . . . Yn−1 in ǫ -Greibach normal form, that is, a ∈ Σ + {ǫ} , can be expressed by (X

ϕ

Y0 . . . Yn−1)γ = (H

a

Hn)

  • r simply as X

a

Y0 . . . Yn−1, since γ is faithful.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 8 / 17

slide-58
SLIDE 58

Trees and words

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-59
SLIDE 59

Trees and words

⊲ Instead of traditional node-labeled derivation trees, Poincar´ e duality now yields trees with somewhat different building blocks:

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-60
SLIDE 60

Trees and words

⊲ Instead of traditional node-labeled derivation trees, Poincar´ e duality now yields trees with somewhat different building blocks:

X Yn−1

. . .

Y1 Y0 a

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-61
SLIDE 61

Trees and words

⊲ Instead of traditional node-labeled derivation trees, Poincar´ e duality now yields trees with somewhat different building blocks:

X Yn−1

. . .

Y1 Y0 a

vs.

a

. . .

X Y0 Y1 Yn−1 J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-62
SLIDE 62

Trees and words

⊲ Instead of traditional node-labeled derivation trees, Poincar´ e duality now yields trees with somewhat different building blocks:

X Yn−1

. . .

Y1 Y0 a

vs.

a

. . .

X Y0 Y1 Yn−1

⊲ for the language recognized by a G - node S , roughly speaking,

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-63
SLIDE 63

Trees and words

⊲ Instead of traditional node-labeled derivation trees, Poincar´ e duality now yields trees with somewhat different building blocks:

X Yn−1

. . .

Y1 Y0 a

vs.

a

. . .

X Y0 Y1 Yn−1

⊲ for the language recognized by a G - node S , roughly speaking,

freely extend γ to a cm-functor γ⋆ between “free cm-categories over cm-graphs” (in analogy to forming free categories over a graphs);

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-64
SLIDE 64

Trees and words

⊲ Instead of traditional node-labeled derivation trees, Poincar´ e duality now yields trees with somewhat different building blocks:

X Yn−1

. . .

Y1 Y0 a

vs.

a

. . .

X Y0 Y1 Yn−1

⊲ for the language recognized by a G - node S , roughly speaking,

freely extend γ to a cm-functor γ⋆ between “free cm-categories over cm-graphs” (in analogy to forming free categories over a graphs); consider the γ -image of the hom-set S, ǫG ⋆ in Σ ⋆

I N ;

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-65
SLIDE 65

Trees and words

⊲ Instead of traditional node-labeled derivation trees, Poincar´ e duality now yields trees with somewhat different building blocks:

X Yn−1

. . .

Y1 Y0 a

vs.

a

. . .

X Y0 Y1 Yn−1

⊲ for the language recognized by a G - node S , roughly speaking,

freely extend γ to a cm-functor γ⋆ between “free cm-categories over cm-graphs” (in analogy to forming free categories over a graphs); consider the γ -image of the hom-set S, ǫG ⋆ in Σ ⋆

I N ;

extract words over Σ from the resulting diagrams in Σ ⋆

I N ; these

so-called yields constitute the string-language generated by γ and S .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-66
SLIDE 66

Trees and words

⊲ Instead of traditional node-labeled derivation trees, Poincar´ e duality now yields trees with somewhat different building blocks:

X Yn−1

. . .

Y1 Y0 a

vs.

a

. . .

X Y0 Y1 Yn−1

⊲ for the language recognized by a G - node S , roughly speaking,

freely extend γ to a cm-functor γ⋆ between “free cm-categories over cm-graphs” (in analogy to forming free categories over a graphs); consider the γ -image of the hom-set S, ǫG ⋆ in Σ ⋆

I N ;

extract words over Σ from the resulting diagrams in Σ ⋆

I N ; these

so-called yields constitute the string-language generated by γ and S . Optionally, one can view ΣI

N as a reflexive cm-graph, which results in a

somewhat simpler free cm-category Σ ⋆

I N .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-67
SLIDE 67

Trees and words

⊲ Instead of traditional node-labeled derivation trees, Poincar´ e duality now yields trees with somewhat different building blocks:

X Yn−1

. . .

Y1 Y0 a

vs.

a

. . .

X Y0 Y1 Yn−1

⊲ for the language recognized by a G - node S , roughly speaking,

freely extend γ to a cm-functor γ⋆ between “free cm-categories over cm-graphs” (in analogy to forming free categories over a graphs); consider the γ -image of the hom-set S, ǫG ⋆ in Σ ⋆

I N ;

extract words over Σ from the resulting diagrams in Σ ⋆

I N ; these

so-called yields constitute the string-language generated by γ and S . Optionally, one can view ΣI

N as a reflexive cm-graph, which results in a

somewhat simpler free cm-category Σ ⋆

I N .

⊲ As terminals are not limited to leaves, we need to switch from positional ordering of trees to temporal ordering (rotation by π/2 indicates this), which requires some notion of current position.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 9 / 17

slide-68
SLIDE 68

Strategy: towards 2PDAs

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-69
SLIDE 69

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-70
SLIDE 70

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack. Hence such pure PDAs may have been disregarded as uninteresting.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-71
SLIDE 71

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack. Hence such pure PDAs may have been disregarded as uninteresting. ⊲ Juxtaposing a second stack to the first one, the interface between them determines the current position:

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-72
SLIDE 72

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack. Hence such pure PDAs may have been disregarded as uninteresting. ⊲ Juxtaposing a second stack to the first one, the interface between them determines the current position: from here the first element on each side is visible, resp., the information that some stack is empty.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-73
SLIDE 73

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack. Hence such pure PDAs may have been disregarded as uninteresting. ⊲ Juxtaposing a second stack to the first one, the interface between them determines the current position: from here the first element on each side is visible, resp., the information that some stack is empty. ⊲ We will employ two stack alphabets (= sets of variables) B and C , which ` a priori need not be disjoint.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-74
SLIDE 74

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack. Hence such pure PDAs may have been disregarded as uninteresting. ⊲ Juxtaposing a second stack to the first one, the interface between them determines the current position: from here the first element on each side is visible, resp., the information that some stack is empty. ⊲ We will employ two stack alphabets (= sets of variables) B and C , which ` a priori need not be disjoint. But to indicate the current position, we use color-coded disjoint copies B and C for the lower/upper stack.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-75
SLIDE 75

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack. Hence such pure PDAs may have been disregarded as uninteresting. ⊲ Juxtaposing a second stack to the first one, the interface between them determines the current position: from here the first element on each side is visible, resp., the information that some stack is empty. ⊲ We will employ two stack alphabets (= sets of variables) B and C , which ` a priori need not be disjoint. But to indicate the current position, we use color-coded disjoint copies B and C for the lower/upper stack. Their union makes up the set of G - nodes.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-76
SLIDE 76

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack. Hence such pure PDAs may have been disregarded as uninteresting. ⊲ Juxtaposing a second stack to the first one, the interface between them determines the current position: from here the first element on each side is visible, resp., the information that some stack is empty. ⊲ We will employ two stack alphabets (= sets of variables) B and C , which ` a priori need not be disjoint. But to indicate the current position, we use color-coded disjoint copies B and C for the lower/upper stack. Their union makes up the set of G - nodes. Moreover, we require the

  • utputs of cm-edges to inherit the input’s color.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-77
SLIDE 77

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack. Hence such pure PDAs may have been disregarded as uninteresting. ⊲ Juxtaposing a second stack to the first one, the interface between them determines the current position: from here the first element on each side is visible, resp., the information that some stack is empty. ⊲ We will employ two stack alphabets (= sets of variables) B and C , which ` a priori need not be disjoint. But to indicate the current position, we use color-coded disjoint copies B and C for the lower/upper stack. Their union makes up the set of G - nodes. Moreover, we require the

  • utputs of cm-edges to inherit the input’s color.

⊲ Transitions take the form AB

a

Γ∆ with A , B not both empty (acceptance by empty stack), a ∈ Σ + {ǫ} , and Γ, ∆ ∈ B⋆ × C⋆ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-78
SLIDE 78

Strategy: towards 2PDAs

⊲ CFGs with the constraint of only left-derivations being allowed essentially are single state PDAs that accept by empty stack. Hence such pure PDAs may have been disregarded as uninteresting. ⊲ Juxtaposing a second stack to the first one, the interface between them determines the current position: from here the first element on each side is visible, resp., the information that some stack is empty. ⊲ We will employ two stack alphabets (= sets of variables) B and C , which ` a priori need not be disjoint. But to indicate the current position, we use color-coded disjoint copies B and C for the lower/upper stack. Their union makes up the set of G - nodes. Moreover, we require the

  • utputs of cm-edges to inherit the input’s color.

⊲ Transitions take the form AB

a

Γ∆ with A , B not both empty (acceptance by empty stack), a ∈ Σ + {ǫ} , and Γ, ∆ ∈ B⋆ × C⋆ . ⊲ Left and right moves AB

ǫ

ǫAB and AB

ǫ

ABǫ just change the current position.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 10 / 17

slide-79
SLIDE 79

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-80
SLIDE 80

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-81
SLIDE 81

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-82
SLIDE 82

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-83
SLIDE 83

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-84
SLIDE 84

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-85
SLIDE 85

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-86
SLIDE 86

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-87
SLIDE 87

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

⋆ current position

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-88
SLIDE 88

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-89
SLIDE 89

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-90
SLIDE 90

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-91
SLIDE 91

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-92
SLIDE 92

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-93
SLIDE 93

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-94
SLIDE 94

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-95
SLIDE 95

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-96
SLIDE 96

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-97
SLIDE 97

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-98
SLIDE 98

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-99
SLIDE 99

Example: MIX = { w ∈ {a, b, c}∗ : |w|a = |w|b = |w|c }

When using the initial stack ǫ S and the following transitions ǫ S

a

ǫ SBC | ǫ BC ǫ S

b

ǫ SCA | ǫ CA ǫ S

c

ǫ SAB | ǫ AB @A

a

@ǫ @B

b

@ǫ @C

c

@ǫ A@

a

ǫ@ B@

b

ǫ@ C@

c

ǫ@ @X

ǫ

@Xǫ X@

ǫ

ǫX@

moves!

with @ ∈ {A, B, C, ǫ} and X ∈ {A, B, C} . The derivation of b a b c c a b c a can take the form:

b a b c

⊘ ⊘

c

  • a

b c a S S S C B B A B B A B C C A

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 11 / 17

slide-100
SLIDE 100

What’s wrong with this picture?

As the diagram above is not built from cm-edges of the proposed cm-graph G , we need to re-interpret its components, e.g., by splitting them up. E.g.,

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 12 / 17

slide-101
SLIDE 101

What’s wrong with this picture?

As the diagram above is not built from cm-edges of the proposed cm-graph G , we need to re-interpret its components, e.g., by splitting them up. E.g.,

a B A E D C

could mean       

ψ ϕ B A E D C γ a a H H H H H

      

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 12 / 17

slide-102
SLIDE 102

What’s wrong with this picture?

As the diagram above is not built from cm-edges of the proposed cm-graph G , we need to re-interpret its components, e.g., by splitting them up. E.g.,

a B A E D C

could mean       

ψ ϕ B A E D C γ a a H H H H H

       ⊲ With G a disjoint union of a red and a blue component, any pairing ϕ, ψ with the same Σ - labels under γ would produce a valid transition for the ss2PDA.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 12 / 17

slide-103
SLIDE 103

What’s wrong with this picture?

As the diagram above is not built from cm-edges of the proposed cm-graph G , we need to re-interpret its components, e.g., by splitting them up. E.g.,

a B A E D C

could mean       

ψ ϕ B A E D C γ a a H H H H H

       ⊲ With G a disjoint union of a red and a blue component, any pairing ϕ, ψ with the same Σ - labels under γ would produce a valid transition for the ss2PDA. Is this really what we want?

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 12 / 17

slide-104
SLIDE 104

What’s wrong with this picture?

As the diagram above is not built from cm-edges of the proposed cm-graph G , we need to re-interpret its components, e.g., by splitting them up. E.g.,

a B A E D C

could mean       

ψ ϕ B A E D C γ a a H H H H H

       ⊲ With G a disjoint union of a red and a blue component, any pairing ϕ, ψ with the same Σ - labels under γ would produce a valid transition for the ss2PDA. Is this really what we want? ⊲ Another problem is that at least here the current position does not really move to a different region of the diagram.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 12 / 17

slide-105
SLIDE 105

What’s wrong with this picture?

As the diagram above is not built from cm-edges of the proposed cm-graph G , we need to re-interpret its components, e.g., by splitting them up. E.g.,

a B A E D C

⋆ ⋆ could mean       

ψ ϕ B A E D C

⋆ ⋆

γ a a H H H H H

       ⊲ With G a disjoint union of a red and a blue component, any pairing ϕ, ψ with the same Σ - labels under γ would produce a valid transition for the ss2PDA. Is this really what we want? ⊲ Another problem is that at least here the current position does not really move to a different region of the diagram.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 12 / 17

slide-106
SLIDE 106

The missing ingredient

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 13 / 17

slide-107
SLIDE 107

The missing ingredient

Instead of drawing, e.g.,

a A B C

⋆ ⋆

  • r

a B A C

⋆ ⋆

  • r

a B D A C

⋆ ⋆ (but not

a A C B

⋆ ⋆ !) where the region of the current position does not really change,

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 13 / 17

slide-108
SLIDE 108

The missing ingredient

Instead of drawing, e.g.,

a A B C

⋆ ⋆

  • r

a B A C

⋆ ⋆

  • r

a B D A C

⋆ ⋆ (but not

a A C B

⋆ ⋆ !) where the region of the current position does not really change, let us introduce explicit vertical separations,

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 13 / 17

slide-109
SLIDE 109

The missing ingredient

Instead of drawing, e.g.,

a A B C

⋆ ⋆

  • r

a B A C

⋆ ⋆

  • r

a B D A C

⋆ ⋆ (but not

a A C B

⋆ ⋆ !) where the region of the current position does not really change, let us introduce explicit vertical separations,

a A B C

⋆ ⋆

  • r

a a B C A

⋆ ⋆

  • r

a a B D A C

⋆ ⋆ (but not

a a A C B

⋆ ⋆ !)

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 13 / 17

slide-110
SLIDE 110

Poincar´ e duality now yields, e.g.,

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-111
SLIDE 111

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-112
SLIDE 112

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-113
SLIDE 113

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

The regions (=positions) have not yet been named.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-114
SLIDE 114

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

The regions (=positions) have not yet been named. Notice the opposite

  • rientations of the red and blue vertical 1-cells.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-115
SLIDE 115

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

The regions (=positions) have not yet been named. Notice the opposite

  • rientations of the red and blue vertical 1-cells. For moves this suggests

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-116
SLIDE 116

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

The regions (=positions) have not yet been named. Notice the opposite

  • rientations of the red and blue vertical 1-cells. For moves this suggests

A A

⋆ ⋆ →

  • A

A ǫ

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-117
SLIDE 117

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

The regions (=positions) have not yet been named. Notice the opposite

  • rientations of the red and blue vertical 1-cells. For moves this suggests

A A

⋆ ⋆ →

  • A

A ǫ

and

  • A

A

⋆ ⋆ →

  • A

A ǫ

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-118
SLIDE 118

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

The regions (=positions) have not yet been named. Notice the opposite

  • rientations of the red and blue vertical 1-cells. For moves this suggests

A A

⋆ ⋆ →

  • A

A ǫ

and

  • A

A

⋆ ⋆ →

  • A

A ǫ

which resembles adjunctions.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-119
SLIDE 119

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

The regions (=positions) have not yet been named. Notice the opposite

  • rientations of the red and blue vertical 1-cells. For moves this suggests

A A

⋆ ⋆ →

  • A

A ǫ

and

  • A

A

⋆ ⋆ →

  • A

A ǫ

which resembles adjunctions. Vertical = -arrows are empty words (∗) ,

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-120
SLIDE 120

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

The regions (=positions) have not yet been named. Notice the opposite

  • rientations of the red and blue vertical 1-cells. For moves this suggests

A A

⋆ ⋆ →

  • A

A ǫ

and

  • A

A

⋆ ⋆ →

  • A

A ǫ

which resembles adjunctions. Vertical = -arrows are empty words (∗) , what about the horizontal ones?

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-121
SLIDE 121

Poincar´ e duality now yields, e.g.,

a A B C p

⋆ ⋆ →

  • A

p B C a

and

a a B A C p

⋆ ⋆ →

  • B

A p C (∗) a a

The regions (=positions) have not yet been named. Notice the opposite

  • rientations of the red and blue vertical 1-cells. For moves this suggests

A A

⋆ ⋆ →

  • A

A ǫ

and

  • A

A

⋆ ⋆ →

  • A

A ǫ

which resembles adjunctions. Vertical = -arrows are empty words (∗) , what about the horizontal ones? The underlying graph has to be reflexiv!

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 14 / 17

slide-122
SLIDE 122

Putting it all together (0)

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-123
SLIDE 123

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-124
SLIDE 124

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories. Objects are the positions, vertical arrows are finite sequences of stack symbols, while horizontal arrows might be interpreted as “states”.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-125
SLIDE 125

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories. Objects are the positions, vertical arrows are finite sequences of stack symbols, while horizontal arrows might be interpreted as “states”. ⊲ So the framework for handling more than one state is alread in place; states do not have to be grafted on artificially.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-126
SLIDE 126

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories. Objects are the positions, vertical arrows are finite sequences of stack symbols, while horizontal arrows might be interpreted as “states”. ⊲ So the framework for handling more than one state is alread in place; states do not have to be grafted on artificially. ⊲ While vertically the stack can grow and shrink and be traversed, horizontally, history can only grow, one state at each tick of the clock.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-127
SLIDE 127

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories. Objects are the positions, vertical arrows are finite sequences of stack symbols, while horizontal arrows might be interpreted as “states”. ⊲ So the framework for handling more than one state is alread in place; states do not have to be grafted on artificially. ⊲ While vertically the stack can grow and shrink and be traversed, horizontally, history can only grow, one state at each tick of the clock. ⊲ History need not be linear, but is distributed in as many threads as the current stack size.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-128
SLIDE 128

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories. Objects are the positions, vertical arrows are finite sequences of stack symbols, while horizontal arrows might be interpreted as “states”. ⊲ So the framework for handling more than one state is alread in place; states do not have to be grafted on artificially. ⊲ While vertically the stack can grow and shrink and be traversed, horizontally, history can only grow, one state at each tick of the clock. ⊲ History need not be linear, but is distributed in as many threads as the current stack size. The current state is visible from the current position,

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-129
SLIDE 129

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories. Objects are the positions, vertical arrows are finite sequences of stack symbols, while horizontal arrows might be interpreted as “states”. ⊲ So the framework for handling more than one state is alread in place; states do not have to be grafted on artificially. ⊲ While vertically the stack can grow and shrink and be traversed, horizontally, history can only grow, one state at each tick of the clock. ⊲ History need not be linear, but is distributed in as many threads as the current stack size. The current state is visible from the current position, changing the latter jumps to another history thread.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-130
SLIDE 130

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories. Objects are the positions, vertical arrows are finite sequences of stack symbols, while horizontal arrows might be interpreted as “states”. ⊲ So the framework for handling more than one state is alread in place; states do not have to be grafted on artificially. ⊲ While vertically the stack can grow and shrink and be traversed, horizontally, history can only grow, one state at each tick of the clock. ⊲ History need not be linear, but is distributed in as many threads as the current stack size. The current state is visible from the current position, changing the latter jumps to another history thread. ⊲ There is some resemblance with Gadducci and Montanari’s tile model:

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-131
SLIDE 131

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories. Objects are the positions, vertical arrows are finite sequences of stack symbols, while horizontal arrows might be interpreted as “states”. ⊲ So the framework for handling more than one state is alread in place; states do not have to be grafted on artificially. ⊲ While vertically the stack can grow and shrink and be traversed, horizontally, history can only grow, one state at each tick of the clock. ⊲ History need not be linear, but is distributed in as many threads as the current stack size. The current state is visible from the current position, changing the latter jumps to another history thread. ⊲ There is some resemblance with Gadducci and Montanari’s tile model:

− for vertical arrows we have more freedom, as the horizontal codomain of a tile can be a word of stack symbols, or the direction can flip;

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-132
SLIDE 132

Putting it all together (0)

⊲ Instead of of a cm-graph we seem to need a 2-dimensional structure, an “fc-cm-graph”, in analogy to Tom Leinster’s fc-multi-categories. Objects are the positions, vertical arrows are finite sequences of stack symbols, while horizontal arrows might be interpreted as “states”. ⊲ So the framework for handling more than one state is alread in place; states do not have to be grafted on artificially. ⊲ While vertically the stack can grow and shrink and be traversed, horizontally, history can only grow, one state at each tick of the clock. ⊲ History need not be linear, but is distributed in as many threads as the current stack size. The current state is visible from the current position, changing the latter jumps to another history thread. ⊲ There is some resemblance with Gadducci and Montanari’s tile model:

− for vertical arrows we have more freedom, as the horizontal codomain of a tile can be a word of stack symbols, or the direction can flip; − non-trivial horizontal arrows are constrained to vertical domains of tiles.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 15 / 17

slide-133
SLIDE 133

Putting it all together (1)

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 16 / 17

slide-134
SLIDE 134

Putting it all together (1)

⊲ In principle, both states and stack symbols can be typed (by means of positions).

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 16 / 17

slide-135
SLIDE 135

Putting it all together (1)

⊲ In principle, both states and stack symbols can be typed (by means of positions). The usefulness of this flexibility still needs to be exploited.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 16 / 17

slide-136
SLIDE 136

Putting it all together (1)

⊲ In principle, both states and stack symbols can be typed (by means of positions). The usefulness of this flexibility still needs to be exploited. ⊲ The term “adjoints” was used delibertately, even though we are just working with graphs.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 16 / 17

slide-137
SLIDE 137

Putting it all together (1)

⊲ In principle, both states and stack symbols can be typed (by means of positions). The usefulness of this flexibility still needs to be exploited. ⊲ The term “adjoints” was used delibertately, even though we are just working with graphs. Just like the distinguished loops of a reflexive graph are intended to become identities in the free category, the distinguished cells are intended to become units, resp., counits of adjuncions between vertical arrows in the free fc-cm-category:

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 16 / 17

slide-138
SLIDE 138

Putting it all together (1)

⊲ In principle, both states and stack symbols can be typed (by means of positions). The usefulness of this flexibility still needs to be exploited. ⊲ The term “adjoints” was used delibertately, even though we are just working with graphs. Just like the distinguished loops of a reflexive graph are intended to become identities in the free category, the distinguished cells are intended to become units, resp., counits of adjuncions between vertical arrows in the free fc-cm-category:

  • A

A A η ε

=

  • A

A id

(and the dual)

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 16 / 17

slide-139
SLIDE 139

Putting it all together (1)

⊲ In principle, both states and stack symbols can be typed (by means of positions). The usefulness of this flexibility still needs to be exploited. ⊲ The term “adjoints” was used delibertately, even though we are just working with graphs. Just like the distinguished loops of a reflexive graph are intended to become identities in the free category, the distinguished cells are intended to become units, resp., counits of adjuncions between vertical arrows in the free fc-cm-category:

  • A

A A η ε

=

  • A

A id

(and the dual) ⊲ The corresponding fc-cm-graph generated by Σ has one position, vertical arrows H and H , and no non-trivial horizontal arrows.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 16 / 17

slide-140
SLIDE 140

Putting it all together (1)

⊲ In principle, both states and stack symbols can be typed (by means of positions). The usefulness of this flexibility still needs to be exploited. ⊲ The term “adjoints” was used delibertately, even though we are just working with graphs. Just like the distinguished loops of a reflexive graph are intended to become identities in the free category, the distinguished cells are intended to become units, resp., counits of adjuncions between vertical arrows in the free fc-cm-category:

  • A

A A η ε

=

  • A

A id

(and the dual) ⊲ The corresponding fc-cm-graph generated by Σ has one position, vertical arrows H and H , and no non-trivial horizontal arrows. The unit/counit cells are only labeled by ǫ .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 16 / 17

slide-141
SLIDE 141

To do

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 17 / 17

slide-142
SLIDE 142

To do

Does it make sense to have conditional moves?

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 17 / 17

slide-143
SLIDE 143

To do

Does it make sense to have conditional moves? The mechanism allows for the processing of pairs of input symbols, what does that mean?

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 17 / 17

slide-144
SLIDE 144

To do

Does it make sense to have conditional moves? The mechanism allows for the processing of pairs of input symbols, what does that mean? Perhaps transducers can be modeled?

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 17 / 17

slide-145
SLIDE 145

To do

Does it make sense to have conditional moves? The mechanism allows for the processing of pairs of input symbols, what does that mean? Perhaps transducers can be modeled? Surely, other targets than Σ -induced fc-cm-graphs must make sense.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 17 / 17

slide-146
SLIDE 146

To do

Does it make sense to have conditional moves? The mechanism allows for the processing of pairs of input symbols, what does that mean? Perhaps transducers can be modeled? Surely, other targets than Σ -induced fc-cm-graphs must make sense. Formulate everything properly for fc-cm-categories.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 17 / 17

slide-147
SLIDE 147

To do

Does it make sense to have conditional moves? The mechanism allows for the processing of pairs of input symbols, what does that mean? Perhaps transducers can be modeled? Surely, other targets than Σ -induced fc-cm-graphs must make sense. Formulate everything properly for fc-cm-categories. How does the other side of the Gothendieck construction look like?

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 17 / 17

slide-148
SLIDE 148

To do

Does it make sense to have conditional moves? The mechanism allows for the processing of pairs of input symbols, what does that mean? Perhaps transducers can be modeled? Surely, other targets than Σ -induced fc-cm-graphs must make sense. Formulate everything properly for fc-cm-categories. How does the other side of the Gothendieck construction look like? Dropping faithfulness requires the use of spn instaed of rel .

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 17 / 17

slide-149
SLIDE 149

To do

Does it make sense to have conditional moves? The mechanism allows for the processing of pairs of input symbols, what does that mean? Perhaps transducers can be modeled? Surely, other targets than Σ -induced fc-cm-graphs must make sense. Formulate everything properly for fc-cm-categories. How does the other side of the Gothendieck construction look like? Dropping faithfulness requires the use of spn instaed of rel . Other bicategories may be usable as well.

J¨ urgen Koslowski (TU-BS) A categorical model for 2-PDAs with states cmat14, Coimbra 17 / 17