0 QTRS
↳1 Overlay + Local Confluence (⇔)
↳2 QTRS
↳3 DependencyPairsProof (⇔)
↳4 QDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 QDP
↳8 QDPOrderProof (⇔)
↳9 QDP
↳10 PisEmptyProof (⇔)
↳11 TRUE
↳12 QDP
↳13 QDPOrderProof (⇔)
↳14 QDP
↳15 PisEmptyProof (⇔)
↳16 TRUE
↳17 QDP
↳18 QDPOrderProof (⇔)
↳19 QDP
↳20 PisEmptyProof (⇔)
↳21 TRUE
↳22 QDP
↳23 QDPOrderProof (⇔)
↳24 QDP
↳25 DependencyGraphProof (⇔)
↳26 TRUE
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
LT(s(X), s(Y)) → LT(X, Y)
APPEND(add(N, X), Y) → APPEND(X, Y)
SPLIT(N, add(M, Y)) → F_1(split(N, Y), N, M, Y)
SPLIT(N, add(M, Y)) → SPLIT(N, Y)
F_1(pair(X, Z), N, M, Y) → F_2(lt(N, M), N, M, Y, X, Z)
F_1(pair(X, Z), N, M, Y) → LT(N, M)
QSORT(add(N, X)) → F_3(split(N, X), N, X)
QSORT(add(N, X)) → SPLIT(N, X)
F_3(pair(Y, Z), N, X) → APPEND(qsort(Y), add(X, qsort(Z)))
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → QSORT(Z)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
APPEND(add(N, X), Y) → APPEND(X, Y)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
APPEND(add(N, X), Y) → APPEND(X, Y)
s1 > [0, true] > [lt1, false, nil]
[qsort1, f32] > append2 > [APPEND1, add2, split1, f12, f23] > pair2 > [lt1, false, nil]
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
LT(s(X), s(Y)) → LT(X, Y)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
LT(s(X), s(Y)) → LT(X, Y)
0 > [nil, add, pair]
qsort1 > [lt, false, split, f1] > [s1, true] > [nil, add, pair]
qsort1 > f31 > [nil, add, pair]
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
SPLIT(N, add(M, Y)) → SPLIT(N, Y)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
SPLIT(N, add(M, Y)) → SPLIT(N, Y)
s1 > [0, true, false] > lt1
nil > pair2 > lt1
[qsort1, f33] > append2 > [add2, split1, f12, f23] > pair2 > lt1
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
QSORT(add(N, X)) → F_3(split(N, X), N, X)
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → QSORT(Z)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
F_3(pair(Y, Z), N, X) → QSORT(Y)
F_3(pair(Y, Z), N, X) → QSORT(Z)
[qsort1, f31] > append2 > [add1, split1, f11, f22] > [pair2, lt, 0, true, false] > [QSORT1, F31]
[qsort1, f31] > append2 > [add1, split1, f11, f22] > nil
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
QSORT(add(N, X)) → F_3(split(N, X), N, X)
lt(0, s(X)) → true
lt(s(X), 0) → false
lt(s(X), s(Y)) → lt(X, Y)
append(nil, Y) → Y
append(add(N, X), Y) → add(N, append(X, Y))
split(N, nil) → pair(nil, nil)
split(N, add(M, Y)) → f_1(split(N, Y), N, M, Y)
f_1(pair(X, Z), N, M, Y) → f_2(lt(N, M), N, M, Y, X, Z)
f_2(true, N, M, Y, X, Z) → pair(X, add(M, Z))
f_2(false, N, M, Y, X, Z) → pair(add(M, X), Z)
qsort(nil) → nil
qsort(add(N, X)) → f_3(split(N, X), N, X)
f_3(pair(Y, Z), N, X) → append(qsort(Y), add(X, qsort(Z)))
lt(0, s(x0))
lt(s(x0), 0)
lt(s(x0), s(x1))
append(nil, x0)
append(add(x0, x1), x2)
split(x0, nil)
split(x0, add(x1, x2))
f_1(pair(x0, x1), x2, x3, x4)
f_2(true, x0, x1, x2, x3, x4)
f_2(false, x0, x1, x2, x3, x4)
qsort(nil)
qsort(add(x0, x1))
f_3(pair(x0, x1), x2, x3)