infinitary term graph rewriting is simple sound and
play

Infinitary Term Graph Rewriting is Simple, Sound and Complete - PowerPoint PPT Presentation

Infinitary Term Graph Rewriting is Simple, Sound and Complete Patrick Bahr paba@diku.dk University of Copenhagen Department of Computer Science 23rd International Conference on Rewriting Techniques and Applications, Nagoya, Japan, March May


  1. Infinitary Term Graph Rewriting is Simple, Sound and Complete Patrick Bahr paba@diku.dk University of Copenhagen Department of Computer Science 23rd International Conference on Rewriting Techniques and Applications, Nagoya, Japan, March May 30 – June 1, 2012

  2. Infinitary Rewriting vs. Term Graph Rewriting Pick one to avoid the other. 2

  3. Infinitary Rewriting vs. Term Graph Rewriting Pick one to avoid the other. Pick term graph rewriting finite representation of infinite terms (via cycles) finite representation of infinite rewrite sequences f g h b 2

  4. Infinitary Rewriting vs. Term Graph Rewriting Pick one to avoid the other. Pick term graph rewriting Pick infinitary rewriting finite representation of avoid dealing with term graphs infinite terms (via cycles) work on the unravelling instead finite representation of infinite rewrite sequences f g h f g b f g g b h h g b b c 2

  5. Infinitary Term Graph Rewriting – What is it for? A common formalism study correspondences between infinitary TRSs and finitary GRSs 3

  6. Infinitary Term Graph Rewriting – What is it for? A common formalism study correspondences between infinitary TRSs and finitary GRSs Lazy evaluation infinitary term rewriting only covers non-strictness however: lazy evaluation = non-strictness + sharing 3

  7. Infinitary Term Graph Rewriting – What is it for? A common formalism study correspondences between infinitary TRSs and finitary GRSs Lazy evaluation infinitary term rewriting only covers non-strictness however: lazy evaluation = non-strictness + sharing towards infinitary lambda calculi with letrec Ariola & Blom. Skew confluence and the lambda calculus with letrec. the calculus is non-confluent but there is a notion of infinite normal forms 3

  8. Approach Previous approach (RTA ’11) weak convergence two modes of convergence: metric & partial order 4

  9. Approach Previous approach (RTA ’11) weak convergence two modes of convergence: metric & partial order ◮ correspondence between metric & partial order approach result: ◮ soundness w.r.t. infinitary term rewriting (sorta kinda) 4

  10. Approach Previous approach (RTA ’11) weak convergence two modes of convergence: metric & partial order ◮ correspondence between metric & partial order approach result: ◮ soundness w.r.t. infinitary term rewriting (sorta kinda) problem: complicated; difficult to analyse; completeness ?? 4

  11. Approach Previous approach (RTA ’11) weak convergence two modes of convergence: metric & partial order ◮ correspondence between metric & partial order approach result: ◮ soundness w.r.t. infinitary term rewriting (sorta kinda) problem: complicated; difficult to analyse; completeness ?? Our new approach strong convergence two modes of convergence: metric & partial order 4

  12. Approach Previous approach (RTA ’11) weak convergence two modes of convergence: metric & partial order ◮ correspondence between metric & partial order approach result: ◮ soundness w.r.t. infinitary term rewriting (sorta kinda) problem: complicated; difficult to analyse; completeness ?? Our new approach strong convergence two modes of convergence: metric & partial order but: simpler (ignoring the sharing as much as possible) 4

  13. Approach Previous approach (RTA ’11) weak convergence two modes of convergence: metric & partial order ◮ correspondence between metric & partial order approach result: ◮ soundness w.r.t. infinitary term rewriting (sorta kinda) problem: complicated; difficult to analyse; completeness ?? Our new approach strong convergence two modes of convergence: metric & partial order but: simpler (ignoring the sharing as much as possible) ◮ correspondence between metric & partial order approach result: ◮ soundness w.r.t. infinitary term rewriting ◮ completeness w.r.t. infinitary term rewriting 4

  14. Approach Previous approach (RTA ’11) weak convergence two modes of convergence: metric & partial order ◮ correspondence between metric & partial order approach result: ◮ soundness w.r.t. infinitary term rewriting (sorta kinda) problem: complicated; difficult to analyse; completeness ?? Our new approach strong convergence = ⇒ independence from the rewriting formalism two modes of convergence: metric & partial order but: simpler (ignoring the sharing as much as possible) ◮ correspondence between metric & partial order approach result: ◮ soundness w.r.t. infinitary term rewriting ◮ completeness w.r.t. infinitary term rewriting 4

  15. Outline Introduction 1 Goals A Different Approach Modes of Convergence on Term Graphs 2 Metric Approach Partial Order Approach Metric vs. Partial Order Approach 5

  16. Metric Infinitary Term Rewriting Complete metric on terms terms are endowed with a complete metric in order to formalise the convergence of infinite reductions. metric distance between terms: d ( s , t ) = 2 − sim ( s , t ) sim ( s , t ) = maximum depth d s.t. s and t coincide up to depth d 6

  17. Metric Infinitary Term Rewriting Complete metric on terms terms are endowed with a complete metric in order to formalise the convergence of infinite reductions. metric distance between terms: d ( s , t ) = 2 − sim ( s , t ) sim ( s , t ) = maximum depth d s.t. s and t coincide up to depth d Strong convergence via metric d and redex depth convergence in the metric space ( T ∞ (Σ) , d ) depth of the differences between the terms has to tend to infinity � 6

  18. Metric Infinitary Term Rewriting Complete metric on terms terms are endowed with a complete metric in order to formalise the convergence of infinite reductions. metric distance between terms: d ( s , t ) = 2 − sim ( s , t ) sim ( s , t ) = maximum depth d s.t. s and t coincide up to depth d Strong convergence via metric d and redex depth convergence in the metric space ( T ∞ (Σ) , d ) depth of the differences between the terms has to tend to infinity � depth of redexes has to tend to infinity 6

  19. Example: Metric Convergence in TRSs from 0 from ( x ) → x :: from ( s ( x )) 7

  20. Example: Metric Convergence in TRSs :: from from 0 0 1 from ( x ) → x :: from ( s ( x )) 7

  21. Example: Metric Convergence in TRSs :: from + :: 0 0 from 1 2 from ( x ) → x :: from ( s ( x )) 7

  22. Example: Metric Convergence in TRSs :: from 1 level + :: 0 0 from 1 2 from ( x ) → x :: from ( s ( x )) 7

  23. Example: Metric Convergence in TRSs :: from 1 level + :: 0 0 :: 1 from 2 3 from ( x ) → x :: from ( s ( x )) 7

  24. Example: Metric Convergence in TRSs :: from + 2 levels :: 0 0 :: 1 from 2 3 from ( x ) → x :: from ( s ( x )) 7

  25. Example: Metric Convergence in TRSs :: from + 2 levels :: 0 0 :: 1 :: 2 from 3 4 from ( x ) → x :: from ( s ( x )) 7

  26. Example: Metric Convergence in TRSs :: from + :: 3 levels 0 0 :: 1 :: 2 from 3 4 from ( x ) → x :: from ( s ( x )) 7

  27. Example: Metric Convergence in TRSs :: from ω :: 3 levels 0 0 :: 1 :: 2 :: 3 4 from ( x ) → x :: from ( s ( x )) 7

  28. Example: Metric Convergence in TRSs :: from ω :: 0 0 :: 1 :: 2 :: 3 4 from ( x ) → x :: from ( s ( x )) 7

  29. A Metric on Term Graphs Depth of a node = length of a shortest path from the root to the node. 8

  30. A Metric on Term Graphs Depth of a node = length of a shortest path from the root to the node. Truncation of term graphs The truncation g † d is obtained from g by relabelling all nodes at depth d with ⊥ , and removing all nodes that thus become unreachable from the root. 8

  31. A Metric on Term Graphs Depth of a node = length of a shortest path from the root to the node. Truncation of term graphs The truncation g † d is obtained from g by relabelling all nodes at depth d with ⊥ , and removing all nodes that thus become unreachable from the root. The simple metric on term graphs d † ( g , h ) = 2 − sim † ( g , h ) Where sim † ( g , h ) = maximum depth d s.t. g † d ∼ = h † d . 8

  32. A Metric on Term Graphs Depth of a node = length of a shortest path from the root to the node. Truncation of term graphs The truncation g † d is obtained from g by relabelling all nodes at depth d with ⊥ , and removing all nodes that thus become unreachable from the root. The simple metric on term graphs d † ( g , h ) = 2 − sim † ( g , h ) Where sim † ( g , h ) = maximum depth d s.t. g † d ∼ = h † d . Strong convergence via metric d † and redex depth convergence in the metric space ( G ∞ C (Σ) , d † ) depth of redexes has to tend to infinity 8

  33. Soundness & Completeness 9

  34. Soundness & Completeness soundness of metric convergence m g R h U ( · ) U ( R ) s 9

  35. Soundness & Completeness soundness of metric convergence m g R h U ( · ) U ( · ) m U ( R ) s t 9

  36. Soundness & Completeness Theorem (soundness of metric convergence) For every left-linear, left-finite GRS R we have m g R h U ( · ) U ( · ) m U ( R ) s t 9

  37. Soundness & Completeness Theorem (soundness of metric convergence) For every left-linear, left-finite GRS R we have m g R h U ( · ) U ( · ) m U ( R ) s t Completeness property m U ( R ) s t U ( · ) g R 9

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