/*  This is a proof plan for theorem:
    comp2: []==>x:pnat=>y:pnat=>z:pnat=>plus(x,plus(y,z))=plus(y,plus(x,z))in pnat
    planner = dplan, clam_version(2.7.0), oyster_version(1.20)

    Time taken to find plan: 2110ms
    Environment:
    []
 */

/* This is the pretty-printed form
ind_strat([(x:pnat)-s(v0)]) then 
  generalise(plus(v0,z),v2:pnat) then 
    ind_strat([(y:pnat)-s(v3)])

*/

proof_plan([]==>x:pnat=>y:pnat=>z:pnat=>plus(x,plus(y,z))=plus(y,plus(x,z))in pnat,comp2,2110,ind_strat(induction(lemma(pnat_primitive)-[(x:pnat)-s(v0)])then[base_case(sym_eval(normalize_term([reduction([1,1],[plus1,equ(pnat,left)]),reduction([2,2,1],[plus1,equ(pnat,left)])]))then[elementary(intro(new[y])then[intro(new[z])then[identity,wfftacs],wfftacs])]),step_case(ripple(direction_out,wave(direction_out,[1,1],[plus2,equ(pnat,left)],[])then[wave(direction_out,[2,2,1],[plus2,equ(pnat,left)],[])])then[unblock_then_fertilize(weak,unblock_fertilize_lazy([idtac])then fertilize(weak,fertilize_then_ripple(fertilize_left_or_right(left,[weak_fertilize(left,in,[1],v1)]))))])])then[generalise(plus(v0,z),v2:pnat)then[ind_strat(induction(lemma(pnat_primitive)-[(y:pnat)-s(v3)])then[base_case(sym_eval(normalize_term([reduction([1,1,1],[plus1,equ(pnat,left)]),reduction([2,1],[plus1,equ(pnat,left)])]))then[elementary(intro(new[v2])then[intro(new[z])then[identity,wfftacs],wfftacs])]),step_case(ripple(direction_out,wave(direction_out,[2,1],[plus2,equ(pnat,left)],[])then[wave(direction_out,[1,1,1],[plus2,equ(pnat,left)],[])])then[unblock_then_fertilize(weak,unblock_fertilize_lazy([idtac])then fertilize(weak,fertilize_then_ripple(fertilize_left_or_right(right,[weak_fertilize(right,in,[1],v4)]))then elementary(intro(new[v2])then[intro(new[z])then[identity,wfftacs],wfftacs])))])])]],dplan).
