a first order logic for string diagrams
play

A first-order logic for string diagrams Aleks Kissinger David Quick - PowerPoint PPT Presentation

Introduction !-Logic Interpretation Example Summary A first-order logic for string diagrams Aleks Kissinger David Quick Oxford Quantum Group CALCO June 2015 Q UANTUM G ROUP Introduction !-Logic Interpretation Example Summary


  1. Introduction !-Logic Interpretation Example Summary Natural Deduction System Build logic from formulae using sequents: X 1 , X 2 , . . . , X n ⊢ Y .

  2. Introduction !-Logic Interpretation Example Summary Natural Deduction System Build logic from formulae using sequents: X 1 , X 2 , . . . , X n ⊢ Y . Based on positive intuitionistic logic. e.g.

  3. Introduction !-Logic Interpretation Example Summary Natural Deduction System Build logic from formulae using sequents: X 1 , X 2 , . . . , X n ⊢ Y . Based on positive intuitionistic logic. e.g. (Ident) X ⊢ X

  4. Introduction !-Logic Interpretation Example Summary Natural Deduction System Build logic from formulae using sequents: X 1 , X 2 , . . . , X n ⊢ Y . Based on positive intuitionistic logic. e.g. Γ ⊢ X ∆ ⊢ Y (Ident) ( ∧ I ) X ⊢ X Γ , ∆ ⊢ X ∧ Y

  5. Introduction !-Logic Interpretation Example Summary Natural Deduction System Build logic from formulae using sequents: X 1 , X 2 , . . . , X n ⊢ Y . Based on positive intuitionistic logic. e.g. Γ ⊢ X ∆ ⊢ Y (Ident) ( ∧ I ) X ⊢ X Γ , ∆ ⊢ X ∧ Y Γ , X ⊢ Y ( → I ) Γ ⊢ X → Y

  6. Introduction !-Logic Interpretation Example Summary Natural Deduction System Build logic from formulae using sequents: X 1 , X 2 , . . . , X n ⊢ Y . Based on positive intuitionistic logic. e.g. Γ ⊢ X ∆ ⊢ Y (Ident) ( ∧ I ) X ⊢ X Γ , ∆ ⊢ X ∧ Y Γ , X ⊢ Y Γ ⊢ X ∆ , X ⊢ Y ( → I ) (Cut) Γ ⊢ X → Y Γ , ∆ ⊢ Y

  7. Introduction !-Logic Interpretation Example Summary !-Box Rules • Add quantifier intro/elim: Γ ⊢ ∀ A . X Γ ⊢ X ′ ( ∀ E ) ( ∀ I ) Γ ⊢ X ′ Γ ⊢ ∀ A . X Where X ′ is X with the component containing A renamed (to names not present in Γ ):

  8. Introduction !-Logic Interpretation Example Summary !-Box Rules • Add quantifier intro/elim: Γ ⊢ ∀ A . X Γ ⊢ X ′ ( ∀ E ) ( ∀ I ) Γ ⊢ X ′ Γ ⊢ ∀ A . X Where X ′ is X with the component containing A renamed (to names not present in Γ ): • and !-box operation rules: Γ ⊢ ∀ A . X Γ ⊢ ∀ A . X (Kill B ) (Exp B ) Γ ⊢ Kill B ( X ) Γ ⊢ Exp B ( X ) where B is equal to or nested in A .

  9. Introduction !-Logic Interpretation Example Summary Induction in !L Γ ⊢ Kill A ( X ) ∆ , X ⊢ ∀ B 1 . . . . ∀ B n . Exp A ( X ) (Induct) Γ , ∆ ⊢ X where B 1 to B n are the fresh names of children of A

  10. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even.

  11. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm )

  12. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 m �→ 2

  13. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 m �→ 2 P ( 4 )

  14. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 m �→ 2 n �→ 5 m �→ 3 P ( 4 ) P ( 15 )

  15. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 n �→ 2 m �→ 4 m �→ 2 n �→ 5 m �→ 3 P ( 4 ) P ( 15 ) P ( 8 )

  16. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 n �→ 2 m �→ 4 m �→ 2 n �→ 5 m �→ 3 P ( 4 ) P ( 15 ) P ( 8 ) � P ( nm ) � =

  17. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 n �→ 2 m �→ 4 m �→ 2 n �→ 5 m �→ 3 P ( 4 ) P ( 15 ) P ( 8 ) � P ( nm ) � = { n �→ 1 m �→ 2 , . . . } n �→ 1 n �→ 2 n �→ 1 n �→ 2 m �→ 1 , m �→ 2 , m �→ 1 , m �→ 3 ,

  18. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 n �→ 2 m �→ 4 m �→ 2 n �→ 5 m �→ 3 P ( 4 ) P ( 15 ) P ( 8 ) � P ( nm ) � = { n �→ 1 m �→ 2 , . . . } n �→ 1 n �→ 2 n �→ 1 n �→ 2 m �→ 1 , m �→ 2 , m �→ 1 , m �→ 3 , � ∀ m P ( nm ) � =

  19. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 n �→ 2 m �→ 4 m �→ 2 n �→ 5 m �→ 3 P ( 4 ) P ( 15 ) P ( 8 ) � P ( nm ) � = { n �→ 1 m �→ 2 , . . . } n �→ 1 n �→ 2 n �→ 1 n �→ 2 m �→ 1 , m �→ 2 , m �→ 1 , m �→ 3 , � ∀ m P ( nm ) � = { n �→ 1 , n �→ 2 , n �→ 3 , . . . }

  20. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 n �→ 2 m �→ 4 m �→ 2 n �→ 5 m �→ 3 P ( 4 ) P ( 15 ) P ( 8 ) � P ( nm ) � = { n �→ 1 m �→ 2 , . . . } n �→ 1 n �→ 2 n �→ 1 n �→ 2 m �→ 1 , m �→ 2 , m �→ 1 , m �→ 3 , � ∀ m P ( nm ) � = { n �→ 1 , n �→ 2 , n �→ 3 , . . . } � ∀ n ( ∀ m P ( nm )) � = ∅

  21. Introduction !-Logic Interpretation Example Summary Semantics for predicate logic Let P ( n ) be the proposition that n is even. P ( nm ) n �→ 2 n �→ 2 m �→ 4 m �→ 2 n �→ 5 m �→ 3 P ( 4 ) P ( 15 ) P ( 8 ) � P ( nm ) � = { n �→ 1 m �→ 2 , . . . } n �→ 1 n �→ 2 n �→ 1 n �→ 2 m �→ 1 , m �→ 2 , m �→ 1 , m �→ 3 , � ∀ m P ( nm ) � = { n �→ 1 , n �→ 2 , n �→ 3 , . . . } � ∀ n ( ∀ m P ( nm )) � = ∅ =: F

  22. Introduction !-Logic Interpretation Example Summary Valuation � − � C Σ

  23. Introduction !-Logic Interpretation Example Summary Valuation � − � C Σ Diagram (Σ)

  24. Introduction !-Logic Interpretation Example Summary Valuation � − � C Σ � − � Diagram (Σ)

  25. Introduction !-Logic Interpretation Example Summary Valuation � − � C Σ � − � Diagram (Σ) For G = H a concrete equation: � if � G � = � H � T � G = H � := (1) F otherwise

  26. Introduction !-Logic Interpretation Example Summary XOR Example � � Given: Σ = × 0 , 1 ,

  27. Introduction !-Logic Interpretation Example Summary XOR Example � � Given: Σ = × 0 , 1 , � � := 0 0

  28. Introduction !-Logic Interpretation Example Summary XOR Example � � Given: Σ = × 0 , 1 , � � � � := 0 := 1 0 1

  29. Introduction !-Logic Interpretation Example Summary XOR Example � � Given: Σ = × 0 , 1 , � � � � � � � ( 0 , 0 ) �→ 0 ( 0 , 1 ) �→ 1 := 0 := 1 := × ( 1 , 0 ) �→ 1 0 1 ( 1 , 1 ) �→ 0

  30. Introduction !-Logic Interpretation Example Summary XOR Example � � Given: Σ = × 0 , 1 , � � � � � � � ( 0 , 0 ) �→ 0 ( 0 , 1 ) �→ 1 := 0 := 1 := × ( 1 , 0 ) �→ 1 0 1 ( 1 , 1 ) �→ 0 � � So: = = T × 0 1 1

  31. Introduction !-Logic Interpretation Example Summary XOR Example � � Given: Σ = × 0 , 1 , � � � � � � � ( 0 , 0 ) �→ 0 ( 0 , 1 ) �→ 1 := 0 := 1 := × ( 1 , 0 ) �→ 1 0 1 ( 1 , 1 ) �→ 0 � � � � So: = = T = = F × × 0 0 1 1 0 1

  32. Introduction !-Logic Interpretation Example Summary XOR Example � � Given: Σ = × 0 , 1 , � � � � � � � ( 0 , 0 ) �→ 0 ( 0 , 1 ) �→ 1 := 0 := 1 := × ( 1 , 0 ) �→ 1 0 1 ( 1 , 1 ) �→ 0 � � � � So: = = T = = F × × 0 0 1 1 0 1 × := × × . . . . . .

  33. Introduction !-Logic Interpretation Example Summary Semantics for XOR × = 0 A 1

  34. Introduction !-Logic Interpretation Example Summary Semantics for XOR × = 0 A 1 Exp A Kill A × = 0 1

  35. Introduction !-Logic Interpretation Example Summary Semantics for XOR × = 0 A 1 Exp A Kill A Exp A Exp A Kill A × × = = 0 0 1 1 1

  36. Introduction !-Logic Interpretation Example Summary Semantics for XOR × = 0 A 1 Exp A Exp A Exp A Exp A Kill A Exp A Exp A Kill A Exp A Kill A × × × = = = 0 0 0 1 1 1 1 1 1 1

  37. Introduction !-Logic Interpretation Example Summary Semantics for XOR × = 0 A 1 Exp A Exp A Exp A Exp A Kill A Exp A Exp A Kill A Exp A Kill A × × × = = = 0 0 0 1 1 1 1 1 1 1 � � � � Exp A Exp A Exp A Exp A Exp A × = Kill A , Exp A = Exp A Exp A Kill A , , , , . . . Exp A 0 Exp A Kill A A Kill A 1 Kill A

  38. Introduction !-Logic Interpretation Example Summary Semantics for XOR × = 0 A 1 Exp A Exp A Exp A Exp A Kill A Exp A Exp A Kill A Exp A Kill A × × × = = = 0 0 0 1 1 1 1 1 1 1 � � � � Exp A Exp A Exp A Exp A Exp A × = Kill A , Exp A = Exp A Exp A Kill A , , , , . . . Exp A 0 Exp A Kill A A Kill A 1 Kill A � �   × ∀ A . = ∅ =   0 A 1

  39. Introduction !-Logic Interpretation Example Summary Semantics for XOR × = 0 A 1 Exp A Exp A Exp A Exp A Kill A Exp A Exp A Kill A Exp A Kill A × × × = = = 0 0 0 1 1 1 1 1 1 1 � � � � Exp A Exp A Exp A Exp A Exp A × = Kill A , Exp A = Exp A Exp A Kill A , , , , . . . Exp A 0 Exp A Kill A A Kill A 1 Kill A � �   × ∀ A . = ∅ = F =   0 A 1

  40. Introduction !-Logic Interpretation Example Summary Semantics for Copy A A =

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