[["a",[[n,function],[1,1,[v,c]]],[[[n,function],[[v,a],[v,b],[v,c]],":-",[[[n,+],[[v,a],[v,b],[v,c]]]]]],[[[[v,c],2]]]],["append",[[n,append1],[["a"],["b"],[v,s]]],[[[n,append1],[[v,a],[v,b],[v,s]],":-",[[[n,append],[[v,a],[v,b],[v,s]]]]]],[[[[v,s],["a","b"]]]]],["associative",[[n,associative],[1,2,3]],[[[n,associative],[[v,a],[v,b],[v,c]],":-",[[[n,*],[[v,a],[v,b],[v,d]]],[[n,*],[[v,d],[v,c],[v,e]]],[[n,*],[[v,b],[v,c],[v,f]]],[[n,*],[[v,f],[v,a],[v,e]]]]]],[[]]],["b","[]","[]","[]"],["conjunction",[[n,conjunction],["true","false",[v,c]]],[[[n,conjunction],["true","true","true"]],[[n,conjunction],[[v,a],[v,b],"false"],":-",[[[n,not],[[[[n,=],[[v,a],"true"]],[[n,=],[[v,b],"true"]]]]]]]],[[[[v,c],"false"]]]],["delete2",[[n,delete2],[[1,1,2],1,[],[v,a]]],[[[n,delete2],[[],[v,a],[v,l],[v,l]]],[[n,delete2],[[v,l1],[v,i1],[v,l2],[v,l3]],":-",[[[n,head],[[v,l1],[v,i1]]],[[n,tail],[[v,l1],[v,l5]]],[[n,delete2],[[v,l5],[v,i1],[v,l2],[v,l3]]]]],[[n,delete2],[[v,l1],[v,i1],[v,l2],[v,l3]],":-",[[[n,head],[[v,l1],[v,i2]]],[[n,tail],[[v,l1],[v,l5]]],[[n,not],[[[n,=],[[v,i1],[v,i2]]]]],[[n,wrap],[[v,i2],[v,i21]]],[[n,append],[[v,l2],[v,i21],[v,l6]]],[[n,delete2],[[v,l5],[v,i1],[v,l6],[v,l3]]]]]],[[[[v,a],[2]]]]],["disjunction",[[n,disjunction],["true","false",[v,c]]],[[[n,disjunction],["false","false","false"]],[[n,disjunction],[[v,a],[v,b],"true"],":-",[[[n,not],[[[[n,=],[[v,a],"false"]],[[n,=],[[v,b],"false"]]]]]]]],[[[[v,c],"true"]]]],["downpipe",[[n,downpipe],[3,1,[[3,[4,2]],[2,[3,1]]]]],[[[n,downpipe],[[v,a],[v,a],[v,b]]],[[n,downpipe],[[v,a],[v,b],[v,c]],":-",[[[n,member],[[v,c1],[v,c]]],[[n,equals1],[[v,c1],[[v,c11],[v,c12]]]],[[n,equals1],[[v,c12],[[v,c121],[v,c122]]]],[[n,"->"],[[[n,>],[[v,a],[v,c121]]],[[n,downpipe],[[v,c121],[v,b],[v,c]]],[[n,"->"],[[[n,>],[[v,a],[v,c122]]],[[n,downpipe],[[v,c122],[v,b],[v,c]]],[[n,fail]]]]]]]]],[[]]],["equals",[[n,equals11],["a","a"]],[[[n,equals11],[[v,a],[v,a]]]],[[]]],["getitemn",[[n,getitemn],[3,[1,2,3],[v,c]]],[[[n,getitemn],[1,[v,b],[v,c]],":-",[[[n,head],[[v,b],[v,c]]]]],[[n,getitemn],[[v,a],[v,b],[v,c]],":-",[[[n,not],[[[n,=],[[v,a],0]]]],[[n,tail],[[v,b],[v,t]]],[[n,-],[[v,a],1,[v,d]]],[[n,getitemn],[[v,d],[v,t],[v,c]]]]]],[[[[v,c],3]]]],["greaterthan",[[n,greaterthan],[3,2]],[[[n,greaterthan],[[v,a],[v,b]],":-",[[[n,>],[[v,a],[v,b]]]]]],[[]]],["identical",[[n,identical],[1,2]],[[[n,identical],[[v,a],[v,b]],":-",[[[n,+],[[v,a],[v,b],[v,c]]],[[n,+],[[v,b],[v,a],[v,c]]]]]],[[]]],["if",[[n,if11],[1,[v,b]]],[[[n,if11],[[v,a],[v,b]],":-",[[[n,"->"],[[[n,is],[[v,a],1]],[[n,is],[[v,b],2]],[[n,is],[[v,b],3]]]]]]],[[[[v,b],2]]]],["intersection1",[[n,intersection1],[[1,2,3],[3,4,5],[],[v,a]]],[[[n,intersection1],[[],[v,a],[v,l],[v,l]]],[[n,intersection1],[[v,l1],[v,l2],[v,l3a],[v,l3]],":-",[[[n,head],[[v,l1],[v,i1]]],[[n,tail],[[v,l1],[v,l4]]],[[n,intersection2],[[v,i1],[v,l2],[],[v,l5]]],[[n,append],[[v,l3a],[v,l5],[v,l6]]],[[n,intersection1],[[v,l4],[v,l2],[v,l6],[v,l3]]]]],[[n,intersection2],[[v,a],[],[v,l],[v,l]]],[[n,intersection2],[[v,i1],[v,l1],[v,l2],[v,l3]],":-",[[[n,head],[[v,l1],[v,i1]]],[[n,tail],[[v,l1],[v,l4]]],[[n,wrap],[[v,i1],[v,i11]]],[[n,append],[[v,l2],[v,i11],[v,l5]]],[[n,intersection2],[[v,i1],[v,l4],[v,l5],[v,l3]]]]],[[n,intersection2],[[v,i1],[v,l1],[v,l2],[v,l3]],":-",[[[n,head],[[v,l1],[v,i2]]],[[n,tail],[[v,l1],[v,l4]]],[[n,not],[[[n,=],[[v,i1],[v,i2]]]]],[[n,intersection2],[[v,i1],[v,l4],[v,l2],[v,l3]]]]]],[[[[v,a],[3]]]]],["length",[[n,length],[[1],0,[v,l]]],[[[n,length],[[],[v,l],[v,l]]],[[n,length],[[v,l],[v,m1],[v,n]],":-",[[[n,not],[[[n,=],[[v,l],[]]]]],[[n,tail],[[v,l],[v,t]]],[[n,+],[[v,m1],1,[v,m2]]],[[n,length],[[v,t],[v,m2],[v,n]]]]]],[[[[v,l],1]]]],["maximum0",[[n,maximum0],[[2,1,3,5,-1],[v,m]]],[[[n,maximum0],[[v,l],[v,m]],":-",[[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,maximum],[[v,t],[v,h],[v,m],[],[v,r]]]]],[[n,maximum],[[],[v,l],[v,l],[v,r],[v,r]]],[[n,maximum],[[v,l],[v,m1],[v,n],[v,r1],[v,r2]],":-",[[[n,not],[[[n,=],[[v,l],[]]]]],[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,"->"],[[[n,>=],[[v,m1],[v,h]]],[[[n,=],[[v,m2],[v,m1]]],[[n,wrap],[[v,h],[v,h2]]],[[n,append],[[v,r1],[v,h2],[v,r3]]]],[[[[n,=],[[v,m2],[v,h]]]],[[n,wrap],[[v,m1],[v,m12]]],[[n,append],[[v,r1],[v,m12],[v,r3]]]]]],[[n,maximum],[[v,t],[v,m2],[v,n],[v,r3],[v,r2]]]]]],[[[[v,m],5]]]],["member1a",[[n,member1a],[1,[1,2]]],[[[n,member1a],[[v,i1],[v,l]],":-",[[[n,intersection2],[[v,i1],[v,l],[],[v,m]]]]],[[n,intersection2],[[v,a],[],[v,l],[v,l]]],[[n,intersection2],[[v,i1],[v,l1],[v,l2],[v,l3]],":-",[[[n,head],[[v,l1],[v,i1]]],[[n,tail],[[v,l1],[v,l4]]],[[n,wrap],[[v,i1],[v,i11]]],[[n,append],[[v,l2],[v,i11],[v,l5]]],[[n,intersection2],[[v,i1],[v,l4],[v,l5],[v,l3]]]]],[[n,intersection2],[[v,i1],[v,l1],[v,l2],[v,l3]],":-",[[[n,head],[[v,l1],[v,i2]]],[[n,tail],[[v,l1],[v,l4]]],[[n,not],[[[n,=],[[v,i1],[v,i2]]]]],[[n,intersection2],[[v,i1],[v,l4],[v,l2],[v,l3]]]]]],[[]]],["minus",[[n,minus11],[[1,2,3],[3],[v,c]]],[[[n,minus11],[[v,a],[],[v,a]]],[[n,minus11],[[v,a],[v,b],[v,c]],":-",[[[n,head],[[v,b],[v,h]]],[[n,tail],[[v,b],[v,t]]],[[n,delete],[[v,a],[v,h],[v,c]]],[[n,minus11],[[v,c],[v,t],[v,c]]]]]],[[[[v,c],[1,2]]]]],["minus1",[[n,minus1],[[1,2,3],[1,2],[v,a]]],[[[n,minus1],[[v,l],[],[v,l]]],[[n,minus1],[[v,l1],[v,l2],[v,l3]],":-",[[[n,head],[[v,l2],[v,i1]]],[[n,tail],[[v,l2],[v,l5]]],[[n,delete2],[[v,l1],[v,i1],[],[v,l6]]],[[n,minus1],[[v,l6],[v,l5],[v,l3]]]]],[[n,delete2],[[],[v,a],[v,l],[v,l]]],[[n,delete2],[[v,l1],[v,i1],[v,l2],[v,l3]],":-",[[[n,head],[[v,l1],[v,i1]]],[[n,tail],[[v,l1],[v,l5]]],[[n,delete2],[[v,l5],[v,i1],[v,l2],[v,l3]]]]],[[n,delete2],[[v,l1],[v,i1],[v,l2],[v,l3]],":-",[[[n,head],[[v,l1],[v,i2]]],[[n,tail],[[v,l1],[v,l5]]],[[n,not],[[[n,=],[[v,i1],[v,i2]]]]],[[n,wrap],[[v,i2],[v,i21]]],[[n,append],[[v,l2],[v,i21],[v,l6]]],[[n,delete2],[[v,l5],[v,i1],[v,l6],[v,l3]]]]]],[[[[v,a],[3]]]]],["modusponens",[[n,modusponens],["a",[["a","b"],["c","d"],["e","f"]],[v,s]]],[[[n,modusponens],[[v,a],[v,ab],[v,b]],":-",[[[n,member],[[v,ab1],[v,ab]]],[[n,equals1],[[v,ab1],[[v,a],[v,b]]]]]]],[[[[v,s],"b"]]]],["not",[[n,not11],[1]],[[[n,not11],[[v,a]],":-",[[[n,not],[[[n,=],[[v,a],2]]]]]]],[[]]],["number",[[n,number11],[1]],[[[n,number11],[[v,a]],":-",[[[n,number],[[v,a]]]]]],[[]]],["optimise1",[[n,optimise1],[[[5,4],[3,2],[1,0]],[v,d]]],[[[n,optimise1],[[v,a],[v,b]],":-",[[[n,head],[[v,a],[v,h]]],[[n,tail],[[v,a],[v,t]]],[[n,equals1],[[v,h],[[v,h1],[v,h2]]]],[[n,-],[[v,h1],[v,h2],[v,b]]],[[n,"->"],[[[n,not],[[[n,=],[[v,t],[]]]]],[[n,optimise1],[[v,t],[v,b]]],[[n,true]]]]]]],[[[[v,d],1]]]],["or",[[n,or11],[1]],[[[n,or11],[[v,a]],":-",[[[n,or],[[[n,is],[[v,a],1]],[[n,is],[[v,a],2]]]]]]],[[]]],["sort0",[[n,sort0],[[9,4,8,2,1,5,7,6,3,10],[v,l]]],[[[n,sort0],[[v,l],[v,n]],":-",[[[n,sort1],[[v,l],[],[v,n]]]]],[[n,sort1],[[],[v,l],[v,l]]],[[n,sort1],[[v,l],[v,m1],[v,n]],":-",[[[n,not],[[[n,=],[[v,l],[]]]]],[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,maximum],[[v,t],[v,h],[v,m2],[],[v,r]]],[[n,wrap],[[v,m2],[v,m3]]],[[n,append],[[v,m1],[v,m3],[v,m4]]],[[n,sort1],[[v,r],[v,m4],[v,n]]]]],[[n,maximum],[[],[v,l],[v,l],[v,r],[v,r]]],[[n,maximum],[[v,l],[v,m1],[v,n],[v,r1],[v,r2]],":-",[[[n,not],[[[n,=],[[v,l],[]]]]],[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,"->"],[[[n,>=],[[v,m1],[v,h]]],[[[n,=],[[v,m2],[v,m1]]],[[n,wrap],[[v,h],[v,h2]]],[[n,append],[[v,r1],[v,h2],[v,r3]]]],[[[[n,=],[[v,m2],[v,h]]]],[[n,wrap],[[v,m1],[v,m12]]],[[n,append],[[v,r1],[v,m12],[v,r3]]]]]],[[n,maximum],[[v,t],[v,m2],[v,n],[v,r3],[v,r2]]]]]],[[[[v,l],[10,9,8,7,6,5,4,3,2,1]]]]],["splitintosentences",[[n,splitintosentences],["aaa1 ,-'! a? b! b.",[v,t]]],[[[n,splitintosentences],[[v,u],[v,t]],":-",[[[n,compound21],[[v,u],"",[],[v,t]]]]],[[n,compound212],["","",[v,t],[v,t]]],[[n,compound212],[[v,u],[v,u],[v,t],[v,t]]],[[n,compound21],[[v,t],[v,u]],"->",[[[n,item],[[v,i]]],[[n,code],[[n,wrap],[[v,i],[v,itemname1]]],[[n,append],[[v,t],[v,itemname1],[v,v]]]],[[n,compound212],[[v,v],[v,u]]]]],[[n,compound21],[[v,t],[v,u]],"->",[[[n,item],[[v,i]]]," ",[[n,compound21],[[],[v,compound1name]]],[[n,code],[[n,wrap],[[v,i],[v,itemname1]]],[[n,append],[[v,t],[v,itemname1],[v,v]]],[[n,append],[[v,v],[v,compound1name],[v,u]]]]]],[[n,item],[[v,t]],"->",[[[n,word21],["",[v,t]]]]],[[n,item],[[v,t]],"->",[[[n,compound],[[],[v,t]]]]],[[n,word212],["","",[v,t],[v,t]]],[[n,word212],[[v,u],[v,u],[v,t],[v,t]]],[[n,word21],[[v,t],[v,u]],"->",[[v,a],[v,b],[[n,code],[[n,sentencechars],[[v,a]]],[[n,finalchar],[[v,b]]],[[n,stringconcat],[[v,t],[v,a],[v,v1]]],[[n,stringconcat],[[v,v1],[v,b],[v,v]]]],[[n,word212],[[v,v],[v,u]]]]],[[n,word21],[[v,t],[v,u]],"->",[[v,a],[[n,code],[[n,sentencechars],[[v,a]]],[[n,stringconcat],[[v,t],[v,a],[v,v]]]],[[n,word21],["",[v,wordstring]]],[[n,code],[[n,stringconcat],[[v,v],[v,wordstring],[v,u]]]]]],[[n,sentencechars],[[v,c]],":-",[[[n,letters],[[v,c]]]]],[[n,sentencechars],[[v,c]],":-",[[[[n,stringtonumber],[[v,c],[v,n]]],[[n,number],[[v,n]]]]]],[[n,sentencechars],[[v,c]],":-",[[[n,=],[[v,c]," "]]]],[[n,sentencechars],[[v,c]],":-",[[[n,=],[[v,c],","]]]],[[n,sentencechars],[[v,c]],":-",[[[n,=],[[v,c],"-"]]]],[[n,sentencechars],[[v,c]],":-",[[[n,=],[[v,c],"'"]]]],[[n,finalchar],[[v,c]],":-",[[[n,=],[[v,c],"."]]]],[[n,finalchar],[[v,c]],":-",[[[n,=],[[v,c],"!"]]]],[[n,finalchar],[[v,c]],":-",[[[n,=],[[v,c],"?"]]]]],[[[[v,t],["aaa1 ,-'!","a?","b!","b."]]]]],["substring",[[n,substring],[[1,2,3,4],[2,3]]],[[[n,substring],[[],[]]],[[n,substring],[[],[v,b]],":-",[[[n,not],[[[n,=],[[v,b],[]]]]],[[n,fail]]]],[[n,substring],[[v,a],[v,b]],":-",[[[n,head],[[v,a],[v,ah]]],[[n,tail],[[v,a],[v,at]]],[[n,"->"],[[[n,listhead],[[v,at],[v,bt]]],[[n,true]],[[n,substring],[[v,at],[v,b]]]]]]],[[n,listhead],[[],[v,l]]],[[n,listhead],[[v,a],[v,b]],":-",[[[n,head],[[v,a],[v,ah]]],[[n,tail],[[v,a],[v,at]]],[[n,head],[[v,b],[v,ah]]],[[n,tail],[[v,b],[v,bt]]],[[n,listhead],[[v,at],[v,bt]]]]]],[[]]],["sum",[[n,sum],[[3,1,2],0,[v,l]]],[[[n,sum],[[],[v,l],[v,l]]],[[n,sum],[[v,l],[v,m1],[v,n]],":-",[[[n,not],[[[n,=],[[v,l],[]]]]],[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,+],[[v,m1],[v,h],[v,m2]]],[[n,sum],[[v,t],[v,m2],[v,n]]]]]],[[[[v,l],6]]]]]