(0) Obligation:
Clauses:
transpose_aux(.(R, Rs), X1, .(C, Cs)) :- row2col(R, .(C, Cs), Cols1, [], Accm).
row2col(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), A, B) :- row2col(Xs, Cols, Cols1, .([], A), B).
Queries:
transpose_aux(a,g,a).
(1) PrologToDTProblemTransformerProof (SOUND transformation)
Built DT problem from termination graph.
(2) Obligation:
Triples:
row2col29(.(T177, T182), .(.(T177, T179), T183), .(T179, X397), T181, X398) :- row2col29(T182, T183, X397, .([], T181), X398).
transpose_aux1(.(.(T25, .(T43, .(T61, .(T79, .(T97, .(T115, .(T133, .(T151, T155)))))))), T10), T11, .(.(T25, T27), .(.(T43, T45), .(.(T61, T63), .(.(T79, T81), .(.(T97, T99), .(.(T115, T117), .(.(T133, T135), .(.(T151, T153), T156))))))))) :- row2col29(T155, T156, X345, .([], .([], .([], .([], .([], .([], .([], []))))))), X346).
Clauses:
row2colc29(.(T177, T182), .(.(T177, T179), T183), .(T179, X397), T181, X398) :- row2colc29(T182, T183, X397, .([], T181), X398).
Afs:
transpose_aux1(x1, x2, x3) = transpose_aux1(x2)
(3) TriplesToPiDPProof (SOUND transformation)
We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
transpose_aux1_in: (f,b,f)
row2col29_in: (f,f,f,b,f)
Transforming
TRIPLES into the following
Term Rewriting System:
Pi DP problem:
The TRS P consists of the following rules:
TRANSPOSE_AUX1_IN_AGA(.(.(T25, .(T43, .(T61, .(T79, .(T97, .(T115, .(T133, .(T151, T155)))))))), T10), T11, .(.(T25, T27), .(.(T43, T45), .(.(T61, T63), .(.(T79, T81), .(.(T97, T99), .(.(T115, T117), .(.(T133, T135), .(.(T151, T153), T156))))))))) → U2_AGA(T25, T43, T61, T79, T97, T115, T133, T151, T155, T10, T11, T27, T45, T63, T81, T99, T117, T135, T153, T156, row2col29_in_aaaga(T155, T156, X345, .([], .([], .([], .([], .([], .([], .([], []))))))), X346))
TRANSPOSE_AUX1_IN_AGA(.(.(T25, .(T43, .(T61, .(T79, .(T97, .(T115, .(T133, .(T151, T155)))))))), T10), T11, .(.(T25, T27), .(.(T43, T45), .(.(T61, T63), .(.(T79, T81), .(.(T97, T99), .(.(T115, T117), .(.(T133, T135), .(.(T151, T153), T156))))))))) → ROW2COL29_IN_AAAGA(T155, T156, X345, .([], .([], .([], .([], .([], .([], .([], []))))))), X346)
ROW2COL29_IN_AAAGA(.(T177, T182), .(.(T177, T179), T183), .(T179, X397), T181, X398) → U1_AAAGA(T177, T182, T179, T183, X397, T181, X398, row2col29_in_aaaga(T182, T183, X397, .([], T181), X398))
ROW2COL29_IN_AAAGA(.(T177, T182), .(.(T177, T179), T183), .(T179, X397), T181, X398) → ROW2COL29_IN_AAAGA(T182, T183, X397, .([], T181), X398)
R is empty.
The argument filtering Pi contains the following mapping:
row2col29_in_aaaga(
x1,
x2,
x3,
x4,
x5) =
row2col29_in_aaaga(
x4)
.(
x1,
x2) =
.(
x1,
x2)
[] =
[]
TRANSPOSE_AUX1_IN_AGA(
x1,
x2,
x3) =
TRANSPOSE_AUX1_IN_AGA(
x2)
U2_AGA(
x1,
x2,
x3,
x4,
x5,
x6,
x7,
x8,
x9,
x10,
x11,
x12,
x13,
x14,
x15,
x16,
x17,
x18,
x19,
x20,
x21) =
U2_AGA(
x11,
x21)
ROW2COL29_IN_AAAGA(
x1,
x2,
x3,
x4,
x5) =
ROW2COL29_IN_AAAGA(
x4)
U1_AAAGA(
x1,
x2,
x3,
x4,
x5,
x6,
x7,
x8) =
U1_AAAGA(
x6,
x8)
We have to consider all (P,R,Pi)-chains
Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES
(4) Obligation:
Pi DP problem:
The TRS P consists of the following rules:
TRANSPOSE_AUX1_IN_AGA(.(.(T25, .(T43, .(T61, .(T79, .(T97, .(T115, .(T133, .(T151, T155)))))))), T10), T11, .(.(T25, T27), .(.(T43, T45), .(.(T61, T63), .(.(T79, T81), .(.(T97, T99), .(.(T115, T117), .(.(T133, T135), .(.(T151, T153), T156))))))))) → U2_AGA(T25, T43, T61, T79, T97, T115, T133, T151, T155, T10, T11, T27, T45, T63, T81, T99, T117, T135, T153, T156, row2col29_in_aaaga(T155, T156, X345, .([], .([], .([], .([], .([], .([], .([], []))))))), X346))
TRANSPOSE_AUX1_IN_AGA(.(.(T25, .(T43, .(T61, .(T79, .(T97, .(T115, .(T133, .(T151, T155)))))))), T10), T11, .(.(T25, T27), .(.(T43, T45), .(.(T61, T63), .(.(T79, T81), .(.(T97, T99), .(.(T115, T117), .(.(T133, T135), .(.(T151, T153), T156))))))))) → ROW2COL29_IN_AAAGA(T155, T156, X345, .([], .([], .([], .([], .([], .([], .([], []))))))), X346)
ROW2COL29_IN_AAAGA(.(T177, T182), .(.(T177, T179), T183), .(T179, X397), T181, X398) → U1_AAAGA(T177, T182, T179, T183, X397, T181, X398, row2col29_in_aaaga(T182, T183, X397, .([], T181), X398))
ROW2COL29_IN_AAAGA(.(T177, T182), .(.(T177, T179), T183), .(T179, X397), T181, X398) → ROW2COL29_IN_AAAGA(T182, T183, X397, .([], T181), X398)
R is empty.
The argument filtering Pi contains the following mapping:
row2col29_in_aaaga(
x1,
x2,
x3,
x4,
x5) =
row2col29_in_aaaga(
x4)
.(
x1,
x2) =
.(
x1,
x2)
[] =
[]
TRANSPOSE_AUX1_IN_AGA(
x1,
x2,
x3) =
TRANSPOSE_AUX1_IN_AGA(
x2)
U2_AGA(
x1,
x2,
x3,
x4,
x5,
x6,
x7,
x8,
x9,
x10,
x11,
x12,
x13,
x14,
x15,
x16,
x17,
x18,
x19,
x20,
x21) =
U2_AGA(
x11,
x21)
ROW2COL29_IN_AAAGA(
x1,
x2,
x3,
x4,
x5) =
ROW2COL29_IN_AAAGA(
x4)
U1_AAAGA(
x1,
x2,
x3,
x4,
x5,
x6,
x7,
x8) =
U1_AAAGA(
x6,
x8)
We have to consider all (P,R,Pi)-chains
(5) DependencyGraphProof (EQUIVALENT transformation)
The approximation of the Dependency Graph [LOPSTR] contains 1 SCC with 3 less nodes.
(6) Obligation:
Pi DP problem:
The TRS P consists of the following rules:
ROW2COL29_IN_AAAGA(.(T177, T182), .(.(T177, T179), T183), .(T179, X397), T181, X398) → ROW2COL29_IN_AAAGA(T182, T183, X397, .([], T181), X398)
R is empty.
The argument filtering Pi contains the following mapping:
.(
x1,
x2) =
.(
x1,
x2)
[] =
[]
ROW2COL29_IN_AAAGA(
x1,
x2,
x3,
x4,
x5) =
ROW2COL29_IN_AAAGA(
x4)
We have to consider all (P,R,Pi)-chains
(7) PiDPToQDPProof (SOUND transformation)
Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.
(8) Obligation:
Q DP problem:
The TRS P consists of the following rules:
ROW2COL29_IN_AAAGA(T181) → ROW2COL29_IN_AAAGA(.([], T181))
R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
(9) Instantiation (EQUIVALENT transformation)
By instantiating [LPAR04] the rule
ROW2COL29_IN_AAAGA(
T181) →
ROW2COL29_IN_AAAGA(
.(
[],
T181)) we obtained the following new rules [LPAR04]:
ROW2COL29_IN_AAAGA(.([], z0)) → ROW2COL29_IN_AAAGA(.([], .([], z0)))
(10) Obligation:
Q DP problem:
The TRS P consists of the following rules:
ROW2COL29_IN_AAAGA(.([], z0)) → ROW2COL29_IN_AAAGA(.([], .([], z0)))
R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
(11) Instantiation (EQUIVALENT transformation)
By instantiating [LPAR04] the rule
ROW2COL29_IN_AAAGA(
.(
[],
z0)) →
ROW2COL29_IN_AAAGA(
.(
[],
.(
[],
z0))) we obtained the following new rules [LPAR04]:
ROW2COL29_IN_AAAGA(.([], .([], z0))) → ROW2COL29_IN_AAAGA(.([], .([], .([], z0))))
(12) Obligation:
Q DP problem:
The TRS P consists of the following rules:
ROW2COL29_IN_AAAGA(.([], .([], z0))) → ROW2COL29_IN_AAAGA(.([], .([], .([], z0))))
R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
(13) NonTerminationProof (EQUIVALENT transformation)
We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.
s =
ROW2COL29_IN_AAAGA(
.(
[],
.(
[],
z0))) evaluates to t =
ROW2COL29_IN_AAAGA(
.(
[],
.(
[],
.(
[],
z0))))
Thus s starts an infinite chain as s semiunifies with t with the following substitutions:
- Matcher: [z0 / .([], z0)]
- Semiunifier: [ ]
Rewriting sequenceThe DP semiunifies directly so there is only one rewrite step from ROW2COL29_IN_AAAGA(.([], .([], z0))) to ROW2COL29_IN_AAAGA(.([], .([], .([], z0)))).
(14) NO