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

A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

A categorical model for 2-PDAs with states

Jurgen Koslowski

Department of Theoretical Computer ScienceTechnical University Braunschweig

cmat14, Coimbra(2014-01-25)

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

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

Page 2: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

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

Page 3: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013], hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 4: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013], hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 5: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013], hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 6: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013], hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 7: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013], hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 8: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013],

hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 9: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013],

hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 10: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013],

hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 11: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013], hence states and storage can be disentagled (impossible forTMs).

This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 12: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013], hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage.

The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 13: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013], hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage.

The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 14: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The context: unification of machine models

. The familiar non-deterministic machine models for languagerecognition 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, couldrectify this, but never received much attention.

. But even deterministic 2PDAs with a single state suffice [Koslowski2013], hence states and storage can be disentagled (impossible forTMs). This allows a natural refinement of the Chomsky hierarchy, butalso raises questions about the true nature of states.

. We provide an elegant categorification of ss2PDAs that allows states tobe incorporated orthogonally to storage. The result bears strongresemblance to the tile model of Gadducci and Montanari [2000] forrewriting and abstract concurrent semantics.

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

Page 15: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)G0L (Σ× G0)P (coalgebra, Aczel and Mendler [1989])

G0 × Σ L G0 (non-obvious relation, textbook LTS?)G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)Σ L (G0,G0)rel (hom-component of a graph morphism)

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 16: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)G0L (Σ× G0)P (coalgebra, Aczel and Mendler [1989])

G0 × Σ L G0 (non-obvious relation, textbook LTS?)G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)Σ L (G0,G0)rel (hom-component of a graph morphism)

Σ L rel (“finitary” graph morphism)

where G = (G1s

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

andΣ = (Σ

!

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

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

Page 17: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)G0L (Σ× G0)P (coalgebra, Aczel and Mendler [1989])

G0 × Σ L G0 (non-obvious relation, textbook LTS?)G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)Σ L (G0,G0)rel (hom-component of a graph morphism)

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 18: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)G0L (Σ× G0)P (coalgebra, Aczel and Mendler [1989])

G0 × Σ L G0 (non-obvious relation, textbook LTS?)G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)Σ L (G0,G0)rel (hom-component of a graph morphism)

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 19: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)

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

G0 × Σ L G0 (non-obvious relation, textbook LTS?)G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)Σ L (G0,G0)rel (hom-component of a graph morphism)

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 20: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)

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

G0 × Σ L G0 (non-obvious relation, textbook LTS?)G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)Σ L (G0,G0)rel (hom-component of a graph morphism)

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 21: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)

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

G0 × Σ L G0 (non-obvious relation, textbook LTS?)

G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)Σ L (G0,G0)rel (hom-component of a graph morphism)

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 22: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)

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

G0 × Σ L G0 (non-obvious relation, textbook LTS?)

G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)Σ L (G0,G0)rel (hom-component of a graph morphism)

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 23: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)

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

G0 × Σ L G0 (non-obvious relation, textbook LTS?)

G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)

Σ L (G0 × G0)P (this looks promising)Σ L (G0,G0)rel (hom-component of a graph morphism)

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 24: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)

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

G0 × Σ L G0 (non-obvious relation, textbook LTS?)

G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)

Σ L (G0 × G0)P (this looks promising)

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

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 25: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)

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

G0 × Σ L G0 (non-obvious relation, textbook LTS?)

G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)

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

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 26: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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)

G0s

tG1

