Certification Problem
Input (TPDB SRS_Standard/Trafo_06/dup09)
The rewrite relation of the following TRS is considered.
0(0(*(*(x1)))) |
→ |
*(*(1(1(x1)))) |
(1) |
1(1(*(*(x1)))) |
→ |
0(0(#(#(x1)))) |
(2) |
#(#(0(0(x1)))) |
→ |
0(0(#(#(x1)))) |
(3) |
#(#(1(1(x1)))) |
→ |
1(1(#(#(x1)))) |
(4) |
#(#($($(x1)))) |
→ |
*(*($($(x1)))) |
(5) |
#(#(#(#(x1)))) |
→ |
#(#(x1)) |
(6) |
#(#(*(*(x1)))) |
→ |
*(*(x1)) |
(7) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by AProVE @ termCOMP 2023)
1 String Reversal
Since only unary symbols occur, one can reverse all terms and obtains the TRS
*(*(0(0(x1)))) |
→ |
1(1(*(*(x1)))) |
(8) |
*(*(1(1(x1)))) |
→ |
#(#(0(0(x1)))) |
(9) |
0(0(#(#(x1)))) |
→ |
#(#(0(0(x1)))) |
(10) |
1(1(#(#(x1)))) |
→ |
#(#(1(1(x1)))) |
(11) |
$($(#(#(x1)))) |
→ |
$($(*(*(x1)))) |
(12) |
#(#(#(#(x1)))) |
→ |
#(#(x1)) |
(6) |
*(*(#(#(x1)))) |
→ |
*(*(x1)) |
(13) |
1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[*(x1)] |
= |
1 · x1 + 1 |
[0(x1)] |
= |
1 · x1
|
[1(x1)] |
= |
1 · x1
|
[#(x1)] |
= |
1 · x1 + 1 |
[$(x1)] |
= |
1 · x1
|
all of the following rules can be deleted.
#(#(#(#(x1)))) |
→ |
#(#(x1)) |
(6) |
*(*(#(#(x1)))) |
→ |
*(*(x1)) |
(13) |
1.1.1 Dependency Pair Transformation
The following set of initial dependency pairs has been identified.
*#(*(0(0(x1)))) |
→ |
1#(1(*(*(x1)))) |
(14) |
*#(*(0(0(x1)))) |
→ |
1#(*(*(x1))) |
(15) |
*#(*(0(0(x1)))) |
→ |
*#(*(x1)) |
(16) |
*#(*(0(0(x1)))) |
→ |
*#(x1) |
(17) |
*#(*(1(1(x1)))) |
→ |
0#(0(x1)) |
(18) |
*#(*(1(1(x1)))) |
→ |
0#(x1) |
(19) |
0#(0(#(#(x1)))) |
→ |
0#(0(x1)) |
(20) |
0#(0(#(#(x1)))) |
→ |
0#(x1) |
(21) |
1#(1(#(#(x1)))) |
→ |
1#(1(x1)) |
(22) |
1#(1(#(#(x1)))) |
→ |
1#(x1) |
(23) |
$#($(#(#(x1)))) |
→ |
$#($(*(*(x1)))) |
(24) |
$#($(#(#(x1)))) |
→ |
$#(*(*(x1))) |
(25) |
$#($(#(#(x1)))) |
→ |
*#(*(x1)) |
(26) |
$#($(#(#(x1)))) |
→ |
*#(x1) |
(27) |
1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 4
components.
-
The
1st
component contains the
pair
$#($(#(#(x1)))) |
→ |
$#(*(*(x1))) |
(25) |
$#($(#(#(x1)))) |
→ |
$#($(*(*(x1)))) |
(24) |
1.1.1.1.1 Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[$#(x1)] |
= |
1 · x1
|
[$(x1)] |
= |
1 + 1 · x1
|
[#(x1)] |
= |
1 |
[*(x1)] |
= |
1 |
[0(x1)] |
= |
0 |
[1(x1)] |
= |
1 · x1
|
together with the usable
rules
*(*(0(0(x1)))) |
→ |
1(1(*(*(x1)))) |
(8) |
*(*(1(1(x1)))) |
→ |
#(#(0(0(x1)))) |
(9) |
$($(#(#(x1)))) |
→ |
$($(*(*(x1)))) |
(12) |
1(1(#(#(x1)))) |
→ |
#(#(1(1(x1)))) |
(11) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
$#($(#(#(x1)))) |
→ |
$#(*(*(x1))) |
(25) |
could be deleted.
1.1.1.1.1.1 Monotonic Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[*(x1)] |
= |
2 · x1
|
[0(x1)] |
= |
2 + 3 · x1
|
[1(x1)] |
= |
3 + 3 · x1
|
[#(x1)] |
= |
2 + 2 · x1
|
[$(x1)] |
= |
2 · x1
|
[$#(x1)] |
= |
2 · x1
|
the
pair
$#($(#(#(x1)))) |
→ |
$#($(*(*(x1)))) |
(24) |
and
the
rules
*(*(0(0(x1)))) |
→ |
1(1(*(*(x1)))) |
(8) |
*(*(1(1(x1)))) |
→ |
#(#(0(0(x1)))) |
(9) |
0(0(#(#(x1)))) |
→ |
#(#(0(0(x1)))) |
(10) |
1(1(#(#(x1)))) |
→ |
#(#(1(1(x1)))) |
(11) |
$($(#(#(x1)))) |
→ |
$($(*(*(x1)))) |
(12) |
could be deleted.
1.1.1.1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
*#(*(0(0(x1)))) |
→ |
*#(x1) |
(17) |
*#(*(0(0(x1)))) |
→ |
*#(*(x1)) |
(16) |
1.1.1.1.2 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[*(x1)] |
= |
1 · x1
|
[0(x1)] |
= |
1 · x1
|
[1(x1)] |
= |
1 · x1
|
[#(x1)] |
= |
1 · x1
|
[*#(x1)] |
= |
1 · x1
|
together with the usable
rules
*(*(0(0(x1)))) |
→ |
1(1(*(*(x1)))) |
(8) |
*(*(1(1(x1)))) |
→ |
#(#(0(0(x1)))) |
(9) |
0(0(#(#(x1)))) |
→ |
#(#(0(0(x1)))) |
(10) |
1(1(#(#(x1)))) |
→ |
#(#(1(1(x1)))) |
(11) |
(w.r.t. the implicit argument filter of the reduction pair),
the
rule
could be deleted.
1.1.1.1.2.1 Monotonic Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[*(x1)] |
= |
1 · x1
|
[0(x1)] |
= |
2 + 2 · x1
|
[1(x1)] |
= |
2 + 2 · x1
|
[#(x1)] |
= |
1 · x1
|
[*#(x1)] |
= |
2 · x1
|
the
pairs
*#(*(0(0(x1)))) |
→ |
*#(x1) |
(17) |
*#(*(0(0(x1)))) |
→ |
*#(*(x1)) |
(16) |
and
no rules
could be deleted.
1.1.1.1.2.1.1 P is empty
There are no pairs anymore.
-
The
3rd
component contains the
pair
0#(0(#(#(x1)))) |
→ |
0#(x1) |
(21) |
0#(0(#(#(x1)))) |
→ |
0#(0(x1)) |
(20) |
1.1.1.1.3 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[0(x1)] |
= |
1 · x1
|
[#(x1)] |
= |
1 · x1
|
[0#(x1)] |
= |
1 · x1
|
together with the usable
rule
0(0(#(#(x1)))) |
→ |
#(#(0(0(x1)))) |
(10) |
(w.r.t. the implicit argument filter of the reduction pair),
the
rule
could be deleted.
1.1.1.1.3.1 Switch to Innermost Termination
The TRS does not have overlaps with the pairs and is locally confluent:
20
Hence, it suffices to show innermost termination in the following.
1.1.1.1.3.1.1 Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[0#(x1)] |
= |
1 · x1
|
[0(x1)] |
= |
1 · x1
|
[#(x1)] |
= |
1 + 1 · x1
|
the
pairs
0#(0(#(#(x1)))) |
→ |
0#(x1) |
(21) |
0#(0(#(#(x1)))) |
→ |
0#(0(x1)) |
(20) |
could be deleted.
1.1.1.1.3.1.1.1 P is empty
There are no pairs anymore.
-
The
4th
component contains the
pair
1#(1(#(#(x1)))) |
→ |
1#(x1) |
(23) |
1#(1(#(#(x1)))) |
→ |
1#(1(x1)) |
(22) |
1.1.1.1.4 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[1(x1)] |
= |
1 · x1
|
[#(x1)] |
= |
1 · x1
|
[1#(x1)] |
= |
1 · x1
|
together with the usable
rule
1(1(#(#(x1)))) |
→ |
#(#(1(1(x1)))) |
(11) |
(w.r.t. the implicit argument filter of the reduction pair),
the
rule
could be deleted.
1.1.1.1.4.1 Switch to Innermost Termination
The TRS does not have overlaps with the pairs and is locally confluent:
20
Hence, it suffices to show innermost termination in the following.
1.1.1.1.4.1.1 Monotonic Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[1(x1)] |
= |
1 + 2 · x1
|
[#(x1)] |
= |
1 · x1
|
[1#(x1)] |
= |
2 · x1
|
the
pair
1#(1(#(#(x1)))) |
→ |
1#(x1) |
(23) |
and
no rules
could be deleted.
1.1.1.1.4.1.1.1 Monotonic Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[1(x1)] |
= |
3 · x1
|
[#(x1)] |
= |
3 + 3 · x1
|
[1#(x1)] |
= |
2 · x1
|
the
pair
1#(1(#(#(x1)))) |
→ |
1#(1(x1)) |
(22) |
and
the
rule
1(1(#(#(x1)))) |
→ |
#(#(1(1(x1)))) |
(11) |
could be deleted.
1.1.1.1.4.1.1.1.1 P is empty
There are no pairs anymore.