0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 PiDP
↳9 UsableRulesProof (⇔)
↳10 PiDP
↳11 PiDPToQDPProof (⇐)
↳12 QDP
↳13 QDPSizeChangeProof (⇔)
↳14 YES
avg1_in_gag(s(s(T23)), T26, T25) → U1_gag(T23, T26, T25, avg1_in_gag(T23, s(s(T26)), T25))
avg1_in_gag(s(T42), s(s(T45)), s(T44)) → U2_gag(T42, T45, T44, avg1_in_gag(s(T42), T45, T44))
avg1_in_gag(s(0), 0, 0) → avg1_out_gag(s(0), 0, 0)
avg1_in_gag(s(0), s(0), s(0)) → avg1_out_gag(s(0), s(0), s(0))
avg1_in_gag(s(T61), s(s(s(T64))), s(T63)) → U3_gag(T61, T64, T63, avg1_in_gag(s(s(T61)), T64, T63))
avg1_in_gag(T95, s(s(s(T98))), s(T97)) → U4_gag(T95, T98, T97, avg1_in_gag(T95, s(T98), T97))
avg1_in_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → U5_gag(T114, T117, T116, avg1_in_gag(s(s(T114)), T117, T116))
avg1_in_gag(0, s(s(0)), s(0)) → avg1_out_gag(0, s(s(0)), s(0))
avg1_in_gag(0, 0, 0) → avg1_out_gag(0, 0, 0)
avg1_in_gag(0, s(0), 0) → avg1_out_gag(0, s(0), 0)
U5_gag(T114, T117, T116, avg1_out_gag(s(s(T114)), T117, T116)) → avg1_out_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116)))
U4_gag(T95, T98, T97, avg1_out_gag(T95, s(T98), T97)) → avg1_out_gag(T95, s(s(s(T98))), s(T97))
U3_gag(T61, T64, T63, avg1_out_gag(s(s(T61)), T64, T63)) → avg1_out_gag(s(T61), s(s(s(T64))), s(T63))
U2_gag(T42, T45, T44, avg1_out_gag(s(T42), T45, T44)) → avg1_out_gag(s(T42), s(s(T45)), s(T44))
U1_gag(T23, T26, T25, avg1_out_gag(T23, s(s(T26)), T25)) → avg1_out_gag(s(s(T23)), T26, T25)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
avg1_in_gag(s(s(T23)), T26, T25) → U1_gag(T23, T26, T25, avg1_in_gag(T23, s(s(T26)), T25))
avg1_in_gag(s(T42), s(s(T45)), s(T44)) → U2_gag(T42, T45, T44, avg1_in_gag(s(T42), T45, T44))
avg1_in_gag(s(0), 0, 0) → avg1_out_gag(s(0), 0, 0)
avg1_in_gag(s(0), s(0), s(0)) → avg1_out_gag(s(0), s(0), s(0))
avg1_in_gag(s(T61), s(s(s(T64))), s(T63)) → U3_gag(T61, T64, T63, avg1_in_gag(s(s(T61)), T64, T63))
avg1_in_gag(T95, s(s(s(T98))), s(T97)) → U4_gag(T95, T98, T97, avg1_in_gag(T95, s(T98), T97))
avg1_in_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → U5_gag(T114, T117, T116, avg1_in_gag(s(s(T114)), T117, T116))
avg1_in_gag(0, s(s(0)), s(0)) → avg1_out_gag(0, s(s(0)), s(0))
avg1_in_gag(0, 0, 0) → avg1_out_gag(0, 0, 0)
avg1_in_gag(0, s(0), 0) → avg1_out_gag(0, s(0), 0)
U5_gag(T114, T117, T116, avg1_out_gag(s(s(T114)), T117, T116)) → avg1_out_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116)))
U4_gag(T95, T98, T97, avg1_out_gag(T95, s(T98), T97)) → avg1_out_gag(T95, s(s(s(T98))), s(T97))
U3_gag(T61, T64, T63, avg1_out_gag(s(s(T61)), T64, T63)) → avg1_out_gag(s(T61), s(s(s(T64))), s(T63))
U2_gag(T42, T45, T44, avg1_out_gag(s(T42), T45, T44)) → avg1_out_gag(s(T42), s(s(T45)), s(T44))
U1_gag(T23, T26, T25, avg1_out_gag(T23, s(s(T26)), T25)) → avg1_out_gag(s(s(T23)), T26, T25)
AVG1_IN_GAG(s(s(T23)), T26, T25) → U1_GAG(T23, T26, T25, avg1_in_gag(T23, s(s(T26)), T25))
AVG1_IN_GAG(s(s(T23)), T26, T25) → AVG1_IN_GAG(T23, s(s(T26)), T25)
AVG1_IN_GAG(s(T42), s(s(T45)), s(T44)) → U2_GAG(T42, T45, T44, avg1_in_gag(s(T42), T45, T44))
AVG1_IN_GAG(s(T42), s(s(T45)), s(T44)) → AVG1_IN_GAG(s(T42), T45, T44)
AVG1_IN_GAG(s(T61), s(s(s(T64))), s(T63)) → U3_GAG(T61, T64, T63, avg1_in_gag(s(s(T61)), T64, T63))
AVG1_IN_GAG(s(T61), s(s(s(T64))), s(T63)) → AVG1_IN_GAG(s(s(T61)), T64, T63)
AVG1_IN_GAG(T95, s(s(s(T98))), s(T97)) → U4_GAG(T95, T98, T97, avg1_in_gag(T95, s(T98), T97))
AVG1_IN_GAG(T95, s(s(s(T98))), s(T97)) → AVG1_IN_GAG(T95, s(T98), T97)
AVG1_IN_GAG(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → U5_GAG(T114, T117, T116, avg1_in_gag(s(s(T114)), T117, T116))
AVG1_IN_GAG(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → AVG1_IN_GAG(s(s(T114)), T117, T116)
avg1_in_gag(s(s(T23)), T26, T25) → U1_gag(T23, T26, T25, avg1_in_gag(T23, s(s(T26)), T25))
avg1_in_gag(s(T42), s(s(T45)), s(T44)) → U2_gag(T42, T45, T44, avg1_in_gag(s(T42), T45, T44))
avg1_in_gag(s(0), 0, 0) → avg1_out_gag(s(0), 0, 0)
avg1_in_gag(s(0), s(0), s(0)) → avg1_out_gag(s(0), s(0), s(0))
avg1_in_gag(s(T61), s(s(s(T64))), s(T63)) → U3_gag(T61, T64, T63, avg1_in_gag(s(s(T61)), T64, T63))
avg1_in_gag(T95, s(s(s(T98))), s(T97)) → U4_gag(T95, T98, T97, avg1_in_gag(T95, s(T98), T97))
avg1_in_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → U5_gag(T114, T117, T116, avg1_in_gag(s(s(T114)), T117, T116))
avg1_in_gag(0, s(s(0)), s(0)) → avg1_out_gag(0, s(s(0)), s(0))
avg1_in_gag(0, 0, 0) → avg1_out_gag(0, 0, 0)
avg1_in_gag(0, s(0), 0) → avg1_out_gag(0, s(0), 0)
U5_gag(T114, T117, T116, avg1_out_gag(s(s(T114)), T117, T116)) → avg1_out_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116)))
U4_gag(T95, T98, T97, avg1_out_gag(T95, s(T98), T97)) → avg1_out_gag(T95, s(s(s(T98))), s(T97))
U3_gag(T61, T64, T63, avg1_out_gag(s(s(T61)), T64, T63)) → avg1_out_gag(s(T61), s(s(s(T64))), s(T63))
U2_gag(T42, T45, T44, avg1_out_gag(s(T42), T45, T44)) → avg1_out_gag(s(T42), s(s(T45)), s(T44))
U1_gag(T23, T26, T25, avg1_out_gag(T23, s(s(T26)), T25)) → avg1_out_gag(s(s(T23)), T26, T25)
AVG1_IN_GAG(s(s(T23)), T26, T25) → U1_GAG(T23, T26, T25, avg1_in_gag(T23, s(s(T26)), T25))
AVG1_IN_GAG(s(s(T23)), T26, T25) → AVG1_IN_GAG(T23, s(s(T26)), T25)
AVG1_IN_GAG(s(T42), s(s(T45)), s(T44)) → U2_GAG(T42, T45, T44, avg1_in_gag(s(T42), T45, T44))
AVG1_IN_GAG(s(T42), s(s(T45)), s(T44)) → AVG1_IN_GAG(s(T42), T45, T44)
AVG1_IN_GAG(s(T61), s(s(s(T64))), s(T63)) → U3_GAG(T61, T64, T63, avg1_in_gag(s(s(T61)), T64, T63))
AVG1_IN_GAG(s(T61), s(s(s(T64))), s(T63)) → AVG1_IN_GAG(s(s(T61)), T64, T63)
AVG1_IN_GAG(T95, s(s(s(T98))), s(T97)) → U4_GAG(T95, T98, T97, avg1_in_gag(T95, s(T98), T97))
AVG1_IN_GAG(T95, s(s(s(T98))), s(T97)) → AVG1_IN_GAG(T95, s(T98), T97)
AVG1_IN_GAG(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → U5_GAG(T114, T117, T116, avg1_in_gag(s(s(T114)), T117, T116))
AVG1_IN_GAG(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → AVG1_IN_GAG(s(s(T114)), T117, T116)
avg1_in_gag(s(s(T23)), T26, T25) → U1_gag(T23, T26, T25, avg1_in_gag(T23, s(s(T26)), T25))
avg1_in_gag(s(T42), s(s(T45)), s(T44)) → U2_gag(T42, T45, T44, avg1_in_gag(s(T42), T45, T44))
avg1_in_gag(s(0), 0, 0) → avg1_out_gag(s(0), 0, 0)
avg1_in_gag(s(0), s(0), s(0)) → avg1_out_gag(s(0), s(0), s(0))
avg1_in_gag(s(T61), s(s(s(T64))), s(T63)) → U3_gag(T61, T64, T63, avg1_in_gag(s(s(T61)), T64, T63))
avg1_in_gag(T95, s(s(s(T98))), s(T97)) → U4_gag(T95, T98, T97, avg1_in_gag(T95, s(T98), T97))
avg1_in_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → U5_gag(T114, T117, T116, avg1_in_gag(s(s(T114)), T117, T116))
avg1_in_gag(0, s(s(0)), s(0)) → avg1_out_gag(0, s(s(0)), s(0))
avg1_in_gag(0, 0, 0) → avg1_out_gag(0, 0, 0)
avg1_in_gag(0, s(0), 0) → avg1_out_gag(0, s(0), 0)
U5_gag(T114, T117, T116, avg1_out_gag(s(s(T114)), T117, T116)) → avg1_out_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116)))
U4_gag(T95, T98, T97, avg1_out_gag(T95, s(T98), T97)) → avg1_out_gag(T95, s(s(s(T98))), s(T97))
U3_gag(T61, T64, T63, avg1_out_gag(s(s(T61)), T64, T63)) → avg1_out_gag(s(T61), s(s(s(T64))), s(T63))
U2_gag(T42, T45, T44, avg1_out_gag(s(T42), T45, T44)) → avg1_out_gag(s(T42), s(s(T45)), s(T44))
U1_gag(T23, T26, T25, avg1_out_gag(T23, s(s(T26)), T25)) → avg1_out_gag(s(s(T23)), T26, T25)
AVG1_IN_GAG(s(T42), s(s(T45)), s(T44)) → AVG1_IN_GAG(s(T42), T45, T44)
AVG1_IN_GAG(s(s(T23)), T26, T25) → AVG1_IN_GAG(T23, s(s(T26)), T25)
AVG1_IN_GAG(s(T61), s(s(s(T64))), s(T63)) → AVG1_IN_GAG(s(s(T61)), T64, T63)
AVG1_IN_GAG(T95, s(s(s(T98))), s(T97)) → AVG1_IN_GAG(T95, s(T98), T97)
AVG1_IN_GAG(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → AVG1_IN_GAG(s(s(T114)), T117, T116)
avg1_in_gag(s(s(T23)), T26, T25) → U1_gag(T23, T26, T25, avg1_in_gag(T23, s(s(T26)), T25))
avg1_in_gag(s(T42), s(s(T45)), s(T44)) → U2_gag(T42, T45, T44, avg1_in_gag(s(T42), T45, T44))
avg1_in_gag(s(0), 0, 0) → avg1_out_gag(s(0), 0, 0)
avg1_in_gag(s(0), s(0), s(0)) → avg1_out_gag(s(0), s(0), s(0))
avg1_in_gag(s(T61), s(s(s(T64))), s(T63)) → U3_gag(T61, T64, T63, avg1_in_gag(s(s(T61)), T64, T63))
avg1_in_gag(T95, s(s(s(T98))), s(T97)) → U4_gag(T95, T98, T97, avg1_in_gag(T95, s(T98), T97))
avg1_in_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → U5_gag(T114, T117, T116, avg1_in_gag(s(s(T114)), T117, T116))
avg1_in_gag(0, s(s(0)), s(0)) → avg1_out_gag(0, s(s(0)), s(0))
avg1_in_gag(0, 0, 0) → avg1_out_gag(0, 0, 0)
avg1_in_gag(0, s(0), 0) → avg1_out_gag(0, s(0), 0)
U5_gag(T114, T117, T116, avg1_out_gag(s(s(T114)), T117, T116)) → avg1_out_gag(T114, s(s(s(s(s(s(T117)))))), s(s(T116)))
U4_gag(T95, T98, T97, avg1_out_gag(T95, s(T98), T97)) → avg1_out_gag(T95, s(s(s(T98))), s(T97))
U3_gag(T61, T64, T63, avg1_out_gag(s(s(T61)), T64, T63)) → avg1_out_gag(s(T61), s(s(s(T64))), s(T63))
U2_gag(T42, T45, T44, avg1_out_gag(s(T42), T45, T44)) → avg1_out_gag(s(T42), s(s(T45)), s(T44))
U1_gag(T23, T26, T25, avg1_out_gag(T23, s(s(T26)), T25)) → avg1_out_gag(s(s(T23)), T26, T25)
AVG1_IN_GAG(s(T42), s(s(T45)), s(T44)) → AVG1_IN_GAG(s(T42), T45, T44)
AVG1_IN_GAG(s(s(T23)), T26, T25) → AVG1_IN_GAG(T23, s(s(T26)), T25)
AVG1_IN_GAG(s(T61), s(s(s(T64))), s(T63)) → AVG1_IN_GAG(s(s(T61)), T64, T63)
AVG1_IN_GAG(T95, s(s(s(T98))), s(T97)) → AVG1_IN_GAG(T95, s(T98), T97)
AVG1_IN_GAG(T114, s(s(s(s(s(s(T117)))))), s(s(T116))) → AVG1_IN_GAG(s(s(T114)), T117, T116)
AVG1_IN_GAG(s(T42), s(T44)) → AVG1_IN_GAG(s(T42), T44)
AVG1_IN_GAG(s(s(T23)), T25) → AVG1_IN_GAG(T23, T25)
AVG1_IN_GAG(s(T61), s(T63)) → AVG1_IN_GAG(s(s(T61)), T63)
AVG1_IN_GAG(T95, s(T97)) → AVG1_IN_GAG(T95, T97)
AVG1_IN_GAG(T114, s(s(T116))) → AVG1_IN_GAG(s(s(T114)), T116)
From the DPs we obtained the following set of size-change graphs: