eyelang 1.3.8 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/README.md +19 -14
  2. package/SPEC.md +4 -4
  3. package/conformance/expected/core/001_fact_query.out +0 -8
  4. package/conformance/expected/core/002_rule_recursion.out +0 -41
  5. package/conformance/expected/core/003_terms_and_readback.out +0 -104
  6. package/conformance/expected/core/004_conjunction_and_parentheses.out +0 -25
  7. package/conformance/expected/core/005_list_deconstruction.out +0 -32
  8. package/conformance/expected/core/006_comma_formula_data.out +0 -15
  9. package/conformance/expected/core/007_anonymous_variables.out +0 -19
  10. package/conformance/expected/core/008_graphic_atoms.out +0 -24
  11. package/conformance/expected/core/009_comments_and_whitespace.out +0 -30
  12. package/conformance/expected/core/010_variable_scope_and_reuse.out +0 -52
  13. package/conformance/expected/core/011_predicate_arity.out +0 -30
  14. package/conformance/expected/core/012_nested_compound_unification.out +0 -30
  15. package/conformance/expected/core/013_multiple_clauses_order.out +0 -44
  16. package/conformance/expected/core/014_failure_filters_answers.out +0 -19
  17. package/conformance/expected/core/015_improper_list_unification.out +0 -45
  18. package/conformance/expected/core/016_zero_arity_compound.out +0 -15
  19. package/conformance/expected/core/017_three_step_recursion.out +0 -99
  20. package/conformance/expected/core/018_quoted_atom_readback.out +0 -45
  21. package/conformance/expected/core/019_parenthesized_three_conjuncts.out +0 -36
  22. package/conformance/expected/core/020_nested_list_terms.out +0 -30
  23. package/conformance/expected/extension/001_default_derived_output.out +0 -56
  24. package/conformance/expected/extension/002_materialize_focus.out +0 -22
  25. package/conformance/expected/extension/003_arithmetic_and_comparison.out +0 -148
  26. package/conformance/expected/extension/004_strings_and_atoms.out +0 -58
  27. package/conformance/expected/extension/005_lists_aggregation_ordering.out +0 -135
  28. package/conformance/expected/extension/006_formula_terms.out +0 -76
  29. package/conformance/expected/extension/007_negation_once_generators.out +0 -40
  30. package/conformance/expected/extension/008_equality_and_inequality.out +0 -58
  31. package/conformance/expected/extension/009_list_relations.out +0 -73
  32. package/conformance/expected/extension/010_append_splits.out +0 -45
  33. package/conformance/expected/extension/011_matching_and_comparison.out +0 -70
  34. package/conformance/expected/extension/012_memoize_declaration.out +0 -41
  35. package/conformance/expected/extension/013_numeric_functions.out +0 -105
  36. package/conformance/expected/extension/014_between_enumeration.out +0 -45
  37. package/conformance/expected/extension/015_smallest_divisor.out +0 -15
  38. package/conformance/expected/extension/016_negation_filter.out +0 -38
  39. package/conformance/expected/extension/017_once_user_predicate.out +0 -21
  40. package/conformance/expected/extension/018_findall_user_goal.out +0 -15
  41. package/conformance/expected/extension/019_sort_deduplicates_atoms.out +0 -15
  42. package/conformance/expected/extension/020_append_bound_prefix_suffix.out +0 -30
  43. package/conformance/expected/extension/021_nth0_index_generation.out +0 -15
  44. package/conformance/expected/extension/022_set_nth0_edges.out +0 -30
  45. package/conformance/expected/extension/023_select_duplicate_occurrences.out +0 -30
  46. package/conformance/expected/extension/024_not_member_filter.out +0 -19
  47. package/conformance/expected/extension/025_is_list_filter.out +0 -19
  48. package/conformance/expected/extension/026_nested_formula_terms.out +0 -114
  49. package/conformance/expected/extension/027_materialize_excludes_source_fact.out +0 -14
  50. package/conformance/expected/extension/028_numeric_and_lexical_comparison.out +0 -42
  51. package/conformance/expected/extension/029_string_matching_filters.out +0 -38
  52. package/conformance/expected/extension/030_string_and_atom_concat.out +0 -30
  53. package/conformance/expected/extension/031_countall_empty_and_nonempty.out +0 -18
  54. package/conformance/expected/extension/032_sumall_numeric_template.out +0 -8
  55. package/conformance/expected/extension/033_aggregate_min_template.out +0 -8
  56. package/conformance/expected/extension/034_aggregate_max_compound_key.out +0 -8
  57. package/examples/output/access-control-policy.pl +0 -156
  58. package/examples/output/ackermann.pl +0 -1240
  59. package/examples/output/age.pl +0 -69
  60. package/examples/output/aliases-and-namespaces.pl +0 -73
  61. package/examples/output/alignment-demo.pl +0 -862
  62. package/examples/output/allen-interval-calculus.pl +0 -9169
  63. package/examples/output/ancestor.pl +0 -134
  64. package/examples/output/animal.pl +0 -64
  65. package/examples/output/annotation.pl +0 -76
  66. package/examples/output/backward.pl +0 -21
  67. package/examples/output/basic-monadic.pl +0 -22770
  68. package/examples/output/bayes-diagnosis.pl +0 -195
  69. package/examples/output/bayes-therapy.pl +0 -34873
  70. package/examples/output/beam-deflection.pl +0 -222
  71. package/examples/output/blocks-world-planning.pl +0 -1339
  72. package/examples/output/bmi.pl +0 -1903
  73. package/examples/output/braking-safety-worlds.pl +0 -2452
  74. package/examples/output/buck-converter-design.pl +0 -663
  75. package/examples/output/cache-performance.pl +0 -306
  76. package/examples/output/canary-release.pl +0 -167
  77. package/examples/output/cat-koko.pl +0 -83
  78. package/examples/output/clinical-trial-screening.pl +0 -380
  79. package/examples/output/collatz-1000.pl +0 -19000
  80. package/examples/output/combinatorics-findall-sort.pl +0 -56
  81. package/examples/output/competitive-enzyme-kinetics.pl +0 -563
  82. package/examples/output/complex-matrix-stability.pl +0 -250
  83. package/examples/output/complex.pl +0 -653
  84. package/examples/output/composition-of-injective-functions-is-injective.pl +0 -256
  85. package/examples/output/context-association.pl +0 -75
  86. package/examples/output/control-system.pl +0 -328
  87. package/examples/output/cryptarithmetic-send-more-money.pl +0 -168
  88. package/examples/output/cyclic-path.pl +0 -504
  89. package/examples/output/d3-group.pl +0 -56
  90. package/examples/output/dairy-energy-balance.pl +0 -1034
  91. package/examples/output/data-negotiation.pl +0 -75
  92. package/examples/output/deep-taxonomy-10.pl +0 -1235
  93. package/examples/output/deep-taxonomy-100.pl +0 -1235
  94. package/examples/output/deep-taxonomy-1000.pl +0 -1235
  95. package/examples/output/deep-taxonomy-10000.pl +0 -2915
  96. package/examples/output/deep-taxonomy-100000.pl +0 -20240
  97. package/examples/output/delfour.pl +0 -2829
  98. package/examples/output/dense-hamiltonian-cycle.pl +0 -207
  99. package/examples/output/deontic-logic.pl +0 -105
  100. package/examples/output/derived-rule.pl +0 -41
  101. package/examples/output/diamond-property.pl +0 -303
  102. package/examples/output/dijkstra-findall-sort.pl +0 -484
  103. package/examples/output/dijkstra-risk-path.pl +0 -4841
  104. package/examples/output/dijkstra.pl +0 -1336
  105. package/examples/output/dining-philosophers.pl +0 -21646
  106. package/examples/output/dog.pl +0 -30
  107. package/examples/output/drone-corridor-planner.pl +0 -2466
  108. package/examples/output/easter-computus.pl +0 -5690
  109. package/examples/output/electrical-rc-filter.pl +0 -102
  110. package/examples/output/epidemic-policy.pl +0 -760
  111. package/examples/output/equivalence-classes-overlap-implies-same-class.pl +0 -1080
  112. package/examples/output/eulerian-path.pl +0 -383
  113. package/examples/output/ev-range-worlds.pl +0 -2294
  114. package/examples/output/exact-cover-sudoku.pl +0 -396
  115. package/examples/output/existential-rule.pl +0 -38
  116. package/examples/output/exoplanet-validation-worlds.pl +0 -1904
  117. package/examples/output/expression-eval.pl +0 -104
  118. package/examples/output/family-cousins.pl +0 -3852
  119. package/examples/output/fastpow.pl +0 -1064
  120. package/examples/output/fft8-numeric.pl +0 -2556
  121. package/examples/output/fibonacci.pl +0 -2060
  122. package/examples/output/field-nitrogen-balance.pl +0 -1452
  123. package/examples/output/floating-point.pl +0 -151
  124. package/examples/output/four-color-map.pl +0 -191
  125. package/examples/output/fundamental-theorem-arithmetic.pl +0 -1610
  126. package/examples/output/gcd-bezout-identity.pl +0 -1842
  127. package/examples/output/gd-step-certified.pl +0 -32354
  128. package/examples/output/gdpr-compliance.pl +0 -193
  129. package/examples/output/goldbach-1000.pl +0 -17490
  130. package/examples/output/good-cobbler.pl +0 -15
  131. package/examples/output/gps.pl +0 -4166
  132. package/examples/output/graph-reachability.pl +0 -148
  133. package/examples/output/gray-code-counter.pl +0 -835
  134. package/examples/output/greatest-lower-bound-uniqueness.pl +0 -148
  135. package/examples/output/group-inverse-uniqueness.pl +0 -82
  136. package/examples/output/hamiltonian-cycle.pl +0 -102
  137. package/examples/output/hamiltonian-path.pl +0 -14157
  138. package/examples/output/hamming-code.pl +0 -2665
  139. package/examples/output/hanoi.pl +0 -184
  140. package/examples/output/heat-loss.pl +0 -223
  141. package/examples/output/heron-theorem.pl +0 -253
  142. package/examples/output/ideal-gas-law.pl +0 -148
  143. package/examples/output/illegitimate-reasoning.pl +0 -530
  144. package/examples/output/kaprekar.pl +0 -208
  145. package/examples/output/law-of-cosines.pl +0 -165
  146. package/examples/output/least-squares-regression.pl +0 -1447
  147. package/examples/output/list-collection.pl +0 -49
  148. package/examples/output/lldm.pl +0 -17298
  149. package/examples/output/manufacturing-quality-control.pl +0 -562
  150. package/examples/output/matrix.pl +0 -206
  151. package/examples/output/microgrid-dispatch.pl +0 -787
  152. package/examples/output/monkey-bananas.pl +0 -575
  153. package/examples/output/n-queens.pl +0 -2046
  154. package/examples/output/network-sla.pl +0 -282
  155. package/examples/output/newton-raphson.pl +0 -756
  156. package/examples/output/nixon-diamond.pl +0 -176
  157. package/examples/output/odrl-dpv-healthcare-risk-ranked.pl +0 -6148
  158. package/examples/output/odrl-dpv-risk-ranked.pl +0 -12961
  159. package/examples/output/orbital-transfer-design.pl +0 -961
  160. package/examples/output/path-discovery.pl +0 -333
  161. package/examples/output/peano-arithmetic.pl +0 -1432
  162. package/examples/output/peasant.pl +0 -190
  163. package/examples/output/pendulum-period.pl +0 -271
  164. package/examples/output/polynomial.pl +0 -7952
  165. package/examples/output/project-portfolio-optimization.pl +0 -93
  166. package/examples/output/proof-contrapositive.pl +0 -75
  167. package/examples/output/quadratic-formula.pl +0 -454
  168. package/examples/output/quine-mccluskey.pl +0 -188
  169. package/examples/output/radioactive-decay.pl +0 -299
  170. package/examples/output/sat-dpll.pl +0 -121
  171. package/examples/output/security-incident-correlation.pl +0 -267
  172. package/examples/output/service-impact.pl +0 -457
  173. package/examples/output/sieve.pl +0 -19
  174. package/examples/output/skolem-functions.pl +0 -264
  175. package/examples/output/socket-age.pl +0 -31
  176. package/examples/output/socket-family.pl +0 -56
  177. package/examples/output/socrates.pl +0 -36
  178. package/examples/output/statistics-summary.pl +0 -741
  179. package/examples/output/sudoku.pl +0 -38
  180. package/examples/output/superdense-coding.pl +0 -476
  181. package/examples/output/traveling-salesman.pl +0 -284
  182. package/examples/output/turing.pl +0 -2144
  183. package/examples/output/vector-similarity.pl +0 -421
  184. package/examples/output/witch.pl +0 -209
  185. package/examples/output/wolf-goat-cabbage.pl +0 -900
  186. package/examples/output/zebra.pl +0 -401
  187. package/examples/proof/age.pl +71 -0
  188. package/examples/proof/aliases-and-namespaces.pl +78 -0
  189. package/examples/proof/ancestor.pl +140 -0
  190. package/examples/proof/animal.pl +68 -0
  191. package/examples/proof/annotation.pl +80 -0
  192. package/examples/proof/backward.pl +22 -0
  193. package/examples/proof/cat-koko.pl +86 -0
  194. package/examples/proof/data-negotiation.pl +76 -0
  195. package/examples/proof/derived-rule.pl +43 -0
  196. package/examples/proof/dog.pl +31 -0
  197. package/examples/proof/electrical-rc-filter.pl +105 -0
  198. package/examples/proof/existential-rule.pl +40 -0
  199. package/examples/proof/floating-point.pl +160 -0
  200. package/examples/proof/good-cobbler.pl +16 -0
  201. package/examples/proof/group-inverse-uniqueness.pl +84 -0
  202. package/examples/proof/list-collection.pl +52 -0
  203. package/examples/proof/proof-contrapositive.pl +78 -0
  204. package/examples/proof/socket-age.pl +32 -0
  205. package/examples/proof/socket-family.pl +59 -0
  206. package/examples/proof/socrates.pl +38 -0
  207. package/examples/socket-age.pl +4 -4
  208. package/examples/socket-family.pl +4 -4
  209. package/package.json +1 -1
  210. package/playground-worker.mjs +4 -4
  211. package/playground.html +15 -15
  212. package/src/cli.js +10 -10
  213. package/src/index.js +3 -2
  214. package/src/parser.js +130 -1
  215. package/src/program.js +33 -27
  216. package/test/run-all.js +0 -0
  217. package/test/run-conformance.js +0 -0
  218. package/test/run-examples.js +38 -8
  219. package/test/run-regression.js +29 -28