` Σ (jointly mono)

G0 × G0〈s, t〉 G1

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

G0L Σ× G0 (non-obvious relation)

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

G0 × Σ L G0 (non-obvious relation, textbook LTS?)

G0 × Σ L G0P (textbook LTS!)

Σ L G0 × G0 (reversed obvious relation)Σ L (G0 × G0)P (this looks promising)

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

Σ L rel (“finitary” graph morphism)

where G = (G1s

tG0) is a finite graph, Σ is an alphabet, and

Σ = (Σ!

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

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

Page 27: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 therealm of categorical relational algebra.

. Morphisms of coalgebras G0L (Σ× 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 thishas been done by Schmitt and Worytkiewicz [2006].

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

Page 28: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 therealm of categorical relational algebra.

. Morphisms of coalgebras G0L (Σ× 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 thishas been done by Schmitt and Worytkiewicz [2006].

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

Page 29: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 therealm of categorical relational algebra.

. Morphisms of coalgebras G0L (Σ× 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 thishas been done by Schmitt and Worytkiewicz [2006].

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

Page 30: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 therealm of categorical relational algebra.

. Morphisms of coalgebras G0L (Σ× 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 thishas been done by Schmitt and Worytkiewicz [2006].

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

Page 31: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 therealm of categorical relational algebra.

. Morphisms of coalgebras G0L (Σ× 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 thishas been done by Schmitt and Worytkiewicz [2006].

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

Page 32: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 therealm of categorical relational algebra.

. Morphisms of coalgebras G0L (Σ× 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 thishas been done by Schmitt and Worytkiewicz [2006].

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

Page 33: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 therealm of categorical relational algebra.

. Morphisms of coalgebras G0L (Σ× 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 thishas been done by Schmitt and Worytkiewicz [2006].

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

Page 34: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Remarks

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

But not all intermediate stages admit a similar generalization, inparticular not coalgebra.

Oplax transformations as morphisms between lax functors into reltranslate into simulations between LTSs (JK, several talks since 2003,Sobocinski [2012]).

So far we have ignored initial/final states. We’d prefer a categoricalinterpretation rather than selecting arbitrary subsets of states. But theattempt 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 toconsider the reflexive graph Σ ε with hom-set Σ + {ε} .

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

Page 35: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Remarks

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

But not all intermediate stages admit a similar generalization, inparticular not coalgebra.

Oplax transformations as morphisms between lax functors into reltranslate into simulations between LTSs (JK, several talks since 2003,Sobocinski [2012]).

So far we have ignored initial/final states. We’d prefer a categoricalinterpretation rather than selecting arbitrary subsets of states. But theattempt 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 toconsider the reflexive graph Σ ε with hom-set Σ + {ε} .

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

Page 36: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Remarks

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

Oplax transformations as morphisms between lax functors into reltranslate into simulations between LTSs (JK, several talks since 2003,Sobocinski [2012]).

So far we have ignored initial/final states.

We’d prefer a categoricalinterpretation rather than selecting arbitrary subsets of states. But theattempt 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 toconsider the reflexive graph Σ ε with hom-set Σ + {ε} .

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

Page 37: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Remarks

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

Oplax transformations as morphisms between lax functors into reltranslate into simulations between LTSs (JK, several talks since 2003,Sobocinski [2012]).

So far we have ignored initial/final states.

We’d prefer a categoricalinterpretation rather than selecting arbitrary subsets of states. But theattempt 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 toconsider the reflexive graph Σ ε with hom-set Σ + {ε} .

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

Page 38: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Remarks

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

Oplax transformations as morphisms between lax functors into reltranslate into simulations between LTSs (JK, several talks since 2003,Sobocinski [2012]).

So far we have ignored initial/final states.

We’d prefer a categoricalinterpretation rather than selecting arbitrary subsets of states. But theattempt 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 toconsider the reflexive graph Σ ε with hom-set Σ + {ε} .

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

Page 39: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Remarks

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

Oplax transformations as morphisms between lax functors into reltranslate into simulations between LTSs (JK, several talks since 2003,Sobocinski [2012]).

So far we have ignored initial/final states. We’d prefer a categoricalinterpretation rather than selecting arbitrary subsets of states. But theattempt 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 toconsider the reflexive graph Σ ε with hom-set Σ + {ε} .

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

Page 40: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Remarks

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

Oplax transformations as morphisms between lax functors into reltranslate into simulations between LTSs (JK, several talks since 2003,Sobocinski [2012]).

So far we have ignored initial/final states. We’d prefer a categoricalinterpretation rather than selecting arbitrary subsets of states. But theattempt 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 toconsider the reflexive graph Σ ε with hom-set Σ + {ε} .

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

Page 41: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Remarks

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

Oplax transformations as morphisms between lax functors into reltranslate into simulations between LTSs (JK, several talks since 2003,Sobocinski [2012]).

So far we have ignored initial/final states. We’d prefer a categoricalinterpretation rather than selecting arbitrary subsets of states. But theattempt 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 toconsider the reflexive graph Σ ε with hom-set Σ + {ε} .

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

Page 42: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Moving up the Chomsky hierarchy: Walters’ approach

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

. Instead, we slightly extend Walters’ [1989] categorification of a certaintype of context-free grammars (CFGs), which functionally separatesterminals (= elements of Σ ) from variables,

rather than (classically)lumping them together and forming a free monoid.

. Walters views morphisms G γ Σ ε between finite reflexive graphs asregular grammars rather than as LTSs. Then morphsms betweensuitable multi-graphs (edges have finitely many inputs and one output;this yields bottom-up parsing) capture a class of CFGs (in WaltersNormal Form (WNF)) that generate all context-free languages.

. Walters wanted to illustrate his construction of the free category withproducts over a multi-graph. However, a more direct way of extractingthe generated language becomes available with top-down parsing,hence we revert to co-multi-graphs or cm-graphs, for short.

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

Page 43: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Moving up the Chomsky hierarchy: Walters’ approach

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

. Instead, we slightly extend Walters’ [1989] categorification of a certaintype of context-free grammars (CFGs), which functionally separatesterminals (= elements of Σ ) from variables,

rather than (classically)lumping them together and forming a free monoid.

. Walters views morphisms G γ Σ ε between finite reflexive graphs asregular grammars rather than as LTSs. Then morphsms betweensuitable multi-graphs (edges have finitely many inputs and one output;this yields bottom-up parsing) capture a class of CFGs (in WaltersNormal Form (WNF)) that generate all context-free languages.

. Walters wanted to illustrate his construction of the free category withproducts over a multi-graph. However, a more direct way of extractingthe generated language becomes available with top-down parsing,hence we revert to co-multi-graphs or cm-graphs, for short.

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

Page 44: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Moving up the Chomsky hierarchy: Walters’ approach

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

. Instead, we slightly extend Walters’ [1989] categorification of a certaintype of context-free grammars (CFGs), which functionally separatesterminals (= elements of Σ ) from variables,

rather than (classically)lumping them together and forming a free monoid.

. Walters views morphisms G γ Σ ε between finite reflexive graphs asregular grammars rather than as LTSs. Then morphsms betweensuitable multi-graphs (edges have finitely many inputs and one output;this yields bottom-up parsing) capture a class of CFGs (in WaltersNormal Form (WNF)) that generate all context-free languages.

. Walters wanted to illustrate his construction of the free category withproducts over a multi-graph. However, a more direct way of extractingthe generated language becomes available with top-down parsing,hence we revert to co-multi-graphs or cm-graphs, for short.

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

Page 45: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Moving up the Chomsky hierarchy: Walters’ approach

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

. Instead, we slightly extend Walters’ [1989] categorification of a certaintype of context-free grammars (CFGs), which functionally separatesterminals (= elements of Σ ) from variables, rather than (classically)lumping them together and forming a free monoid.

. Walters views morphisms G γ Σ ε between finite reflexive graphs asregular grammars rather than as LTSs.

Then morphsms betweensuitable multi-graphs (edges have finitely many inputs and one output;this yields bottom-up parsing) capture a class of CFGs (in WaltersNormal Form (WNF)) that generate all context-free languages.

. Walters wanted to illustrate his construction of the free category withproducts over a multi-graph. However, a more direct way of extractingthe generated language becomes available with top-down parsing,hence we revert to co-multi-graphs or cm-graphs, for short.

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

Page 46: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Moving up the Chomsky hierarchy: Walters’ approach

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

. Instead, we slightly extend Walters’ [1989] categorification of a certaintype of context-free grammars (CFGs), which functionally separatesterminals (= elements of Σ ) from variables, rather than (classically)lumping them together and forming a free monoid.

. Walters views morphisms G γ Σ ε between finite reflexive graphs asregular grammars rather than as LTSs.

Then morphsms betweensuitable multi-graphs (edges have finitely many inputs and one output;this yields bottom-up parsing) capture a class of CFGs (in WaltersNormal Form (WNF)) that generate all context-free languages.

. Walters wanted to illustrate his construction of the free category withproducts over a multi-graph. However, a more direct way of extractingthe generated language becomes available with top-down parsing,hence we revert to co-multi-graphs or cm-graphs, for short.

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

Page 47: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Moving up the Chomsky hierarchy: Walters’ approach

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

. Instead, we slightly extend Walters’ [1989] categorification of a certaintype of context-free grammars (CFGs), which functionally separatesterminals (= elements of Σ ) from variables, rather than (classically)lumping them together and forming a free monoid.

. Walters views morphisms G γ Σ ε between finite reflexive graphs asregular grammars rather than as LTSs. Then morphsms betweensuitable multi-graphs (edges have finitely many inputs and one output;this yields bottom-up parsing) capture a class of CFGs (in WaltersNormal Form (WNF)) that generate all context-free languages.

. Walters wanted to illustrate his construction of the free category withproducts over a multi-graph.

However, a more direct way of extractingthe generated language becomes available with top-down parsing,hence we revert to co-multi-graphs or cm-graphs, for short.

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

Page 48: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Moving up the Chomsky hierarchy: Walters’ approach

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

. Instead, we slightly extend Walters’ [1989] categorification of a certaintype of context-free grammars (CFGs), which functionally separatesterminals (= elements of Σ ) from variables, rather than (classically)lumping them together and forming a free monoid.

. Walters views morphisms G γ Σ ε between finite reflexive graphs asregular grammars rather than as LTSs. Then morphsms betweensuitable multi-graphs (edges have finitely many inputs and one output;this yields bottom-up parsing) capture a class of CFGs (in WaltersNormal Form (WNF)) that generate all context-free languages.

. Walters wanted to illustrate his construction of the free category withproducts over a multi-graph.

However, a more direct way of extractingthe generated language becomes available with top-down parsing,hence we revert to co-multi-graphs or cm-graphs, for short.

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

Page 49: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Moving up the Chomsky hierarchy: Walters’ approach

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

. Instead, we slightly extend Walters’ [1989] categorification of a certaintype of context-free grammars (CFGs), which functionally separatesterminals (= elements of Σ ) from variables, rather than (classically)lumping them together and forming a free monoid.

. Walters views morphisms G γ Σ ε between finite reflexive graphs asregular grammars rather than as LTSs. Then morphsms betweensuitable multi-graphs (edges have finitely many inputs and one output;this yields bottom-up parsing) capture a class of CFGs (in WaltersNormal Form (WNF)) that generate all context-free languages.

. Walters wanted to illustrate his construction of the free category withproducts over a multi-graph. However, a more direct way of extractingthe generated language becomes available with top-down parsing,hence we revert to co-multi-graphs or cm-graphs, for short.

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

Page 50: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Walters’ approach slightly generalized

Definition

(0) Any set Σ induces a cm-graph ΣIN with a single node H andΣ + {ε} for all hom-sets [H,Hn] , n ∈ IN .

( ∅IN is terminal.)

(1) A CFG a la Walters (CFW) γ over Σ is a faithful cm-graph morphismG γ ΣIN with G finite.

. Terminals (= elements of Σ ) label the edges of ΣIN , while the set B

of variables is the set of G -nodes.

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

(X ϕ Y0 . . .Yn−1)γ = (H a Hn)

or simply as X a Y0 . . .Yn−1, since γ is faithful.

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

Page 51: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Walters’ approach slightly generalized

Definition

(0) Any set Σ induces a cm-graph ΣIN with a single node H andΣ + {ε} for all hom-sets [H,Hn] , n ∈ IN .

( ∅IN is terminal.)

(1) A CFG a la Walters (CFW) γ over Σ is a faithful cm-graph morphismG γ ΣIN with G finite.

. Terminals (= elements of Σ ) label the edges of ΣIN , while the set B

of variables is the set of G -nodes.

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

(X ϕ Y0 . . .Yn−1)γ = (H a Hn)

or simply as X a Y0 . . .Yn−1, since γ is faithful.

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

Page 52: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Walters’ approach slightly generalized

Definition

(0) Any set Σ induces a cm-graph ΣIN with a single node H andΣ + {ε} for all hom-sets [H,Hn] , n ∈ IN . ( ∅IN is terminal.)

(1) A CFG a la Walters (CFW) γ over Σ is a faithful cm-graph morphismG γ ΣIN with G finite.

. Terminals (= elements of Σ ) label the edges of ΣIN , while the set B

of variables is the set of G -nodes.

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

(X ϕ Y0 . . .Yn−1)γ = (H a Hn)

or simply as X a Y0 . . .Yn−1, since γ is faithful.

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

Page 53: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Walters’ approach slightly generalized

Definition

(0) Any set Σ induces a cm-graph ΣIN with a single node H andΣ + {ε} for all hom-sets [H,Hn] , n ∈ IN . ( ∅IN is terminal.)

(1) A CFG a la Walters (CFW) γ over Σ is a faithful cm-graph morphismG γ ΣIN with G finite.

. Terminals (= elements of Σ ) label the edges of ΣIN , while the set B

of variables is the set of G -nodes.

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

(X ϕ Y0 . . .Yn−1)γ = (H a Hn)

or simply as X a Y0 . . .Yn−1, since γ is faithful.

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

Page 54: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Walters’ approach slightly generalized

Definition

(0) Any set Σ induces a cm-graph ΣIN with a single node H andΣ + {ε} for all hom-sets [H,Hn] , n ∈ IN . ( ∅IN is terminal.)

(1) A CFG a la Walters (CFW) γ over Σ is a faithful cm-graph morphismG γ ΣIN with G finite.

. Terminals (= elements of Σ ) label the edges of ΣIN , while the set B

of variables is the set of G -nodes.

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

(X ϕ Y0 . . .Yn−1)γ = (H a Hn)

or simply as X a Y0 . . .Yn−1, since γ is faithful.

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

Page 55: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Walters’ approach slightly generalized

Definition

(0) Any set Σ induces a cm-graph ΣIN with a single node H andΣ + {ε} for all hom-sets [H,Hn] , n ∈ IN . ( ∅IN is terminal.)

(1) A CFG a la Walters (CFW) γ over Σ is a faithful cm-graph morphismG γ ΣIN with G finite.

. Terminals (= elements of Σ ) label the edges of ΣIN , while the set B

of variables is the set of G -nodes.

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

(X ϕ Y0 . . .Yn−1)γ = (H a Hn)

or simply as X a Y0 . . .Yn−1, since γ is faithful.

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

Page 56: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Walters’ approach slightly generalized

Definition

(0) Any set Σ induces a cm-graph ΣIN with a single node H andΣ + {ε} for all hom-sets [H,Hn] , n ∈ IN . ( ∅IN is terminal.)

(1) A CFG a la Walters (CFW) γ over Σ is a faithful cm-graph morphismG γ ΣIN with G finite.

. Terminals (= elements of Σ ) label the edges of ΣIN , while the set B

of variables is the set of G -nodes.

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

(X ϕ Y0 . . .Yn−1)γ = (H a Hn)

or simply as X a Y0 . . .Yn−1, since γ is faithful.

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

Page 57: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Walters’ approach slightly generalized

Definition

(0) Any set Σ induces a cm-graph ΣIN with a single node H andΣ + {ε} for all hom-sets [H,Hn] , n ∈ IN . ( ∅IN is terminal.)

(1) A CFG a la Walters (CFW) γ over Σ is a faithful cm-graph morphismG γ ΣIN with G finite.

. Terminals (= elements of Σ ) label the edges of ΣIN , while the set B

of variables is the set of G -nodes.

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

(X ϕ Y0 . . .Yn−1)γ = (H a Hn)

or simply as X a Y0 . . .Yn−1, since γ is faithful.

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

Page 58: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);consider the γ -image of the hom-set 〈S , ε〉G? in Σ?

IN ;extract words over Σ from the resulting diagrams in Σ?

IN ; theseso-called yields constitute the string-language generated by γ and S .Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

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

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

Page 59: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);consider the γ -image of the hom-set 〈S , ε〉G? in Σ?

IN ;extract words over Σ from the resulting diagrams in Σ?

IN ; theseso-called yields constitute the string-language generated by γ and S .Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

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

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

Page 60: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);consider the γ -image of the hom-set 〈S , ε〉G? in Σ?

IN ;extract words over Σ from the resulting diagrams in Σ?

IN ; theseso-called yields constitute the string-language generated by γ and S .Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

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

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

Page 61: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);consider the γ -image of the hom-set 〈S , ε〉G? in Σ?

IN ;extract words over Σ from the resulting diagrams in Σ?

IN ; theseso-called yields constitute the string-language generated by γ and S .Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

. As terminals are not limited to leaves, we need to switch frompositional ordering of trees to temporal ordering (rotation by π/2indicates this),

which requires some notion of current position.

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

Page 62: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);consider the γ -image of the hom-set 〈S , ε〉G? in Σ?

IN ;extract words over Σ from the resulting diagrams in Σ?

IN ; theseso-called yields constitute the string-language generated by γ and S .Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

. As terminals are not limited to leaves, we need to switch frompositional ordering of trees to temporal ordering (rotation by π/2indicates this),

which requires some notion of current position.

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

Page 63: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);

consider the γ -image of the hom-set 〈S , ε〉G? in Σ?IN ;

extract words over Σ from the resulting diagrams in Σ?IN ; these

so-called yields constitute the string-language generated by γ and S .Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

. As terminals are not limited to leaves, we need to switch frompositional ordering of trees to temporal ordering (rotation by π/2indicates this),

which requires some notion of current position.

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

Page 64: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);consider the γ -image of the hom-set 〈S , ε〉G? in Σ?

IN ;

extract words over Σ from the resulting diagrams in Σ?IN ; these

so-called yields constitute the string-language generated by γ and S .Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

. As terminals are not limited to leaves, we need to switch frompositional ordering of trees to temporal ordering (rotation by π/2indicates this),

which requires some notion of current position.

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

Page 65: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);consider the γ -image of the hom-set 〈S , ε〉G? in Σ?

IN ;extract words over Σ from the resulting diagrams in Σ?

IN ; theseso-called yields constitute the string-language generated by γ and S .

Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

. As terminals are not limited to leaves, we need to switch frompositional ordering of trees to temporal ordering (rotation by π/2indicates this),

which requires some notion of current position.

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

Page 66: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);consider the γ -image of the hom-set 〈S , ε〉G? in Σ?

IN ;extract words over Σ from the resulting diagrams in Σ?

IN ; theseso-called yields constitute the string-language generated by γ and S .Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

. As terminals are not limited to leaves, we need to switch frompositional ordering of trees to temporal ordering (rotation by π/2indicates this),

which requires some notion of current position.

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

Page 67: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Trees and words

. Instead of traditional node-labeled derivation trees, Poincare dualitynow yields trees with somewhat different building blocks:

X

Yn−1. . .Y1Y0a

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 overcm-graphs” (in analogy to forming free categories over a graphs);consider the γ -image of the hom-set 〈S , ε〉G? in Σ?

IN ;extract words over Σ from the resulting diagrams in Σ?

IN ; theseso-called yields constitute the string-language generated by γ and S .Optionally, one can view ΣIN as a reflexive cm-graph, which results in asomewhat simpler free cm-category Σ?

IN .

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

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

Page 68: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

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

Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position: from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 69: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

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

Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position: from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 70: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

. CFGs with the constraint of only left-derivations being allowedessentially are single state PDAs that accept by empty stack. Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position:

from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 71: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

. CFGs with the constraint of only left-derivations being allowedessentially are single state PDAs that accept by empty stack. Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position:

from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 72: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

. CFGs with the constraint of only left-derivations being allowedessentially are single state PDAs that accept by empty stack. Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position: from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 73: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

. CFGs with the constraint of only left-derivations being allowedessentially are single state PDAs that accept by empty stack. Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position: from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 74: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

. CFGs with the constraint of only left-derivations being allowedessentially are single state PDAs that accept by empty stack. Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position: from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 75: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

. CFGs with the constraint of only left-derivations being allowedessentially are single state PDAs that accept by empty stack. Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position: from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 76: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

. CFGs with the constraint of only left-derivations being allowedessentially are single state PDAs that accept by empty stack. Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position: from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 77: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

. CFGs with the constraint of only left-derivations being allowedessentially are single state PDAs that accept by empty stack. Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position: from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 78: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Strategy: towards 2PDAs

. CFGs with the constraint of only left-derivations being allowedessentially are single state PDAs that accept by empty stack. Hencesuch pure PDAs may have been disregarded as uninteresting.

. Juxtaposing a second stack to the first one, the interface betweenthem determines the current position: from here the first element oneach 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 theoutputs 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 thecurrent position.

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

Page 79: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

bb aa bb cc cc aa bb cc aa

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 80: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

bb aa bb cc cc aa bb cc aa

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 81: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

bb aa bb cc cc aa bb cc aa

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 82: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

bb aa bb cc cc aa bb cc aa

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 83: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

bb aa bb cc cc aa bb cc aa

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 84: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

bb aa bb cc cc aa bb cc aa

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 85: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

bb aa bb cc cc aa bb cc aa

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 86: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c

c

c

a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 87: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c

c

c

a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position

? ? ? ?

?

? ?

?

? ? ?

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

Page 88: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b a

a

b

b

c

c

c

c

a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position

?

? ? ?

?

? ?

?

? ? ?

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

Page 89: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a b

b

c

c

c

c

a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position?

?

? ?

?

? ?

?

? ? ?

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

Page 90: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b c

c

c

c

a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ?

?

?

?

? ?

?

? ? ?

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

Page 91: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c c

c

a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ?

?

?

? ?

?

? ? ?

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

Page 92: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c c

c

a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 93: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c c

c

a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

?

?

?

? ? ?

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

Page 94: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c

c

c a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

?

?

?

? ? ?

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

Page 95: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c

c

c a

a

b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 96: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c

c

c

a

a b

b

c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

?

? ?

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

Page 97: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c

c

c

a

a

b

b c

c

a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

?

?

?

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

Page 98: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c

c

c

a

a

b

b

c

c a

a

can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ?

?

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

Page 99: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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

b

a

a

b

b

c

c

c

c

a

a

b

b

c

c

a

a can take the form:

b ab

c ��

c;

ab c a

S S S C B B

A

B

B

A

B

CC

A

? current position? ? ? ?

?

? ?

?

? ? ?

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

Page 100: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

What’s wrong with this picture?

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

aB

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 validtransition for the ss2PDA. Is this really what we want?

. Another problem is that at least here the current position does notreally move to a different region of the diagram.

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

Page 101: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

What’s wrong with this picture?

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

aB

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 validtransition for the ss2PDA.

Is this really what we want?

. Another problem is that at least here the current position does notreally move to a different region of the diagram.

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

Page 102: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

What’s wrong with this picture?

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

aB

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 validtransition for the ss2PDA.

Is this really what we want?

. Another problem is that at least here the current position does notreally move to a different region of the diagram.

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

Page 103: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

What’s wrong with this picture?

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

aB

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 validtransition for the ss2PDA. Is this really what we want?

. Another problem is that at least here the current position does notreally move to a different region of the diagram.

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

Page 104: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

What’s wrong with this picture?

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

aB

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 validtransition for the ss2PDA. Is this really what we want?

. Another problem is that at least here the current position does notreally move to a different region of the diagram.

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

Page 105: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

What’s wrong with this picture?

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

aB

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 validtransition for the ss2PDA. Is this really what we want?

. Another problem is that at least here the current position does notreally move to a different region of the diagram.

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

Page 106: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The missing ingredient

Instead of drawing, e.g.,

aA B

C

? ?

or a

B

A C

? ? or a

B D

A C

? ? (but not a

A C

B

? ? !)

where the region of the current position does not really change, let usintroduce explicit vertical separations,

aA B

C

? ? or

a

aB

CA

? ? or

a

aB D

A C

? ? (but not

a

aA C

B

? ? !)

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

Page 107: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The missing ingredient

Instead of drawing, e.g.,

aA B

C

? ?

or a

B

A C

? ? or a

B D

A C

? ? (but not a

A C

B

? ? !)

where the region of the current position does not really change,

let usintroduce explicit vertical separations,

aA B

C

? ? or

a

aB

CA

? ? or

a

aB D

A C

? ? (but not

a

aA C

B

? ? !)

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

Page 108: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The missing ingredient

Instead of drawing, e.g.,

aA B

C

? ?

or a

B

A C

? ? or a

B D

A C

? ? (but not a

A C

B

? ? !)

where the region of the current position does not really change, let usintroduce explicit vertical separations,

aA B

C

? ? or

a

aB

CA

? ? or

a

aB D

A C

? ? (but not

a

aA C

B

? ? !)

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

Page 109: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

The missing ingredient

Instead of drawing, e.g.,

aA B

C

? ?

or a

B

A C

? ? or a

B D

A C

? ? (but not a

A C

B

? ? !)

where the region of the current position does not really change, let usintroduce explicit vertical separations,

aA B

C

? ? or

a

aB

CA

? ? or

a

aB D

A C

? ? (but not

a

aA C

B

? ? !)

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

Page 110: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

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

Page 111: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a

and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

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

Page 112: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

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

Page 113: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

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

Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

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

Page 114: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells.

For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

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

Page 115: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

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

Page 116: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε

and ;A

A?

?7→

• •

•A Aε

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

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

Page 117: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

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

Page 118: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

which resembles adjunctions.

Vertical = -arrows are empty words (∗) , whatabout the horizontal ones? The underlying graph has to be reflexiv!

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

Page 119: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

whatabout the horizontal ones? The underlying graph has to be reflexiv!

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

Page 120: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

The underlying graph has to be reflexiv!

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

Page 121: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Poincare duality now yields, e.g.,

aA B

C

p? ?

7→

• •

A

p

B

C

a and

a

aB

A C

p? ? 7→

• •

B

A

p

C

(∗)a

a

The regions (=positions) have not yet been named. Notice the oppositeorientations of the red and blue vertical 1-cells. For moves this suggests

�A

A?

? 7→

• •

•A Aε and ;

A

A?

?7→

• •

•A Aε

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

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

Page 122: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size. The current state is visible from the currentposition, 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 ofa tile can be a word of stack symbols, or the direction can flip;

− non-trivial horizontal arrows are constrained to vertical domains of tiles.

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

Page 123: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size. The current state is visible from the currentposition, 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 ofa tile can be a word of stack symbols, or the direction can flip;

− non-trivial horizontal arrows are constrained to vertical domains of tiles.

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

Page 124: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size.

The current state is visible from the currentposition, 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 ofa tile can be a word of stack symbols, or the direction can flip;

− non-trivial horizontal arrows are constrained to vertical domains of tiles.

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

Page 125: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size.

The current state is visible from the currentposition, 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 ofa tile can be a word of stack symbols, or the direction can flip;

− non-trivial horizontal arrows are constrained to vertical domains of tiles.

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

Page 126: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size.

The current state is visible from the currentposition, 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 ofa tile can be a word of stack symbols, or the direction can flip;

− non-trivial horizontal arrows are constrained to vertical domains of tiles.

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

Page 127: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size.

The current state is visible from the currentposition, 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 ofa tile can be a word of stack symbols, or the direction can flip;

− non-trivial horizontal arrows are constrained to vertical domains of tiles.

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

Page 128: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size. The current state is visible from the currentposition,

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 ofa tile can be a word of stack symbols, or the direction can flip;

− non-trivial horizontal arrows are constrained to vertical domains of tiles.

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

Page 129: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size. The current state is visible from the currentposition, 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 ofa tile can be a word of stack symbols, or the direction can flip;

− non-trivial horizontal arrows are constrained to vertical domains of tiles.

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

Page 130: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size. The current state is visible from the currentposition, 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 ofa tile can be a word of stack symbols, or the direction can flip;

− non-trivial horizontal arrows are constrained to vertical domains of tiles.

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

Page 131: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size. The current state is visible from the currentposition, 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.

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

Page 132: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 stacksymbols, 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 thecurrent stack size. The current state is visible from the currentposition, 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.

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

Page 133: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Putting it all together (1)

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

The usefulness of this flexibility still needs to be exploited.

. The term “adjoints” was used delibertately, even though we are justworking with graphs. Just like the distinguished loops of a reflexivegraph are intended to become identities in the free category, thedistinguished cells are intended to become units, resp., counits ofadjuncions between vertical arrows in the free fc-cm-category:

• •

•A A Aη ε =

• •

•A Aid (and the dual)

. The corresponding fc-cm-graph generated by Σ has one position,vertical arrows H and H , and no non-trivial horizontal arrows. Theunit/counit cells are only labeled by ε .

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

Page 134: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Putting it all together (1)

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

The usefulness of this flexibility still needs to be exploited.

. The term “adjoints” was used delibertately, even though we are justworking with graphs. Just like the distinguished loops of a reflexivegraph are intended to become identities in the free category, thedistinguished cells are intended to become units, resp., counits ofadjuncions between vertical arrows in the free fc-cm-category:

• •

•A A Aη ε =

• •

•A Aid (and the dual)

. The corresponding fc-cm-graph generated by Σ has one position,vertical arrows H and H , and no non-trivial horizontal arrows. Theunit/counit cells are only labeled by ε .

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

Page 135: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Putting it all together (1)

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

. The term “adjoints” was used delibertately, even though we are justworking with graphs.

Just like the distinguished loops of a reflexivegraph are intended to become identities in the free category, thedistinguished cells are intended to become units, resp., counits ofadjuncions between vertical arrows in the free fc-cm-category:

• •

•A A Aη ε =

• •

•A Aid (and the dual)

. The corresponding fc-cm-graph generated by Σ has one position,vertical arrows H and H , and no non-trivial horizontal arrows. Theunit/counit cells are only labeled by ε .

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

Page 136: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Putting it all together (1)

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

. The term “adjoints” was used delibertately, even though we are justworking with graphs.

Just like the distinguished loops of a reflexivegraph are intended to become identities in the free category, thedistinguished cells are intended to become units, resp., counits ofadjuncions between vertical arrows in the free fc-cm-category:

• •

•A A Aη ε =

• •

•A Aid (and the dual)

. The corresponding fc-cm-graph generated by Σ has one position,vertical arrows H and H , and no non-trivial horizontal arrows. Theunit/counit cells are only labeled by ε .

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

Page 137: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Putting it all together (1)

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

. The term “adjoints” was used delibertately, even though we are justworking with graphs. Just like the distinguished loops of a reflexivegraph are intended to become identities in the free category, thedistinguished cells are intended to become units, resp., counits ofadjuncions between vertical arrows in the free fc-cm-category:

• •

•A A Aη ε =

• •

•A Aid (and the dual)

. The corresponding fc-cm-graph generated by Σ has one position,vertical arrows H and H , and no non-trivial horizontal arrows. Theunit/counit cells are only labeled by ε .

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

Page 138: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Putting it all together (1)

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

. The term “adjoints” was used delibertately, even though we are justworking with graphs. Just like the distinguished loops of a reflexivegraph are intended to become identities in the free category, thedistinguished cells are intended to become units, resp., counits ofadjuncions between vertical arrows in the free fc-cm-category:

• •

•A A Aη ε =

• •

•A Aid (and the dual)

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

Theunit/counit cells are only labeled by ε .

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

Page 139: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Putting it all together (1)

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

. The term “adjoints” was used delibertately, even though we are justworking with graphs. Just like the distinguished loops of a reflexivegraph are intended to become identities in the free category, thedistinguished cells are intended to become units, resp., counits ofadjuncions between vertical arrows in the free fc-cm-category:

• •

•A A Aη ε =

• •

•A Aid (and the dual)

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

Theunit/counit cells are only labeled by ε .

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

Page 140: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

Putting it all together (1)

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

. The term “adjoints” was used delibertately, even though we are justworking with graphs. Just like the distinguished loops of a reflexivegraph are intended to become identities in the free category, thedistinguished cells are intended to become units, resp., counits ofadjuncions between vertical arrows in the free fc-cm-category:

• •

•A A Aη ε =

• •

•A Aid (and the dual)

. The corresponding fc-cm-graph generated by Σ has one position,vertical arrows H and H , and no non-trivial horizontal arrows. Theunit/counit cells are only labeled by ε .

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

Page 141: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 . Otherbicategories may be usable as well.

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

Page 142: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 . Otherbicategories may be usable as well.

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

Page 143: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 . Otherbicategories may be usable as well.

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

Page 144: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 .

Otherbicategories may be usable as well.

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

Page 145: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 .

Otherbicategories may be usable as well.

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

Page 146: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 .

Otherbicategories may be usable as well.

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

Page 147: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 .

Otherbicategories may be usable as well.

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

Page 148: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 .

Otherbicategories may be usable as well.

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

Page 149: A categorical model for 2-PDAs with states - UCwcmat14/slides/koslowski.pdf · A categorical model for 2-PDAs with states J urgen Koslowski Department of Theoretical Computer Science

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 . Otherbicategories may be usable as well.

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