Axiomatic Characterisation A set of terms U is called meaningless if it satisfies a number of axioms. 5,6 1. U is closed under rewriting. 2. If a redex t overlaps a subterm in U , then t ∈ U . 3. U is closed under substitution. (for λ -calculus) 4. If t root-active/hypercollapsing, then t ∈ U . U 5. If s ↔ t , then s ∈ U if and only if t ∈ U . 5 Z. M. Ariola et al. “Syntactic definitions of undefined: On defining the undefined”. In: Theoretical Aspects of Computer Software . 1994. 6 R. Kennaway, V. van Oostrom, and F.-J. de Vries. “Meaningless Terms in Rewriting”. In: J. Funct. Logic Programming (1999). 9 / 32
Properties of B¨ ohm Reduction ◮ Let R be an orthogonal TRS, and U a set of meaningless terms. ◮ Define B = R ∪ { t → ⊥ | t ∈ U ⊥ \ {⊥}} 10 / 32
Properties of B¨ ohm Reduction ◮ Let R be an orthogonal TRS, and U a set of meaningless terms. ◮ Define B = R ∪ { t → ⊥ | t ∈ U ⊥ \ {⊥}} Theorem ◮ B is infinitarily confluent, i.e. t 1 և B t ։ B t 2 implies t 1 ։ B t ′ և B t 2 . ◮ B is infinitarily normalising, i.e. for each term t there is a reduction t ։ B t ′ to a normal form. 10 / 32
Properties of B¨ ohm Reduction ◮ Let R be an orthogonal TRS, and U a set of meaningless terms. ◮ Define B = R ∪ { t → ⊥ | t ∈ U ⊥ \ {⊥}} Theorem ◮ B is infinitarily confluent, i.e. t 1 և B t ։ B t 2 implies t 1 ։ B t ′ և B t 2 . ◮ B is infinitarily normalising, i.e. for each term t there is a reduction t ։ B t ′ to a normal form. Corollary Each term has a unique infinitary normal form in B (called B¨ ohm tree). 10 / 32
Partial Order Infinitary Rewriting
Partial Order Infinitary Rewriting ◮ Alternative characterisation of B¨ ohm reduction ◮ Changes the notion of convergence instead of adding rules 7 B. “Partial Order Infinitary Term Rewriting”. In: Logical Methods in Computer Science (2014). 11 / 32
Partial Order Infinitary Rewriting ◮ Alternative characterisation of B¨ ohm reduction ◮ Changes the notion of convergence instead of adding rules The Good & The Bad + less ad hoc + no need for infinitely many reduction rules - captures only a particular set of meaningless terms 7 B. “Partial Order Infinitary Term Rewriting”. In: Logical Methods in Computer Science (2014). 11 / 32
Recap: Strong Convergence f a R = { a → g ( a ) } 12 / 32
Recap: Strong Convergence f a R = { a → g ( a ) } 12 / 32
Recap: Strong Convergence f f g a a R = { a → g ( a ) } 12 / 32
Recap: Strong Convergence f f g a a R = { a → g ( a ) } 12 / 32
Recap: Strong Convergence f f f g g a g a a R = { a → g ( a ) } 12 / 32
Recap: Strong Convergence f f f g g a g a a R = { a → g ( a ) } 12 / 32
Recap: Strong Convergence f f f f g g g a g g a g a a R = { a → g ( a ) } 12 / 32
Recap: Strong Convergence f f f f f g g g g a g g g a g g a g a R = { a → g ( a ) } a 12 / 32
Recap: Strong Convergence f f f f f g g g g a g g g a g g a g a R = { a → g ( a ) } a 12 / 32
Recap: Strong Convergence f f f f f g g g g a g g g a g g a g a R = { a → g ( a ) } a f ( a ) ։ ω R f ( g ω ) 12 / 32
Example: Non-Convergence f a h b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f a h b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f a a h h g b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f a a h h g b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f a a h h g b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f f g a a h h h g g a b b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f f g a a h h h g g a b b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f f g a a h h h g g a b b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f f f g g a a h h h h g g g a a b g b b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f f f f g g g a a h h h h h g g g g g a a b g g a b b b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f f f f . . . g g g a a h h h h h g g g g g a a b g g a b b b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Example: Non-Convergence f f f f f . . . g g g a a h h h h h g g g g g a a b g g a b b b b � a → g ( a ) R = h ( x ) → h ( g ( x )) 13 / 32
Partial Order Convergence f f f f f f . . . g g g g a a h h h h h h g g g g g g g a a b g g g a a b b b b b 14 / 32
Partial Order Convergence f f f f f f . . . g g g g a a h h h h h h g g g g g g g a a b g g g a a b b f b b b eventually stable: g g 14 / 32
Partial Order Convergence f f f f f f . . . g g g g a a h h h h h h g g g g g g g a a b g g g a a b b f b b b p -converges to g ⊥ g 14 / 32
How does it work? (I) Partial order on terms ◮ partial terms: terms with additional constant ⊥ ◮ partial order ≤ ⊥ reads as: “is less defined than” ◮ ⊥ ≤ ⊥ t , ◮ s ≤ ⊥ t = ⇒ f ( s ) ≤ ⊥ f ( t ) ◮ e.g. f ( ⊥ , g ( x )) ≤ ⊥ f ( y , g ( x )) ◮ ≤ ⊥ is a complete semilattice (= cpo + glbs of non-empty sets) 15 / 32
How does it work? (II) Convergence: limit inferior lim inf ι → α t ι = � � β ≤ ι<α t ι β<α 16 / 32
How does it work? (II) Convergence: limit inferior lim inf ι → α t ι = � � β ≤ ι<α t ι β<α ◮ intuition: eventual persistence of nodes in the tree ◮ strong convergence: limit inferior of the contexts of the reduction 16 / 32
Partial Order Convergence f f f f f f . . . g g g g a a h h h h h h g g g g g g g a a b g g g a a b b b b b 17 / 32
Partial Order Convergence f f f f f f . . . g g g g a a h h h h h h g g g g g g g a a b g g g a a b b f b b b eventually stable: g g 17 / 32
Partial Order Convergence f f f f f f . . . g g g g a a h h h h h h g g g g g g g a a b g g g a a b b f b b b p -converges to g ⊥ g 17 / 32
Properties of Orthogonal TRS property metric B¨ ohm red. compression ✔ ✔ finite approx. ✔ ✔ developments ✘ ✔ inf. confluence ✘ ✔ inf. normalisation ✘ ✔ 18 / 32
Properties of Orthogonal TRS property metric B¨ ohm red. part. order compression ✔ ✔ ✔ finite approx. ✔ ✔ ✔ developments ✘ ✔ ✔ inf. confluence ✘ ✔ ✔ inf. normalisation ✘ ✔ ✔ 18 / 32
Partial Order vs. B¨ ohm Reduction Theorem If R is an orthogonal TRS and s , t total terms, then s ։ p R t iff s ։ m R t . 19 / 32
Partial Order vs. B¨ ohm Reduction Theorem If R is an orthogonal TRS and s , t total terms, then s ։ p R t iff s ։ m R t . Theorem If R is an orthogonal TRS and B the B¨ ohm extension of R (w.r.t. root-active terms), then s ։ p R t iff s ։ m B t . 19 / 32
Term Graph Rewriting
From Terms to Term Graphs f ( g ( a ) , h ( g ( a ) , a )) 20 / 32
From Terms to Term Graphs f g h g a a a f ( g ( a ) , h ( g ( a ) , a )) 20 / 32
From Terms to Term Graphs f f g g h h g a a a a f ( g ( a ) , h ( g ( a ) , a )) 20 / 32
From Terms to Term Graphs f f unravel g g h h g a a a a f ( g ( a ) , h ( g ( a ) , a )) 20 / 32
From Terms to Term Graphs f f unravel g g h h g a a a a a → b 20 / 32
From Terms to Term Graphs f f unravel g g h h g a a b a a → b 20 / 32
From Terms to Term Graphs f f unravel g g h h g b b b b a → b 20 / 32
From Terms to Term Graphs f f g g h h g b b b b 20 / 32
Recommend
More recommend