church s synthesis problem and its extensions
play

CHURCHS SYNTHESIS PROBLEM and its EXTENSIONS Alexander Rabinovich - PowerPoint PPT Presentation

CHURCHS SYNTHESIS PROBLEM and its EXTENSIONS Alexander Rabinovich Tel-Aviv University, Israel http://www.tau.ac.il/ rabinoa 4-th ISLA January, 2012 Plan of the Course 1 The Church problem - logic and automata. 2 Games - basic notions. 3


  1. CHURCH’S SYNTHESIS PROBLEM and its EXTENSIONS Alexander Rabinovich Tel-Aviv University, Israel http://www.tau.ac.il/ ∼ rabinoa 4-th ISLA January, 2012

  2. Plan of the Course 1 The Church problem - logic and automata. 2 Games - basic notions. 3 Memoryless determinacy. 4 Finite memory determinacy 5 Applications and trends.

  3. Sources 1 D. Perrin, J.E. Pin. Infinite Words, Elsevier, Amsterdam 2004. 2 E. Gr¨ adel, W. Thomas, Th. Wilke (Eds). Automata, Logics, and Infinite Games, Springer LNCS 2500 (2002). 3 Publications in “Game training network”.

  4. Sources 1 D. Perrin, J.E. Pin. Infinite Words, Elsevier, Amsterdam 2004. 2 E. Gr¨ adel, W. Thomas, Th. Wilke (Eds). Automata, Logics, and Infinite Games, Springer LNCS 2500 (2002). 3 Publications in “Game training network”.

  5. Synthesis Problem Input: A specification S ( I, O ) Task: Find a program P which implements S , i.e., ∀ I ( S ( I, P ( I )) .

  6. Synthesis Problem Input: A specification S ( I, O ) Task: Find a program P which implements S , i.e., ∀ I ( S ( I, P ( I )) . Formal and Expressive Specification and Implementation languages.

  7. Church’s Problem Consider a bit by bit transformation of bit streams: …I t …I 3 I 2 I 1 …O t …O 3 O 2 O 1 F Church’s Problem: For a given I-O specification fill the box.

  8. Church’s Problem Consider a bit by bit transformation of bit streams: …I t …I 3 I 2 I 1 …O t …O 3 O 2 O 1 F Church’s Problem: For a given I-O specification fill the box. Given a logical specification of the input-output relation R find a causal mapping (implementation) F : I → F ( I ) such that ( I, F ( I )) ∈ R for all I .

  9. Church’s Problem Consider a bit by bit transformation of bit streams: …I t …I 3 I 2 I 1 …O t …O 3 O 2 O 1 F Church’s Problem: For a given I-O specification fill the box. Given a logical specification of the input-output relation R find a causal mapping (implementation) F : I → F ( I ) such that ( I, F ( I )) ∈ R for all I . Causal-operator - the output bit O t at moment t depends only on I 1 I 2 . . . I t .

  10. Church’s Problem Consider a bit by bit transformation of bit streams: …I t …I 3 I 2 I 1 …O t …O 3 O 2 O 1 F Church’s Problem: For a given I-O specification fill the box. Given a logical specification of the input-output relation R find a causal mapping (implementation) F : I → F ( I ) such that ( I, F ( I )) ∈ R for all I . Causal-operator - the output bit O t at moment t depends only on I 1 I 2 . . . I t . Synthesis ∼ games; Causal operators ∼ strategies.

  11. Example …I t …I 3 I 2 I 1 …O t …O 3 O 2 O 1 F Consider R defined by If all I ( t ) = 0 then all O ( t ) = 0; otherwise all O ( t ) = 1.

  12. Example …I t …I 3 I 2 I 1 …O t …O 3 O 2 O 1 F Consider R defined by If all I ( t ) = 0 then all O ( t ) = 0; otherwise all O ( t ) = 1. It is impossible to implement this R by a causal operator.

  13. Example Consider R defined by the conjunction of three conditions on the input-output stream (I, O): 1 ∀ t ( I ( t ) = 1 → O ( t ) = 1) 2 never O ( t ) = O ( t + 1) = 0 3 If infinitely often I ( t ) = 0 then infinitely often O ( t ) = 0

  14. Example Consider R defined by the conjunction of three conditions on the input-output stream (I, O): 1 ∀ t ( I ( t ) = 1 → O ( t ) = 1) 2 never O ( t ) = O ( t + 1) = 0 3 If infinitely often I ( t ) = 0 then infinitely often O ( t ) = 0 Common-Sense Solution 1 for input 1 produce output 1 2 for input 0 produce output 1 if last output was 0 output 0 if last output was 1

  15. Example Consider R defined by the conjunction of three conditions on the input-output stream (I, O): 1 ∀ t ( I ( t ) = 1 → O ( t ) = 1) 2 never O ( t ) = O ( t + 1) = 0 3 If infinitely often I ( t ) = 0 then infinitely often O ( t ) = 0 Common-Sense Solution 1 for input 1 produce output 1 1/1 1/1 2 for input 0 produce Last 1 Last 0 0/1 output 1 if last output was 0 output 0 if last output 0/0 was 1 Can be described by a finite state automaton with output.

  16. B¨ uchi-Landweber Theorem In the examples the input-output specification R ( I, O ) can be formalized in the Monadic second-order logic of order (MLO).

  17. B¨ uchi-Landweber Theorem In the examples the input-output specification R ( I, O ) can be formalized in the Monadic second-order logic of order (MLO). B¨ uchi-Landweber(69) proved that the Church synthesis problem is computable for MLO specification. Theorem. For every MLO formula ψ ( X, Y ) it is decidable whether there is causal operator F which implements ψ , i.e. Nat | = ∀ Xψ ( X, F ( X ))

  18. B¨ uchi-Landweber Theorem In the examples the input-output specification R ( I, O ) can be formalized in the Monadic second-order logic of order (MLO). B¨ uchi-Landweber(69) proved that the Church synthesis problem is computable for MLO specification. Theorem. For every MLO formula ψ ( X, Y ) it is decidable whether there is causal operator F which implements ψ , i.e. Nat | = ∀ Xψ ( X, F ( X )) If such an operator exists then there is a finite state operator which implements ψ . Moreover, this finite state operator is computable from ψ .

  19. Techniques Rich interplay of 1 Mathematical logic - Monadic Second-Order Logics 2 Automata theory - automata on infinite objects . 3 Games of infinite length.

  20. The language for specifying temporal behavior MLO (Monadic second-order Logic of Order ) 1st-order variables x,y,z,. . . ranging over elements 2nd-order monadic variables X,Y,Z,. . . ranging over sets of elements Formulas x < y x ∈ X x ∈ P a φ ∧ φ ′ ¬ φ ∃ xφ ∃ Xφ FOMLO No second-order quantifiers ∃ Xφ

  21. The language for specifying temporal behavior MLO (Monadic second-order Logic of Order ) 1st-order variables x,y,z,. . . ranging over elements 2nd-order monadic variables X,Y,Z,. . . ranging over sets of elements Formulas x < y x ∈ X x ∈ P a φ ∧ φ ′ ¬ φ ∃ xφ ∃ Xφ FOMLO No second-order quantifiers ∃ Xφ Models - Discrete Linear Time: T = ( N , < )

  22. The language for specifying temporal behavior MLO (Monadic second-order Logic of Order ) 1st-order variables x,y,z,. . . ranging over elements 2nd-order monadic variables X,Y,Z,. . . ranging over sets of elements Formulas x < y x ∈ X x ∈ P a φ ∧ φ ′ ¬ φ ∃ xφ ∃ Xφ FOMLO No second-order quantifiers ∃ Xφ Models - Discrete Linear Time: T = ( N , < ) Other models - Rationals, Reals, Tree order, etc. A monadic predicate P on Nat - an ω -sequence over { 0 , 1 } . A formula ψ ( X, Y ) defines a binary relation - on ω -sequences.

  23. The language for specifying temporal behavior MLO (Monadic second-order Logic of Order ) 1st-order variables x,y,z,. . . ranging over elements 2nd-order monadic variables X,Y,Z,. . . ranging over sets of elements Formulas x < y x ∈ X x ∈ P a φ ∧ φ ′ ¬ φ ∃ xφ ∃ Xφ FOMLO No second-order quantifiers ∃ Xφ Models - Discrete Linear Time: T = ( N , < ) Other models - Rationals, Reals, Tree order, etc. A monadic predicate P on Nat - an ω -sequence over { 0 , 1 } . A formula ψ ( X, Y ) defines a binary relation - on ω -sequences. Fundamental connection between MLO and automata theory - B¨ uchii, Trakhtenbrot, Rabin.

  24. Examples - Formalization over ( N , < ) 1 X is infinite: Inf ( X ) := ∀ t ∃ t ′ ( t ′ > t ∧ X ( t ′ ))

  25. Examples - Formalization over ( N , < ) 1 X is infinite: Inf ( X ) := ∀ t ∃ t ′ ( t ′ > t ∧ X ( t ′ )) 2 t 2 is a successor of t 1 : ϕ ( t 1 , t 2 ) := t 1 < t 2 ∧ ¬∃ t 3 ( t 1 < t 3 < t 2 )

  26. Examples - Formalization over ( N , < ) 1 X is infinite: Inf ( X ) := ∀ t ∃ t ′ ( t ′ > t ∧ X ( t ′ )) 2 t 2 is a successor of t 1 : ϕ ( t 1 , t 2 ) := t 1 < t 2 ∧ ¬∃ t 3 ( t 1 < t 3 < t 2 ) 3 X is the set of even numbers X (0) ∧ ∀ tX ( t ) ↔ ¬ X ( t + 1)

  27. Examples - Formalization over ( N , < ) 1 X is infinite: Inf ( X ) := ∀ t ∃ t ′ ( t ′ > t ∧ X ( t ′ )) 2 t 2 is a successor of t 1 : ϕ ( t 1 , t 2 ) := t 1 < t 2 ∧ ¬∃ t 3 ( t 1 < t 3 < t 2 ) 3 X is the set of even numbers X (0) ∧ ∀ tX ( t ) ↔ ¬ X ( t + 1) 4 t 1 is an even number: Even ( t 1 ) := ∃ X ( X ( t 1 ) ∧ X (0) ∧ ∀ tX ( t ) ↔ ¬ X ( t + 1))

  28. Examples - Formalization over ( N , < ) 1 X is infinite: Inf ( X ) := ∀ t ∃ t ′ ( t ′ > t ∧ X ( t ′ )) 2 t 2 is a successor of t 1 : ϕ ( t 1 , t 2 ) := t 1 < t 2 ∧ ¬∃ t 3 ( t 1 < t 3 < t 2 ) 3 X is the set of even numbers X (0) ∧ ∀ tX ( t ) ↔ ¬ X ( t + 1) 4 t 1 is an even number: Even ( t 1 ) := ∃ X ( X ( t 1 ) ∧ X (0) ∧ ∀ tX ( t ) ↔ ¬ X ( t + 1)) 5 After every occurrence of X there is an occurrence of Y ϕ ( X, Y ) := ∀ tX ( t ) → ∃ t 1 ( t 1 > t ∧ Y ( t 1 ))

  29. Examples - Formalization over ( N , < ) 1 X is infinite: Inf ( X ) := ∀ t ∃ t ′ ( t ′ > t ∧ X ( t ′ )) 2 t 2 is a successor of t 1 : ϕ ( t 1 , t 2 ) := t 1 < t 2 ∧ ¬∃ t 3 ( t 1 < t 3 < t 2 ) 3 X is the set of even numbers X (0) ∧ ∀ tX ( t ) ↔ ¬ X ( t + 1) 4 t 1 is an even number: Even ( t 1 ) := ∃ X ( X ( t 1 ) ∧ X (0) ∧ ∀ tX ( t ) ↔ ¬ X ( t + 1)) 5 After every occurrence of X there is an occurrence of Y ϕ ( X, Y ) := ∀ tX ( t ) → ∃ t 1 ( t 1 > t ∧ Y ( t 1 )) S1S - Second order theory of One Successor is expressive equivalent to MLO over ( N , < ).

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