graphical conjunctive queries
play

Graphical Conjunctive Queries A completeness theorem for Cartesian - PowerPoint PPT Presentation

Graphical Conjunctive Queries A completeness theorem for Cartesian bicategories Filippo Bonchi, Jens Seeber , Pawe l Soboci nski IMT School for Advanced Studies Lucca Birmingham - 21 st September, 2018 Contents 1 Cartesian bicategories 2


  1. Graphical Conjunctive Queries A completeness theorem for Cartesian bicategories Filippo Bonchi, Jens Seeber , Pawe� l Soboci´ nski IMT School for Advanced Studies Lucca Birmingham - 21 st September, 2018

  2. Contents 1 Cartesian bicategories 2 Conjunctive queries 3 Completeness 4 Summary

  3. String diagrams • A graphical way of reasoning about monoidal categories

  4. String diagrams • A graphical way of reasoning about monoidal categories • 2-dimensional diagrams manipulated according to algebraic rules – hot research topic

  5. String diagrams • A graphical way of reasoning about monoidal categories • 2-dimensional diagrams manipulated according to algebraic rules – hot research topic • ZX calculus (Coecke, Duncan)

  6. String diagrams • A graphical way of reasoning about monoidal categories • 2-dimensional diagrams manipulated according to algebraic rules – hot research topic • ZX calculus (Coecke, Duncan) • Signal flow graphs (Bonchi, Sobocinski, Zanasi)

  7. String diagrams • A graphical way of reasoning about monoidal categories • 2-dimensional diagrams manipulated according to algebraic rules – hot research topic • ZX calculus (Coecke, Duncan) • Signal flow graphs (Bonchi, Sobocinski, Zanasi) • Monoidal computer (Pavlovic)

  8. String diagrams • A graphical way of reasoning about monoidal categories • 2-dimensional diagrams manipulated according to algebraic rules – hot research topic • ZX calculus (Coecke, Duncan) • Signal flow graphs (Bonchi, Sobocinski, Zanasi) • Monoidal computer (Pavlovic) • . . .

  9. Relations with string diagrams The category Rel of sets with relations as morphisms

  10. Relations with string diagrams The category Rel of sets with relations as morphisms • forms a symmetric monoidal category:

  11. Relations with string diagrams The category Rel of sets with relations as morphisms • forms a symmetric monoidal category: R 1 ⊗ R 2 = { (( a, b ) , ( c, d )) | ( a, c ) ∈ R 1 , ( b, d ) ∈ R 2 } a c R 1 b d R 2

  12. Relations with string diagrams The category Rel of sets with relations as morphisms • forms a symmetric monoidal category: R 1 ⊗ R 2 = { (( a, b ) , ( c, d )) | ( a, c ) ∈ R 1 , ( b, d ) ∈ R 2 } a c R 1 b d R 2 • Composition: R 1 ; R 2 = { ( x, z ) | ∃ y : ( x, y ) ∈ R 1 , ( y, z ) ∈ R 2 } y x z R 1 R 2

  13. Relations with string diagrams • Relations are ordered by inclusion

  14. Relations with string diagrams • Relations are ordered by inclusion • Every object:

  15. Relations with string diagrams • Relations are ordered by inclusion • Every object: • Copying and discarding

  16. Relations with string diagrams • Relations are ordered by inclusion • Every object: • Copying and discarding ,

  17. Relations with string diagrams • Relations are ordered by inclusion • Every object: • Copying and discarding , • Equality and “spawn”

  18. Relations with string diagrams • Relations are ordered by inclusion • Every object: • Copying and discarding , • Equality and “spawn” ,

  19. Observations = = = = Comonoid

  20. Observations = = = = Comonoid = = = = Monoid

  21. Observations = = = = Comonoid = = = = Monoid = = Frobenius

  22. Observations = = ≤ = = ≤ Comonoid ≤ ≤ = Adjointness = = = Monoid = = Frobenius

  23. Observations = = ≤ = = ≤ Comonoid ≤ ≤ = Adjointness = R ≤ R = = R ≤ Monoid R Lax Comonoid homomorphism = = Frobenius

  24. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory

  25. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered

  26. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category

  27. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category where every object is equipped with

  28. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category where every object is equipped with • a comonoid

  29. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category where every object is equipped with • a comonoid • a monoid

  30. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category where every object is equipped with • a comonoid • a monoid satisfying coherence

  31. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category where every object is equipped with • a comonoid • a monoid satisfying coherence and the laws on the last slide.

  32. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category where every object is equipped with • a comonoid • a monoid satisfying coherence and the laws on the last slide. A morphism

  33. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category where every object is equipped with • a comonoid • a monoid satisfying coherence and the laws on the last slide. A morphism is a monoidal functor

  34. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category where every object is equipped with • a comonoid • a monoid satisfying coherence and the laws on the last slide. A morphism is a monoidal functor preserving the ordering, the comonoid and the monoid.

  35. Cartesian bicategories Definition (Carboni & Walters) A Cartesian bicategory is a locally ordered symmetric monoidal category where every object is equipped with • a comonoid • a monoid satisfying coherence and the laws on the last slide. A morphism is a monoidal functor preserving the ordering, the comonoid and the monoid. Idea: Do categorical logic with Cartesian bicategories.

  36. Categorical logic with Cartesian bicategories Definition A model of B (in Rel ) is a morphism M : B → Rel

  37. Categorical logic with Cartesian bicategories Definition A model of B (in Rel ) is a morphism M : B → Rel Problem (Completeness) For morphisms x, y in B such that M ( x ) ⊆ M ( y ) for all models M , is x ≤ y ?

  38. Categorical logic with Cartesian bicategories Definition A model of B (in Rel ) is a morphism M : B → Rel Problem (Completeness) For morphisms x, y in B such that M ( x ) ⊆ M ( y ) for all models M , is x ≤ y ? Not to be confused with “functional completeness”!

  39. The syntactic Cartesian bicategory Signature Σ

  40. The syntactic Cartesian bicategory Signature Σ, each R ∈ Σ equipped with arity and coarity R : n → m .

  41. The syntactic Cartesian bicategory Signature Σ, each R ∈ Σ equipped with arity and coarity R : n → m . Freely generated (syntactic) Cartesian bicategory CB Σ has objects N and morphisms

  42. The syntactic Cartesian bicategory Signature Σ, each R ∈ Σ equipped with arity and coarity R : n → m . Freely generated (syntactic) Cartesian bicategory CB Σ has objects N and morphisms . . . . S 1 � � � . . � . . . Mor( CB Σ ) ::= ǫ . . . � � � � S 1 S 2 . . . . . � � � � . . S 2 . .

  43. The syntactic Cartesian bicategory Signature Σ, each R ∈ Σ equipped with arity and coarity R : n → m . Freely generated (syntactic) Cartesian bicategory CB Σ has objects N and morphisms . . . . S 1 � � � . . � � . . . Mor( CB Σ ) ::= ǫ . . . � � � � � S 1 S 2 . . . . . � � � � � . . S 2 . . � � � � . . . . � � � � R . . � � � �

  44. The syntactic Cartesian bicategory Signature Σ, each R ∈ Σ equipped with arity and coarity R : n → m . Freely generated (syntactic) Cartesian bicategory CB Σ has objects N and morphisms . . . . S 1 � � � . . � � . . . Mor( CB Σ ) ::= ǫ . . . � � � � � S 1 S 2 . . . . . � � � � � . . S 2 . . � � � � . . . . � � � � R . . � � � � modulo the laws of Cartesian bicategories.

  45. Cartesian bicategories and logic CB Σ can emulate regular logic.

  46. Cartesian bicategories and logic CB Σ can emulate regular logic. Example ∃ z 0 , z 1 : R ( x 0 , z 0 ) ∧ R ( x 1 , z 0 ) ∧ R ( x 0 , z 1 ) ∧ R ( x 1 , z 1 ) ,

  47. Cartesian bicategories and logic CB Σ can emulate regular logic. Example ∃ z 0 , z 1 : R ( x 0 , z 0 ) ∧ R ( x 1 , z 0 ) ∧ R ( x 0 , z 1 ) ∧ R ( x 1 , z 1 ) , R R R R

  48. Cartesian bicategories and logic CB Σ can emulate regular logic. Example ∃ z 0 , z 1 : R ( x 0 , z 0 ) ∧ R ( x 1 , z 0 ) ∧ R ( x 0 , z 1 ) ∧ R ( x 1 , z 1 ) , R R R R One-to-one correspondence between string diagrams and regular logic.

  49. Contents 1 Cartesian bicategories 2 Conjunctive queries 3 Completeness 4 Summary

  50. Conjunctive queries • Conjunctive queries: logical formulas made of ∃ , ∧ , ⊤ , = and symbols from the signature Σ.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend