concurrency theory
play

Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually - PowerPoint PPT Presentation

Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems Joost-Pieter Katoen and Thomas Noll Software Modeling and Verification Group RWTH Aachen University https://moves.rwth-aachen.de/teaching/ws-19-20/ct/


  1. Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems Joost-Pieter Katoen and Thomas Noll Software Modeling and Verification Group RWTH Aachen University https://moves.rwth-aachen.de/teaching/ws-19-20/ct/

  2. Recap: Fixed-Point Theory Outline of Lecture 6 Recap: Fixed-Point Theory Fixed Points and System Properties Mutually Recursive Equational Systems Mixing Least and Greatest Fixed Points 2 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  3. Recap: Fixed-Point Theory The Fixed-Point Theorem Alfred Tarski (1901–1983) Theorem (Tarski’s fixed-point theorem) Let ( D , ⊑ ) be a complete lattice and f : D → D monotonic. Then f has a least fixed point fix ( f ) and a greatest fixed point FIX ( f ) given by fix ( f ) = � { d ∈ D | f ( d ) ⊑ d } (GLB of all pre-fixed points of f) FIX ( f ) = � { d ∈ D | d ⊑ f ( d ) } (LUB of all post-fixed points of f) Proof. on the board 3 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  4. Recap: Fixed-Point Theory The Fixed-Point Theorem for Finite Lattices Theorem (Fixed-point theorem for finite lattices) Let ( D , ⊑ ) be a finite complete lattice and f : D → D monotonic. Then fix ( f ) = f m ( ⊥ ) FIX ( f ) = f M ( ⊤ ) and for some m , M ∈ N where f 0 ( d ) := d f k + 1 ( d ) := f ( f k ( d )) . and Proof. on the board 4 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  5. Recap: Fixed-Point Theory Application to HML with Recursion Lemma Let ( S , Act , − → ) be an LTS and F ∈ HMF X . Then 1. � F � : 2 S → 2 S is monotonic w.r.t. ( 2 S , ⊆ ) 2. fix ( � F � ) = � { T ⊆ S | � F � ( T ) ⊆ T } 3. FIX ( � F � ) = � { T ⊆ S | T ⊆ � F � ( T ) } If, in addition, S is finite, then 4. fix ( � F � ) = � F � m ( ∅ ) for some m ∈ N 5. FIX ( � F � ) = � F � M ( S ) for some M ∈ N Proof. 1. by induction on the structure of F (details omitted) 2. by Lemma 4.15 and Theorem 5.5 3. by Lemma 4.15 and Theorem 5.5 4. by Lemma 4.15 and Theorem 5.7 5. by Lemma 4.15 and Theorem 5.7 5 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  6. Fixed Points and System Properties Outline of Lecture 6 Recap: Fixed-Point Theory Fixed Points and System Properties Mutually Recursive Equational Systems Mixing Least and Greatest Fixed Points 6 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  7. Fixed Points and System Properties Greatest Fixed Points and Invariants • Invariants (cf. Example 4.5): max – Inv ( F ) = F ∧ [ Act ] Inv ( F ) for F ∈ HMF – s | = Inv ( F ) if all states reachable from s satisfy F 7 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  8. Fixed Points and System Properties Greatest Fixed Points and Invariants • Invariants (cf. Example 4.5): max – Inv ( F ) = F ∧ [ Act ] Inv ( F ) for F ∈ HMF – s | = Inv ( F ) if all states reachable from s satisfy F • Now: formalise argument and prove its correctness (for arbitrary LTSs) 7 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  9. Fixed Points and System Properties Greatest Fixed Points and Invariants • Invariants (cf. Example 4.5): max – Inv ( F ) = F ∧ [ Act ] Inv ( F ) for F ∈ HMF – s | = Inv ( F ) if all states reachable from s satisfy F • Now: formalise argument and prove its correctness (for arbitrary LTSs) • Let inv : 2 S → 2 S : T �→ � F � ∩ [ · Act · ]( T ) be the corresponding semantic function • By Lemma 5.9, FIX ( inv ) = � { T ⊆ S | T ⊆ inv ( T ) } 7 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  10. Fixed Points and System Properties Greatest Fixed Points and Invariants • Invariants (cf. Example 4.5): max – Inv ( F ) = F ∧ [ Act ] Inv ( F ) for F ∈ HMF – s | = Inv ( F ) if all states reachable from s satisfy F • Now: formalise argument and prove its correctness (for arbitrary LTSs) • Let inv : 2 S → 2 S : T �→ � F � ∩ [ · Act · ]( T ) be the corresponding semantic function • By Lemma 5.9, FIX ( inv ) = � { T ⊆ S | T ⊆ inv ( T ) } • Direct formulation of invariance property: Inv = { s ∈ S | ∀ w ∈ Act ∗ , s ′ ∈ S : s → s ′ = ⇒ s ′ ∈ � F � } w − 7 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  11. Fixed Points and System Properties Greatest Fixed Points and Invariants • Invariants (cf. Example 4.5): max – Inv ( F ) = F ∧ [ Act ] Inv ( F ) for F ∈ HMF – s | = Inv ( F ) if all states reachable from s satisfy F • Now: formalise argument and prove its correctness (for arbitrary LTSs) • Let inv : 2 S → 2 S : T �→ � F � ∩ [ · Act · ]( T ) be the corresponding semantic function • By Lemma 5.9, FIX ( inv ) = � { T ⊆ S | T ⊆ inv ( T ) } • Direct formulation of invariance property: Inv = { s ∈ S | ∀ w ∈ Act ∗ , s ′ ∈ S : s → s ′ = ⇒ s ′ ∈ � F � } w − Theorem 6.1 For every LTS ( S , Act , − → ) , Inv = FIX ( inv ) holds. 7 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  12. Fixed Points and System Properties Greatest Fixed Points and Invariants • Invariants (cf. Example 4.5): max – Inv ( F ) = F ∧ [ Act ] Inv ( F ) for F ∈ HMF – s | = Inv ( F ) if all states reachable from s satisfy F • Now: formalise argument and prove its correctness (for arbitrary LTSs) • Let inv : 2 S → 2 S : T �→ � F � ∩ [ · Act · ]( T ) be the corresponding semantic function • By Lemma 5.9, FIX ( inv ) = � { T ⊆ S | T ⊆ inv ( T ) } • Direct formulation of invariance property: Inv = { s ∈ S | ∀ w ∈ Act ∗ , s ′ ∈ S : s → s ′ = ⇒ s ′ ∈ � F � } w − Theorem 6.1 For every LTS ( S , Act , − → ) , Inv = FIX ( inv ) holds. Proof. on the board 7 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  13. Fixed Points and System Properties Least Fixed Points and Possibilities • Possibilities (cf. Example 4.5): min – Pos ( F ) = F ∨ � Act � Pos ( F ) – s | = Pos ( F ) if a state satisfying F is reachable from s 8 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  14. Fixed Points and System Properties Least Fixed Points and Possibilities • Possibilities (cf. Example 4.5): min – Pos ( F ) = F ∨ � Act � Pos ( F ) – s | = Pos ( F ) if a state satisfying F is reachable from s • Now: formalise argument and prove its correctness (for arbitrary LTSs) 8 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  15. Fixed Points and System Properties Least Fixed Points and Possibilities • Possibilities (cf. Example 4.5): min – Pos ( F ) = F ∨ � Act � Pos ( F ) – s | = Pos ( F ) if a state satisfying F is reachable from s • Now: formalise argument and prove its correctness (for arbitrary LTSs) • Let pos : 2 S → 2 S : T �→ � F � ∪ �· Act ·� ( T ) be the corresponding semantic function • By Lemma 5.9, fix ( pos ) = � { T ⊆ S | pos ( T ) ⊆ T } 8 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  16. Fixed Points and System Properties Least Fixed Points and Possibilities • Possibilities (cf. Example 4.5): min – Pos ( F ) = F ∨ � Act � Pos ( F ) – s | = Pos ( F ) if a state satisfying F is reachable from s • Now: formalise argument and prove its correctness (for arbitrary LTSs) • Let pos : 2 S → 2 S : T �→ � F � ∪ �· Act ·� ( T ) be the corresponding semantic function • By Lemma 5.9, fix ( pos ) = � { T ⊆ S | pos ( T ) ⊆ T } • Direct formulation of possibility property: Pos = { s ∈ S | ∃ w ∈ Act ∗ , s ′ ∈ � F � : s w → s ′ } − 8 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

  17. Fixed Points and System Properties Least Fixed Points and Possibilities • Possibilities (cf. Example 4.5): min – Pos ( F ) = F ∨ � Act � Pos ( F ) – s | = Pos ( F ) if a state satisfying F is reachable from s • Now: formalise argument and prove its correctness (for arbitrary LTSs) • Let pos : 2 S → 2 S : T �→ � F � ∪ �· Act ·� ( T ) be the corresponding semantic function • By Lemma 5.9, fix ( pos ) = � { T ⊆ S | pos ( T ) ⊆ T } • Direct formulation of possibility property: Pos = { s ∈ S | ∃ w ∈ Act ∗ , s ′ ∈ � F � : s w → s ′ } − Theorem 6.2 For every LTS ( S , Act , − → ) , Pos = fix ( pos ) holds. 8 of 19 Concurrency Theory Winter Semester 2019/20 Lecture 6: Mutually Recursive Equational Systems

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