0 Prolog
↳1 PrologToPiTRSProof (⇐)
↳2 PiTRS
↳3 DependencyPairsProof (⇔)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 TRUE
↳14 PiDP
↳15 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇐)
↳18 QDP
↳19 PrologToPiTRSProof (⇐)
↳20 PiTRS
↳21 DependencyPairsProof (⇔)
↳22 PiDP
↳23 DependencyGraphProof (⇔)
↳24 AND
↳25 PiDP
↳26 UsableRulesProof (⇔)
↳27 PiDP
↳28 PiDPToQDPProof (⇐)
↳29 QDP
↳30 QDPSizeChangeProof (⇔)
↳31 TRUE
↳32 PiDP
↳33 UsableRulesProof (⇔)
↳34 PiDP
↳35 PiDPToQDPProof (⇐)
↳36 QDP
↳37 QDPSizeChangeProof (⇔)
↳38 TRUE
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
TRANSPOSE_IN_GG(A, B) → U1_GG(A, B, transpose_aux_in_ggg(A, [], B))
TRANSPOSE_IN_GG(A, B) → TRANSPOSE_AUX_IN_GGG(A, [], B)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GGAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GGAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GGAA(Xs, Cols, Cols1, As)
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_GGG(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
TRANSPOSE_IN_GG(A, B) → U1_GG(A, B, transpose_aux_in_ggg(A, [], B))
TRANSPOSE_IN_GG(A, B) → TRANSPOSE_AUX_IN_GGG(A, [], B)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GGAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GGAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GGAA(Xs, Cols, Cols1, As)
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_GGG(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GGAA(Xs, Cols, Cols1, As)
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GGAA(Xs, Cols, Cols1, As)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols)) → ROW2COL_IN_GGAA(Xs, Cols)
From the DPs we obtained the following set of size-change graphs:
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U2_GGG(Rs, row2col_out_ggaa(Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(Rs, row2col_in_ggaa(R, .(C, Cs)))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols)) → U4_ggaa(Ys, row2col_in_ggaa(Xs, Cols))
U4_ggaa(Ys, row2col_out_ggaa(Cols1, As)) → row2col_out_ggaa(.(Ys, Cols1), .([], As))
row2col_in_ggaa([], []) → row2col_out_ggaa([], [])
row2col_in_ggaa(x0, x1)
U4_ggaa(x0, x1)
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
TRANSPOSE_IN_GG(A, B) → U1_GG(A, B, transpose_aux_in_ggg(A, [], B))
TRANSPOSE_IN_GG(A, B) → TRANSPOSE_AUX_IN_GGG(A, [], B)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GGAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GGAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GGAA(Xs, Cols, Cols1, As)
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_GGG(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
TRANSPOSE_IN_GG(A, B) → U1_GG(A, B, transpose_aux_in_ggg(A, [], B))
TRANSPOSE_IN_GG(A, B) → TRANSPOSE_AUX_IN_GGG(A, [], B)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → ROW2COL_IN_GGAA(R, .(C, Cs), Cols1, Accm)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_GGAA(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GGAA(Xs, Cols, Cols1, As)
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_GGG(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GGAA(Xs, Cols, Cols1, As)
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → ROW2COL_IN_GGAA(Xs, Cols, Cols1, As)
ROW2COL_IN_GGAA(.(X, Xs), .(.(X, Ys), Cols)) → ROW2COL_IN_GGAA(Xs, Cols)
From the DPs we obtained the following set of size-change graphs:
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
transpose_in_gg(A, B) → U1_gg(A, B, transpose_aux_in_ggg(A, [], B))
transpose_aux_in_ggg(.(R, Rs), X1, .(C, Cs)) → U2_ggg(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
U2_ggg(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → U3_ggg(R, Rs, X1, C, Cs, transpose_aux_in_ggg(Rs, Accm, Cols1))
transpose_aux_in_ggg([], X, X) → transpose_aux_out_ggg([], X, X)
U3_ggg(R, Rs, X1, C, Cs, transpose_aux_out_ggg(Rs, Accm, Cols1)) → transpose_aux_out_ggg(.(R, Rs), X1, .(C, Cs))
U1_gg(A, B, transpose_aux_out_ggg(A, [], B)) → transpose_out_gg(A, B)
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs), Cols1, Accm))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As)) → U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_in_ggaa(Xs, Cols, Cols1, As))
U4_ggaa(X, Xs, Ys, Cols, Cols1, As, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
row2col_in_ggaa([], [], [], []) → row2col_out_ggaa([], [], [], [])
U2_GGG(R, Rs, X1, C, Cs, row2col_out_ggaa(R, .(C, Cs), Cols1, Accm)) → TRANSPOSE_AUX_IN_GGG(Rs, Accm, Cols1)
TRANSPOSE_AUX_IN_GGG(.(R, Rs), X1, .(C, Cs)) → U2_GGG(R, Rs, X1, C, Cs, row2col_in_ggaa(R, .(C, Cs)))
row2col_in_ggaa(.(X, Xs), .(.(X, Ys), Cols)) → U4_ggaa(X, Xs, Ys, Cols, row2col_in_ggaa(Xs, Cols))
U4_ggaa(X, Xs, Ys, Cols, row2col_out_ggaa(Xs, Cols, Cols1, As)) → row2col_out_ggaa(.(X, Xs), .(.(X, Ys), Cols), .(Ys, Cols1), .([], As))
row2col_in_ggaa([], []) → row2col_out_ggaa([], [], [], [])
row2col_in_ggaa(x0, x1)
U4_ggaa(x0, x1, x2, x3, x4)
From the DPs we obtained the following set of size-change graphs: