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
average1_in_gag(0, 0, 0) → average1_out_gag(0, 0, 0)
average1_in_gag(0, s(0), 0) → average1_out_gag(0, s(0), 0)
average1_in_gag(0, s(s(0)), s(0)) → average1_out_gag(0, s(s(0)), s(0))
average1_in_gag(0, s(s(s(T17))), s(0)) → U1_gag(T17, average1_in_gag(0, s(T17), 0))
average1_in_gag(s(0), 0, 0) → average1_out_gag(s(0), 0, 0)
average1_in_gag(s(0), s(0), s(0)) → average1_out_gag(s(0), s(0), s(0))
average1_in_gag(s(s(T38)), T41, T40) → U2_gag(T38, T41, T40, average1_in_gag(T38, s(s(T41)), T40))
average1_in_gag(s(T54), s(s(T57)), s(T56)) → U3_gag(T54, T57, T56, average1_in_gag(s(T54), T57, T56))
average1_in_gag(s(T67), s(s(s(T70))), s(T69)) → U4_gag(T67, T70, T69, average1_in_gag(s(s(T67)), T70, T69))
average1_in_gag(T95, s(s(s(T98))), s(T97)) → U5_gag(T95, T98, T97, average1_in_gag(T95, s(T98), T97))
average1_in_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → U6_gag(T105, T108, T107, average1_in_gag(s(s(T105)), T108, T107))
U6_gag(T105, T108, T107, average1_out_gag(s(s(T105)), T108, T107)) → average1_out_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107)))
U5_gag(T95, T98, T97, average1_out_gag(T95, s(T98), T97)) → average1_out_gag(T95, s(s(s(T98))), s(T97))
U4_gag(T67, T70, T69, average1_out_gag(s(s(T67)), T70, T69)) → average1_out_gag(s(T67), s(s(s(T70))), s(T69))
U3_gag(T54, T57, T56, average1_out_gag(s(T54), T57, T56)) → average1_out_gag(s(T54), s(s(T57)), s(T56))
U2_gag(T38, T41, T40, average1_out_gag(T38, s(s(T41)), T40)) → average1_out_gag(s(s(T38)), T41, T40)
U1_gag(T17, average1_out_gag(0, s(T17), 0)) → average1_out_gag(0, s(s(s(T17))), s(0))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
average1_in_gag(0, 0, 0) → average1_out_gag(0, 0, 0)
average1_in_gag(0, s(0), 0) → average1_out_gag(0, s(0), 0)
average1_in_gag(0, s(s(0)), s(0)) → average1_out_gag(0, s(s(0)), s(0))
average1_in_gag(0, s(s(s(T17))), s(0)) → U1_gag(T17, average1_in_gag(0, s(T17), 0))
average1_in_gag(s(0), 0, 0) → average1_out_gag(s(0), 0, 0)
average1_in_gag(s(0), s(0), s(0)) → average1_out_gag(s(0), s(0), s(0))
average1_in_gag(s(s(T38)), T41, T40) → U2_gag(T38, T41, T40, average1_in_gag(T38, s(s(T41)), T40))
average1_in_gag(s(T54), s(s(T57)), s(T56)) → U3_gag(T54, T57, T56, average1_in_gag(s(T54), T57, T56))
average1_in_gag(s(T67), s(s(s(T70))), s(T69)) → U4_gag(T67, T70, T69, average1_in_gag(s(s(T67)), T70, T69))
average1_in_gag(T95, s(s(s(T98))), s(T97)) → U5_gag(T95, T98, T97, average1_in_gag(T95, s(T98), T97))
average1_in_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → U6_gag(T105, T108, T107, average1_in_gag(s(s(T105)), T108, T107))
U6_gag(T105, T108, T107, average1_out_gag(s(s(T105)), T108, T107)) → average1_out_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107)))
U5_gag(T95, T98, T97, average1_out_gag(T95, s(T98), T97)) → average1_out_gag(T95, s(s(s(T98))), s(T97))
U4_gag(T67, T70, T69, average1_out_gag(s(s(T67)), T70, T69)) → average1_out_gag(s(T67), s(s(s(T70))), s(T69))
U3_gag(T54, T57, T56, average1_out_gag(s(T54), T57, T56)) → average1_out_gag(s(T54), s(s(T57)), s(T56))
U2_gag(T38, T41, T40, average1_out_gag(T38, s(s(T41)), T40)) → average1_out_gag(s(s(T38)), T41, T40)
U1_gag(T17, average1_out_gag(0, s(T17), 0)) → average1_out_gag(0, s(s(s(T17))), s(0))
AVERAGE1_IN_GAG(0, s(s(s(T17))), s(0)) → U1_GAG(T17, average1_in_gag(0, s(T17), 0))
AVERAGE1_IN_GAG(0, s(s(s(T17))), s(0)) → AVERAGE1_IN_GAG(0, s(T17), 0)
AVERAGE1_IN_GAG(s(s(T38)), T41, T40) → U2_GAG(T38, T41, T40, average1_in_gag(T38, s(s(T41)), T40))
AVERAGE1_IN_GAG(s(s(T38)), T41, T40) → AVERAGE1_IN_GAG(T38, s(s(T41)), T40)
AVERAGE1_IN_GAG(s(T54), s(s(T57)), s(T56)) → U3_GAG(T54, T57, T56, average1_in_gag(s(T54), T57, T56))
AVERAGE1_IN_GAG(s(T54), s(s(T57)), s(T56)) → AVERAGE1_IN_GAG(s(T54), T57, T56)
AVERAGE1_IN_GAG(s(T67), s(s(s(T70))), s(T69)) → U4_GAG(T67, T70, T69, average1_in_gag(s(s(T67)), T70, T69))
AVERAGE1_IN_GAG(s(T67), s(s(s(T70))), s(T69)) → AVERAGE1_IN_GAG(s(s(T67)), T70, T69)
AVERAGE1_IN_GAG(T95, s(s(s(T98))), s(T97)) → U5_GAG(T95, T98, T97, average1_in_gag(T95, s(T98), T97))
AVERAGE1_IN_GAG(T95, s(s(s(T98))), s(T97)) → AVERAGE1_IN_GAG(T95, s(T98), T97)
AVERAGE1_IN_GAG(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → U6_GAG(T105, T108, T107, average1_in_gag(s(s(T105)), T108, T107))
AVERAGE1_IN_GAG(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → AVERAGE1_IN_GAG(s(s(T105)), T108, T107)
average1_in_gag(0, 0, 0) → average1_out_gag(0, 0, 0)
average1_in_gag(0, s(0), 0) → average1_out_gag(0, s(0), 0)
average1_in_gag(0, s(s(0)), s(0)) → average1_out_gag(0, s(s(0)), s(0))
average1_in_gag(0, s(s(s(T17))), s(0)) → U1_gag(T17, average1_in_gag(0, s(T17), 0))
average1_in_gag(s(0), 0, 0) → average1_out_gag(s(0), 0, 0)
average1_in_gag(s(0), s(0), s(0)) → average1_out_gag(s(0), s(0), s(0))
average1_in_gag(s(s(T38)), T41, T40) → U2_gag(T38, T41, T40, average1_in_gag(T38, s(s(T41)), T40))
average1_in_gag(s(T54), s(s(T57)), s(T56)) → U3_gag(T54, T57, T56, average1_in_gag(s(T54), T57, T56))
average1_in_gag(s(T67), s(s(s(T70))), s(T69)) → U4_gag(T67, T70, T69, average1_in_gag(s(s(T67)), T70, T69))
average1_in_gag(T95, s(s(s(T98))), s(T97)) → U5_gag(T95, T98, T97, average1_in_gag(T95, s(T98), T97))
average1_in_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → U6_gag(T105, T108, T107, average1_in_gag(s(s(T105)), T108, T107))
U6_gag(T105, T108, T107, average1_out_gag(s(s(T105)), T108, T107)) → average1_out_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107)))
U5_gag(T95, T98, T97, average1_out_gag(T95, s(T98), T97)) → average1_out_gag(T95, s(s(s(T98))), s(T97))
U4_gag(T67, T70, T69, average1_out_gag(s(s(T67)), T70, T69)) → average1_out_gag(s(T67), s(s(s(T70))), s(T69))
U3_gag(T54, T57, T56, average1_out_gag(s(T54), T57, T56)) → average1_out_gag(s(T54), s(s(T57)), s(T56))
U2_gag(T38, T41, T40, average1_out_gag(T38, s(s(T41)), T40)) → average1_out_gag(s(s(T38)), T41, T40)
U1_gag(T17, average1_out_gag(0, s(T17), 0)) → average1_out_gag(0, s(s(s(T17))), s(0))
AVERAGE1_IN_GAG(0, s(s(s(T17))), s(0)) → U1_GAG(T17, average1_in_gag(0, s(T17), 0))
AVERAGE1_IN_GAG(0, s(s(s(T17))), s(0)) → AVERAGE1_IN_GAG(0, s(T17), 0)
AVERAGE1_IN_GAG(s(s(T38)), T41, T40) → U2_GAG(T38, T41, T40, average1_in_gag(T38, s(s(T41)), T40))
AVERAGE1_IN_GAG(s(s(T38)), T41, T40) → AVERAGE1_IN_GAG(T38, s(s(T41)), T40)
AVERAGE1_IN_GAG(s(T54), s(s(T57)), s(T56)) → U3_GAG(T54, T57, T56, average1_in_gag(s(T54), T57, T56))
AVERAGE1_IN_GAG(s(T54), s(s(T57)), s(T56)) → AVERAGE1_IN_GAG(s(T54), T57, T56)
AVERAGE1_IN_GAG(s(T67), s(s(s(T70))), s(T69)) → U4_GAG(T67, T70, T69, average1_in_gag(s(s(T67)), T70, T69))
AVERAGE1_IN_GAG(s(T67), s(s(s(T70))), s(T69)) → AVERAGE1_IN_GAG(s(s(T67)), T70, T69)
AVERAGE1_IN_GAG(T95, s(s(s(T98))), s(T97)) → U5_GAG(T95, T98, T97, average1_in_gag(T95, s(T98), T97))
AVERAGE1_IN_GAG(T95, s(s(s(T98))), s(T97)) → AVERAGE1_IN_GAG(T95, s(T98), T97)
AVERAGE1_IN_GAG(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → U6_GAG(T105, T108, T107, average1_in_gag(s(s(T105)), T108, T107))
AVERAGE1_IN_GAG(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → AVERAGE1_IN_GAG(s(s(T105)), T108, T107)
average1_in_gag(0, 0, 0) → average1_out_gag(0, 0, 0)
average1_in_gag(0, s(0), 0) → average1_out_gag(0, s(0), 0)
average1_in_gag(0, s(s(0)), s(0)) → average1_out_gag(0, s(s(0)), s(0))
average1_in_gag(0, s(s(s(T17))), s(0)) → U1_gag(T17, average1_in_gag(0, s(T17), 0))
average1_in_gag(s(0), 0, 0) → average1_out_gag(s(0), 0, 0)
average1_in_gag(s(0), s(0), s(0)) → average1_out_gag(s(0), s(0), s(0))
average1_in_gag(s(s(T38)), T41, T40) → U2_gag(T38, T41, T40, average1_in_gag(T38, s(s(T41)), T40))
average1_in_gag(s(T54), s(s(T57)), s(T56)) → U3_gag(T54, T57, T56, average1_in_gag(s(T54), T57, T56))
average1_in_gag(s(T67), s(s(s(T70))), s(T69)) → U4_gag(T67, T70, T69, average1_in_gag(s(s(T67)), T70, T69))
average1_in_gag(T95, s(s(s(T98))), s(T97)) → U5_gag(T95, T98, T97, average1_in_gag(T95, s(T98), T97))
average1_in_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → U6_gag(T105, T108, T107, average1_in_gag(s(s(T105)), T108, T107))
U6_gag(T105, T108, T107, average1_out_gag(s(s(T105)), T108, T107)) → average1_out_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107)))
U5_gag(T95, T98, T97, average1_out_gag(T95, s(T98), T97)) → average1_out_gag(T95, s(s(s(T98))), s(T97))
U4_gag(T67, T70, T69, average1_out_gag(s(s(T67)), T70, T69)) → average1_out_gag(s(T67), s(s(s(T70))), s(T69))
U3_gag(T54, T57, T56, average1_out_gag(s(T54), T57, T56)) → average1_out_gag(s(T54), s(s(T57)), s(T56))
U2_gag(T38, T41, T40, average1_out_gag(T38, s(s(T41)), T40)) → average1_out_gag(s(s(T38)), T41, T40)
U1_gag(T17, average1_out_gag(0, s(T17), 0)) → average1_out_gag(0, s(s(s(T17))), s(0))
AVERAGE1_IN_GAG(s(T54), s(s(T57)), s(T56)) → AVERAGE1_IN_GAG(s(T54), T57, T56)
AVERAGE1_IN_GAG(s(s(T38)), T41, T40) → AVERAGE1_IN_GAG(T38, s(s(T41)), T40)
AVERAGE1_IN_GAG(s(T67), s(s(s(T70))), s(T69)) → AVERAGE1_IN_GAG(s(s(T67)), T70, T69)
AVERAGE1_IN_GAG(T95, s(s(s(T98))), s(T97)) → AVERAGE1_IN_GAG(T95, s(T98), T97)
AVERAGE1_IN_GAG(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → AVERAGE1_IN_GAG(s(s(T105)), T108, T107)
average1_in_gag(0, 0, 0) → average1_out_gag(0, 0, 0)
average1_in_gag(0, s(0), 0) → average1_out_gag(0, s(0), 0)
average1_in_gag(0, s(s(0)), s(0)) → average1_out_gag(0, s(s(0)), s(0))
average1_in_gag(0, s(s(s(T17))), s(0)) → U1_gag(T17, average1_in_gag(0, s(T17), 0))
average1_in_gag(s(0), 0, 0) → average1_out_gag(s(0), 0, 0)
average1_in_gag(s(0), s(0), s(0)) → average1_out_gag(s(0), s(0), s(0))
average1_in_gag(s(s(T38)), T41, T40) → U2_gag(T38, T41, T40, average1_in_gag(T38, s(s(T41)), T40))
average1_in_gag(s(T54), s(s(T57)), s(T56)) → U3_gag(T54, T57, T56, average1_in_gag(s(T54), T57, T56))
average1_in_gag(s(T67), s(s(s(T70))), s(T69)) → U4_gag(T67, T70, T69, average1_in_gag(s(s(T67)), T70, T69))
average1_in_gag(T95, s(s(s(T98))), s(T97)) → U5_gag(T95, T98, T97, average1_in_gag(T95, s(T98), T97))
average1_in_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → U6_gag(T105, T108, T107, average1_in_gag(s(s(T105)), T108, T107))
U6_gag(T105, T108, T107, average1_out_gag(s(s(T105)), T108, T107)) → average1_out_gag(T105, s(s(s(s(s(s(T108)))))), s(s(T107)))
U5_gag(T95, T98, T97, average1_out_gag(T95, s(T98), T97)) → average1_out_gag(T95, s(s(s(T98))), s(T97))
U4_gag(T67, T70, T69, average1_out_gag(s(s(T67)), T70, T69)) → average1_out_gag(s(T67), s(s(s(T70))), s(T69))
U3_gag(T54, T57, T56, average1_out_gag(s(T54), T57, T56)) → average1_out_gag(s(T54), s(s(T57)), s(T56))
U2_gag(T38, T41, T40, average1_out_gag(T38, s(s(T41)), T40)) → average1_out_gag(s(s(T38)), T41, T40)
U1_gag(T17, average1_out_gag(0, s(T17), 0)) → average1_out_gag(0, s(s(s(T17))), s(0))
AVERAGE1_IN_GAG(s(T54), s(s(T57)), s(T56)) → AVERAGE1_IN_GAG(s(T54), T57, T56)
AVERAGE1_IN_GAG(s(s(T38)), T41, T40) → AVERAGE1_IN_GAG(T38, s(s(T41)), T40)
AVERAGE1_IN_GAG(s(T67), s(s(s(T70))), s(T69)) → AVERAGE1_IN_GAG(s(s(T67)), T70, T69)
AVERAGE1_IN_GAG(T95, s(s(s(T98))), s(T97)) → AVERAGE1_IN_GAG(T95, s(T98), T97)
AVERAGE1_IN_GAG(T105, s(s(s(s(s(s(T108)))))), s(s(T107))) → AVERAGE1_IN_GAG(s(s(T105)), T108, T107)
AVERAGE1_IN_GAG(s(T54), s(T56)) → AVERAGE1_IN_GAG(s(T54), T56)
AVERAGE1_IN_GAG(s(s(T38)), T40) → AVERAGE1_IN_GAG(T38, T40)
AVERAGE1_IN_GAG(s(T67), s(T69)) → AVERAGE1_IN_GAG(s(s(T67)), T69)
AVERAGE1_IN_GAG(T95, s(T97)) → AVERAGE1_IN_GAG(T95, T97)
AVERAGE1_IN_GAG(T105, s(s(T107))) → AVERAGE1_IN_GAG(s(s(T105)), T107)
From the DPs we obtained the following set of size-change graphs: