pl2detlog: 200 inputs and outputs, from real runs (npm run ios writes this file; npm test checks it). 1. interpreter_swipl(["-g","main","-t","halt","neg.pl"]) => {"exit":0,"output":"2/ -3\n","errors":""} 2. thermo_code("banana") => {"alphabet":"abn","counts":[3,1,2],"rank":"34","round_trip":true,"neurons_sum":"34","rank_bits":6,"raw_bits":12,"entropy_bits":8.755,"erased_bits":1} 3. thermo_store("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", 128) => {"bytes":13,"chars":211,"round_trip":true} 4. thermo_prove(["a","b"], 3) => ["thermo_round_trip: {\"domain\":[[\"a\",\"b\"],3],\"count\":15}","thermo_bijection: {\"typeClasses\":10,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\",\"b\"],3],\"count\":15}","thermo_entropy_bound: {\"domain\":[[\"a\",\"b\"],3],\"count\":15}","thermo_landauer: 0"] 5. run_prolog("evens", "evens([9, 4], R)") => {"ok":true,"answers":["R = [4]"],"output":"","error":null} 6. convert("factorial", "fact(1, F)", "plain") => {"mode":"plain","form":"streams","clauses":6,"stream_clauses":4,"errors":[],"warnings":0,"cut_free":true,"heads":["fact__k(A__1, A__2, K__1) :-"]} 7. convert_and_back("reverse") => {"same_clauses":true,"back":["rev(L, R) :-"," rev(L, [], R).","rev([], A, A).","rev([H|T], A, R) :-"," rev(T, [H|A], R)."],"warnings":0} 8. analyse("length", "len([0, 3], N)") => {"same":true,"prolog":["N = 2"],"detlog":["N = 2"],"mnn":["N = 2"],"back":["N = 2"],"proof_checks":25,"proof_failed":[]} 9. newton_fit([-1,-9,-21,-37,-57]) => {"differences":[-1,-8,-4],"formula":"-2*I*I - 6*I - 1"} 10. s2a_formula([[1,2,"y",2],[2,3,"y",5],[3,4,"y",10],[4,5,"y",17],[5,6,"y",26],[6,7,"y",37]]) => "A1 = I + 1, A2 = I + 2, A3 = y, A4 = I*I + 2*I + 2" 11. read_and_show("\\+ p(X)") => "\\+ p(X)" 12. purity("greet") => {"pure":[],"writes":["greet/1","greet_all/1"],"order":["greet/1","greet_all/1"]} 13. parse_range("-2..16") => [-2,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] 14. fit_growth(3, [{"x":2,"y":48},{"x":5,"y":750},{"x":8,"y":3072},{"x":11,"y":7986},{"x":14,"y":16464},{"x":17,"y":29478}]) => {"label":"O(n³)","k":3} 15. interpreter_swipl(["-g","main","-t","halt","strings.pl"]) => {"exit":0,"output":"4 hel [\"a\",\"b\",\"\",\"c\"]\n","errors":""} 16. thermo_code("mississippi") => {"alphabet":"imps","counts":[4,1,2,4],"rank":"13736","round_trip":true,"neurons_sum":"13736","rank_bits":16,"raw_bits":22,"entropy_bits":20.054,"erased_bits":0} 17. thermo_store("{\"pick\":\"MNN\",\"why\":\"the fastest on this goal\"}", 128) => {"bytes":86,"chars":47,"round_trip":true} 18. thermo_prove(["a"], 5) => ["thermo_round_trip: {\"domain\":[[\"a\"],5],\"count\":6}","thermo_bijection: {\"typeClasses\":6,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\"],5],\"count\":6}","thermo_entropy_bound: {\"domain\":[[\"a\"],5],\"count\":6}","thermo_landauer: 0"] 19. run_prolog("evens", "evens([3, 6], R)") => {"ok":true,"answers":["R = [6]"],"output":"","error":null} 20. convert("grade", "grade(95, G)", "mnn") => {"mode":"mnn","form":"streams","clauses":7,"stream_clauses":5,"errors":[],"warnings":0,"cut_free":true,"heads":["grade__k(A__1, A__2, K__0) :-"]} 21. convert_and_back("grade") => {"same_clauses":true,"back":["grade(N, a) :-"," N >= 80,"," !.","grade(N, b) :-"," N >= 60,"," !.","grade(_, c)."],"warnings":0} 22. analyse("double", "dbls([1, 0, 8, 2, 8], R)") => {"same":true,"prolog":["R = [2, 0, 16, 4, 16]"],"detlog":["R = [2, 0, 16, 4, 16]"],"mnn":["R = [2, 0, 16, 4, 16]"],"back":["R = [2, 0, 16, 4, 16]"],"proof_checks":28,"proof_failed":[]} 23. newton_fit([6,20,48,96,170,276,420]) => {"differences":[6,14,14,6],"formula":"I*I*I + 4*I*I + 9*I + 6"} 24. s2a_formula([[1,4,"x",4],[2,5,"x",7],[3,6,"x",12]]) => "A1 = I + 1, A2 = I + 4, A3 = x, A4 = data[I]" 25. read_and_show("a+b*c") => "a+b*c" 26. purity("sum") => {"pure":["sum/2"],"writes":[],"order":["sum/2"]} 27. parse_range("84, 20, 8, 24, 88") => [84,20,8,24,88] 28. fit_growth(1, [{"x":2,"y":4},{"x":5,"y":10},{"x":8,"y":16},{"x":11,"y":22},{"x":14,"y":28},{"x":17,"y":34}]) => {"label":"O(n)","k":1} 29. interpreter_swipl(["-g","main","-t","halt","uses.pl"]) => {"exit":0,"output":"42\n","errors":""} 30. thermo_code("banana") => {"alphabet":"abn","counts":[3,1,2],"rank":"34","round_trip":true,"neurons_sum":"34","rank_bits":6,"raw_bits":12,"entropy_bits":8.755,"erased_bits":1} 31. thermo_store("{\"pick\":\"MNN\",\"why\":\"the fastest on this goal\"}", 64) => {"bytes":86,"chars":47,"round_trip":true} 32. thermo_prove(["a"], 3) => ["thermo_round_trip: {\"domain\":[[\"a\"],3],\"count\":4}","thermo_bijection: {\"typeClasses\":4,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\"],3],\"count\":4}","thermo_entropy_bound: {\"domain\":[[\"a\"],3],\"count\":4}","thermo_landauer: 0"] 33. run_prolog("max", "mx(-5, 6, M)") => {"ok":true,"answers":["M = 6"],"output":"","error":null} 34. convert("member", "mem(X, [9, 8, 0, 1])", "plain") => {"mode":"plain","form":"streams","clauses":4,"stream_clauses":5,"errors":[],"warnings":0,"cut_free":true,"heads":["mem__k1(X, [X|U__1], K__1) :-","mem__k2(X, [U__1|T], K__2) :-","mem__k(A__1, A__2, K__0) :-"]} 35. convert_and_back("grade") => {"same_clauses":true,"back":["grade(N, a) :-"," N >= 80,"," !.","grade(N, b) :-"," N >= 60,"," !.","grade(_, c)."],"warnings":0} 36. analyse("member", "mem(X, [8, 0, 2])") => {"same":true,"prolog":["X = 8","X = 0","X = 2"],"detlog":["X = 8","X = 0","X = 2"],"mnn":["X = 8","X = 0","X = 2"],"back":["X = 8","X = 0","X = 2"],"proof_checks":20,"proof_failed":[]} 37. newton_fit([7,6,-5]) => {"formula":null} 38. s2a_formula([[1,4,"y",3],[2,6,"y",6],[3,8,"y",11],[4,10,"y",18]]) => "A1 = I + 1, A2 = 2*I + 4, A3 = y, A4 = I*I + 2*I + 3" 39. read_and_show("[1, 2|X]") => "[1, 2|X]" 40. purity("double") => {"pure":["dbl/2","dbls/2"],"writes":[],"order":["dbl/2","dbls/2"]} 41. parse_range("3..14 by 3") => [3,6,9,12] 42. fit_growth(0, [{"x":2,"y":1},{"x":5,"y":1},{"x":8,"y":1},{"x":11,"y":1},{"x":14,"y":1},{"x":17,"y":1}]) => {"label":"O(1)","k":0} 43. interpreter_swipl(["-g","run_tests","-t","halt","units.pl"]) => {"exit":1,"output":"","errors":"ERROR: test a:two: failed\n% 1 tests failed\n% 1 tests passed\nWarning: goal (run_tests) failed\n"} 44. thermo_code("aaaa") => {"alphabet":"a","counts":[4],"rank":"0","round_trip":true,"neurons_sum":"0","rank_bits":0,"raw_bits":0,"entropy_bits":0,"erased_bits":0} 45. thermo_store("a", 128) => {"bytes":8,"chars":1,"round_trip":true} 46. thermo_prove(["a","b"], 5) => ["thermo_round_trip: {\"domain\":[[\"a\",\"b\"],5],\"count\":63}","thermo_bijection: {\"typeClasses\":21,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\",\"b\"],5],\"count\":63}","thermo_entropy_bound: {\"domain\":[[\"a\",\"b\"],5],\"count\":63}","thermo_landauer: 0"] 47. run_prolog("max", "mx(-1, 4, M)") => {"ok":true,"answers":["M = 4"],"output":"","error":null} 48. convert("sum", "sum([5], S)", "mnn") => {"mode":"mnn","form":"streams","clauses":13,"stream_clauses":8,"errors":[],"warnings":0,"cut_free":true,"heads":["sum__k(A__1, A__2, K__0) :-"]} 49. convert_and_back("greet") => {"same_clauses":true,"back":["greet(N) :-"," write(hello(N)),"," nl.","greet_all([]).","greet_all([H|T]) :-"," greet(H),"," greet_all(T)."],"warnings":0} 50. analyse("append", "app(X, Y, [6, 3, 3])") => {"same":true,"prolog":["X = [], Y = [6, 3, 3]","X = [6], Y = [3, 3]","X = [6, 3], Y = [3]","X = [6, 3, 3], Y = []"],"detlog":["X = [], Y = [6, 3, 3]","X = [6], Y = [3, 3]","X = [6, 3], Y = [3]","X = [6, 3, 3], Y = []"],"mnn":["X = [], Y = [6, 3, 3]","X = [6], Y = [3, 3]","X = [6, 3], Y = [3]","X = [6, 3, 3], Y = []"],"back":["X = [], Y = [6, 3, 3]","X = [6], Y = [3, 3]","X = [6, 3], Y = [3]","X = [6, 3, 3], Y = []"],"proof_checks":25,"proof_failed":[]} 51. newton_fit([-1,3,7,11,15,19]) => {"differences":[-1,4],"formula":"4*I - 1"} 52. s2a_formula([[1,4,"x",1],[2,8,"x",4],[3,12,"x",9]]) => "A1 = I + 1, A2 = 4*I + 4, A3 = x, A4 = data[I]" 53. read_and_show("{a, b}") => "{a, b}" 54. purity("member") => {"pure":["mem/2"],"writes":[],"order":["mem/2"]} 55. parse_range("2..29 by 2") => [2,4,6,8,10,12,14,16,18,20,22,24,26,28] 56. fit_growth(3, [{"x":2,"y":24},{"x":5,"y":375},{"x":8,"y":1536},{"x":11,"y":3993},{"x":14,"y":8232},{"x":17,"y":14739}]) => {"label":"O(n³)","k":3} 57. interpreter_swipl(["-g","main","-t","halt","strings.pl"]) => {"exit":0,"output":"4 hel [\"a\",\"b\",\"\",\"c\"]\n","errors":""} 58. thermo_code("thermodynamic") => {"alphabet":"acdehimnorty","counts":[1,1,1,1,1,1,2,1,1,1,1,1],"rank":"2721350141","round_trip":true,"neurons_sum":"2721350141","rank_bits":32,"raw_bits":52,"entropy_bits":46.106,"erased_bits":0} 59. thermo_store("", 128) => {"bytes":6,"chars":0,"round_trip":true} 60. thermo_prove(["a"], 2) => ["thermo_round_trip: {\"domain\":[[\"a\"],2],\"count\":3}","thermo_bijection: {\"typeClasses\":3,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\"],2],\"count\":3}","thermo_entropy_bound: {\"domain\":[[\"a\"],2],\"count\":3}","thermo_landauer: 0"] 61. run_prolog("last", "last([3, 7, 1], X)") => {"ok":true,"answers":["X = 1"],"output":"","error":null} 62. convert("member", "mem(X, [6, 5, 0, 1])", "mnn") => {"mode":"mnn","form":"streams","clauses":4,"stream_clauses":5,"errors":[],"warnings":0,"cut_free":true,"heads":["mem__k1(X, [X|U__1], K__1) :-","mem__k2(X, [U__1|T], K__2) :-","mem__k(A__1, A__2, K__0) :-"]} 63. convert_and_back("reverse") => {"same_clauses":true,"back":["rev(L, R) :-"," rev(L, [], R).","rev([], A, A).","rev([H|T], A, R) :-"," rev(T, [H|A], R)."],"warnings":0} 64. analyse("length", "len([6, 0, 0], N)") => {"same":true,"prolog":["N = 3"],"detlog":["N = 3"],"mnn":["N = 3"],"back":["N = 3"],"proof_checks":25,"proof_failed":[]} 65. newton_fit([-5,-3,1,7,15,25]) => {"differences":[-5,2,2],"formula":"I*I + I - 5"} 66. s2a_formula([[1,6,"x",3],[2,10,"x",6],[3,14,"x",11],[4,18,"x",18],[5,22,"x",27]]) => "A1 = I + 1, A2 = 4*I + 6, A3 = x, A4 = I*I + 2*I + 3" 67. read_and_show("a- -1") => "a- -1" 68. purity("grade") => {"pure":[],"writes":[],"order":["grade/2"]} 69. parse_range("0") => [0] 70. fit_growth(2, [{"x":2,"y":28},{"x":5,"y":175},{"x":8,"y":448},{"x":11,"y":847},{"x":14,"y":1372},{"x":17,"y":2023}]) => {"label":"O(n²)","k":2} 71. interpreter_swipl(["-g","put","-g","show","-g","cyc","-t","halt","live.pl"]) => {"exit":0,"output":"1\ncyclic_ok\n","errors":""} 72. thermo_code("ab") => {"alphabet":"ab","counts":[1,1],"rank":"0","round_trip":true,"neurons_sum":"0","rank_bits":1,"raw_bits":2,"entropy_bits":2,"erased_bits":0} 73. thermo_store("", 64) => {"bytes":5,"chars":0,"round_trip":true} 74. thermo_prove(["a","b","c"], 1) => ["thermo_round_trip: {\"domain\":[[\"a\",\"b\",\"c\"],1],\"count\":4}","thermo_bijection: {\"typeClasses\":4,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\",\"b\",\"c\"],1],\"count\":4}","thermo_entropy_bound: {\"domain\":[[\"a\",\"b\",\"c\"],1],\"count\":4}","thermo_landauer: 0"] 75. run_prolog("double", "dbls([0, 1, 7, 0], R)") => {"ok":true,"answers":["R = [0, 2, 14, 0]"],"output":"","error":null} 76. convert("greet", "greet_all([3, 9, 8])", "mnn") => {"mode":"mnn","form":"streams","clauses":9,"stream_clauses":7,"errors":[],"warnings":0,"cut_free":true,"heads":["greet__k(N, K__1) :-","greet_all__k1([], K__2) :-","greet_all__k2([H|T], K__3) :-","greet_all__k(A__1, K__0) :-"]} 77. convert_and_back("factorial") => {"same_clauses":true,"back":["fact(0, 1) :-"," !.","fact(N, F) :-"," N1 is N-1,"," fact(N1, F1),"," F is N*F1."],"warnings":0} 78. analyse("last", "last([2, 1, 9], X)") => {"same":true,"prolog":["X = 9"],"detlog":["X = 9"],"mnn":["X = 9"],"back":["X = 9"],"proof_checks":23,"proof_failed":[]} 79. newton_fit([-2,-6,-10]) => {"differences":[-2,-4],"formula":"-4*I - 2"} 80. s2a_formula([[1,5,"x",4],[2,7,"x",7],[3,9,"x",12]]) => "A1 = I + 1, A2 = 2*I + 5, A3 = x, A4 = data[I]" 81. read_and_show("f(-)") => "f(-)" 82. purity("member") => {"pure":["mem/2"],"writes":[],"order":["mem/2"]} 83. parse_range("") => [] 84. fit_growth(2, [{"x":2,"y":24},{"x":5,"y":150},{"x":8,"y":384},{"x":11,"y":726},{"x":14,"y":1176},{"x":17,"y":1734}]) => {"label":"O(n²)","k":2} 85. interpreter_swipl(["-q","-g","main","-t","halt","lambda.pl"]) => {"exit":0,"output":"[1,4,9]-14\n","errors":""} 86. thermo_code("") => {"alphabet":"","counts":[],"rank":"0","round_trip":true,"neurons_sum":"0","rank_bits":0,"raw_bits":0,"entropy_bits":0,"erased_bits":0} 87. thermo_store("ünïcödé • text", 128) => {"bytes":39,"chars":14,"round_trip":true} 88. thermo_prove(["a","b"], 4) => ["thermo_round_trip: {\"domain\":[[\"a\",\"b\"],4],\"count\":31}","thermo_bijection: {\"typeClasses\":15,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\",\"b\"],4],\"count\":31}","thermo_entropy_bound: {\"domain\":[[\"a\",\"b\"],4],\"count\":31}","thermo_landauer: 0"] 89. run_prolog("evens", "evens([1], R)") => {"ok":true,"answers":["R = []"],"output":"","error":null} 90. convert("double", "dbls([9, 5], R)", "mnn") => {"mode":"mnn","form":"streams","clauses":19,"stream_clauses":11,"errors":[],"warnings":0,"cut_free":true,"heads":["dbl__k(A__1, A__2, K__0) :-","dbls__k(A__1, A__2, K__0) :-"]} 91. convert_and_back("factorial") => {"same_clauses":true,"back":["fact(0, 1) :-"," !.","fact(N, F) :-"," N1 is N-1,"," fact(N1, F1),"," F is N*F1."],"warnings":0} 92. analyse("length", "len([6, 7, 1, 0], N)") => {"same":true,"prolog":["N = 4"],"detlog":["N = 4"],"mnn":["N = 4"],"back":["N = 4"],"proof_checks":25,"proof_failed":[]} 93. newton_fit([5,5,3,-1,-7,-15]) => {"differences":[5,0,-2],"formula":"-I*I + I + 5"} 94. s2a_formula([[1,1,"x",1],[2,2,"x",4],[3,3,"x",9]]) => "A1 = I + 1, A2 = I + 1, A3 = x, A4 = data[I]" 95. read_and_show("[a, b, c]") => "[a, b, c]" 96. purity("member") => {"pure":["mem/2"],"writes":[],"order":["mem/2"]} 97. parse_range("5 9 x 9") => [5,9,9] 98. fit_growth(0, [{"x":2,"y":6},{"x":5,"y":6},{"x":8,"y":6},{"x":11,"y":6},{"x":14,"y":6},{"x":17,"y":6}]) => {"label":"O(1)","k":0} 99. interpreter_swipl(["-g","main","-t","halt","neg.pl"]) => {"exit":0,"output":"2/ -3\n","errors":""} 100. thermo_code("") => {"alphabet":"","counts":[],"rank":"0","round_trip":true,"neurons_sum":"0","rank_bits":0,"raw_bits":0,"entropy_bits":0,"erased_bits":0} 101. thermo_store("hello world", 128) => {"bytes":28,"chars":11,"round_trip":true} 102. thermo_prove(["a"], 2) => ["thermo_round_trip: {\"domain\":[[\"a\"],2],\"count\":3}","thermo_bijection: {\"typeClasses\":3,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\"],2],\"count\":3}","thermo_entropy_bound: {\"domain\":[[\"a\"],2],\"count\":3}","thermo_landauer: 0"] 103. run_prolog("reverse", "rev([], R)") => {"ok":true,"answers":["R = []"],"output":"","error":null} 104. convert("max", "mx(-1, 6, M)", "plain") => {"mode":"plain","form":"streams","clauses":2,"stream_clauses":3,"errors":[],"warnings":0,"cut_free":true,"heads":["mx__k(A__1, A__2, A__3, K__1) :-"]} 105. convert_and_back("greet") => {"same_clauses":true,"back":["greet(N) :-"," write(hello(N)),"," nl.","greet_all([]).","greet_all([H|T]) :-"," greet(H),"," greet_all(T)."],"warnings":0} 106. analyse("double", "dbls([1, 5], R)") => {"same":true,"prolog":["R = [2, 10]"],"detlog":["R = [2, 10]"],"mnn":["R = [2, 10]"],"back":["R = [2, 10]"],"proof_checks":28,"proof_failed":[]} 107. newton_fit([1,6,15,28,45]) => {"differences":[1,5,4],"formula":"2*I*I + 3*I + 1"} 108. s2a_formula([[1,2,"x",1],[2,4,"x",4],[3,6,"x",9],[4,8,"x",16]]) => "A1 = I + 1, A2 = 2*I + 2, A3 = x, A4 = I*I + 2*I + 1" 109. read_and_show("\\+ p(X)") => "\\+ p(X)" 110. purity("append") => {"pure":["app/3"],"writes":[],"order":["app/3"]} 111. parse_range("2..14 by 2") => [2,4,6,8,10,12,14] 112. fit_growth(0, [{"x":2,"y":8},{"x":5,"y":8},{"x":8,"y":8},{"x":11,"y":8},{"x":14,"y":8},{"x":17,"y":8}]) => {"label":"O(1)","k":0} 113. interpreter_swipl(["-g","nrev([a,b,c], R), print(R), nl","-t","halt","nrev.pl"]) => {"exit":0,"output":"[c,b,a]\n","errors":""} 114. thermo_code("abracadabra") => {"alphabet":"abcdr","counts":[5,2,1,1,2],"rank":"21519","round_trip":true,"neurons_sum":"21519","rank_bits":17,"raw_bits":33,"entropy_bits":22.444,"erased_bits":5} 115. thermo_store("", 16) => {"bytes":5,"chars":0,"round_trip":true} 116. thermo_prove(["a","b"], 3) => ["thermo_round_trip: {\"domain\":[[\"a\",\"b\"],3],\"count\":15}","thermo_bijection: {\"typeClasses\":10,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\",\"b\"],3],\"count\":15}","thermo_entropy_bound: {\"domain\":[[\"a\",\"b\"],3],\"count\":15}","thermo_landauer: 0"] 117. run_prolog("grade", "grade(56, G)") => {"ok":true,"answers":["G = c"],"output":"","error":null} 118. convert("last", "last([4, 3, 0], X)", "mnn") => {"mode":"mnn","form":"streams","clauses":7,"stream_clauses":5,"errors":[],"warnings":0,"cut_free":true,"heads":["last__k(A__1, A__2, K__0) :-"]} 119. convert_and_back("last") => {"same_clauses":true,"back":["last([X], X) :-"," !.","last([_|T], X) :-"," last(T, X)."],"warnings":0} 120. analyse("max", "mx(-9, -4, M)") => {"same":true,"prolog":["M = -4"],"detlog":["M = -4"],"mnn":["M = -4"],"back":["M = -4"],"proof_checks":23,"proof_failed":[]} 121. newton_fit([-2,5,16,31,50]) => {"differences":[-2,7,4],"formula":"2*I*I + 5*I - 2"} 122. s2a_formula([[1,2,"x",2],[2,3,"x",5],[3,4,"x",10],[4,5,"x",17],[5,6,"x",26],[6,7,"x",37]]) => "A1 = I + 1, A2 = I + 2, A3 = x, A4 = I*I + 2*I + 2" 123. read_and_show("a- -1") => "a- -1" 124. purity("append") => {"pure":["app/3"],"writes":[],"order":["app/3"]} 125. parse_range("4..18 by 5") => [4,9,14] 126. fit_growth(3, [{"x":2,"y":56},{"x":5,"y":875},{"x":8,"y":3584},{"x":11,"y":9317},{"x":14,"y":19208},{"x":17,"y":34391}]) => {"label":"O(n³)","k":3} 127. interpreter_swipl(["-g","put","-g","show","-g","cyc","-t","halt","live.pl"]) => {"exit":0,"output":"1\ncyclic_ok\n","errors":""} 128. thermo_code("banana") => {"alphabet":"abn","counts":[3,1,2],"rank":"34","round_trip":true,"neurons_sum":"34","rank_bits":6,"raw_bits":12,"entropy_bits":8.755,"erased_bits":1} 129. thermo_store("append([], L, L).\nappend([H|T], L, [H|R]) :- append(T, L, R).\n", 64) => {"bytes":86,"chars":62,"round_trip":true} 130. thermo_prove(["x","y","z","w"], 3) => ["thermo_round_trip: {\"domain\":[[\"w\",\"x\",\"y\",\"z\"],3],\"count\":85}","thermo_bijection: {\"typeClasses\":35,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"w\",\"x\",\"y\",\"z\"],3],\"count\":85}","thermo_entropy_bound: {\"domain\":[[\"w\",\"x\",\"y\",\"z\"],3],\"count\":85}","thermo_landauer: 0"] 131. run_prolog("sum", "sum([8, 5], S)") => {"ok":true,"answers":["S = 13"],"output":"","error":null} 132. convert("double", "dbls([8], R)", "plain") => {"mode":"plain","form":"streams","clauses":9,"stream_clauses":7,"errors":[],"warnings":0,"cut_free":true,"heads":["dbl__k(X, Y, K__1) :-","dbls__k1([], [], K__2) :-","dbls__k2([H|T], [D|R], K__3) :-","dbls__k(A__1, A__2, K__0) :-"]} 133. convert_and_back("evens") => {"same_clauses":true,"back":["evens([], []).","evens([H|T], [H|R]) :-"," 0 is H mod 2,"," !,"," evens(T, R).","evens([_|T], R) :-"," evens(T, R)."],"warnings":0} 134. analyse("length", "len([3], N)") => {"same":true,"prolog":["N = 1"],"detlog":["N = 1"],"mnn":["N = 1"],"back":["N = 1"],"proof_checks":25,"proof_failed":[]} 135. newton_fit([1,0,-1,-2]) => {"differences":[1,-1],"formula":"-I + 1"} 136. s2a_formula([[1,6,"x",3],[2,10,"x",6],[3,14,"x",11],[4,18,"x",18],[5,22,"x",27]]) => "A1 = I + 1, A2 = 4*I + 6, A3 = x, A4 = I*I + 2*I + 3" 137. read_and_show("[a, b, c]") => "[a, b, c]" 138. purity("member") => {"pure":["mem/2"],"writes":[],"order":["mem/2"]} 139. parse_range("3..18 by 4") => [3,7,11,15] 140. fit_growth(0, [{"x":2,"y":5},{"x":5,"y":5},{"x":8,"y":5},{"x":11,"y":5},{"x":14,"y":5},{"x":17,"y":5}]) => {"label":"O(1)","k":0} 141. interpreter_swipl(["-g","main","-t","halt","json.pl"]) => {"exit":0,"output":"Ann 6\n","errors":""} 142. thermo_code("banana") => {"alphabet":"abn","counts":[3,1,2],"rank":"34","round_trip":true,"neurons_sum":"34","rank_bits":6,"raw_bits":12,"entropy_bits":8.755,"erased_bits":1} 143. thermo_store("hello world", 16) => {"bytes":28,"chars":11,"round_trip":true} 144. thermo_prove(["a","b","c"], 1) => ["thermo_round_trip: {\"domain\":[[\"a\",\"b\",\"c\"],1],\"count\":4}","thermo_bijection: {\"typeClasses\":4,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\",\"b\",\"c\"],1],\"count\":4}","thermo_entropy_bound: {\"domain\":[[\"a\",\"b\",\"c\"],1],\"count\":4}","thermo_landauer: 0"] 145. run_prolog("append", "app([5, 9, 8], [4, 5], Z)") => {"ok":true,"answers":["Z = [5, 9, 8, 4, 5]"],"output":"","error":null} 146. convert("member", "mem(X, [8, 3, 7, 8])", "mnn") => {"mode":"mnn","form":"streams","clauses":4,"stream_clauses":5,"errors":[],"warnings":0,"cut_free":true,"heads":["mem__k1(X, [X|U__1], K__1) :-","mem__k2(X, [U__1|T], K__2) :-","mem__k(A__1, A__2, K__0) :-"]} 147. convert_and_back("double") => {"same_clauses":true,"back":["dbl(X, Y) :-"," Y is 2*X.","dbls([], []).","dbls([H|T], [D|R]) :-"," dbl(H, D),"," dbls(T, R)."],"warnings":0} 148. analyse("greet", "greet_all([4])") => {"same":true,"prolog":["true"],"detlog":["true"],"mnn":["true"],"back":["true"],"proof_checks":22,"proof_failed":[]} 149. newton_fit([1,1,-9,-35,-83,-159,-269]) => {"differences":[1,0,-10,-6],"formula":"-I*I*I - 2*I*I + 3*I + 1"} 150. s2a_formula([[1,4,"y",4],[2,5,"y",7],[3,6,"y",12],[4,7,"y",19],[5,8,"y",28]]) => "A1 = I + 1, A2 = I + 4, A3 = y, A4 = I*I + 2*I + 4" 151. read_and_show("\\+ p(X)") => "\\+ p(X)" 152. purity("append") => {"pure":["app/3"],"writes":[],"order":["app/3"]} 153. parse_range("") => [] 154. fit_growth("exp", [{"x":2,"y":4},{"x":5,"y":32},{"x":8,"y":256},{"x":11,"y":2048},{"x":14,"y":16384},{"x":17,"y":131072}]) => {"label":"O(2.00^n)","k":4.71} 155. interpreter_swipl(["-g","main","-t","halt","gcd.pl"]) => {"exit":0,"output":"2\n","errors":""} 156. thermo_code("") => {"alphabet":"","counts":[],"rank":"0","round_trip":true,"neurons_sum":"0","rank_bits":0,"raw_bits":0,"entropy_bits":0,"erased_bits":0} 157. thermo_store("hello world", 16) => {"bytes":28,"chars":11,"round_trip":true} 158. thermo_prove(["x","y","z","w"], 1) => ["thermo_round_trip: {\"domain\":[[\"w\",\"x\",\"y\",\"z\"],1],\"count\":5}","thermo_bijection: {\"typeClasses\":5,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"w\",\"x\",\"y\",\"z\"],1],\"count\":5}","thermo_entropy_bound: {\"domain\":[[\"w\",\"x\",\"y\",\"z\"],1],\"count\":5}","thermo_landauer: 0"] 159. run_prolog("evens", "evens([2, 4, 9, 8, 1], R)") => {"ok":true,"answers":["R = [2, 4, 8]"],"output":"","error":null} 160. convert("greet", "greet_all([])", "mnn") => {"mode":"mnn","form":"streams","clauses":9,"stream_clauses":7,"errors":[],"warnings":0,"cut_free":true,"heads":["greet__k(N, K__1) :-","greet_all__k1([], K__2) :-","greet_all__k2([H|T], K__3) :-","greet_all__k(A__1, K__0) :-"]} 161. convert_and_back("sum") => {"same_clauses":true,"back":["sum([], 0).","sum([H|T], S) :-"," sum(T, S1),"," S is S1+H."],"warnings":0} 162. analyse("length", "len([], N)") => {"same":true,"prolog":["N = 0"],"detlog":["N = 0"],"mnn":["N = 0"],"back":["N = 0"],"proof_checks":25,"proof_failed":[]} 163. newton_fit([-3,3,21,57]) => {"formula":null} 164. s2a_formula([[1,2,"x",2],[2,3,"x",5],[3,4,"x",10]]) => "A1 = I + 1, A2 = I + 2, A3 = x, A4 = data[I]" 165. read_and_show("f(X, [a|T], \"s\", 1.5)") => "f(X, [a|T], \"s\", 1.5)" 166. purity("last") => {"pure":[],"writes":[],"order":["last/2"]} 167. parse_range("") => [] 168. fit_growth(3, [{"x":2,"y":24},{"x":5,"y":375},{"x":8,"y":1536},{"x":11,"y":3993},{"x":14,"y":8232},{"x":17,"y":14739}]) => {"label":"O(n³)","k":3} 169. interpreter_swipl(["halt.pl"]) => {"exit":3,"output":"start\n","errors":""} 170. thermo_code("ab") => {"alphabet":"ab","counts":[1,1],"rank":"0","round_trip":true,"neurons_sum":"0","rank_bits":1,"raw_bits":2,"entropy_bits":2,"erased_bits":0} 171. thermo_store("{\"pick\":\"MNN\",\"why\":\"the fastest on this goal\"}", 64) => {"bytes":86,"chars":47,"round_trip":true} 172. thermo_prove(["a","b","c"], 4) => ["thermo_round_trip: {\"domain\":[[\"a\",\"b\",\"c\"],4],\"count\":121}","thermo_bijection: {\"typeClasses\":35,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\",\"b\",\"c\"],4],\"count\":121}","thermo_entropy_bound: {\"domain\":[[\"a\",\"b\",\"c\"],4],\"count\":121}","thermo_landauer: 0"] 173. run_prolog("evens", "evens([], R)") => {"ok":true,"answers":["R = []"],"output":"","error":null} 174. convert("factorial", "fact(4, F)", "plain") => {"mode":"plain","form":"streams","clauses":6,"stream_clauses":4,"errors":[],"warnings":0,"cut_free":true,"heads":["fact__k(A__1, A__2, K__1) :-"]} 175. convert_and_back("double") => {"same_clauses":true,"back":["dbl(X, Y) :-"," Y is 2*X.","dbls([], []).","dbls([H|T], [D|R]) :-"," dbl(H, D),"," dbls(T, R)."],"warnings":0} 176. analyse("evens", "evens([9], R)") => {"same":true,"prolog":["R = []"],"detlog":["R = []"],"mnn":["R = []"],"back":["R = []"],"proof_checks":20,"proof_failed":[]} 177. newton_fit([4,2,-4]) => {"formula":null} 178. s2a_formula([[1,3,"x",1],[2,6,"x",4],[3,9,"x",9],[4,12,"x",16]]) => "A1 = I + 1, A2 = 3*I + 3, A3 = x, A4 = I*I + 2*I + 1" 179. read_and_show("X = f(Y, Y)") => "X = f(Y, Y)" 180. purity("length") => {"pure":["len/2"],"writes":[],"order":["len/2"]} 181. parse_range("6") => [6] 182. fit_growth(2, [{"x":2,"y":36},{"x":5,"y":225},{"x":8,"y":576},{"x":11,"y":1089},{"x":14,"y":1764},{"x":17,"y":2601}]) => {"label":"O(n²)","k":2} 183. interpreter_swipl(["-g","run_tests","-t","halt","units.pl"]) => {"exit":1,"output":"","errors":"ERROR: test a:two: failed\n% 1 tests failed\n% 1 tests passed\nWarning: goal (run_tests) failed\n"} 184. thermo_code("banana") => {"alphabet":"abn","counts":[3,1,2],"rank":"34","round_trip":true,"neurons_sum":"34","rank_bits":6,"raw_bits":12,"entropy_bits":8.755,"erased_bits":1} 185. thermo_store("", 16) => {"bytes":5,"chars":0,"round_trip":true} 186. thermo_prove(["a","b","c"], 3) => ["thermo_round_trip: {\"domain\":[[\"a\",\"b\",\"c\"],3],\"count\":40}","thermo_bijection: {\"typeClasses\":20,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"a\",\"b\",\"c\"],3],\"count\":40}","thermo_entropy_bound: {\"domain\":[[\"a\",\"b\",\"c\"],3],\"count\":40}","thermo_landauer: 0"] 187. run_prolog("last", "last([3], X)") => {"ok":true,"answers":["X = 3"],"output":"","error":null} 188. convert("last", "last([3, 5, 7, 9], X)", "mnn") => {"mode":"mnn","form":"streams","clauses":7,"stream_clauses":5,"errors":[],"warnings":0,"cut_free":true,"heads":["last__k(A__1, A__2, K__0) :-"]} 189. convert_and_back("double") => {"same_clauses":true,"back":["dbl(X, Y) :-"," Y is 2*X.","dbls([], []).","dbls([H|T], [D|R]) :-"," dbl(H, D),"," dbls(T, R)."],"warnings":0} 190. analyse("greet", "greet_all([3, 8])") => {"same":true,"prolog":["true"],"detlog":["true"],"mnn":["true"],"back":["true"],"proof_checks":22,"proof_failed":[]} 191. newton_fit([2,-1,-6,-13,-22,-33,-46]) => {"differences":[2,-3,-2],"formula":"-I*I - 2*I + 2"} 192. s2a_formula([[1,4,"x",1],[2,8,"x",4],[3,12,"x",9],[4,16,"x",16],[5,20,"x",25],[6,24,"x",36]]) => "A1 = I + 1, A2 = 4*I + 4, A3 = x, A4 = I*I + 2*I + 1" 193. read_and_show("- 1") => "- 1" 194. purity("length") => {"pure":["len/2"],"writes":[],"order":["len/2"]} 195. parse_range("") => [] 196. fit_growth(3, [{"x":2,"y":72},{"x":5,"y":1125},{"x":8,"y":4608},{"x":11,"y":11979},{"x":14,"y":24696},{"x":17,"y":44217}]) => {"label":"O(n³)","k":3} 197. interpreter_swipl(["-g","main","-t","halt","gcd.pl"]) => {"exit":0,"output":"2\n","errors":""} 198. thermo_code("") => {"alphabet":"","counts":[],"rank":"0","round_trip":true,"neurons_sum":"0","rank_bits":0,"raw_bits":0,"entropy_bits":0,"erased_bits":0} 199. thermo_store("{\"pick\":\"MNN\",\"why\":\"the fastest on this goal\"}", 64) => {"bytes":86,"chars":47,"round_trip":true} 200. thermo_prove(["x","y","z","w"], 3) => ["thermo_round_trip: {\"domain\":[[\"w\",\"x\",\"y\",\"z\"],3],\"count\":85}","thermo_bijection: {\"typeClasses\":35,\"ranks\":\"exact\"}","thermo_neuron_sum: {\"domain\":[[\"w\",\"x\",\"y\",\"z\"],3],\"count\":85}","thermo_entropy_bound: {\"domain\":[[\"w\",\"x\",\"y\",\"z\"],3],\"count\":85}","thermo_landauer: 0"]