@@ -1,654 +1 @@
1
1
  is(test, (complex_exponentiation(input(exponentiation, [-1, 0], [0.5, 0]), [6.123233995736766e-17, 1.0]), complex_exponentiation(input(exponentiation, [2.718281828459045, 0], [0, 3.141592653589793]), [-1.0, 1.2246467991473532e-16]), complex_exponentiation(input(exponentiation, [0, 1], [0, 1]), [0.20787957635076193, 0.0]), complex_exponentiation(input(exponentiation, [2.718281828459045, 0], [-1.57079632679, 0]), [0.20787957635177984, 0.0]), complex_asin(input(asin, [2, 0]), [1.5707963267948966, 1.3169578969248166]), complex_acos(input(acos, [2, 0]), [0.0, -1.3169578969248166]))).
2
- why(
3
- is(test, (complex_exponentiation(input(exponentiation, [-1, 0], [0.5, 0]), [6.123233995736766e-17, 1.0]), complex_exponentiation(input(exponentiation, [2.718281828459045, 0], [0, 3.141592653589793]), [-1.0, 1.2246467991473532e-16]), complex_exponentiation(input(exponentiation, [0, 1], [0, 1]), [0.20787957635076193, 0.0]), complex_exponentiation(input(exponentiation, [2.718281828459045, 0], [-1.57079632679, 0]), [0.20787957635177984, 0.0]), complex_asin(input(asin, [2, 0]), [1.5707963267948966, 1.3169578969248166]), complex_acos(input(acos, [2, 0]), [0.0, -1.3169578969248166]))),
4
- proof(
5
- goal(is(test, (complex_exponentiation(input(exponentiation, [-1, 0], [0.5, 0]), [6.123233995736766e-17, 1.0]), complex_exponentiation(input(exponentiation, [2.718281828459045, 0], [0, 3.141592653589793]), [-1.0, 1.2246467991473532e-16]), complex_exponentiation(input(exponentiation, [0, 1], [0, 1]), [0.20787957635076193, 0.0]), complex_exponentiation(input(exponentiation, [2.718281828459045, 0], [-1.57079632679, 0]), [0.20787957635177984, 0.0]), complex_asin(input(asin, [2, 0]), [1.5707963267948966, 1.3169578969248166]), complex_acos(input(acos, [2, 0]), [0.0, -1.3169578969248166])))),
6
- by(rule("complex.pl", clause(12))),
7
- bindings([binding("C1", [6.123233995736766e-17, 1.0]), binding("C2", [-1.0, 1.2246467991473532e-16]), binding("C3", [0.20787957635076193, 0.0]), binding("C4", [0.20787957635177984, 0.0]), binding("C5", [1.5707963267948966, 1.3169578969248166]), binding("C6", [0.0, -1.3169578969248166])]),
8
- uses([
9
- proof(
10
- goal(complex_exponentiation([-1, 0], [0.5, 0], [6.123233995736766e-17, 1.0])),
11
- by(rule("complex.pl", clause(4))),
12
- bindings([binding("A", -1), binding("B", 0), binding("C", 0.5), binding("D", 0), binding("E", 6.123233995736766e-17), binding("F", 1.0), binding("R", 1.0), binding("T", 3.1415926535897931), binding("Z1", 1.0), binding("Z2", 0), binding("Z3", 0.0), binding("Euler", 2.718281828459045), binding("Z4", 1.0), binding("Z5", 0.0), binding("Z6", 0.0), binding("Z7", 1.5707963267948966), binding("Z8", 1.5707963267948966), binding("Z9", 6.123233995736766e-17), binding("Z1Z4", 1.0), binding("Z10", 1.0)]),
13
- uses([
14
- proof(
15
- goal(complex_polar([-1, 0], [1.0, 3.1415926535897931])),
16
- by(rule("complex.pl", clause(7))),
17
- bindings([binding("X", -1), binding("Y", 0), binding("R", 1.0), binding("Tp", 3.1415926535897931), binding("Z1", 1), binding("Z2", 0), binding("Z3", 1), binding("Z4", 1), binding("Z5", 1.0), binding("T", 0.0)]),
18
- uses([
19
- proof(
20
- goal(pow(-1, 2, 1)),
21
- by(builtin(pow, 3))
22
- ),
23
- proof(
24
- goal(pow(0, 2, 0)),
25
- by(builtin(pow, 3))
26
- ),
27
- proof(
28
- goal(add(1, 0, 1)),
29
- by(builtin(add, 3))
30
- ),
31
- proof(
32
- goal(pow(1, 0.5, 1.0)),
33
- by(builtin(pow, 3))
34
- ),
35
- proof(
36
- goal(abs(-1, 1)),
37
- by(builtin(abs, 2))
38
- ),
39
- proof(
40
- goal(div(1, 1.0, 1.0)),
41
- by(builtin(div, 3))
42
- ),
43
- proof(
44
- goal(acos(1.0, 0.0)),
45
- by(builtin(acos, 2))
46
- ),
47
- proof(
48
- goal(complex_dial(-1, 0, 0.0, 3.1415926535897931)),
49
- by(rule("complex.pl", clause(9))),
50
- bindings([binding("X", -1), binding("Y", 0), binding("T", 0.0), binding("Tp", 3.1415926535897931), binding("Pi", 3.141592653589793)]),
51
- uses([
52
- proof(
53
- goal(lt(-1, 0)),
54
- by(builtin(lt, 2))
55
- ),
56
- proof(
57
- goal(ge(0, 0)),
58
- by(builtin(ge, 2))
59
- ),
60
- proof(
61
- goal(pi(3.141592653589793)),
62
- by(fact("complex.pl", clause(2)))
63
- ),
64
- proof(
65
- goal(sub(3.141592653589793, 0.0, 3.1415926535897931)),
66
- by(builtin(sub, 3))
67
- )
68
- ])
69
- )
70
- ])
71
- ),
72
- proof(
73
- goal(pow(1.0, 0.5, 1.0)),
74
- by(builtin(pow, 3))
75
- ),
76
- proof(
77
- goal(neg(0, 0)),
78
- by(builtin(neg, 2))
79
- ),
80
- proof(
81
- goal(mul(0, 3.1415926535897931, 0.0)),
82
- by(builtin(mul, 3))
83
- ),
84
- proof(
85
- goal(e(2.718281828459045)),
86
- by(fact("complex.pl", clause(3)))
87
- ),
88
- proof(
89
- goal(pow(2.718281828459045, 0.0, 1.0)),
90
- by(builtin(pow, 3))
91
- ),
92
- proof(
93
- goal(log(1.0, 0.0)),
94
- by(builtin(log, 2))
95
- ),
96
- proof(
97
- goal(mul(0, 0.0, 0.0)),
98
- by(builtin(mul, 3))
99
- ),
100
- proof(
101
- goal(mul(0.5, 3.1415926535897931, 1.5707963267948966)),
102
- by(builtin(mul, 3))
103
- ),
104
- proof(
105
- goal(add(0.0, 1.5707963267948966, 1.5707963267948966)),
106
- by(builtin(add, 3))
107
- ),
108
- proof(
109
- goal(cos(1.5707963267948966, 6.123233995736766e-17)),
110
- by(builtin(cos, 2))
111
- ),
112
- proof(
113
- goal(mul(1.0, 1.0, 1.0)),
114
- by(builtin(mul, 3))
115
- ),
116
- proof(
117
- goal(mul(1.0, 6.123233995736766e-17, 6.123233995736766e-17)),
118
- by(builtin(mul, 3))
119
- ),
120
- proof(
121
- goal(sin(1.5707963267948966, 1.0)),
122
- by(builtin(sin, 2))
123
- ),
124
- proof(
125
- goal(mul(1.0, 1.0, 1.0)),
126
- by(builtin(mul, 3))
127
- )
128
- ])
129
- ),
130
- proof(
131
- goal(complex_exponentiation([2.718281828459045, 0], [0, 3.141592653589793], [-1.0, 1.2246467991473532e-16])),
132
- by(rule("complex.pl", clause(4))),
133
- bindings([binding("A", 2.718281828459045), binding("B", 0), binding("C", 0), binding("D", 3.141592653589793), binding("E", -1.0), binding("F", 1.2246467991473532e-16), binding("R", 2.7182818284590451), binding("T", 0.0), binding("Z1", 1.0), binding("Z2", -3.1415926535897931), binding("Z3", 0.0), binding("Euler", 2.718281828459045), binding("Z4", 1.0), binding("Z5", 1.0), binding("Z6", 3.1415926535897931), binding("Z7", 0.0), binding("Z8", 3.1415926535897931), binding("Z9", -1.0), binding("Z1Z4", 1.0), binding("Z10", 1.2246467991473532e-16)]),
134
- uses([
135
- proof(
136
- goal(complex_polar([2.718281828459045, 0], [2.7182818284590451, 0.0])),
137
- by(rule("complex.pl", clause(7))),
138
- bindings([binding("X", 2.718281828459045), binding("Y", 0), binding("R", 2.7182818284590451), binding("Tp", 0.0), binding("Z1", 7.3890560989306495), binding("Z2", 0), binding("Z3", 7.3890560989306495), binding("Z4", 2.7182818284590451), binding("Z5", 1.0), binding("T", 0.0)]),
139
- uses([
140
- proof(
141
- goal(pow(2.718281828459045, 2, 7.3890560989306495)),
142
- by(builtin(pow, 3))
143
- ),
144
- proof(
145
- goal(pow(0, 2, 0)),
146
- by(builtin(pow, 3))
147
- ),
148
- proof(
149
- goal(add(7.3890560989306495, 0, 7.3890560989306495)),
150
- by(builtin(add, 3))
151
- ),
152
- proof(
153
- goal(pow(7.3890560989306495, 0.5, 2.7182818284590451)),
154
- by(builtin(pow, 3))
155
- ),
156
- proof(
157
- goal(abs(2.718281828459045, 2.7182818284590451)),
158
- by(builtin(abs, 2))
159
- ),
160
- proof(
161
- goal(div(2.7182818284590451, 2.7182818284590451, 1.0)),
162
- by(builtin(div, 3))
163
- ),
164
- proof(
165
- goal(acos(1.0, 0.0)),
166
- by(builtin(acos, 2))
167
- ),
168
- proof(
169
- goal(complex_dial(2.718281828459045, 0, 0.0, 0.0)),
170
- by(rule("complex.pl", clause(8))),
171
- bindings([binding("X", 2.718281828459045), binding("Y", 0), binding("T", 0.0), binding("Tp", 0.0)]),
172
- uses([
173
- proof(
174
- goal(ge(2.718281828459045, 0)),
175
- by(builtin(ge, 2))
176
- ),
177
- proof(
178
- goal(ge(0, 0)),
179
- by(builtin(ge, 2))
180
- ),
181
- proof(
182
- goal(add(0, 0.0, 0.0)),
183
- by(builtin(add, 3))
184
- )
185
- ])
186
- )
187
- ])
188
- ),
189
- proof(
190
- goal(pow(2.7182818284590451, 0, 1.0)),
191
- by(builtin(pow, 3))
192
- ),
193
- proof(
194
- goal(neg(3.141592653589793, -3.1415926535897931)),
195
- by(builtin(neg, 2))
196
- ),
197
- proof(
198
- goal(mul(-3.1415926535897931, 0.0, 0.0)),
199
- by(builtin(mul, 3))
200
- ),
201
- proof(
202
- goal(e(2.718281828459045)),
203
- by(fact("complex.pl", clause(3)))
204
- ),
205
- proof(
206
- goal(pow(2.718281828459045, 0.0, 1.0)),
207
- by(builtin(pow, 3))
208
- ),
209
- proof(
210
- goal(log(2.7182818284590451, 1.0)),
211
- by(builtin(log, 2))
212
- ),
213
- proof(
214
- goal(mul(3.141592653589793, 1.0, 3.1415926535897931)),
215
- by(builtin(mul, 3))
216
- ),
217
- proof(
218
- goal(mul(0, 0.0, 0.0)),
219
- by(builtin(mul, 3))
220
- ),
221
- proof(
222
- goal(add(3.1415926535897931, 0.0, 3.1415926535897931)),
223
- by(builtin(add, 3))
224
- ),
225
- proof(
226
- goal(cos(3.1415926535897931, -1.0)),
227
- by(builtin(cos, 2))
228
- ),
229
- proof(
230
- goal(mul(1.0, 1.0, 1.0)),
231
- by(builtin(mul, 3))
232
- ),
233
- proof(
234
- goal(mul(1.0, -1.0, -1.0)),
235
- by(builtin(mul, 3))
236
- ),
237
- proof(
238
- goal(sin(3.1415926535897931, 1.2246467991473532e-16)),
239
- by(builtin(sin, 2))
240
- ),
241
- proof(
242
- goal(mul(1.0, 1.2246467991473532e-16, 1.2246467991473532e-16)),
243
- by(builtin(mul, 3))
244
- )
245
- ])
246
- ),
247
- proof(
248
- goal(complex_exponentiation([0, 1], [0, 1], [0.20787957635076193, 0.0])),
249
- by(rule("complex.pl", clause(4))),
250
- bindings([binding("A", 0), binding("B", 1), binding("C", 0), binding("D", 1), binding("E", 0.20787957635076193), binding("F", 0.0), binding("R", 1.0), binding("T", 1.5707963267948966), binding("Z1", 1.0), binding("Z2", -1), binding("Z3", -1.5707963267948966), binding("Euler", 2.718281828459045), binding("Z4", 0.20787957635076193), binding("Z5", 0.0), binding("Z6", 0.0), binding("Z7", 0.0), binding("Z8", 0.0), binding("Z9", 1.0), binding("Z1Z4", 0.20787957635076193), binding("Z10", 0.0)]),
251
- uses([
252
- proof(
253
- goal(complex_polar([0, 1], [1.0, 1.5707963267948966])),
254
- by(rule("complex.pl", clause(7))),
255
- bindings([binding("X", 0), binding("Y", 1), binding("R", 1.0), binding("Tp", 1.5707963267948966), binding("Z1", 0), binding("Z2", 1), binding("Z3", 1), binding("Z4", 0), binding("Z5", 0.0), binding("T", 1.5707963267948966)]),
256
- uses([
257
- proof(
258
- goal(pow(0, 2, 0)),
259
- by(builtin(pow, 3))
260
- ),
261
- proof(
262
- goal(pow(1, 2, 1)),
263
- by(builtin(pow, 3))
264
- ),
265
- proof(
266
- goal(add(0, 1, 1)),
267
- by(builtin(add, 3))
268
- ),
269
- proof(
270
- goal(pow(1, 0.5, 1.0)),
271
- by(builtin(pow, 3))
272
- ),
273
- proof(
274
- goal(abs(0, 0)),
275
- by(builtin(abs, 2))
276
- ),
277
- proof(
278
- goal(div(0, 1.0, 0.0)),
279
- by(builtin(div, 3))
280
- ),
281
- proof(
282
- goal(acos(0.0, 1.5707963267948966)),
283
- by(builtin(acos, 2))
284
- ),
285
- proof(
286
- goal(complex_dial(0, 1, 1.5707963267948966, 1.5707963267948966)),
287
- by(rule("complex.pl", clause(8))),
288
- bindings([binding("X", 0), binding("Y", 1), binding("T", 1.5707963267948966), binding("Tp", 1.5707963267948966)]),
289
- uses([
290
- proof(
291
- goal(ge(0, 0)),
292
- by(builtin(ge, 2))
293
- ),
294
- proof(
295
- goal(ge(1, 0)),
296
- by(builtin(ge, 2))
297
- ),
298
- proof(
299
- goal(add(0, 1.5707963267948966, 1.5707963267948966)),
300
- by(builtin(add, 3))
301
- )
302
- ])
303
- )
304
- ])
305
- ),
306
- proof(
307
- goal(pow(1.0, 0, 1.0)),
308
- by(builtin(pow, 3))
309
- ),
310
- proof(
311
- goal(neg(1, -1)),
312
- by(builtin(neg, 2))
313
- ),
314
- proof(
315
- goal(mul(-1, 1.5707963267948966, -1.5707963267948966)),
316
- by(builtin(mul, 3))
317
- ),
318
- proof(
319
- goal(e(2.718281828459045)),
320
- by(fact("complex.pl", clause(3)))
321
- ),
322
- proof(
323
- goal(pow(2.718281828459045, -1.5707963267948966, 0.20787957635076193)),
324
- by(builtin(pow, 3))
325
- ),
326
- proof(
327
- goal(log(1.0, 0.0)),
328
- by(builtin(log, 2))
329
- ),
330
- proof(
331
- goal(mul(1, 0.0, 0.0)),
332
- by(builtin(mul, 3))
333
- ),
334
- proof(
335
- goal(mul(0, 1.5707963267948966, 0.0)),
336
- by(builtin(mul, 3))
337
- ),
338
- proof(
339
- goal(add(0.0, 0.0, 0.0)),
340
- by(builtin(add, 3))
341
- ),
342
- proof(
343
- goal(cos(0.0, 1.0)),
344
- by(builtin(cos, 2))
345
- ),
346
- proof(
347
- goal(mul(1.0, 0.20787957635076193, 0.20787957635076193)),
348
- by(builtin(mul, 3))
349
- ),
350
- proof(
351
- goal(mul(0.20787957635076193, 1.0, 0.20787957635076193)),
352
- by(builtin(mul, 3))
353
- ),
354
- proof(
355
- goal(sin(0.0, 0.0)),
356
- by(builtin(sin, 2))
357
- ),
358
- proof(
359
- goal(mul(0.20787957635076193, 0.0, 0.0)),
360
- by(builtin(mul, 3))
361
- )
362
- ])
363
- ),
364
- proof(
365
- goal(complex_exponentiation([2.718281828459045, 0], [-1.57079632679, 0], [0.20787957635177984, 0.0])),
366
- by(rule("complex.pl", clause(4))),
367
- bindings([binding("A", 2.718281828459045), binding("B", 0), binding("C", -1.57079632679), binding("D", 0), binding("E", 0.20787957635177984), binding("F", 0.0), binding("R", 2.7182818284590451), binding("T", 0.0), binding("Z1", 0.20787957635177984), binding("Z2", 0), binding("Z3", 0.0), binding("Euler", 2.718281828459045), binding("Z4", 1.0), binding("Z5", 1.0), binding("Z6", 0.0), binding("Z7", 0.0), binding("Z8", 0.0), binding("Z9", 1.0), binding("Z1Z4", 0.20787957635177984), binding("Z10", 0.0)]),
368
- uses([
369
- proof(
370
- goal(complex_polar([2.718281828459045, 0], [2.7182818284590451, 0.0])),
371
- by(rule("complex.pl", clause(7))),
372
- bindings([binding("X", 2.718281828459045), binding("Y", 0), binding("R", 2.7182818284590451), binding("Tp", 0.0), binding("Z1", 7.3890560989306495), binding("Z2", 0), binding("Z3", 7.3890560989306495), binding("Z4", 2.7182818284590451), binding("Z5", 1.0), binding("T", 0.0)]),
373
- uses([
374
- proof(
375
- goal(pow(2.718281828459045, 2, 7.3890560989306495)),
376
- by(builtin(pow, 3))
377
- ),
378
- proof(
379
- goal(pow(0, 2, 0)),
380
- by(builtin(pow, 3))
381
- ),
382
- proof(
383
- goal(add(7.3890560989306495, 0, 7.3890560989306495)),
384
- by(builtin(add, 3))
385
- ),
386
- proof(
387
- goal(pow(7.3890560989306495, 0.5, 2.7182818284590451)),
388
- by(builtin(pow, 3))
389
- ),
390
- proof(
391
- goal(abs(2.718281828459045, 2.7182818284590451)),
392
- by(builtin(abs, 2))
393
- ),
394
- proof(
395
- goal(div(2.7182818284590451, 2.7182818284590451, 1.0)),
396
- by(builtin(div, 3))
397
- ),
398
- proof(
399
- goal(acos(1.0, 0.0)),
400
- by(builtin(acos, 2))
401
- ),
402
- proof(
403
- goal(complex_dial(2.718281828459045, 0, 0.0, 0.0)),
404
- by(rule("complex.pl", clause(8))),
405
- bindings([binding("X", 2.718281828459045), binding("Y", 0), binding("T", 0.0), binding("Tp", 0.0)]),
406
- uses([
407
- proof(
408
- goal(ge(2.718281828459045, 0)),
409
- by(builtin(ge, 2))
410
- ),
411
- proof(
412
- goal(ge(0, 0)),
413
- by(builtin(ge, 2))
414
- ),
415
- proof(
416
- goal(add(0, 0.0, 0.0)),
417
- by(builtin(add, 3))
418
- )
419
- ])
420
- )
421
- ])
422
- ),
423
- proof(
424
- goal(pow(2.7182818284590451, -1.57079632679, 0.20787957635177984)),
425
- by(builtin(pow, 3))
426
- ),
427
- proof(
428
- goal(neg(0, 0)),
429
- by(builtin(neg, 2))
430
- ),
431
- proof(
432
- goal(mul(0, 0.0, 0.0)),
433
- by(builtin(mul, 3))
434
- ),
435
- proof(
436
- goal(e(2.718281828459045)),
437
- by(fact("complex.pl", clause(3)))
438
- ),
439
- proof(
440
- goal(pow(2.718281828459045, 0.0, 1.0)),
441
- by(builtin(pow, 3))
442
- ),
443
- proof(
444
- goal(log(2.7182818284590451, 1.0)),
445
- by(builtin(log, 2))
446
- ),
447
- proof(
448
- goal(mul(0, 1.0, 0.0)),
449
- by(builtin(mul, 3))
450
- ),
451
- proof(
452
- goal(mul(-1.57079632679, 0.0, 0.0)),
453
- by(builtin(mul, 3))
454
- ),
455
- proof(
456
- goal(add(0.0, 0.0, 0.0)),
457
- by(builtin(add, 3))
458
- ),
459
- proof(
460
- goal(cos(0.0, 1.0)),
461
- by(builtin(cos, 2))
462
- ),
463
- proof(
464
- goal(mul(0.20787957635177984, 1.0, 0.20787957635177984)),
465
- by(builtin(mul, 3))
466
- ),
467
- proof(
468
- goal(mul(0.20787957635177984, 1.0, 0.20787957635177984)),
469
- by(builtin(mul, 3))
470
- ),
471
- proof(
472
- goal(sin(0.0, 0.0)),
473
- by(builtin(sin, 2))
474
- ),
475
- proof(
476
- goal(mul(0.20787957635177984, 0.0, 0.0)),
477
- by(builtin(mul, 3))
478
- )
479
- ])
480
- ),
481
- proof(
482
- goal(complex_asin([2, 0], [1.5707963267948966, 1.3169578969248166])),
483
- by(rule("complex.pl", clause(5))),
484
- bindings([binding("A", 2), binding("B", 0), binding("C", 1.5707963267948966), binding("D", 1.3169578969248166), binding("Z1", 3), binding("Z2", 9), binding("Z3", 0), binding("Z4", 9), binding("Z5", 3.0), binding("Z6", -1), binding("Z7", 1), binding("Z8", 1), binding("Z9", 1.0), binding("Z10", 2.0), binding("E", 1.0), binding("Z11", 4.0), binding("F", 2.0), binding("Z12", 4.0), binding("Z13", 3.0), binding("Z14", 1.7320508075688772), binding("Z15", 3.7320508075688772)]),
485
- uses([
486
- proof(
487
- goal(add(1, 2, 3)),
488
- by(builtin(add, 3))
489
- ),
490
- proof(
491
- goal(pow(3, 2, 9)),
492
- by(builtin(pow, 3))
493
- ),
494
- proof(
495
- goal(pow(0, 2, 0)),
496
- by(builtin(pow, 3))
497
- ),
498
- proof(
499
- goal(add(9, 0, 9)),
500
- by(builtin(add, 3))
501
- ),
502
- proof(
503
- goal(pow(9, 0.5, 3.0)),
504
- by(builtin(pow, 3))
505
- ),
506
- proof(
507
- goal(sub(1, 2, -1)),
508
- by(builtin(sub, 3))
509
- ),
510
- proof(
511
- goal(pow(-1, 2, 1)),
512
- by(builtin(pow, 3))
513
- ),
514
- proof(
515
- goal(add(1, 0, 1)),
516
- by(builtin(add, 3))
517
- ),
518
- proof(
519
- goal(pow(1, 0.5, 1.0)),
520
- by(builtin(pow, 3))
521
- ),
522
- proof(
523
- goal(sub(3.0, 1.0, 2.0)),
524
- by(builtin(sub, 3))
525
- ),
526
- proof(
527
- goal(div(2.0, 2, 1.0)),
528
- by(builtin(div, 3))
529
- ),
530
- proof(
531
- goal(add(3.0, 1.0, 4.0)),
532
- by(builtin(add, 3))
533
- ),
534
- proof(
535
- goal(div(4.0, 2, 2.0)),
536
- by(builtin(div, 3))
537
- ),
538
- proof(
539
- goal(asin(1.0, 1.5707963267948966)),
540
- by(builtin(asin, 2))
541
- ),
542
- proof(
543
- goal(pow(2.0, 2, 4.0)),
544
- by(builtin(pow, 3))
545
- ),
546
- proof(
547
- goal(sub(4.0, 1, 3.0)),
548
- by(builtin(sub, 3))
549
- ),
550
- proof(
551
- goal(pow(3.0, 0.5, 1.7320508075688772)),
552
- by(builtin(pow, 3))
553
- ),
554
- proof(
555
- goal(add(2.0, 1.7320508075688772, 3.7320508075688772)),
556
- by(builtin(add, 3))
557
- ),
558
- proof(
559
- goal(log(3.7320508075688772, 1.3169578969248166)),
560
- by(builtin(log, 2))
561
- )
562
- ])
563
- ),
564
- proof(
565
- goal(complex_acos([2, 0], [0.0, -1.3169578969248166])),
566
- by(rule("complex.pl", clause(6))),
567
- bindings([binding("A", 2), binding("B", 0), binding("C", 0.0), binding("D", -1.3169578969248166), binding("Z1", 3), binding("Z2", 9), binding("Z3", 0), binding("Z4", 9), binding("Z5", 3.0), binding("Z6", -1), binding("Z7", 1), binding("Z8", 1), binding("Z9", 1.0), binding("Z10", 2.0), binding("E", 1.0), binding("Z11", 4.0), binding("F", 2.0), binding("Z12", 4.0), binding("Z13", 3.0), binding("Z14", 1.7320508075688772), binding("Z15", 3.7320508075688772), binding("U", 1.3169578969248166)]),
568
- uses([
569
- proof(
570
- goal(add(1, 2, 3)),
571
- by(builtin(add, 3))
572
- ),
573
- proof(
574
- goal(pow(3, 2, 9)),
575
- by(builtin(pow, 3))
576
- ),
577
- proof(
578
- goal(pow(0, 2, 0)),
579
- by(builtin(pow, 3))
580
- ),
581
- proof(
582
- goal(add(9, 0, 9)),
583
- by(builtin(add, 3))
584
- ),
585
- proof(
586
- goal(pow(9, 0.5, 3.0)),
587
- by(builtin(pow, 3))
588
- ),
589
- proof(
590
- goal(sub(1, 2, -1)),
591
- by(builtin(sub, 3))
592
- ),
593
- proof(
594
- goal(pow(-1, 2, 1)),
595
- by(builtin(pow, 3))
596
- ),
597
- proof(
598
- goal(add(1, 0, 1)),
599
- by(builtin(add, 3))
600
- ),
601
- proof(
602
- goal(pow(1, 0.5, 1.0)),
603
- by(builtin(pow, 3))
604
- ),
605
- proof(
606
- goal(sub(3.0, 1.0, 2.0)),
607
- by(builtin(sub, 3))
608
- ),
609
- proof(
610
- goal(div(2.0, 2, 1.0)),
611
- by(builtin(div, 3))
612
- ),
613
- proof(
614
- goal(add(3.0, 1.0, 4.0)),
615
- by(builtin(add, 3))
616
- ),
617
- proof(
618
- goal(div(4.0, 2, 2.0)),
619
- by(builtin(div, 3))
620
- ),
621
- proof(
622
- goal(acos(1.0, 0.0)),
623
- by(builtin(acos, 2))
624
- ),
625
- proof(
626
- goal(pow(2.0, 2, 4.0)),
627
- by(builtin(pow, 3))
628
- ),
629
- proof(
630
- goal(sub(4.0, 1, 3.0)),
631
- by(builtin(sub, 3))
632
- ),
633
- proof(
634
- goal(pow(3.0, 0.5, 1.7320508075688772)),
635
- by(builtin(pow, 3))
636
- ),
637
- proof(
638
- goal(add(2.0, 1.7320508075688772, 3.7320508075688772)),
639
- by(builtin(add, 3))
640
- ),
641
- proof(
642
- goal(log(3.7320508075688772, 1.3169578969248166)),
643
- by(builtin(log, 2))
644
- ),
645
- proof(
646
- goal(neg(1.3169578969248166, -1.3169578969248166)),
647
- by(builtin(neg, 2))
648
- )
649
- ])
650
- )
651
- ])
652
- )
653
- ).
654
-