(0) Obligation:
Runtime Complexity TRS:
The TRS R consists of the following rules:
top1(free(x), y) → top2(check(new(x)), y)
top1(free(x), y) → top2(new(x), check(y))
top1(free(x), y) → top2(check(x), new(y))
top1(free(x), y) → top2(x, check(new(y)))
top2(x, free(y)) → top1(check(new(x)), y)
top2(x, free(y)) → top1(new(x), check(y))
top2(x, free(y)) → top1(check(x), new(y))
top2(x, free(y)) → top1(x, check(new(y)))
new(free(x)) → free(new(x))
old(free(x)) → free(old(x))
new(serve) → free(serve)
old(serve) → free(serve)
check(free(x)) → free(check(x))
check(new(x)) → new(check(x))
check(old(x)) → old(check(x))
check(old(x)) → old(x)
Rewrite Strategy: FULL
(1) RenamingProof (EQUIVALENT transformation)
Renamed function symbols to avoid clashes with predefined symbol.
(2) Obligation:
Runtime Complexity Relative TRS:
The TRS R consists of the following rules:
top1(free(x), y) → top2(check(new(x)), y)
top1(free(x), y) → top2(new(x), check(y))
top1(free(x), y) → top2(check(x), new(y))
top1(free(x), y) → top2(x, check(new(y)))
top2(x, free(y)) → top1(check(new(x)), y)
top2(x, free(y)) → top1(new(x), check(y))
top2(x, free(y)) → top1(check(x), new(y))
top2(x, free(y)) → top1(x, check(new(y)))
new(free(x)) → free(new(x))
old(free(x)) → free(old(x))
new(serve) → free(serve)
old(serve) → free(serve)
check(free(x)) → free(check(x))
check(new(x)) → new(check(x))
check(old(x)) → old(check(x))
check(old(x)) → old(x)
S is empty.
Rewrite Strategy: FULL
(3) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)
Infered types.
(4) Obligation:
TRS:
Rules:
top1(free(x), y) → top2(check(new(x)), y)
top1(free(x), y) → top2(new(x), check(y))
top1(free(x), y) → top2(check(x), new(y))
top1(free(x), y) → top2(x, check(new(y)))
top2(x, free(y)) → top1(check(new(x)), y)
top2(x, free(y)) → top1(new(x), check(y))
top2(x, free(y)) → top1(check(x), new(y))
top2(x, free(y)) → top1(x, check(new(y)))
new(free(x)) → free(new(x))
old(free(x)) → free(old(x))
new(serve) → free(serve)
old(serve) → free(serve)
check(free(x)) → free(check(x))
check(new(x)) → new(check(x))
check(old(x)) → old(check(x))
check(old(x)) → old(x)
Types:
top1 :: free:serve → free:serve → top1:top2
free :: free:serve → free:serve
top2 :: free:serve → free:serve → top1:top2
check :: free:serve → free:serve
new :: free:serve → free:serve
old :: free:serve → free:serve
serve :: free:serve
hole_top1:top21_0 :: top1:top2
hole_free:serve2_0 :: free:serve
gen_free:serve3_0 :: Nat → free:serve
(5) OrderProof (LOWER BOUND(ID) transformation)
Heuristically decided to analyse the following defined symbols:
top1,
top2,
check,
new,
oldThey will be analysed ascendingly in the following order:
top1 = top2
check < top1
new < top1
check < top2
new < top2
new < check
old < check
(6) Obligation:
TRS:
Rules:
top1(
free(
x),
y) →
top2(
check(
new(
x)),
y)
top1(
free(
x),
y) →
top2(
new(
x),
check(
y))
top1(
free(
x),
y) →
top2(
check(
x),
new(
y))
top1(
free(
x),
y) →
top2(
x,
check(
new(
y)))
top2(
x,
free(
y)) →
top1(
check(
new(
x)),
y)
top2(
x,
free(
y)) →
top1(
new(
x),
check(
y))
top2(
x,
free(
y)) →
top1(
check(
x),
new(
y))
top2(
x,
free(
y)) →
top1(
x,
check(
new(
y)))
new(
free(
x)) →
free(
new(
x))
old(
free(
x)) →
free(
old(
x))
new(
serve) →
free(
serve)
old(
serve) →
free(
serve)
check(
free(
x)) →
free(
check(
x))
check(
new(
x)) →
new(
check(
x))
check(
old(
x)) →
old(
check(
x))
check(
old(
x)) →
old(
x)
Types:
top1 :: free:serve → free:serve → top1:top2
free :: free:serve → free:serve
top2 :: free:serve → free:serve → top1:top2
check :: free:serve → free:serve
new :: free:serve → free:serve
old :: free:serve → free:serve
serve :: free:serve
hole_top1:top21_0 :: top1:top2
hole_free:serve2_0 :: free:serve
gen_free:serve3_0 :: Nat → free:serve
Generator Equations:
gen_free:serve3_0(0) ⇔ serve
gen_free:serve3_0(+(x, 1)) ⇔ free(gen_free:serve3_0(x))
The following defined symbols remain to be analysed:
new, top1, top2, check, old
They will be analysed ascendingly in the following order:
top1 = top2
check < top1
new < top1
check < top2
new < top2
new < check
old < check
(7) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
new(
gen_free:serve3_0(
n5_0)) →
gen_free:serve3_0(
+(
1,
n5_0)), rt ∈ Ω(1 + n5
0)
Induction Base:
new(gen_free:serve3_0(0)) →RΩ(1)
free(serve)
Induction Step:
new(gen_free:serve3_0(+(n5_0, 1))) →RΩ(1)
free(new(gen_free:serve3_0(n5_0))) →IH
free(gen_free:serve3_0(+(1, c6_0)))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(8) Complex Obligation (BEST)
(9) Obligation:
TRS:
Rules:
top1(
free(
x),
y) →
top2(
check(
new(
x)),
y)
top1(
free(
x),
y) →
top2(
new(
x),
check(
y))
top1(
free(
x),
y) →
top2(
check(
x),
new(
y))
top1(
free(
x),
y) →
top2(
x,
check(
new(
y)))
top2(
x,
free(
y)) →
top1(
check(
new(
x)),
y)
top2(
x,
free(
y)) →
top1(
new(
x),
check(
y))
top2(
x,
free(
y)) →
top1(
check(
x),
new(
y))
top2(
x,
free(
y)) →
top1(
x,
check(
new(
y)))
new(
free(
x)) →
free(
new(
x))
old(
free(
x)) →
free(
old(
x))
new(
serve) →
free(
serve)
old(
serve) →
free(
serve)
check(
free(
x)) →
free(
check(
x))
check(
new(
x)) →
new(
check(
x))
check(
old(
x)) →
old(
check(
x))
check(
old(
x)) →
old(
x)
Types:
top1 :: free:serve → free:serve → top1:top2
free :: free:serve → free:serve
top2 :: free:serve → free:serve → top1:top2
check :: free:serve → free:serve
new :: free:serve → free:serve
old :: free:serve → free:serve
serve :: free:serve
hole_top1:top21_0 :: top1:top2
hole_free:serve2_0 :: free:serve
gen_free:serve3_0 :: Nat → free:serve
Lemmas:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
Generator Equations:
gen_free:serve3_0(0) ⇔ serve
gen_free:serve3_0(+(x, 1)) ⇔ free(gen_free:serve3_0(x))
The following defined symbols remain to be analysed:
old, top1, top2, check
They will be analysed ascendingly in the following order:
top1 = top2
check < top1
check < top2
old < check
(10) RewriteLemmaProof (LOWER BOUND(ID) transformation)
Proved the following rewrite lemma:
old(
gen_free:serve3_0(
n222_0)) →
gen_free:serve3_0(
+(
1,
n222_0)), rt ∈ Ω(1 + n222
0)
Induction Base:
old(gen_free:serve3_0(0)) →RΩ(1)
free(serve)
Induction Step:
old(gen_free:serve3_0(+(n222_0, 1))) →RΩ(1)
free(old(gen_free:serve3_0(n222_0))) →IH
free(gen_free:serve3_0(+(1, c223_0)))
We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).
(11) Complex Obligation (BEST)
(12) Obligation:
TRS:
Rules:
top1(
free(
x),
y) →
top2(
check(
new(
x)),
y)
top1(
free(
x),
y) →
top2(
new(
x),
check(
y))
top1(
free(
x),
y) →
top2(
check(
x),
new(
y))
top1(
free(
x),
y) →
top2(
x,
check(
new(
y)))
top2(
x,
free(
y)) →
top1(
check(
new(
x)),
y)
top2(
x,
free(
y)) →
top1(
new(
x),
check(
y))
top2(
x,
free(
y)) →
top1(
check(
x),
new(
y))
top2(
x,
free(
y)) →
top1(
x,
check(
new(
y)))
new(
free(
x)) →
free(
new(
x))
old(
free(
x)) →
free(
old(
x))
new(
serve) →
free(
serve)
old(
serve) →
free(
serve)
check(
free(
x)) →
free(
check(
x))
check(
new(
x)) →
new(
check(
x))
check(
old(
x)) →
old(
check(
x))
check(
old(
x)) →
old(
x)
Types:
top1 :: free:serve → free:serve → top1:top2
free :: free:serve → free:serve
top2 :: free:serve → free:serve → top1:top2
check :: free:serve → free:serve
new :: free:serve → free:serve
old :: free:serve → free:serve
serve :: free:serve
hole_top1:top21_0 :: top1:top2
hole_free:serve2_0 :: free:serve
gen_free:serve3_0 :: Nat → free:serve
Lemmas:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
old(gen_free:serve3_0(n222_0)) → gen_free:serve3_0(+(1, n222_0)), rt ∈ Ω(1 + n2220)
Generator Equations:
gen_free:serve3_0(0) ⇔ serve
gen_free:serve3_0(+(x, 1)) ⇔ free(gen_free:serve3_0(x))
The following defined symbols remain to be analysed:
check, top1, top2
They will be analysed ascendingly in the following order:
top1 = top2
check < top1
check < top2
(13) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol check.
(14) Obligation:
TRS:
Rules:
top1(
free(
x),
y) →
top2(
check(
new(
x)),
y)
top1(
free(
x),
y) →
top2(
new(
x),
check(
y))
top1(
free(
x),
y) →
top2(
check(
x),
new(
y))
top1(
free(
x),
y) →
top2(
x,
check(
new(
y)))
top2(
x,
free(
y)) →
top1(
check(
new(
x)),
y)
top2(
x,
free(
y)) →
top1(
new(
x),
check(
y))
top2(
x,
free(
y)) →
top1(
check(
x),
new(
y))
top2(
x,
free(
y)) →
top1(
x,
check(
new(
y)))
new(
free(
x)) →
free(
new(
x))
old(
free(
x)) →
free(
old(
x))
new(
serve) →
free(
serve)
old(
serve) →
free(
serve)
check(
free(
x)) →
free(
check(
x))
check(
new(
x)) →
new(
check(
x))
check(
old(
x)) →
old(
check(
x))
check(
old(
x)) →
old(
x)
Types:
top1 :: free:serve → free:serve → top1:top2
free :: free:serve → free:serve
top2 :: free:serve → free:serve → top1:top2
check :: free:serve → free:serve
new :: free:serve → free:serve
old :: free:serve → free:serve
serve :: free:serve
hole_top1:top21_0 :: top1:top2
hole_free:serve2_0 :: free:serve
gen_free:serve3_0 :: Nat → free:serve
Lemmas:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
old(gen_free:serve3_0(n222_0)) → gen_free:serve3_0(+(1, n222_0)), rt ∈ Ω(1 + n2220)
Generator Equations:
gen_free:serve3_0(0) ⇔ serve
gen_free:serve3_0(+(x, 1)) ⇔ free(gen_free:serve3_0(x))
The following defined symbols remain to be analysed:
top2, top1
They will be analysed ascendingly in the following order:
top1 = top2
(15) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol top2.
(16) Obligation:
TRS:
Rules:
top1(
free(
x),
y) →
top2(
check(
new(
x)),
y)
top1(
free(
x),
y) →
top2(
new(
x),
check(
y))
top1(
free(
x),
y) →
top2(
check(
x),
new(
y))
top1(
free(
x),
y) →
top2(
x,
check(
new(
y)))
top2(
x,
free(
y)) →
top1(
check(
new(
x)),
y)
top2(
x,
free(
y)) →
top1(
new(
x),
check(
y))
top2(
x,
free(
y)) →
top1(
check(
x),
new(
y))
top2(
x,
free(
y)) →
top1(
x,
check(
new(
y)))
new(
free(
x)) →
free(
new(
x))
old(
free(
x)) →
free(
old(
x))
new(
serve) →
free(
serve)
old(
serve) →
free(
serve)
check(
free(
x)) →
free(
check(
x))
check(
new(
x)) →
new(
check(
x))
check(
old(
x)) →
old(
check(
x))
check(
old(
x)) →
old(
x)
Types:
top1 :: free:serve → free:serve → top1:top2
free :: free:serve → free:serve
top2 :: free:serve → free:serve → top1:top2
check :: free:serve → free:serve
new :: free:serve → free:serve
old :: free:serve → free:serve
serve :: free:serve
hole_top1:top21_0 :: top1:top2
hole_free:serve2_0 :: free:serve
gen_free:serve3_0 :: Nat → free:serve
Lemmas:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
old(gen_free:serve3_0(n222_0)) → gen_free:serve3_0(+(1, n222_0)), rt ∈ Ω(1 + n2220)
Generator Equations:
gen_free:serve3_0(0) ⇔ serve
gen_free:serve3_0(+(x, 1)) ⇔ free(gen_free:serve3_0(x))
The following defined symbols remain to be analysed:
top1
They will be analysed ascendingly in the following order:
top1 = top2
(17) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)
Could not prove a rewrite lemma for the defined symbol top1.
(18) Obligation:
TRS:
Rules:
top1(
free(
x),
y) →
top2(
check(
new(
x)),
y)
top1(
free(
x),
y) →
top2(
new(
x),
check(
y))
top1(
free(
x),
y) →
top2(
check(
x),
new(
y))
top1(
free(
x),
y) →
top2(
x,
check(
new(
y)))
top2(
x,
free(
y)) →
top1(
check(
new(
x)),
y)
top2(
x,
free(
y)) →
top1(
new(
x),
check(
y))
top2(
x,
free(
y)) →
top1(
check(
x),
new(
y))
top2(
x,
free(
y)) →
top1(
x,
check(
new(
y)))
new(
free(
x)) →
free(
new(
x))
old(
free(
x)) →
free(
old(
x))
new(
serve) →
free(
serve)
old(
serve) →
free(
serve)
check(
free(
x)) →
free(
check(
x))
check(
new(
x)) →
new(
check(
x))
check(
old(
x)) →
old(
check(
x))
check(
old(
x)) →
old(
x)
Types:
top1 :: free:serve → free:serve → top1:top2
free :: free:serve → free:serve
top2 :: free:serve → free:serve → top1:top2
check :: free:serve → free:serve
new :: free:serve → free:serve
old :: free:serve → free:serve
serve :: free:serve
hole_top1:top21_0 :: top1:top2
hole_free:serve2_0 :: free:serve
gen_free:serve3_0 :: Nat → free:serve
Lemmas:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
old(gen_free:serve3_0(n222_0)) → gen_free:serve3_0(+(1, n222_0)), rt ∈ Ω(1 + n2220)
Generator Equations:
gen_free:serve3_0(0) ⇔ serve
gen_free:serve3_0(+(x, 1)) ⇔ free(gen_free:serve3_0(x))
No more defined symbols left to analyse.
(19) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
(20) BOUNDS(n^1, INF)
(21) Obligation:
TRS:
Rules:
top1(
free(
x),
y) →
top2(
check(
new(
x)),
y)
top1(
free(
x),
y) →
top2(
new(
x),
check(
y))
top1(
free(
x),
y) →
top2(
check(
x),
new(
y))
top1(
free(
x),
y) →
top2(
x,
check(
new(
y)))
top2(
x,
free(
y)) →
top1(
check(
new(
x)),
y)
top2(
x,
free(
y)) →
top1(
new(
x),
check(
y))
top2(
x,
free(
y)) →
top1(
check(
x),
new(
y))
top2(
x,
free(
y)) →
top1(
x,
check(
new(
y)))
new(
free(
x)) →
free(
new(
x))
old(
free(
x)) →
free(
old(
x))
new(
serve) →
free(
serve)
old(
serve) →
free(
serve)
check(
free(
x)) →
free(
check(
x))
check(
new(
x)) →
new(
check(
x))
check(
old(
x)) →
old(
check(
x))
check(
old(
x)) →
old(
x)
Types:
top1 :: free:serve → free:serve → top1:top2
free :: free:serve → free:serve
top2 :: free:serve → free:serve → top1:top2
check :: free:serve → free:serve
new :: free:serve → free:serve
old :: free:serve → free:serve
serve :: free:serve
hole_top1:top21_0 :: top1:top2
hole_free:serve2_0 :: free:serve
gen_free:serve3_0 :: Nat → free:serve
Lemmas:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
old(gen_free:serve3_0(n222_0)) → gen_free:serve3_0(+(1, n222_0)), rt ∈ Ω(1 + n2220)
Generator Equations:
gen_free:serve3_0(0) ⇔ serve
gen_free:serve3_0(+(x, 1)) ⇔ free(gen_free:serve3_0(x))
No more defined symbols left to analyse.
(22) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
(23) BOUNDS(n^1, INF)
(24) Obligation:
TRS:
Rules:
top1(
free(
x),
y) →
top2(
check(
new(
x)),
y)
top1(
free(
x),
y) →
top2(
new(
x),
check(
y))
top1(
free(
x),
y) →
top2(
check(
x),
new(
y))
top1(
free(
x),
y) →
top2(
x,
check(
new(
y)))
top2(
x,
free(
y)) →
top1(
check(
new(
x)),
y)
top2(
x,
free(
y)) →
top1(
new(
x),
check(
y))
top2(
x,
free(
y)) →
top1(
check(
x),
new(
y))
top2(
x,
free(
y)) →
top1(
x,
check(
new(
y)))
new(
free(
x)) →
free(
new(
x))
old(
free(
x)) →
free(
old(
x))
new(
serve) →
free(
serve)
old(
serve) →
free(
serve)
check(
free(
x)) →
free(
check(
x))
check(
new(
x)) →
new(
check(
x))
check(
old(
x)) →
old(
check(
x))
check(
old(
x)) →
old(
x)
Types:
top1 :: free:serve → free:serve → top1:top2
free :: free:serve → free:serve
top2 :: free:serve → free:serve → top1:top2
check :: free:serve → free:serve
new :: free:serve → free:serve
old :: free:serve → free:serve
serve :: free:serve
hole_top1:top21_0 :: top1:top2
hole_free:serve2_0 :: free:serve
gen_free:serve3_0 :: Nat → free:serve
Lemmas:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
Generator Equations:
gen_free:serve3_0(0) ⇔ serve
gen_free:serve3_0(+(x, 1)) ⇔ free(gen_free:serve3_0(x))
No more defined symbols left to analyse.
(25) LowerBoundsProof (EQUIVALENT transformation)
The lowerbound Ω(n1) was proven with the following lemma:
new(gen_free:serve3_0(n5_0)) → gen_free:serve3_0(+(1, n5_0)), rt ∈ Ω(1 + n50)
(26) BOUNDS(n^1, INF)