Termination proof
1: switching to dependency pairs
The following set of initial dependency pairs has been identified.
average#(
s(
x
)
,
y
)
|
→ |
average#(
x
,
s(
y
)
)
|
average#(
x
,
s(
s(
s(
y
)
)
)
)
|
→ |
average#(
s(
x
)
,
y
)
|
1.1: reduction pair processor
Using the following reduction pair
Linear polynomial
interpretation over
the naturals
[average#
(x1, x2)
]
|
= |
x1 + x2
|
[s
(x1)
]
|
= |
x1
+
2
|
[0]
|
= |
0
|
[average
(x1, x2)
]
|
= |
x1 + x2
+
1
|
[f(x1, ..., xn)]
|
= |
x1 + ... + xn + 1
|
for all other symbols f of arity n
|
one remains with the following pair(s).
average#(
s(
x
)
,
y
)
|
→ |
average#(
x
,
s(
y
)
)
|
1.1.1: reduction pair processor
Using the following reduction pair
Linear polynomial
interpretation over
the naturals
[average#
(x1, x2)
]
|
= |
x1
|
[s
(x1)
]
|
= |
x1
+
2
|
[0]
|
= |
3
|
[average
(x1, x2)
]
|
= |
2
x1 + x2
|
[f(x1, ..., xn)]
|
= |
x1 + ... + xn + 1
|
for all other symbols f of arity n
|
one remains with the following pair(s).
1.1.1.1: P is empty
All dependency pairs have been removed.