the complexity of counting models of linear time temporal
play

The Complexity of Counting Models of Linear-time Temporal Logic - PowerPoint PPT Presentation

The Complexity of Counting Models of Linear-time Temporal Logic Joint work with Hazem Torfah (Saarland University) Martin Zimmermann Saarland University January 22nd, 2015 Research Training Group AlgoSyn RWTH Aachen University Martin


  1. The Complexity of Counting Models of Linear-time Temporal Logic Joint work with Hazem Torfah (Saarland University) Martin Zimmermann Saarland University January 22nd, 2015 Research Training Group AlgoSyn RWTH Aachen University Martin Zimmermann Saarland University The Complexity of Counting LTL Models 1/15

  2. Why Model Counting How many models does a boolean formula ϕ have? Martin Zimmermann Saarland University The Complexity of Counting LTL Models 2/15

  3. Why Model Counting How many models does a boolean formula ϕ have? Generalization of satisfiability: does ϕ have a model? Applications: probabilistic inference problems planning problems combinatorial designs etc. Martin Zimmermann Saarland University The Complexity of Counting LTL Models 2/15

  4. Why LTL Model Counting LTL model counting comes in two flavors: Martin Zimmermann Saarland University The Complexity of Counting LTL Models 3/15

  5. Why LTL Model Counting LTL model counting comes in two flavors: for fixed ϕ and k ∈ N .. Martin Zimmermann Saarland University The Complexity of Counting LTL Models 3/15

  6. Why LTL Model Counting LTL model counting comes in two flavors: for fixed ϕ and k ∈ N .. .. count (ultimately periodic) word models u · v ω with | u | + | v | = k : Analogue to model checking: count the number of error traces of a given system. Martin Zimmermann Saarland University The Complexity of Counting LTL Models 3/15

  7. Why LTL Model Counting LTL model counting comes in two flavors: for fixed ϕ and k ∈ N .. .. count (ultimately periodic) word models u · v ω with | u | + | v | = k : Analogue to model checking: count the number of error traces of a given system. .. count tree models of depth k with a e 1 back-edges at leaves: e 1 e 2 e 1 Analogue to synthesis: count the e 2 e 2 c b number of implementations (implementation freedom). Martin Zimmermann Saarland University The Complexity of Counting LTL Models 3/15

  8. Why LTL Model Counting LTL model counting comes in two flavors: for fixed ϕ and k ∈ N .. .. count (ultimately periodic) word models u · v ω with | u | + | v | = k : Analogue to model checking: count the number of error traces of a given system. .. count tree models of depth k with a e 1 back-edges at leaves: e 1 e 2 e 1 Analogue to synthesis: count the e 2 e 2 c b number of implementations (implementation freedom). Theorem (Finkbeiner and Torfah ’14) 1. Word models can be counted in time O ( k · 2 2 | ϕ | ) . 2. Tree models can be counted in time O ( k · 2 2 2 | ϕ | ) . Martin Zimmermann Saarland University The Complexity of Counting LTL Models 3/15

  9. Outline 1. Counting Complexity 2. Counting Word Models 3. Counting Tree Models 4. Conclusion Martin Zimmermann Saarland University The Complexity of Counting LTL Models 4/15

  10. Counting Complexity f : Σ ∗ → N Martin Zimmermann Saarland University The Complexity of Counting LTL Models 5/15

  11. Counting Complexity f : Σ ∗ → N is in # P if there is an NP machine M such that f ( w ) is equal to the number of accepting runs of M on w . Martin Zimmermann Saarland University The Complexity of Counting LTL Models 5/15

  12. Counting Complexity f : Σ ∗ → N is in # P if there is an NP machine M such that f ( w ) is equal to the number of accepting runs of M on w . Examples: #SAT is in # P . #CLIQUE is in # P . Martin Zimmermann Saarland University The Complexity of Counting LTL Models 5/15

  13. Counting Complexity f : Σ ∗ → N is in # P if there is an NP machine M such that f ( w ) is equal to the number of accepting runs of M on w . Examples: #SAT is in # P . #CLIQUE is in # P . (Parsimonious) Reductions: f # P -hard: for all f ′ ∈ # P there is a polynomial time computable function r such that f ′ ( x ) = f ( r ( x )) for all inputs x . Martin Zimmermann Saarland University The Complexity of Counting LTL Models 5/15

  14. Counting Complexity f : Σ ∗ → N is in # P if there is an NP machine M such that f ( w ) is equal to the number of accepting runs of M on w . Examples: #SAT is in # P . #CLIQUE is in # P . (Parsimonious) Reductions: f # P -hard: for all f ′ ∈ # P there is a polynomial time computable function r such that f ′ ( x ) = f ( r ( x )) for all inputs x . If f ′ is computed by M , then r may depend on M and its time-bound p ( n ). Martin Zimmermann Saarland University The Complexity of Counting LTL Models 5/15

  15. Counting Complexity f : Σ ∗ → N is in # P if there is an NP machine M such that f ( w ) is equal to the number of accepting runs of M on w . Examples: #SAT is in # P . #CLIQUE is in # P . (Parsimonious) Reductions: f # P -hard: for all f ′ ∈ # P there is a polynomial time computable function r such that f ′ ( x ) = f ( r ( x )) for all inputs x . If f ′ is computed by M , then r may depend on M and its time-bound p ( n ). Completeness: hardness and membership. Martin Zimmermann Saarland University The Complexity of Counting LTL Models 5/15

  16. Counting Complexity #SAT is # P -complete. #CLIQUE is # P -complete. Martin Zimmermann Saarland University The Complexity of Counting LTL Models 6/15

  17. Counting Complexity #SAT is # P -complete. #CLIQUE is # P -complete. #2SAT is # P -complete. #DNF-SAT is # P -complete. #PERFECT-MATCHING is # P -complete. Note: Decision problems 2SAT, DNF-SAT, and PERFECT-MATCHING are in P : Martin Zimmermann Saarland University The Complexity of Counting LTL Models 6/15

  18. Counting Complexity #SAT is # P -complete. #CLIQUE is # P -complete. #2SAT is # P -complete. #DNF-SAT is # P -complete. #PERFECT-MATCHING is # P -complete. Note: Decision problems 2SAT, DNF-SAT, and PERFECT-MATCHING are in P : Counting versions of easy problems can be hard! Martin Zimmermann Saarland University The Complexity of Counting LTL Models 6/15

  19. Beyond # P Remark: f ∈ # P implies f ( w ) ∈ O (2 p ( | w | ) ) for some polynomial p . Martin Zimmermann Saarland University The Complexity of Counting LTL Models 7/15

  20. Beyond # P Remark: f ∈ # P implies f ( w ) ∈ O (2 p ( | w | ) ) for some polynomial p . We need larger counting classes. f : Σ ∗ → N is in # Pspace , if there is a nondeterministic polynomial-space Turing machine M such that f ( w ) is equal to the number of accepting runs of M on w . Martin Zimmermann Saarland University The Complexity of Counting LTL Models 7/15

  21. Beyond # P Remark: f ∈ # P implies f ( w ) ∈ O (2 p ( | w | ) ) for some polynomial p . We need larger counting classes. f : Σ ∗ → N is in # Pspace , if there is a nondeterministic polynomial-space Turing machine M such that f ( w ) is equal to the number of accepting runs of M on w . Analogously: # Exptime , # Expspace , and # 2Exptime . Martin Zimmermann Saarland University The Complexity of Counting LTL Models 7/15

  22. Beyond # P Remark: f ∈ # P implies f ( w ) ∈ O (2 p ( | w | ) ) for some polynomial p . We need larger counting classes. f : Σ ∗ → N is in # Pspace , if there is a nondeterministic polynomial-space Turing machine M such that f ( w ) is equal to the number of accepting runs of M on w . Analogously: # Exptime , # Expspace , and # 2Exptime . Remark: f ∈ # Exptime implies f ( w ) ∈ O (2 2 p ( | w | ) ) for a polynomial p . f ∈ # 2Exptime implies f ( w ) ∈ O (2 2 2 p ( | w | ) ) for a polynomial p . w �→ 2 2 | w | is in # Pspace . w �→ 2 2 2 | w | is in # Expspace . Martin Zimmermann Saarland University The Complexity of Counting LTL Models 7/15

  23. Outline 1. Counting Complexity 2. Counting Word Models 3. Counting Tree Models 4. Conclusion Martin Zimmermann Saarland University The Complexity of Counting LTL Models 8/15

  24. Counting Word-Models for Binary Bounds Theorem The following problem is # Pspace -complete: Given an LTL formula ϕ and a bound k (in binary), how many k-word-models does ϕ have? Martin Zimmermann Saarland University The Complexity of Counting LTL Models 9/15

  25. Counting Word-Models for Binary Bounds Theorem The following problem is # Pspace -complete: Given an LTL formula ϕ and a bound k (in binary), how many k-word-models does ϕ have? Lower bound: Pspace -hardness of LTL satisfiability [Sistla & Clarke ’85] made parsimonious. p ( n ) · · · $ $ $ $ c 1 c 2 c 3 c t Martin Zimmermann Saarland University The Complexity of Counting LTL Models 9/15

  26. Counting Word-Models for Binary Bounds Theorem The following problem is # Pspace -complete: Given an LTL formula ϕ and a bound k (in binary), how many k-word-models does ϕ have? Lower bound: Pspace -hardness of LTL satisfiability [Sistla & Clarke ’85] made parsimonious. p ( n ) · · · · · · $ 2 p ′ ( n ) ⊥ ω $ 1 $ 2 $ 3 $ t c 1 c 2 c 3 c t c t Martin Zimmermann Saarland University The Complexity of Counting LTL Models 9/15

  27. Counting Word-Models for Binary Bounds Theorem The following problem is # Pspace -complete: Given an LTL formula ϕ and a bound k (in binary), how many k-word-models does ϕ have? Lower bound: Pspace -hardness of LTL satisfiability [Sistla & Clarke ’85] made parsimonious. p ( n ) · · · · · · $ 2 p ′ ( n ) ⊥ ω $ 1 $ 2 $ 3 $ t c 1 c 2 c 3 c t c t Length of prefix is exponential, but k can be encoded in binary. Martin Zimmermann Saarland University The Complexity of Counting LTL Models 9/15

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