eyeling 1.32.1 → 1.33.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 (626) hide show
  1. package/README.md +86 -15
  2. package/bin/eyeling.cjs +56 -4
  3. package/dist/browser/eyeling.browser.js +1 -0
  4. package/examples/eyelang/INTEGRATION.md +13 -0
  5. package/examples/eyelang/README.md +628 -0
  6. package/examples/eyelang/SPEC.md +684 -0
  7. package/examples/eyelang/access-control-policy.pl +52 -0
  8. package/examples/eyelang/ackermann.pl +46 -0
  9. package/examples/eyelang/age.pl +28 -0
  10. package/examples/eyelang/aliases-and-namespaces.pl +22 -0
  11. package/examples/eyelang/alignment-demo.pl +44 -0
  12. package/examples/eyelang/allen-interval-calculus.pl +64 -0
  13. package/examples/eyelang/ancestor.pl +21 -0
  14. package/examples/eyelang/animal.pl +21 -0
  15. package/examples/eyelang/annotation-rdf12.ttl +12 -0
  16. package/examples/eyelang/annotation.pl +34 -0
  17. package/examples/eyelang/auroracare.pl +309 -0
  18. package/examples/eyelang/backward.pl +12 -0
  19. package/examples/eyelang/basic-monadic.pl +10018 -0
  20. package/examples/eyelang/bayes-diagnosis.pl +108 -0
  21. package/examples/eyelang/bayes-therapy.pl +182 -0
  22. package/examples/eyelang/beam-deflection.pl +50 -0
  23. package/examples/eyelang/blocks-world-planning.pl +75 -0
  24. package/examples/eyelang/bmi.pl +232 -0
  25. package/examples/eyelang/braking-safety-worlds.pl +69 -0
  26. package/examples/eyelang/buck-converter-design.pl +78 -0
  27. package/examples/eyelang/cache-performance.pl +54 -0
  28. package/examples/eyelang/canary-release.pl +49 -0
  29. package/examples/eyelang/cat-koko.pl +24 -0
  30. package/examples/eyelang/clinical-trial-screening.pl +92 -0
  31. package/examples/eyelang/collatz-1000.pl +14 -0
  32. package/examples/eyelang/combinatorics-findall-sort.pl +37 -0
  33. package/examples/eyelang/competitive-enzyme-kinetics.pl +78 -0
  34. package/examples/eyelang/complex-matrix-stability.pl +45 -0
  35. package/examples/eyelang/complex.pl +121 -0
  36. package/examples/eyelang/composition-of-injective-functions-is-injective.pl +50 -0
  37. package/examples/eyelang/context-association.pl +53 -0
  38. package/examples/eyelang/control-system.pl +72 -0
  39. package/examples/eyelang/cryptarithmetic-send-more-money.pl +49 -0
  40. package/examples/eyelang/cyclic-path.pl +16 -0
  41. package/examples/eyelang/d3-group.pl +100 -0
  42. package/examples/eyelang/dairy-energy-balance.pl +65 -0
  43. package/examples/eyelang/data-negotiation.pl +39 -0
  44. package/examples/eyelang/deep-taxonomy-10.pl +115 -0
  45. package/examples/eyelang/deep-taxonomy-100.pl +385 -0
  46. package/examples/eyelang/deep-taxonomy-1000.pl +3085 -0
  47. package/examples/eyelang/deep-taxonomy-10000.pl +30094 -0
  48. package/examples/eyelang/deep-taxonomy-100000.pl +300184 -0
  49. package/examples/eyelang/delfour.pl +281 -0
  50. package/examples/eyelang/dense-hamiltonian-cycle.pl +92 -0
  51. package/examples/eyelang/deontic-logic.pl +52 -0
  52. package/examples/eyelang/derived-backward-rule.pl +30 -0
  53. package/examples/eyelang/derived-rule.pl +27 -0
  54. package/examples/eyelang/diamond-property.pl +38 -0
  55. package/examples/eyelang/dijkstra-findall-sort.pl +44 -0
  56. package/examples/eyelang/dijkstra-risk-path.pl +86 -0
  57. package/examples/eyelang/dijkstra.pl +46 -0
  58. package/examples/eyelang/dining-philosophers.pl +140 -0
  59. package/examples/eyelang/directional-language.ttl +9 -0
  60. package/examples/eyelang/dog.pl +25 -0
  61. package/examples/eyelang/drone-corridor-planner.pl +51 -0
  62. package/examples/eyelang/easter-computus.pl +89 -0
  63. package/examples/eyelang/electrical-rc-filter.pl +36 -0
  64. package/examples/eyelang/epidemic-policy.pl +67 -0
  65. package/examples/eyelang/equivalence-classes-overlap-implies-same-class.pl +27 -0
  66. package/examples/eyelang/eulerian-path.pl +85 -0
  67. package/examples/eyelang/ev-range-worlds.pl +82 -0
  68. package/examples/eyelang/exact-cover-sudoku.pl +113 -0
  69. package/examples/eyelang/existential-rule.pl +18 -0
  70. package/examples/eyelang/exoplanet-validation-worlds.pl +88 -0
  71. package/examples/eyelang/expression-eval.pl +43 -0
  72. package/examples/eyelang/eyeling-ackermann.n3 +41 -0
  73. package/examples/eyelang/eyeling-age-threshold.n3 +12 -0
  74. package/examples/eyelang/eyeling-alignment-demo.n3 +11 -0
  75. package/examples/eyelang/eyeling-allen-interval-calculus-small.n3 +13 -0
  76. package/examples/eyelang/eyeling-backward-recursion.n3 +11 -0
  77. package/examples/eyelang/eyeling-backward.n3 +10 -0
  78. package/examples/eyelang/eyeling-basic-monadic-small.n3 +11 -0
  79. package/examples/eyelang/eyeling-bmi.n3 +10 -0
  80. package/examples/eyelang/eyeling-cat-koko.n3 +15 -0
  81. package/examples/eyelang/eyeling-collatz-small.n3 +11 -0
  82. package/examples/eyelang/eyeling-collection.n3 +11 -0
  83. package/examples/eyelang/eyeling-complex-arithmetic.n3 +10 -0
  84. package/examples/eyelang/eyeling-context-association.n3 +11 -0
  85. package/examples/eyelang/eyeling-control-system-small.n3 +11 -0
  86. package/examples/eyelang/eyeling-crypto-builtins-extra.n3 +10 -0
  87. package/examples/eyelang/eyeling-crypto-builtins.n3 +8 -0
  88. package/examples/eyelang/eyeling-deep-taxonomy-10.n3 +18 -0
  89. package/examples/eyelang/eyeling-derived-backward-rule-flat.n3 +10 -0
  90. package/examples/eyelang/eyeling-derived-rule-flat.n3 +9 -0
  91. package/examples/eyelang/eyeling-digital-product-passport-small.n3 +11 -0
  92. package/examples/eyelang/eyeling-dijkstra-tiny.n3 +14 -0
  93. package/examples/eyelang/eyeling-dog-license.n3 +13 -0
  94. package/examples/eyelang/eyeling-drone-corridor-planner-small.n3 +13 -0
  95. package/examples/eyelang/eyeling-equals.n3 +8 -0
  96. package/examples/eyelang/eyeling-equivalence-classes.n3 +11 -0
  97. package/examples/eyelang/eyeling-euler-identity.n3 +9 -0
  98. package/examples/eyelang/eyeling-existential-rule.n3 +9 -0
  99. package/examples/eyelang/eyeling-expression-eval.n3 +11 -0
  100. package/examples/eyelang/eyeling-family-cousins-extended.n3 +12 -0
  101. package/examples/eyelang/eyeling-fastpow.n3 +10 -0
  102. package/examples/eyelang/eyeling-fibonacci.n3 +44 -0
  103. package/examples/eyelang/eyeling-french-cities-reachability.n3 +22 -0
  104. package/examples/eyelang/eyeling-goldbach-small.n3 +22 -0
  105. package/examples/eyelang/eyeling-good-cobbler.n3 +9 -0
  106. package/examples/eyelang/eyeling-list-builtins.n3 +10 -0
  107. package/examples/eyelang/eyeling-list-collection-extra.n3 +9 -0
  108. package/examples/eyelang/eyeling-math-builtins.n3 +9 -0
  109. package/examples/eyelang/eyeling-string-builtins-extra.n3 +9 -0
  110. package/examples/eyelang/eyeling-string-builtins.n3 +10 -0
  111. package/examples/eyelang/eyeling-time-builtins.n3 +11 -0
  112. package/examples/eyelang/eyeling-time-components-extra.n3 +10 -0
  113. package/examples/eyelang/eyeling-witch.n3 +10 -0
  114. package/examples/eyelang/family-cousins.n3 +17 -0
  115. package/examples/eyelang/family-cousins.pl +65 -0
  116. package/examples/eyelang/fastpow.pl +53 -0
  117. package/examples/eyelang/fft8-numeric.pl +83 -0
  118. package/examples/eyelang/fibonacci.pl +53 -0
  119. package/examples/eyelang/field-nitrogen-balance.pl +70 -0
  120. package/examples/eyelang/flandor.pl +296 -0
  121. package/examples/eyelang/floating-point.pl +23 -0
  122. package/examples/eyelang/four-color-map.pl +127 -0
  123. package/examples/eyelang/fundamental-theorem-arithmetic.pl +113 -0
  124. package/examples/eyelang/gcd-bezout-identity.pl +48 -0
  125. package/examples/eyelang/gd-step-certified.pl +158 -0
  126. package/examples/eyelang/gdpr-compliance.pl +69 -0
  127. package/examples/eyelang/goldbach-1000.pl +185 -0
  128. package/examples/eyelang/good-cobbler.pl +14 -0
  129. package/examples/eyelang/gps.pl +152 -0
  130. package/examples/eyelang/graph-reachability.pl +36 -0
  131. package/examples/eyelang/gray-code-counter.pl +48 -0
  132. package/examples/eyelang/greatest-lower-bound-uniqueness.pl +28 -0
  133. package/examples/eyelang/group-inverse-uniqueness.pl +34 -0
  134. package/examples/eyelang/hamiltonian-cycle.pl +55 -0
  135. package/examples/eyelang/hamiltonian-path.pl +49 -0
  136. package/examples/eyelang/hamming-code.pl +105 -0
  137. package/examples/eyelang/hanoi.pl +20 -0
  138. package/examples/eyelang/heat-loss.pl +51 -0
  139. package/examples/eyelang/heron-theorem.pl +36 -0
  140. package/examples/eyelang/ideal-gas-law.pl +37 -0
  141. package/examples/eyelang/illegitimate-reasoning.pl +88 -0
  142. package/examples/eyelang/kaprekar.pl +32 -0
  143. package/examples/eyelang/law-of-cosines.pl +31 -0
  144. package/examples/eyelang/least-squares-regression.pl +81 -0
  145. package/examples/eyelang/list-collection.pl +33 -0
  146. package/examples/eyelang/lldm.pl +78 -0
  147. package/examples/eyelang/manufacturing-quality-control.pl +73 -0
  148. package/examples/eyelang/matrix.pl +296 -0
  149. package/examples/eyelang/microgrid-dispatch.pl +85 -0
  150. package/examples/eyelang/monkey-bananas.pl +45 -0
  151. package/examples/eyelang/n-queens.pl +23 -0
  152. package/examples/eyelang/n3-builtins.n3 +28 -0
  153. package/examples/eyelang/network-sla.pl +48 -0
  154. package/examples/eyelang/newton-raphson.pl +49 -0
  155. package/examples/eyelang/nixon-diamond.pl +37 -0
  156. package/examples/eyelang/odrl-dpv-healthcare-risk-ranked.pl +266 -0
  157. package/examples/eyelang/odrl-dpv-risk-ranked.pl +320 -0
  158. package/examples/eyelang/orbital-transfer-design.pl +113 -0
  159. package/examples/eyelang/output/access-control-policy.pl +2 -0
  160. package/examples/eyelang/output/ackermann.pl +12 -0
  161. package/examples/eyelang/output/age.pl +2 -0
  162. package/examples/eyelang/output/aliases-and-namespaces.pl +5 -0
  163. package/examples/eyelang/output/alignment-demo.pl +32 -0
  164. package/examples/eyelang/output/allen-interval-calculus.pl +154 -0
  165. package/examples/eyelang/output/ancestor.pl +6 -0
  166. package/examples/eyelang/output/animal.pl +4 -0
  167. package/examples/eyelang/output/annotation-rdf12.ttl +1 -0
  168. package/examples/eyelang/output/annotation.pl +4 -0
  169. package/examples/eyelang/output/auroracare.pl +117 -0
  170. package/examples/eyelang/output/backward.pl +1 -0
  171. package/examples/eyelang/output/basic-monadic.pl +1518 -0
  172. package/examples/eyelang/output/bayes-diagnosis.pl +13 -0
  173. package/examples/eyelang/output/bayes-therapy.pl +23 -0
  174. package/examples/eyelang/output/beam-deflection.pl +5 -0
  175. package/examples/eyelang/output/blocks-world-planning.pl +4 -0
  176. package/examples/eyelang/output/bmi.pl +32 -0
  177. package/examples/eyelang/output/braking-safety-worlds.pl +18 -0
  178. package/examples/eyelang/output/buck-converter-design.pl +6 -0
  179. package/examples/eyelang/output/cache-performance.pl +4 -0
  180. package/examples/eyelang/output/canary-release.pl +5 -0
  181. package/examples/eyelang/output/cat-koko.pl +3 -0
  182. package/examples/eyelang/output/clinical-trial-screening.pl +9 -0
  183. package/examples/eyelang/output/collatz-1000.pl +1000 -0
  184. package/examples/eyelang/output/combinatorics-findall-sort.pl +2 -0
  185. package/examples/eyelang/output/competitive-enzyme-kinetics.pl +6 -0
  186. package/examples/eyelang/output/complex-matrix-stability.pl +5 -0
  187. package/examples/eyelang/output/complex.pl +1 -0
  188. package/examples/eyelang/output/composition-of-injective-functions-is-injective.pl +2 -0
  189. package/examples/eyelang/output/context-association.pl +3 -0
  190. package/examples/eyelang/output/control-system.pl +6 -0
  191. package/examples/eyelang/output/cryptarithmetic-send-more-money.pl +6 -0
  192. package/examples/eyelang/output/cyclic-path.pl +16 -0
  193. package/examples/eyelang/output/d3-group.pl +2 -0
  194. package/examples/eyelang/output/dairy-energy-balance.pl +13 -0
  195. package/examples/eyelang/output/data-negotiation.pl +1 -0
  196. package/examples/eyelang/output/deep-taxonomy-10.pl +16 -0
  197. package/examples/eyelang/output/deep-taxonomy-100.pl +16 -0
  198. package/examples/eyelang/output/deep-taxonomy-1000.pl +16 -0
  199. package/examples/eyelang/output/deep-taxonomy-10000.pl +16 -0
  200. package/examples/eyelang/output/deep-taxonomy-100000.pl +16 -0
  201. package/examples/eyelang/output/delfour.pl +31 -0
  202. package/examples/eyelang/output/dense-hamiltonian-cycle.pl +4 -0
  203. package/examples/eyelang/output/deontic-logic.pl +4 -0
  204. package/examples/eyelang/output/derived-backward-rule.pl +3 -0
  205. package/examples/eyelang/output/derived-rule.pl +2 -0
  206. package/examples/eyelang/output/diamond-property.pl +4 -0
  207. package/examples/eyelang/output/dijkstra-findall-sort.pl +2 -0
  208. package/examples/eyelang/output/dijkstra-risk-path.pl +29 -0
  209. package/examples/eyelang/output/dijkstra.pl +16 -0
  210. package/examples/eyelang/output/dining-philosophers.pl +350 -0
  211. package/examples/eyelang/output/directional-language.ttl +1 -0
  212. package/examples/eyelang/output/dog.pl +1 -0
  213. package/examples/eyelang/output/drone-corridor-planner.pl +17 -0
  214. package/examples/eyelang/output/easter-computus.pl +30 -0
  215. package/examples/eyelang/output/electrical-rc-filter.pl +3 -0
  216. package/examples/eyelang/output/epidemic-policy.pl +14 -0
  217. package/examples/eyelang/output/equivalence-classes-overlap-implies-same-class.pl +18 -0
  218. package/examples/eyelang/output/eulerian-path.pl +3 -0
  219. package/examples/eyelang/output/ev-range-worlds.pl +19 -0
  220. package/examples/eyelang/output/exact-cover-sudoku.pl +3 -0
  221. package/examples/eyelang/output/existential-rule.pl +2 -0
  222. package/examples/eyelang/output/exoplanet-validation-worlds.pl +22 -0
  223. package/examples/eyelang/output/expression-eval.pl +1 -0
  224. package/examples/eyelang/output/eyeling-ackermann.n3 +12 -0
  225. package/examples/eyelang/output/eyeling-age-threshold.n3 +4 -0
  226. package/examples/eyelang/output/eyeling-alignment-demo.n3 +1 -0
  227. package/examples/eyelang/output/eyeling-allen-interval-calculus-small.n3 +3 -0
  228. package/examples/eyelang/output/eyeling-backward-recursion.n3 +9 -0
  229. package/examples/eyelang/output/eyeling-backward.n3 +1 -0
  230. package/examples/eyelang/output/eyeling-basic-monadic-small.n3 +8 -0
  231. package/examples/eyelang/output/eyeling-bmi.n3 +2 -0
  232. package/examples/eyelang/output/eyeling-cat-koko.n3 +3 -0
  233. package/examples/eyelang/output/eyeling-collatz-small.n3 +3 -0
  234. package/examples/eyelang/output/eyeling-collection.n3 +1 -0
  235. package/examples/eyelang/output/eyeling-complex-arithmetic.n3 +5 -0
  236. package/examples/eyelang/output/eyeling-context-association.n3 +4 -0
  237. package/examples/eyelang/output/eyeling-control-system-small.n3 +4 -0
  238. package/examples/eyelang/output/eyeling-crypto-builtins-extra.n3 +3 -0
  239. package/examples/eyelang/output/eyeling-crypto-builtins.n3 +2 -0
  240. package/examples/eyelang/output/eyeling-deep-taxonomy-10.n3 +32 -0
  241. package/examples/eyelang/output/eyeling-derived-backward-rule-flat.n3 +4 -0
  242. package/examples/eyelang/output/eyeling-derived-rule-flat.n3 +2 -0
  243. package/examples/eyelang/output/eyeling-digital-product-passport-small.n3 +3 -0
  244. package/examples/eyelang/output/eyeling-dijkstra-tiny.n3 +9 -0
  245. package/examples/eyelang/output/eyeling-dog-license.n3 +1 -0
  246. package/examples/eyelang/output/eyeling-drone-corridor-planner-small.n3 +5 -0
  247. package/examples/eyelang/output/eyeling-equals.n3 +1 -0
  248. package/examples/eyelang/output/eyeling-equivalence-classes.n3 +2 -0
  249. package/examples/eyelang/output/eyeling-euler-identity.n3 +3 -0
  250. package/examples/eyelang/output/eyeling-existential-rule.n3 +4 -0
  251. package/examples/eyelang/output/eyeling-expression-eval.n3 +3 -0
  252. package/examples/eyelang/output/eyeling-family-cousins-extended.n3 +6 -0
  253. package/examples/eyelang/output/eyeling-fastpow.n3 +4 -0
  254. package/examples/eyelang/output/eyeling-fibonacci.n3 +6 -0
  255. package/examples/eyelang/output/eyeling-french-cities-reachability.n3 +25 -0
  256. package/examples/eyelang/output/eyeling-goldbach-small.n3 +2 -0
  257. package/examples/eyelang/output/eyeling-good-cobbler.n3 +2 -0
  258. package/examples/eyelang/output/eyeling-list-builtins.n3 +6 -0
  259. package/examples/eyelang/output/eyeling-list-collection-extra.n3 +5 -0
  260. package/examples/eyelang/output/eyeling-math-builtins.n3 +5 -0
  261. package/examples/eyelang/output/eyeling-string-builtins-extra.n3 +3 -0
  262. package/examples/eyelang/output/eyeling-string-builtins.n3 +4 -0
  263. package/examples/eyelang/output/eyeling-time-builtins.n3 +4 -0
  264. package/examples/eyelang/output/eyeling-time-components-extra.n3 +5 -0
  265. package/examples/eyelang/output/eyeling-witch.n3 +2 -0
  266. package/examples/eyelang/output/family-cousins.n3 +8 -0
  267. package/examples/eyelang/output/family-cousins.pl +28 -0
  268. package/examples/eyelang/output/fastpow.pl +6 -0
  269. package/examples/eyelang/output/fft8-numeric.pl +4 -0
  270. package/examples/eyelang/output/fibonacci.pl +6 -0
  271. package/examples/eyelang/output/field-nitrogen-balance.pl +21 -0
  272. package/examples/eyelang/output/flandor.pl +43 -0
  273. package/examples/eyelang/output/floating-point.pl +9 -0
  274. package/examples/eyelang/output/four-color-map.pl +3 -0
  275. package/examples/eyelang/output/fundamental-theorem-arithmetic.pl +9 -0
  276. package/examples/eyelang/output/gcd-bezout-identity.pl +36 -0
  277. package/examples/eyelang/output/gd-step-certified.pl +79 -0
  278. package/examples/eyelang/output/gdpr-compliance.pl +6 -0
  279. package/examples/eyelang/output/goldbach-1000.pl +667 -0
  280. package/examples/eyelang/output/good-cobbler.pl +1 -0
  281. package/examples/eyelang/output/gps.pl +21 -0
  282. package/examples/eyelang/output/graph-reachability.pl +3 -0
  283. package/examples/eyelang/output/gray-code-counter.pl +1 -0
  284. package/examples/eyelang/output/greatest-lower-bound-uniqueness.pl +2 -0
  285. package/examples/eyelang/output/group-inverse-uniqueness.pl +2 -0
  286. package/examples/eyelang/output/hamiltonian-cycle.pl +4 -0
  287. package/examples/eyelang/output/hamiltonian-path.pl +121 -0
  288. package/examples/eyelang/output/hamming-code.pl +6 -0
  289. package/examples/eyelang/output/hanoi.pl +1 -0
  290. package/examples/eyelang/output/heat-loss.pl +5 -0
  291. package/examples/eyelang/output/heron-theorem.pl +4 -0
  292. package/examples/eyelang/output/ideal-gas-law.pl +3 -0
  293. package/examples/eyelang/output/illegitimate-reasoning.pl +15 -0
  294. package/examples/eyelang/output/kaprekar.pl +8 -0
  295. package/examples/eyelang/output/law-of-cosines.pl +3 -0
  296. package/examples/eyelang/output/least-squares-regression.pl +5 -0
  297. package/examples/eyelang/output/list-collection.pl +3 -0
  298. package/examples/eyelang/output/lldm.pl +6 -0
  299. package/examples/eyelang/output/manufacturing-quality-control.pl +6 -0
  300. package/examples/eyelang/output/matrix.pl +10 -0
  301. package/examples/eyelang/output/microgrid-dispatch.pl +6 -0
  302. package/examples/eyelang/output/monkey-bananas.pl +5 -0
  303. package/examples/eyelang/output/n-queens.pl +93 -0
  304. package/examples/eyelang/output/n3-builtins.n3 +6 -0
  305. package/examples/eyelang/output/network-sla.pl +4 -0
  306. package/examples/eyelang/output/newton-raphson.pl +3 -0
  307. package/examples/eyelang/output/nixon-diamond.pl +5 -0
  308. package/examples/eyelang/output/odrl-dpv-healthcare-risk-ranked.pl +42 -0
  309. package/examples/eyelang/output/odrl-dpv-risk-ranked.pl +120 -0
  310. package/examples/eyelang/output/orbital-transfer-design.pl +7 -0
  311. package/examples/eyelang/output/path-discovery.pl +3 -0
  312. package/examples/eyelang/output/peano-arithmetic.pl +3 -0
  313. package/examples/eyelang/output/peasant.pl +10 -0
  314. package/examples/eyelang/output/pendulum-period.pl +4 -0
  315. package/examples/eyelang/output/polynomial.pl +14 -0
  316. package/examples/eyelang/output/project-portfolio-optimization.pl +6 -0
  317. package/examples/eyelang/output/proof-contrapositive.pl +3 -0
  318. package/examples/eyelang/output/quadratic-formula.pl +6 -0
  319. package/examples/eyelang/output/quine-mccluskey.pl +3 -0
  320. package/examples/eyelang/output/radioactive-decay.pl +5 -0
  321. package/examples/eyelang/output/resilient-city-orchestration.pl +67 -0
  322. package/examples/eyelang/output/riemann-hypothesis.pl +12 -0
  323. package/examples/eyelang/output/sat-dpll.pl +5 -0
  324. package/examples/eyelang/output/security-incident-correlation.pl +3 -0
  325. package/examples/eyelang/output/service-impact.pl +11 -0
  326. package/examples/eyelang/output/sieve.pl +1 -0
  327. package/examples/eyelang/output/skolem-functions.pl +16 -0
  328. package/examples/eyelang/output/socket-age.pl +1 -0
  329. package/examples/eyelang/output/socket-family.pl +3 -0
  330. package/examples/eyelang/output/socrates.n3 +1 -0
  331. package/examples/eyelang/output/socrates.pl +2 -0
  332. package/examples/eyelang/output/statistics-summary.pl +4 -0
  333. package/examples/eyelang/output/sudoku.pl +2 -0
  334. package/examples/eyelang/output/superdense-coding.pl +6 -0
  335. package/examples/eyelang/output/traveling-salesman.pl +1 -0
  336. package/examples/eyelang/output/triple-term.n3 +2 -0
  337. package/examples/eyelang/output/turing.pl +12 -0
  338. package/examples/eyelang/output/vector-similarity.pl +4 -0
  339. package/examples/eyelang/output/witch.pl +7 -0
  340. package/examples/eyelang/output/wolf-goat-cabbage.pl +3 -0
  341. package/examples/eyelang/output/zebra.pl +3 -0
  342. package/examples/eyelang/path-discovery.pl +44998 -0
  343. package/examples/eyelang/peano-arithmetic.pl +31 -0
  344. package/examples/eyelang/peasant.pl +30 -0
  345. package/examples/eyelang/pendulum-period.pl +50 -0
  346. package/examples/eyelang/polynomial.pl +124 -0
  347. package/examples/eyelang/project-portfolio-optimization.pl +101 -0
  348. package/examples/eyelang/proof/age.pl +71 -0
  349. package/examples/eyelang/proof/aliases-and-namespaces.pl +78 -0
  350. package/examples/eyelang/proof/ancestor.pl +140 -0
  351. package/examples/eyelang/proof/animal.pl +68 -0
  352. package/examples/eyelang/proof/annotation.pl +80 -0
  353. package/examples/eyelang/proof/backward.pl +22 -0
  354. package/examples/eyelang/proof/cat-koko.pl +86 -0
  355. package/examples/eyelang/proof/data-negotiation.pl +76 -0
  356. package/examples/eyelang/proof/derived-rule.pl +43 -0
  357. package/examples/eyelang/proof/dog.pl +31 -0
  358. package/examples/eyelang/proof/electrical-rc-filter.pl +105 -0
  359. package/examples/eyelang/proof/existential-rule.pl +40 -0
  360. package/examples/eyelang/proof/floating-point.pl +160 -0
  361. package/examples/eyelang/proof/good-cobbler.pl +16 -0
  362. package/examples/eyelang/proof/group-inverse-uniqueness.pl +84 -0
  363. package/examples/eyelang/proof/list-collection.pl +52 -0
  364. package/examples/eyelang/proof/proof-contrapositive.pl +78 -0
  365. package/examples/eyelang/proof/socket-age.pl +32 -0
  366. package/examples/eyelang/proof/socket-family.pl +59 -0
  367. package/examples/eyelang/proof/socrates.pl +38 -0
  368. package/examples/eyelang/proof-contrapositive.pl +27 -0
  369. package/examples/eyelang/quadratic-formula.pl +54 -0
  370. package/examples/eyelang/quine-mccluskey.pl +143 -0
  371. package/examples/eyelang/radioactive-decay.pl +56 -0
  372. package/examples/eyelang/resilient-city-orchestration.pl +303 -0
  373. package/examples/eyelang/riemann-hypothesis.pl +110 -0
  374. package/examples/eyelang/sat-dpll.pl +80 -0
  375. package/examples/eyelang/security-incident-correlation.pl +69 -0
  376. package/examples/eyelang/service-impact.pl +41 -0
  377. package/examples/eyelang/sieve.pl +20 -0
  378. package/examples/eyelang/skolem-functions.pl +52 -0
  379. package/examples/eyelang/socket-age.pl +39 -0
  380. package/examples/eyelang/socket-family.pl +28 -0
  381. package/examples/eyelang/socrates.n3 +11 -0
  382. package/examples/eyelang/socrates.pl +19 -0
  383. package/examples/eyelang/statistics-summary.pl +54 -0
  384. package/examples/eyelang/sudoku.pl +20 -0
  385. package/examples/eyelang/superdense-coding.pl +84 -0
  386. package/examples/eyelang/traveling-salesman.pl +64 -0
  387. package/examples/eyelang/triple-term.n3 +9 -0
  388. package/examples/eyelang/turing.pl +67 -0
  389. package/examples/eyelang/vector-similarity.pl +56 -0
  390. package/examples/eyelang/witch.pl +38 -0
  391. package/examples/eyelang/wolf-goat-cabbage.pl +56 -0
  392. package/examples/eyelang/zebra.pl +44 -0
  393. package/eyelang.d.ts +92 -0
  394. package/eyeling.js +1 -0
  395. package/index.d.ts +50 -2
  396. package/index.js +95 -1
  397. package/lib/cli.js +1 -0
  398. package/lib/eyelang/bin.js +7 -0
  399. package/lib/eyelang/builtins/aggregation.mjs +81 -0
  400. package/lib/eyelang/builtins/alphametic.mjs +144 -0
  401. package/lib/eyelang/builtins/arithmetic.mjs +197 -0
  402. package/lib/eyelang/builtins/control.mjs +22 -0
  403. package/lib/eyelang/builtins/core.mjs +78 -0
  404. package/lib/eyelang/builtins/formula.mjs +42 -0
  405. package/lib/eyelang/builtins/lists.mjs +149 -0
  406. package/lib/eyelang/builtins/matrix.mjs +226 -0
  407. package/lib/eyelang/builtins/n3.mjs +483 -0
  408. package/lib/eyelang/builtins/number-theory.mjs +114 -0
  409. package/lib/eyelang/builtins/portfolio.mjs +73 -0
  410. package/lib/eyelang/builtins/registry.mjs +54 -0
  411. package/lib/eyelang/builtins/search.mjs +579 -0
  412. package/lib/eyelang/builtins/strings.mjs +41 -0
  413. package/lib/eyelang/builtins/sudoku.mjs +141 -0
  414. package/lib/eyelang/cli.mjs +192 -0
  415. package/lib/eyelang/explain.mjs +324 -0
  416. package/lib/eyelang/hash.mjs +294 -0
  417. package/lib/eyelang/index.mjs +48 -0
  418. package/lib/eyelang/parser.mjs +428 -0
  419. package/lib/eyelang/program.mjs +244 -0
  420. package/lib/eyelang/rdf.mjs +747 -0
  421. package/lib/eyelang/solver.mjs +237 -0
  422. package/lib/eyelang/term.mjs +328 -0
  423. package/package.json +12 -3
  424. package/test/eyelang/conformance/README.md +45 -0
  425. package/test/eyelang/conformance/cases/core/001_fact_output.pl +4 -0
  426. package/test/eyelang/conformance/cases/core/001_fact_query.query +1 -0
  427. package/test/eyelang/conformance/cases/core/002_rule_recursion.pl +7 -0
  428. package/test/eyelang/conformance/cases/core/002_rule_recursion.query +1 -0
  429. package/test/eyelang/conformance/cases/core/003_terms_and_readback.pl +16 -0
  430. package/test/eyelang/conformance/cases/core/003_terms_and_readback.query +1 -0
  431. package/test/eyelang/conformance/cases/core/004_conjunction_and_parentheses.pl +5 -0
  432. package/test/eyelang/conformance/cases/core/004_conjunction_and_parentheses.query +1 -0
  433. package/test/eyelang/conformance/cases/core/005_list_deconstruction.pl +6 -0
  434. package/test/eyelang/conformance/cases/core/005_list_deconstruction.query +1 -0
  435. package/test/eyelang/conformance/cases/core/006_comma_formula_data.pl +4 -0
  436. package/test/eyelang/conformance/cases/core/006_comma_formula_data.query +1 -0
  437. package/test/eyelang/conformance/cases/core/007_anonymous_variables.pl +5 -0
  438. package/test/eyelang/conformance/cases/core/007_anonymous_variables.query +1 -0
  439. package/test/eyelang/conformance/cases/core/008_graphic_atoms.pl +6 -0
  440. package/test/eyelang/conformance/cases/core/008_graphic_atoms.query +1 -0
  441. package/test/eyelang/conformance/cases/core/009_comments_and_whitespace.pl +5 -0
  442. package/test/eyelang/conformance/cases/core/009_comments_and_whitespace.query +1 -0
  443. package/test/eyelang/conformance/cases/core/010_variable_scope_and_reuse.pl +8 -0
  444. package/test/eyelang/conformance/cases/core/010_variable_scope_and_reuse.query +1 -0
  445. package/test/eyelang/conformance/cases/core/011_predicate_arity.pl +6 -0
  446. package/test/eyelang/conformance/cases/core/011_predicate_arity.query +1 -0
  447. package/test/eyelang/conformance/cases/core/012_nested_compound_unification.pl +5 -0
  448. package/test/eyelang/conformance/cases/core/012_nested_compound_unification.query +1 -0
  449. package/test/eyelang/conformance/cases/core/013_multiple_clauses_order.pl +6 -0
  450. package/test/eyelang/conformance/cases/core/013_multiple_clauses_order.query +1 -0
  451. package/test/eyelang/conformance/cases/core/014_failure_filters_answers.pl +7 -0
  452. package/test/eyelang/conformance/cases/core/014_failure_filters_answers.query +1 -0
  453. package/test/eyelang/conformance/cases/core/015_improper_list_unification.pl +6 -0
  454. package/test/eyelang/conformance/cases/core/015_improper_list_unification.query +1 -0
  455. package/test/eyelang/conformance/cases/core/016_zero_arity_compound.pl +4 -0
  456. package/test/eyelang/conformance/cases/core/016_zero_arity_compound.query +1 -0
  457. package/test/eyelang/conformance/cases/core/017_three_step_recursion.pl +8 -0
  458. package/test/eyelang/conformance/cases/core/017_three_step_recursion.query +1 -0
  459. package/test/eyelang/conformance/cases/core/018_quoted_atom_readback.pl +6 -0
  460. package/test/eyelang/conformance/cases/core/018_quoted_atom_readback.query +1 -0
  461. package/test/eyelang/conformance/cases/core/019_parenthesized_three_conjuncts.pl +7 -0
  462. package/test/eyelang/conformance/cases/core/019_parenthesized_three_conjuncts.query +1 -0
  463. package/test/eyelang/conformance/cases/core/020_nested_list_terms.pl +5 -0
  464. package/test/eyelang/conformance/cases/core/020_nested_list_terms.query +1 -0
  465. package/test/eyelang/conformance/cases/core/021_repeated_variable_head.pl +7 -0
  466. package/test/eyelang/conformance/cases/core/022_rule_head_structure.pl +5 -0
  467. package/test/eyelang/conformance/cases/core/023_quoted_escapes_readback.pl +5 -0
  468. package/test/eyelang/conformance/cases/core/024_numeric_literal_readback.pl +6 -0
  469. package/test/eyelang/conformance/cases/core/025_body_parentheses_with_formula_data.pl +5 -0
  470. package/test/eyelang/conformance/cases/core/026_underscore_named_variable_reuse.pl +5 -0
  471. package/test/eyelang/conformance/cases/extension/001_default_derived_output.pl +5 -0
  472. package/test/eyelang/conformance/cases/extension/002_materialize_focus.pl +5 -0
  473. package/test/eyelang/conformance/cases/extension/003_arithmetic_and_comparison.pl +12 -0
  474. package/test/eyelang/conformance/cases/extension/003_arithmetic_and_comparison.query +1 -0
  475. package/test/eyelang/conformance/cases/extension/004_strings_and_atoms.pl +6 -0
  476. package/test/eyelang/conformance/cases/extension/004_strings_and_atoms.query +1 -0
  477. package/test/eyelang/conformance/cases/extension/005_lists_aggregation_ordering.pl +10 -0
  478. package/test/eyelang/conformance/cases/extension/005_lists_aggregation_ordering.query +1 -0
  479. package/test/eyelang/conformance/cases/extension/006_formula_terms.pl +5 -0
  480. package/test/eyelang/conformance/cases/extension/006_formula_terms.query +1 -0
  481. package/test/eyelang/conformance/cases/extension/007_negation_once_generators.pl +7 -0
  482. package/test/eyelang/conformance/cases/extension/007_negation_once_generators.query +1 -0
  483. package/test/eyelang/conformance/cases/extension/008_equality_and_inequality.pl +6 -0
  484. package/test/eyelang/conformance/cases/extension/008_equality_and_inequality.query +1 -0
  485. package/test/eyelang/conformance/cases/extension/009_list_relations.pl +6 -0
  486. package/test/eyelang/conformance/cases/extension/009_list_relations.query +1 -0
  487. package/test/eyelang/conformance/cases/extension/010_append_splits.pl +3 -0
  488. package/test/eyelang/conformance/cases/extension/010_append_splits.query +1 -0
  489. package/test/eyelang/conformance/cases/extension/011_matching_and_comparison.pl +7 -0
  490. package/test/eyelang/conformance/cases/extension/011_matching_and_comparison.query +1 -0
  491. package/test/eyelang/conformance/cases/extension/012_memoize_declaration.pl +8 -0
  492. package/test/eyelang/conformance/cases/extension/012_memoize_declaration.query +1 -0
  493. package/test/eyelang/conformance/cases/extension/013_numeric_functions.pl +9 -0
  494. package/test/eyelang/conformance/cases/extension/013_numeric_functions.query +1 -0
  495. package/test/eyelang/conformance/cases/extension/014_between_enumeration.pl +3 -0
  496. package/test/eyelang/conformance/cases/extension/014_between_enumeration.query +1 -0
  497. package/test/eyelang/conformance/cases/extension/015_smallest_divisor.pl +3 -0
  498. package/test/eyelang/conformance/cases/extension/015_smallest_divisor.query +1 -0
  499. package/test/eyelang/conformance/cases/extension/016_negation_filter.pl +7 -0
  500. package/test/eyelang/conformance/cases/extension/016_negation_filter.query +1 -0
  501. package/test/eyelang/conformance/cases/extension/017_once_user_predicate.pl +5 -0
  502. package/test/eyelang/conformance/cases/extension/017_once_user_predicate.query +1 -0
  503. package/test/eyelang/conformance/cases/extension/018_findall_user_goal.pl +6 -0
  504. package/test/eyelang/conformance/cases/extension/018_findall_user_goal.query +1 -0
  505. package/test/eyelang/conformance/cases/extension/019_sort_deduplicates_atoms.pl +3 -0
  506. package/test/eyelang/conformance/cases/extension/019_sort_deduplicates_atoms.query +1 -0
  507. package/test/eyelang/conformance/cases/extension/020_append_bound_prefix_suffix.pl +4 -0
  508. package/test/eyelang/conformance/cases/extension/020_append_bound_prefix_suffix.query +1 -0
  509. package/test/eyelang/conformance/cases/extension/021_nth0_index_generation.pl +3 -0
  510. package/test/eyelang/conformance/cases/extension/021_nth0_index_generation.query +1 -0
  511. package/test/eyelang/conformance/cases/extension/022_set_nth0_edges.pl +4 -0
  512. package/test/eyelang/conformance/cases/extension/022_set_nth0_edges.query +1 -0
  513. package/test/eyelang/conformance/cases/extension/023_select_duplicate_occurrences.pl +3 -0
  514. package/test/eyelang/conformance/cases/extension/023_select_duplicate_occurrences.query +1 -0
  515. package/test/eyelang/conformance/cases/extension/024_not_member_filter.pl +6 -0
  516. package/test/eyelang/conformance/cases/extension/024_not_member_filter.query +1 -0
  517. package/test/eyelang/conformance/cases/extension/025_is_list_filter.pl +5 -0
  518. package/test/eyelang/conformance/cases/extension/025_is_list_filter.query +1 -0
  519. package/test/eyelang/conformance/cases/extension/026_nested_formula_terms.pl +5 -0
  520. package/test/eyelang/conformance/cases/extension/026_nested_formula_terms.query +1 -0
  521. package/test/eyelang/conformance/cases/extension/027_materialize_excludes_source_fact.pl +6 -0
  522. package/test/eyelang/conformance/cases/extension/028_numeric_and_lexical_comparison.pl +5 -0
  523. package/test/eyelang/conformance/cases/extension/028_numeric_and_lexical_comparison.query +1 -0
  524. package/test/eyelang/conformance/cases/extension/029_string_matching_filters.pl +6 -0
  525. package/test/eyelang/conformance/cases/extension/029_string_matching_filters.query +1 -0
  526. package/test/eyelang/conformance/cases/extension/030_string_and_atom_concat.pl +4 -0
  527. package/test/eyelang/conformance/cases/extension/030_string_and_atom_concat.query +1 -0
  528. package/test/eyelang/conformance/cases/extension/031_countall_empty_and_nonempty.pl +4 -0
  529. package/test/eyelang/conformance/cases/extension/031_countall_empty_and_nonempty.query +1 -0
  530. package/test/eyelang/conformance/cases/extension/032_sumall_numeric_template.pl +5 -0
  531. package/test/eyelang/conformance/cases/extension/032_sumall_numeric_template.query +1 -0
  532. package/test/eyelang/conformance/cases/extension/033_aggregate_min_template.pl +5 -0
  533. package/test/eyelang/conformance/cases/extension/033_aggregate_min_template.query +1 -0
  534. package/test/eyelang/conformance/cases/extension/034_aggregate_max_compound_key.pl +5 -0
  535. package/test/eyelang/conformance/cases/extension/034_aggregate_max_compound_key.query +1 -0
  536. package/test/eyelang/conformance/cases/extension/035_date_difference.pl +4 -0
  537. package/test/eyelang/conformance/cases/extension/036_extended_gcd.pl +3 -0
  538. package/test/eyelang/conformance/cases/extension/037_collatz_trajectory.pl +3 -0
  539. package/test/eyelang/conformance/cases/extension/038_kaprekar_steps.pl +3 -0
  540. package/test/eyelang/conformance/cases/extension/039_goldbach_pair.pl +3 -0
  541. package/test/eyelang/conformance/cases/extension/040_matrix_operations.pl +5 -0
  542. package/test/eyelang/conformance/cases/extension/041_atom_range_generators.pl +5 -0
  543. package/test/eyelang/conformance/cases/extension/042_n_queens_small.pl +3 -0
  544. package/test/eyelang/conformance/cases/extension/043_cnf_model.pl +3 -0
  545. package/test/eyelang/conformance/cases/extension/044_cover9_filter.pl +6 -0
  546. package/test/eyelang/conformance/cases/extension/045_alphametic_sum_small.pl +3 -0
  547. package/test/eyelang/conformance/cases/extension/046_bounded_subset.pl +4 -0
  548. package/test/eyelang/conformance/expected/core/001_fact_output.out +1 -0
  549. package/test/eyelang/conformance/expected/core/002_rule_recursion.out +2 -0
  550. package/test/eyelang/conformance/expected/core/003_terms_and_readback.out +13 -0
  551. package/test/eyelang/conformance/expected/core/004_conjunction_and_parentheses.out +1 -0
  552. package/test/eyelang/conformance/expected/core/005_list_deconstruction.out +2 -0
  553. package/test/eyelang/conformance/expected/core/006_comma_formula_data.out +1 -0
  554. package/test/eyelang/conformance/expected/core/007_anonymous_variables.out +1 -0
  555. package/test/eyelang/conformance/expected/core/008_graphic_atoms.out +3 -0
  556. package/test/eyelang/conformance/expected/core/009_comments_and_whitespace.out +2 -0
  557. package/test/eyelang/conformance/expected/core/010_variable_scope_and_reuse.out +2 -0
  558. package/test/eyelang/conformance/expected/core/011_predicate_arity.out +2 -0
  559. package/test/eyelang/conformance/expected/core/012_nested_compound_unification.out +2 -0
  560. package/test/eyelang/conformance/expected/core/013_multiple_clauses_order.out +2 -0
  561. package/test/eyelang/conformance/expected/core/014_failure_filters_answers.out +1 -0
  562. package/test/eyelang/conformance/expected/core/015_improper_list_unification.out +3 -0
  563. package/test/eyelang/conformance/expected/core/016_zero_arity_compound.out +1 -0
  564. package/test/eyelang/conformance/expected/core/017_three_step_recursion.out +3 -0
  565. package/test/eyelang/conformance/expected/core/018_quoted_atom_readback.out +3 -0
  566. package/test/eyelang/conformance/expected/core/019_parenthesized_three_conjuncts.out +1 -0
  567. package/test/eyelang/conformance/expected/core/020_nested_list_terms.out +2 -0
  568. package/test/eyelang/conformance/expected/core/021_repeated_variable_head.out +2 -0
  569. package/test/eyelang/conformance/expected/core/022_rule_head_structure.out +2 -0
  570. package/test/eyelang/conformance/expected/core/023_quoted_escapes_readback.out +2 -0
  571. package/test/eyelang/conformance/expected/core/024_numeric_literal_readback.out +3 -0
  572. package/test/eyelang/conformance/expected/core/025_body_parentheses_with_formula_data.out +1 -0
  573. package/test/eyelang/conformance/expected/core/026_underscore_named_variable_reuse.out +1 -0
  574. package/test/eyelang/conformance/expected/extension/001_default_derived_output.out +3 -0
  575. package/test/eyelang/conformance/expected/extension/002_materialize_focus.out +1 -0
  576. package/test/eyelang/conformance/expected/extension/003_arithmetic_and_comparison.out +10 -0
  577. package/test/eyelang/conformance/expected/extension/004_strings_and_atoms.out +4 -0
  578. package/test/eyelang/conformance/expected/extension/005_lists_aggregation_ordering.out +9 -0
  579. package/test/eyelang/conformance/expected/extension/006_formula_terms.out +4 -0
  580. package/test/eyelang/conformance/expected/extension/007_negation_once_generators.out +2 -0
  581. package/test/eyelang/conformance/expected/extension/008_equality_and_inequality.out +4 -0
  582. package/test/eyelang/conformance/expected/extension/009_list_relations.out +5 -0
  583. package/test/eyelang/conformance/expected/extension/010_append_splits.out +3 -0
  584. package/test/eyelang/conformance/expected/extension/011_matching_and_comparison.out +5 -0
  585. package/test/eyelang/conformance/expected/extension/012_memoize_declaration.out +2 -0
  586. package/test/eyelang/conformance/expected/extension/013_numeric_functions.out +7 -0
  587. package/test/eyelang/conformance/expected/extension/014_between_enumeration.out +3 -0
  588. package/test/eyelang/conformance/expected/extension/015_smallest_divisor.out +1 -0
  589. package/test/eyelang/conformance/expected/extension/016_negation_filter.out +2 -0
  590. package/test/eyelang/conformance/expected/extension/017_once_user_predicate.out +1 -0
  591. package/test/eyelang/conformance/expected/extension/018_findall_user_goal.out +1 -0
  592. package/test/eyelang/conformance/expected/extension/019_sort_deduplicates_atoms.out +1 -0
  593. package/test/eyelang/conformance/expected/extension/020_append_bound_prefix_suffix.out +2 -0
  594. package/test/eyelang/conformance/expected/extension/021_nth0_index_generation.out +1 -0
  595. package/test/eyelang/conformance/expected/extension/022_set_nth0_edges.out +2 -0
  596. package/test/eyelang/conformance/expected/extension/023_select_duplicate_occurrences.out +2 -0
  597. package/test/eyelang/conformance/expected/extension/024_not_member_filter.out +1 -0
  598. package/test/eyelang/conformance/expected/extension/025_is_list_filter.out +1 -0
  599. package/test/eyelang/conformance/expected/extension/026_nested_formula_terms.out +6 -0
  600. package/test/eyelang/conformance/expected/extension/027_materialize_excludes_source_fact.out +1 -0
  601. package/test/eyelang/conformance/expected/extension/028_numeric_and_lexical_comparison.out +3 -0
  602. package/test/eyelang/conformance/expected/extension/029_string_matching_filters.out +2 -0
  603. package/test/eyelang/conformance/expected/extension/030_string_and_atom_concat.out +2 -0
  604. package/test/eyelang/conformance/expected/extension/031_countall_empty_and_nonempty.out +1 -0
  605. package/test/eyelang/conformance/expected/extension/032_sumall_numeric_template.out +1 -0
  606. package/test/eyelang/conformance/expected/extension/033_aggregate_min_template.out +1 -0
  607. package/test/eyelang/conformance/expected/extension/034_aggregate_max_compound_key.out +1 -0
  608. package/test/eyelang/conformance/expected/extension/035_date_difference.out +2 -0
  609. package/test/eyelang/conformance/expected/extension/036_extended_gcd.out +1 -0
  610. package/test/eyelang/conformance/expected/extension/037_collatz_trajectory.out +1 -0
  611. package/test/eyelang/conformance/expected/extension/038_kaprekar_steps.out +1 -0
  612. package/test/eyelang/conformance/expected/extension/039_goldbach_pair.out +2 -0
  613. package/test/eyelang/conformance/expected/extension/040_matrix_operations.out +3 -0
  614. package/test/eyelang/conformance/expected/extension/041_atom_range_generators.out +8 -0
  615. package/test/eyelang/conformance/expected/extension/042_n_queens_small.out +2 -0
  616. package/test/eyelang/conformance/expected/extension/043_cnf_model.out +1 -0
  617. package/test/eyelang/conformance/expected/extension/044_cover9_filter.out +2 -0
  618. package/test/eyelang/conformance/expected/extension/045_alphametic_sum_small.out +4 -0
  619. package/test/eyelang/conformance/expected/extension/046_bounded_subset.out +5 -0
  620. package/test/eyelang/run-all.mjs +20 -0
  621. package/test/eyelang/run-conformance.mjs +80 -0
  622. package/test/eyelang/run-examples.mjs +126 -0
  623. package/test/eyelang/run-regression.mjs +640 -0
  624. package/test/eyelang/test-style.mjs +91 -0
  625. package/test/eyelang.test.js +58 -0
  626. package/test/run.js +1 -0
@@ -0,0 +1,121 @@
1
+ hasHamiltonianPath(graph, true).
2
+ hamiltonianPath(graph, [v1, v2, v3, v6, v4, v5]).
3
+ hamiltonianPath(graph, [v1, v2, v6, v3, v4, v5]).
4
+ hamiltonianPath(graph, [v1, v3, v2, v6, v4, v5]).
5
+ hamiltonianPath(graph, [v1, v3, v6, v2, v4, v5]).
6
+ hamiltonianPath(graph, [v1, v5, v4, v2, v3, v6]).
7
+ hamiltonianPath(graph, [v1, v5, v4, v2, v6, v3]).
8
+ hamiltonianPath(graph, [v1, v5, v4, v3, v2, v6]).
9
+ hamiltonianPath(graph, [v1, v5, v4, v3, v6, v2]).
10
+ hamiltonianPath(graph, [v1, v5, v4, v6, v2, v3]).
11
+ hamiltonianPath(graph, [v1, v5, v4, v6, v3, v2]).
12
+ hamiltonianPath(graph, [v1, v6, v2, v3, v4, v5]).
13
+ hamiltonianPath(graph, [v1, v6, v3, v2, v4, v5]).
14
+ hamiltonianPath(graph, [v2, v1, v3, v6, v4, v5]).
15
+ hamiltonianPath(graph, [v2, v1, v5, v4, v3, v6]).
16
+ hamiltonianPath(graph, [v2, v1, v5, v4, v6, v3]).
17
+ hamiltonianPath(graph, [v2, v1, v6, v3, v4, v5]).
18
+ hamiltonianPath(graph, [v2, v3, v1, v5, v4, v6]).
19
+ hamiltonianPath(graph, [v2, v3, v1, v6, v4, v5]).
20
+ hamiltonianPath(graph, [v2, v3, v4, v5, v1, v6]).
21
+ hamiltonianPath(graph, [v2, v3, v4, v6, v1, v5]).
22
+ hamiltonianPath(graph, [v2, v3, v6, v1, v5, v4]).
23
+ hamiltonianPath(graph, [v2, v3, v6, v4, v5, v1]).
24
+ hamiltonianPath(graph, [v2, v4, v3, v6, v1, v5]).
25
+ hamiltonianPath(graph, [v2, v4, v5, v1, v3, v6]).
26
+ hamiltonianPath(graph, [v2, v4, v5, v1, v6, v3]).
27
+ hamiltonianPath(graph, [v2, v4, v6, v3, v1, v5]).
28
+ hamiltonianPath(graph, [v2, v6, v1, v3, v4, v5]).
29
+ hamiltonianPath(graph, [v2, v6, v1, v5, v4, v3]).
30
+ hamiltonianPath(graph, [v2, v6, v3, v1, v5, v4]).
31
+ hamiltonianPath(graph, [v2, v6, v3, v4, v5, v1]).
32
+ hamiltonianPath(graph, [v2, v6, v4, v3, v1, v5]).
33
+ hamiltonianPath(graph, [v2, v6, v4, v5, v1, v3]).
34
+ hamiltonianPath(graph, [v3, v1, v2, v6, v4, v5]).
35
+ hamiltonianPath(graph, [v3, v1, v5, v4, v2, v6]).
36
+ hamiltonianPath(graph, [v3, v1, v5, v4, v6, v2]).
37
+ hamiltonianPath(graph, [v3, v1, v6, v2, v4, v5]).
38
+ hamiltonianPath(graph, [v3, v2, v1, v5, v4, v6]).
39
+ hamiltonianPath(graph, [v3, v2, v1, v6, v4, v5]).
40
+ hamiltonianPath(graph, [v3, v2, v4, v5, v1, v6]).
41
+ hamiltonianPath(graph, [v3, v2, v4, v6, v1, v5]).
42
+ hamiltonianPath(graph, [v3, v2, v6, v1, v5, v4]).
43
+ hamiltonianPath(graph, [v3, v2, v6, v4, v5, v1]).
44
+ hamiltonianPath(graph, [v3, v4, v2, v6, v1, v5]).
45
+ hamiltonianPath(graph, [v3, v4, v5, v1, v2, v6]).
46
+ hamiltonianPath(graph, [v3, v4, v5, v1, v6, v2]).
47
+ hamiltonianPath(graph, [v3, v4, v6, v2, v1, v5]).
48
+ hamiltonianPath(graph, [v3, v6, v1, v2, v4, v5]).
49
+ hamiltonianPath(graph, [v3, v6, v1, v5, v4, v2]).
50
+ hamiltonianPath(graph, [v3, v6, v2, v1, v5, v4]).
51
+ hamiltonianPath(graph, [v3, v6, v2, v4, v5, v1]).
52
+ hamiltonianPath(graph, [v3, v6, v4, v2, v1, v5]).
53
+ hamiltonianPath(graph, [v3, v6, v4, v5, v1, v2]).
54
+ hamiltonianPath(graph, [v4, v2, v3, v6, v1, v5]).
55
+ hamiltonianPath(graph, [v4, v2, v6, v3, v1, v5]).
56
+ hamiltonianPath(graph, [v4, v3, v2, v6, v1, v5]).
57
+ hamiltonianPath(graph, [v4, v3, v6, v2, v1, v5]).
58
+ hamiltonianPath(graph, [v4, v5, v1, v2, v3, v6]).
59
+ hamiltonianPath(graph, [v4, v5, v1, v2, v6, v3]).
60
+ hamiltonianPath(graph, [v4, v5, v1, v3, v2, v6]).
61
+ hamiltonianPath(graph, [v4, v5, v1, v3, v6, v2]).
62
+ hamiltonianPath(graph, [v4, v5, v1, v6, v2, v3]).
63
+ hamiltonianPath(graph, [v4, v5, v1, v6, v3, v2]).
64
+ hamiltonianPath(graph, [v4, v6, v2, v3, v1, v5]).
65
+ hamiltonianPath(graph, [v4, v6, v3, v2, v1, v5]).
66
+ hamiltonianPath(graph, [v5, v1, v2, v3, v4, v6]).
67
+ hamiltonianPath(graph, [v5, v1, v2, v3, v6, v4]).
68
+ hamiltonianPath(graph, [v5, v1, v2, v4, v3, v6]).
69
+ hamiltonianPath(graph, [v5, v1, v2, v4, v6, v3]).
70
+ hamiltonianPath(graph, [v5, v1, v2, v6, v3, v4]).
71
+ hamiltonianPath(graph, [v5, v1, v2, v6, v4, v3]).
72
+ hamiltonianPath(graph, [v5, v1, v3, v2, v4, v6]).
73
+ hamiltonianPath(graph, [v5, v1, v3, v2, v6, v4]).
74
+ hamiltonianPath(graph, [v5, v1, v3, v4, v2, v6]).
75
+ hamiltonianPath(graph, [v5, v1, v3, v4, v6, v2]).
76
+ hamiltonianPath(graph, [v5, v1, v3, v6, v2, v4]).
77
+ hamiltonianPath(graph, [v5, v1, v3, v6, v4, v2]).
78
+ hamiltonianPath(graph, [v5, v1, v6, v2, v3, v4]).
79
+ hamiltonianPath(graph, [v5, v1, v6, v2, v4, v3]).
80
+ hamiltonianPath(graph, [v5, v1, v6, v3, v2, v4]).
81
+ hamiltonianPath(graph, [v5, v1, v6, v3, v4, v2]).
82
+ hamiltonianPath(graph, [v5, v1, v6, v4, v2, v3]).
83
+ hamiltonianPath(graph, [v5, v1, v6, v4, v3, v2]).
84
+ hamiltonianPath(graph, [v5, v4, v2, v1, v3, v6]).
85
+ hamiltonianPath(graph, [v5, v4, v2, v1, v6, v3]).
86
+ hamiltonianPath(graph, [v5, v4, v2, v3, v1, v6]).
87
+ hamiltonianPath(graph, [v5, v4, v2, v3, v6, v1]).
88
+ hamiltonianPath(graph, [v5, v4, v2, v6, v1, v3]).
89
+ hamiltonianPath(graph, [v5, v4, v2, v6, v3, v1]).
90
+ hamiltonianPath(graph, [v5, v4, v3, v1, v2, v6]).
91
+ hamiltonianPath(graph, [v5, v4, v3, v1, v6, v2]).
92
+ hamiltonianPath(graph, [v5, v4, v3, v2, v1, v6]).
93
+ hamiltonianPath(graph, [v5, v4, v3, v2, v6, v1]).
94
+ hamiltonianPath(graph, [v5, v4, v3, v6, v1, v2]).
95
+ hamiltonianPath(graph, [v5, v4, v3, v6, v2, v1]).
96
+ hamiltonianPath(graph, [v5, v4, v6, v1, v2, v3]).
97
+ hamiltonianPath(graph, [v5, v4, v6, v1, v3, v2]).
98
+ hamiltonianPath(graph, [v5, v4, v6, v2, v1, v3]).
99
+ hamiltonianPath(graph, [v5, v4, v6, v2, v3, v1]).
100
+ hamiltonianPath(graph, [v5, v4, v6, v3, v1, v2]).
101
+ hamiltonianPath(graph, [v5, v4, v6, v3, v2, v1]).
102
+ hamiltonianPath(graph, [v6, v1, v2, v3, v4, v5]).
103
+ hamiltonianPath(graph, [v6, v1, v3, v2, v4, v5]).
104
+ hamiltonianPath(graph, [v6, v1, v5, v4, v2, v3]).
105
+ hamiltonianPath(graph, [v6, v1, v5, v4, v3, v2]).
106
+ hamiltonianPath(graph, [v6, v2, v1, v3, v4, v5]).
107
+ hamiltonianPath(graph, [v6, v2, v1, v5, v4, v3]).
108
+ hamiltonianPath(graph, [v6, v2, v3, v1, v5, v4]).
109
+ hamiltonianPath(graph, [v6, v2, v3, v4, v5, v1]).
110
+ hamiltonianPath(graph, [v6, v2, v4, v3, v1, v5]).
111
+ hamiltonianPath(graph, [v6, v2, v4, v5, v1, v3]).
112
+ hamiltonianPath(graph, [v6, v3, v1, v2, v4, v5]).
113
+ hamiltonianPath(graph, [v6, v3, v1, v5, v4, v2]).
114
+ hamiltonianPath(graph, [v6, v3, v2, v1, v5, v4]).
115
+ hamiltonianPath(graph, [v6, v3, v2, v4, v5, v1]).
116
+ hamiltonianPath(graph, [v6, v3, v4, v2, v1, v5]).
117
+ hamiltonianPath(graph, [v6, v3, v4, v5, v1, v2]).
118
+ hamiltonianPath(graph, [v6, v4, v2, v3, v1, v5]).
119
+ hamiltonianPath(graph, [v6, v4, v3, v2, v1, v5]).
120
+ hamiltonianPath(graph, [v6, v4, v5, v1, v2, v3]).
121
+ hamiltonianPath(graph, [v6, v4, v5, v1, v3, v2]).
@@ -0,0 +1,6 @@
1
+ syndrome(packet1, 5).
2
+ errorBit(packet1, 5).
3
+ correctedCodeword(packet1, [1, 0, 1, 1, 0, 1, 0]).
4
+ decodedPayload(packet1, [1, 0, 1, 0]).
5
+ status(packet1, single_bit_corrected).
6
+ reason(packet1, "Hamming syndrome identifies the flipped bit position").
@@ -0,0 +1 @@
1
+ answer(3, [[left, right], [left, center], [right, center], [left, right], [center, left], [center, right], [left, right]]).
@@ -0,0 +1,5 @@
1
+ type(wall1, conduction_heat_loss).
2
+ temperatureDifference_K(wall1, 25.0).
3
+ thermalResistance_K_W(wall1, 0.020833333333333332).
4
+ heatLoss_W(wall1, 1200.0).
5
+ status(wall1, high_heat_loss).
@@ -0,0 +1,4 @@
1
+ semiperimeter(field_plot, 21).
2
+ area(field_plot, 84.0).
3
+ heronProduct(field_plot, 7056).
4
+ status(field_plot, valid_survey_triangle).
@@ -0,0 +1,3 @@
1
+ pressure_Pa(cell1, 100000.0).
2
+ status(cell1, near_atmospheric).
3
+ reason(cell1, "pressure is inside the one-atmosphere tolerance band").
@@ -0,0 +1,15 @@
1
+ fallacy(arg_affirming_consequent, affirming_consequent).
2
+ fallacy(arg_denying_antecedent, denying_antecedent).
3
+ fallacy(arg_hasty_generalization, hasty_generalization).
4
+ fallacy(arg_false_dilemma, false_dilemma).
5
+ type(arg_affirming_consequent, illegitimate_reasoning).
6
+ type(arg_denying_antecedent, illegitimate_reasoning).
7
+ type(arg_hasty_generalization, illegitimate_reasoning).
8
+ type(arg_false_dilemma, illegitimate_reasoning).
9
+ conclusion(arg_affirming_consequent, rain).
10
+ conclusion(arg_denying_antecedent, neg(door_opens)).
11
+ conclusion(arg_hasty_generalization, all(crows, black)).
12
+ conclusion(arg_false_dilemma, approve_now).
13
+ sampleSize(arg_hasty_generalization, 3).
14
+ requiredSampleSize(arg_hasty_generalization, 30).
15
+ omittedAlternative(arg_false_dilemma, revise_proposal).
@@ -0,0 +1,8 @@
1
+ kaprekarSteps(3524, 3).
2
+ kaprekarSteps(2111, 5).
3
+ kaprekarSteps(9831, 7).
4
+ kaprekarSteps(6174, 0).
5
+ reachesConstant(kaprekar, 3524).
6
+ reachesConstant(kaprekar, 2111).
7
+ reachesConstant(kaprekar, 9831).
8
+ reachesConstant(kaprekar, 6174).
@@ -0,0 +1,3 @@
1
+ sideCSquared(tri60, 67.0).
2
+ sideC(tri60, 8.1853527718724504).
3
+ status(tri60, acute_triangle).
@@ -0,0 +1,5 @@
1
+ slope(regression1, 0.80000000000000004).
2
+ intercept(regression1, 1.5).
3
+ rSquared(regression1, 0.64000000000000001).
4
+ status(regression1, accepted_linear_fit).
5
+ reason(regression1, "R squared meets the minimum explanatory-power threshold").
@@ -0,0 +1,3 @@
1
+ append(letters, [a, b, c]).
2
+ head(letters, a).
3
+ tail(letters, [b]).
@@ -0,0 +1,6 @@
1
+ type(meas47, lld_alarm).
2
+ lld_left_length_cm(meas47, 21.548900464617255).
3
+ lld_right_length_cm(meas47, 23.45713444515475).
4
+ lld_discrepancy_cm(meas47, -1.9082339805374957).
5
+ lld_threshold_cm(meas47, 1.25).
6
+ lld_reason(meas47, "discrepancy below negative threshold").
@@ -0,0 +1,6 @@
1
+ cpk(line7_shift_a, 0.6666666666666673).
2
+ cpk(line8_shift_b, 1.6666666666666607).
3
+ status(line8_shift_b, capable_process).
4
+ status(line7_shift_a, needs_process_adjustment).
5
+ reason(line8_shift_b, "Cpk meets the production capability threshold").
6
+ reason(line7_shift_a, "Cpk is below the production capability threshold").
@@ -0,0 +1,10 @@
1
+ result(det3, determinant([[2, -1, 0], [-1, 2, -1], [0, -1, 2]], 4.0)).
2
+ result(inv3, matrix_inversion([[2, -1, 0], [-1, 2, -1], [0, -1, 2]], [[0.74999999999999978, 0.5, 0.25], [0.5, 1.0000000000000004, 0.50000000000000022], [0.25, 0.50000000000000022, 0.75000000000000011]])).
3
+ result(inv4, matrix_inversion([[18, 22, 54, 42], [22, 70, 86, 62], [54, 86, 174, 134], [42, 62, 134, 106]], [[2.5156250000000067, 0.48437500000000011, -1.2968749999999987, 0.35937499999999561], [0.48437500000000011, 0.14062499999999961, -0.32812499999999822, 0.14062499999999797], [-1.2968749999999987, -0.32812499999999822, 1.0156249999999925, -0.57812499999999201], [0.35937499999999561, 0.14062499999999797, -0.57812499999999201, 0.51562499999999278]])).
4
+ result(invtri3, matrix_inv_triang([[2, 0, 0], [-1, 2, 0], [0, -1, 2]], [[0.5, 0, 0], [0.25, 0.5, 0], [0.125, 0.25, 0.5]])).
5
+ result(mul_small, matrix_multiply([[[1, 2], [3, 4], [5, 6]], [[1, 1, 1], [1, 1, 1]]], [[3, 3, 3], [7, 7, 7], [11, 11, 11]])).
6
+ result(mul_identity_check, matrix_multiply([[[18, 22, 54, 42], [22, 70, 86, 62], [54, 86, 174, 134], [42, 62, 134, 106]], [[2.515624999999984, 0.4843749999999933, -1.296874999999973, 0.3593749999999767], [0.4843749999999933, 0.1406249999999978, -0.3281249999999918, 0.1406249999999936], [-1.296874999999973, -0.3281249999999918, 1.015624999999971, -0.5781249999999781], [0.3593749999999767, 0.1406249999999936, -0.5781249999999781, 0.5156249999999853]]], [[1.0000000000000497, 5.3290705182007514e-15, 1.7763568394002505e-14, 4.4408920985006262e-15], [5.6843418860808015e-14, 1.0000000000000089, 2.8421709430404007e-14, 1.0658141036401503e-14], [1.7053025658242404e-13, 1.7763568394002505e-14, 1.0000000000000426, 3.907985046680551e-14], [8.5265128291212022e-14, 3.5527136788005009e-15, 7.1054273576010019e-14, 0.99999999999999467]])).
7
+ result(sum_small, matrix_sum([[[1, 2], [3, 4], [5, 6]], [[1, 2], [3, 4], [5, 6]]], [[2, 4], [6, 8], [10, 12]])).
8
+ result(chol3, cholesky_decomposition([[25, 15, -5], [15, 18, 0], [-5, 0, 11]], [[5.0, 0, 0], [3.0, 3.0, 0], [-1.0, 1.0, 3.0]])).
9
+ result(chol4, cholesky_decomposition([[18, 22, 54, 42], [22, 70, 86, 62], [54, 86, 174, 134], [42, 62, 134, 106]], [[4.2426406871192848, 0, 0, 0], [5.1854497287013492, 6.5659052011974026, 0, 0], [12.727922061357857, 3.0460384954008553, 1.6497422479090704, 0], [9.8994949366116654, 1.6245538642137891, 1.8497110052313821, 1.3926212476455924]])).
10
+ checksConsistentWithTreallaReference(matrix, true).
@@ -0,0 +1,6 @@
1
+ renewablePower_kW(campus_interval_17, 270.0).
2
+ batteryDispatch_kW(campus_interval_17, 240.0).
3
+ gridImport_kW(campus_interval_17, 110.0).
4
+ reserveAfterDispatch_kW(campus_interval_17, 80.0).
5
+ status(campus_interval_17, stable_dispatch).
6
+ reason(campus_interval_17, "battery dispatch covers the deficit while preserving reserve and grid contract limits").
@@ -0,0 +1,5 @@
1
+ plan(monkeyBananas, [go(loc3), push(loc1), climb_on, grab]).
2
+ plan(monkeyBananas, [go(loc1), go(loc3), push(loc1), climb_on, grab]).
3
+ plan(monkeyBananas, [go(loc3), push(loc1), climb_on, grab, climb_off]).
4
+ plan(monkeyBananas, [go(loc3), push(loc2), push(loc1), climb_on, grab]).
5
+ solved(monkeyBananas, true).
@@ -0,0 +1,93 @@
1
+ solution(nQueens8, [1, 5, 8, 6, 3, 7, 2, 4]).
2
+ solution(nQueens8, [1, 6, 8, 3, 7, 4, 2, 5]).
3
+ solution(nQueens8, [1, 7, 4, 6, 8, 2, 5, 3]).
4
+ solution(nQueens8, [1, 7, 5, 8, 2, 4, 6, 3]).
5
+ solution(nQueens8, [2, 4, 6, 8, 3, 1, 7, 5]).
6
+ solution(nQueens8, [2, 5, 7, 1, 3, 8, 6, 4]).
7
+ solution(nQueens8, [2, 5, 7, 4, 1, 8, 6, 3]).
8
+ solution(nQueens8, [2, 6, 1, 7, 4, 8, 3, 5]).
9
+ solution(nQueens8, [2, 6, 8, 3, 1, 4, 7, 5]).
10
+ solution(nQueens8, [2, 7, 3, 6, 8, 5, 1, 4]).
11
+ solution(nQueens8, [2, 7, 5, 8, 1, 4, 6, 3]).
12
+ solution(nQueens8, [2, 8, 6, 1, 3, 5, 7, 4]).
13
+ solution(nQueens8, [3, 1, 7, 5, 8, 2, 4, 6]).
14
+ solution(nQueens8, [3, 5, 2, 8, 1, 7, 4, 6]).
15
+ solution(nQueens8, [3, 5, 2, 8, 6, 4, 7, 1]).
16
+ solution(nQueens8, [3, 5, 7, 1, 4, 2, 8, 6]).
17
+ solution(nQueens8, [3, 5, 8, 4, 1, 7, 2, 6]).
18
+ solution(nQueens8, [3, 6, 2, 5, 8, 1, 7, 4]).
19
+ solution(nQueens8, [3, 6, 2, 7, 1, 4, 8, 5]).
20
+ solution(nQueens8, [3, 6, 2, 7, 5, 1, 8, 4]).
21
+ solution(nQueens8, [3, 6, 4, 1, 8, 5, 7, 2]).
22
+ solution(nQueens8, [3, 6, 4, 2, 8, 5, 7, 1]).
23
+ solution(nQueens8, [3, 6, 8, 1, 4, 7, 5, 2]).
24
+ solution(nQueens8, [3, 6, 8, 1, 5, 7, 2, 4]).
25
+ solution(nQueens8, [3, 6, 8, 2, 4, 1, 7, 5]).
26
+ solution(nQueens8, [3, 7, 2, 8, 5, 1, 4, 6]).
27
+ solution(nQueens8, [3, 7, 2, 8, 6, 4, 1, 5]).
28
+ solution(nQueens8, [3, 8, 4, 7, 1, 6, 2, 5]).
29
+ solution(nQueens8, [4, 1, 5, 8, 2, 7, 3, 6]).
30
+ solution(nQueens8, [4, 1, 5, 8, 6, 3, 7, 2]).
31
+ solution(nQueens8, [4, 2, 5, 8, 6, 1, 3, 7]).
32
+ solution(nQueens8, [4, 2, 7, 3, 6, 8, 1, 5]).
33
+ solution(nQueens8, [4, 2, 7, 3, 6, 8, 5, 1]).
34
+ solution(nQueens8, [4, 2, 7, 5, 1, 8, 6, 3]).
35
+ solution(nQueens8, [4, 2, 8, 5, 7, 1, 3, 6]).
36
+ solution(nQueens8, [4, 2, 8, 6, 1, 3, 5, 7]).
37
+ solution(nQueens8, [4, 6, 1, 5, 2, 8, 3, 7]).
38
+ solution(nQueens8, [4, 6, 8, 2, 7, 1, 3, 5]).
39
+ solution(nQueens8, [4, 6, 8, 3, 1, 7, 5, 2]).
40
+ solution(nQueens8, [4, 7, 1, 8, 5, 2, 6, 3]).
41
+ solution(nQueens8, [4, 7, 3, 8, 2, 5, 1, 6]).
42
+ solution(nQueens8, [4, 7, 5, 2, 6, 1, 3, 8]).
43
+ solution(nQueens8, [4, 7, 5, 3, 1, 6, 8, 2]).
44
+ solution(nQueens8, [4, 8, 1, 3, 6, 2, 7, 5]).
45
+ solution(nQueens8, [4, 8, 1, 5, 7, 2, 6, 3]).
46
+ solution(nQueens8, [4, 8, 5, 3, 1, 7, 2, 6]).
47
+ solution(nQueens8, [5, 1, 4, 6, 8, 2, 7, 3]).
48
+ solution(nQueens8, [5, 1, 8, 4, 2, 7, 3, 6]).
49
+ solution(nQueens8, [5, 1, 8, 6, 3, 7, 2, 4]).
50
+ solution(nQueens8, [5, 2, 4, 6, 8, 3, 1, 7]).
51
+ solution(nQueens8, [5, 2, 4, 7, 3, 8, 6, 1]).
52
+ solution(nQueens8, [5, 2, 6, 1, 7, 4, 8, 3]).
53
+ solution(nQueens8, [5, 2, 8, 1, 4, 7, 3, 6]).
54
+ solution(nQueens8, [5, 3, 1, 6, 8, 2, 4, 7]).
55
+ solution(nQueens8, [5, 3, 1, 7, 2, 8, 6, 4]).
56
+ solution(nQueens8, [5, 3, 8, 4, 7, 1, 6, 2]).
57
+ solution(nQueens8, [5, 7, 1, 3, 8, 6, 4, 2]).
58
+ solution(nQueens8, [5, 7, 1, 4, 2, 8, 6, 3]).
59
+ solution(nQueens8, [5, 7, 2, 4, 8, 1, 3, 6]).
60
+ solution(nQueens8, [5, 7, 2, 6, 3, 1, 4, 8]).
61
+ solution(nQueens8, [5, 7, 2, 6, 3, 1, 8, 4]).
62
+ solution(nQueens8, [5, 7, 4, 1, 3, 8, 6, 2]).
63
+ solution(nQueens8, [5, 8, 4, 1, 3, 6, 2, 7]).
64
+ solution(nQueens8, [5, 8, 4, 1, 7, 2, 6, 3]).
65
+ solution(nQueens8, [6, 1, 5, 2, 8, 3, 7, 4]).
66
+ solution(nQueens8, [6, 2, 7, 1, 3, 5, 8, 4]).
67
+ solution(nQueens8, [6, 2, 7, 1, 4, 8, 5, 3]).
68
+ solution(nQueens8, [6, 3, 1, 7, 5, 8, 2, 4]).
69
+ solution(nQueens8, [6, 3, 1, 8, 4, 2, 7, 5]).
70
+ solution(nQueens8, [6, 3, 1, 8, 5, 2, 4, 7]).
71
+ solution(nQueens8, [6, 3, 5, 7, 1, 4, 2, 8]).
72
+ solution(nQueens8, [6, 3, 5, 8, 1, 4, 2, 7]).
73
+ solution(nQueens8, [6, 3, 7, 2, 4, 8, 1, 5]).
74
+ solution(nQueens8, [6, 3, 7, 2, 8, 5, 1, 4]).
75
+ solution(nQueens8, [6, 3, 7, 4, 1, 8, 2, 5]).
76
+ solution(nQueens8, [6, 4, 1, 5, 8, 2, 7, 3]).
77
+ solution(nQueens8, [6, 4, 2, 8, 5, 7, 1, 3]).
78
+ solution(nQueens8, [6, 4, 7, 1, 3, 5, 2, 8]).
79
+ solution(nQueens8, [6, 4, 7, 1, 8, 2, 5, 3]).
80
+ solution(nQueens8, [6, 8, 2, 4, 1, 7, 5, 3]).
81
+ solution(nQueens8, [7, 1, 3, 8, 6, 4, 2, 5]).
82
+ solution(nQueens8, [7, 2, 4, 1, 8, 5, 3, 6]).
83
+ solution(nQueens8, [7, 2, 6, 3, 1, 4, 8, 5]).
84
+ solution(nQueens8, [7, 3, 1, 6, 8, 5, 2, 4]).
85
+ solution(nQueens8, [7, 3, 8, 2, 5, 1, 6, 4]).
86
+ solution(nQueens8, [7, 4, 2, 5, 8, 1, 3, 6]).
87
+ solution(nQueens8, [7, 4, 2, 8, 6, 1, 3, 5]).
88
+ solution(nQueens8, [7, 5, 3, 1, 6, 8, 2, 4]).
89
+ solution(nQueens8, [8, 2, 4, 1, 7, 5, 3, 6]).
90
+ solution(nQueens8, [8, 2, 5, 3, 1, 7, 4, 6]).
91
+ solution(nQueens8, [8, 3, 1, 6, 2, 5, 7, 4]).
92
+ solution(nQueens8, [8, 4, 1, 3, 6, 2, 7, 5]).
93
+ solved(nQueens8, true).
@@ -0,0 +1,6 @@
1
+ rdf(iri("http://example.com/alice"), iri("http://example.com/total"), literal("5", iri("http://www.w3.org/2001/XMLSchema#integer"), "", "")).
2
+ rdf(iri("http://example.com/alice"), iri("http://example.com/label"), literal("Alice total 5", iri("http://www.w3.org/2001/XMLSchema#string"), "", "")).
3
+ rdf(iri("http://example.com/alice"), iri("http://example.com/status"), iri("http://example.com/passing")).
4
+ rdf(iri("http://example.com/red"), iri("http://example.com/kind"), iri("http://example.com/colour")).
5
+ rdf(iri("http://example.com/green"), iri("http://example.com/kind"), iri("http://example.com/colour")).
6
+ rdf(iri("http://example.com/blue"), iri("http://example.com/kind"), iri("http://example.com/colour")).
@@ -0,0 +1,4 @@
1
+ endToEndLatency_ms(edge_path, 47.0).
2
+ slaLimit_ms(edge_path, 50.0).
3
+ status(edge_path, sla_compliant).
4
+ reason(edge_path, "path latency including jitter is below the SLA limit").
@@ -0,0 +1,3 @@
1
+ findRoot([1, 1.0, 1.0e-15], 1.4142135623730951).
2
+ findRoot([2, 2.0, 1.0e-15], 2.7182818284590455).
3
+ findRoot([3, 3.0, 1.0e-15], 3.1415926535897931).
@@ -0,0 +1,5 @@
1
+ defaultSupports(nixon, pacifist).
2
+ defaultSupports(nixon, hawk).
3
+ conflict(nixon, conflict(pacifist, hawk)).
4
+ conflict(nixon, conflict(hawk, pacifist)).
5
+ status(nixon, conflicted_default_case).
@@ -0,0 +1,42 @@
1
+ score(riskH1, 100).
2
+ score(riskH2, 100).
3
+ score(riskH4, 70).
4
+ policyGraph(agreementHC1, (type(policyHC1, odrl_Policy), odrl_permission(policyHC1, permResearchUse), odrl_permission(policyHC1, permShareWithPharma), odrl_permission(policyHC1, permAutomatedTriage), odrl_permission(policyHC1, permRetention10y), type(permResearchUse, odrl_Permission), odrl_assigner(permResearchUse, hospital), odrl_assignee(permResearchUse, researchUnit), odrl_action(permResearchUse, hl7ca_use), odrl_target(permResearchUse, healthRecordData), odrl_target(permResearchUse, genomicData), odrl_constraint(permResearchUse, cResearchPurpose), odrl_leftOperand(cResearchPurpose, odrl_purpose), odrl_rightOperandReference(cResearchPurpose, purposeHMB), clause(permResearchUse, clauseH1), type(permShareWithPharma, odrl_Permission), odrl_assigner(permShareWithPharma, hospital), odrl_assignee(permShareWithPharma, pharmaPartner), odrl_action(permShareWithPharma, hl7ca_disclose), odrl_target(permShareWithPharma, genomicData), odrl_constraint(permShareWithPharma, cSharePurpose), odrl_leftOperand(cSharePurpose, odrl_purpose), odrl_rightOperandReference(cSharePurpose, purposeHMB), clause(permShareWithPharma, clauseH2), type(permAutomatedTriage, odrl_Permission), odrl_assigner(permAutomatedTriage, hospital), odrl_assignee(permAutomatedTriage, clinicalAIService), odrl_action(permAutomatedTriage, hl7ca_use), odrl_target(permAutomatedTriage, healthRecordData), odrl_constraint(permAutomatedTriage, cTriagePurpose), odrl_leftOperand(cTriagePurpose, odrl_purpose), odrl_rightOperandReference(cTriagePurpose, purposeCC), odrl_duty(permAutomatedTriage, dutyHumanReview), odrl_action(dutyHumanReview, humanReview), odrl_constraint(dutyHumanReview, cTriageEncryption), odrl_leftOperand(cTriageEncryption, encryptionAtRest), odrl_rightOperand(cTriageEncryption, true), clause(permAutomatedTriage, clauseH3), type(permRetention10y, odrl_Permission), odrl_assigner(permRetention10y, hospital), odrl_assignee(permRetention10y, hospital), odrl_action(permRetention10y, hl7ca_collect), odrl_target(permRetention10y, healthRecordData), odrl_constraint(permRetention10y, cRetentionPurpose), odrl_leftOperand(cRetentionPurpose, odrl_purpose), odrl_rightOperandReference(cRetentionPurpose, purposeCC), odrl_constraint(permRetention10y, cRetentionDays), odrl_leftOperand(cRetentionDays, retentionDays), odrl_rightOperand(cRetentionDays, 3650), clause(permRetention10y, clauseH4))).
5
+ dpv_hasRisk(processContextHC1, riskH1).
6
+ dpv_hasRisk(processContextHC1, riskH2).
7
+ dpv_hasRisk(processContextHC1, riskH4).
8
+ type(riskH1, dpv_Risk).
9
+ type(riskH2, dpv_Risk).
10
+ type(riskH4, dpv_Risk).
11
+ scoreRaw(riskH1, 120).
12
+ scoreRaw(riskH2, 125).
13
+ scoreRaw(riskH4, 70).
14
+ dpv_hasRiskLevel(riskH1, risk_HighRisk).
15
+ dpv_hasRiskLevel(riskH2, risk_HighRisk).
16
+ dpv_hasRiskLevel(riskH4, risk_ModerateRisk).
17
+ dpv_hasSeverity(riskH1, risk_HighSeverity).
18
+ dpv_hasSeverity(riskH2, risk_HighSeverity).
19
+ dpv_hasSeverity(riskH4, risk_ModerateSeverity).
20
+ aboutClause(riskH1, clauseH1).
21
+ aboutClause(riskH2, clauseH2).
22
+ aboutClause(riskH4, clauseH4).
23
+ violatesNeed(riskH1, need_ConsentForResearch).
24
+ violatesNeed(riskH2, need_DeIdentifyBeforeSharing).
25
+ violatesNeed(riskH4, need_RetentionLimit3y).
26
+ dct_source(riskH1, permResearchUse).
27
+ dct_source(riskH2, permShareWithPharma).
28
+ dct_source(riskH4, permRetention10y).
29
+ dct_description(riskH1, "Risk: health/genomic data may be used for research without explicit opt-in consent.").
30
+ dct_description(riskH2, "Risk: genomic data may be shared with external pharma partners without a de-identification/pseudonymisation requirement.").
31
+ dct_description(riskH4, "Risk: retention (3650 days) exceeds patient preference (1095 days).").
32
+ reportKey(riskH1, 900).
33
+ reportKey(riskH2, 900).
34
+ reportKey(riskH4, 930).
35
+ dpv_isMitigatedByMeasure(riskH1, mitigateConsent).
36
+ dpv_isMitigatedByMeasure(riskH2, mitigateDeId).
37
+ dpv_isMitigatedByMeasure(riskH4, mitigateRetention).
38
+ suggestAddGraph(mitigateConsent, (odrl_constraint(permResearchUse, cExplicitConsent), odrl_leftOperand(cExplicitConsent, explicitConsent), odrl_rightOperand(cExplicitConsent, true))).
39
+ suggestAddGraph(mitigateDeId, (odrl_constraint(permShareWithPharma, cDeIdentified), odrl_leftOperand(cDeIdentified, deIdentified), odrl_rightOperand(cDeIdentified, true), odrl_duty(permShareWithPharma, dutyDeIdentify), odrl_action(dutyDeIdentify, deIdentify))).
40
+ suggestAddGraph(mitigateRetention, (odrl_constraint(permRetention10y, cRetentionLimit), odrl_leftOperand(cRetentionLimit, retentionDays), odrl_rightOperand(cRetentionLimit, 1095))).
41
+ firstRisk(report, riskH1).
42
+ retentionRiskScore(report, 70).
@@ -0,0 +1,120 @@
1
+ score(risk1, 100).
2
+ score(risk2, 85).
3
+ score(risk3, 97).
4
+ score(risk4, 70).
5
+ dct_title(agreement1, "Example Agreement").
6
+ dct_title(consumerExample, "Example consumer profile").
7
+ dct_title(processContext1, "Service operation under Agreement1").
8
+ dpv_hasRisk(processContext1, risk1).
9
+ dpv_hasRisk(processContext1, risk2).
10
+ dpv_hasRisk(processContext1, risk3).
11
+ dpv_hasRisk(processContext1, risk4).
12
+ type(risk1, dpv_Risk).
13
+ type(risk2, dpv_Risk).
14
+ type(risk3, dpv_Risk).
15
+ type(risk4, dpv_Risk).
16
+ type(risk1, risk_UnwantedDataDeletion).
17
+ type(risk1, risk_DataUnavailable).
18
+ type(risk1, risk_DataErasureError).
19
+ type(risk1, risk_DataLoss).
20
+ type(risk2, risk_PolicyRisk).
21
+ type(risk2, risk_CustomerConfidenceLoss).
22
+ type(risk3, risk_UnwantedDisclosureData).
23
+ type(risk3, risk_CustomerConfidenceLoss).
24
+ type(risk4, risk_PolicyRisk).
25
+ type(risk4, risk_CustomerConfidenceLoss).
26
+ type(src1, risk_RiskSource).
27
+ type(src2, risk_RiskSource).
28
+ type(src3, risk_RiskSource).
29
+ type(src4, risk_RiskSource).
30
+ type(src1, risk_LegalComplianceRisk).
31
+ type(src2, risk_PolicyRisk).
32
+ type(src3, risk_PolicyRisk).
33
+ type(src4, risk_PolicyRisk).
34
+ type(m11, dpv_RiskMitigationMeasure).
35
+ type(m21, dpv_RiskMitigationMeasure).
36
+ type(m12, dpv_RiskMitigationMeasure).
37
+ type(m13, dpv_RiskMitigationMeasure).
38
+ type(m14, dpv_RiskMitigationMeasure).
39
+ firstRisk(report, risk1).
40
+ before(riskRanking, pair(risk1, risk2)).
41
+ before(riskRanking, pair(risk1, risk3)).
42
+ before(riskRanking, pair(risk1, risk4)).
43
+ before(riskRanking, pair(risk2, risk4)).
44
+ before(riskRanking, pair(risk3, risk2)).
45
+ before(riskRanking, pair(risk3, risk4)).
46
+ dct_source(risk1, permDeleteAccount).
47
+ dct_source(risk2, permChangeTerms).
48
+ dct_source(risk3, permShareData).
49
+ dct_source(risk4, prohibitExportData).
50
+ dct_source(src1, permDeleteAccount).
51
+ dct_source(src2, permChangeTerms).
52
+ dct_source(src3, permShareData).
53
+ dct_source(src4, prohibitExportData).
54
+ risk_hasRiskSource(risk1, src1).
55
+ risk_hasRiskSource(risk2, src2).
56
+ risk_hasRiskSource(risk3, src3).
57
+ risk_hasRiskSource(risk4, src4).
58
+ dpv_hasConsequence(risk1, risk_DataLoss).
59
+ dpv_hasConsequence(risk1, risk_DataUnavailable).
60
+ dpv_hasConsequence(risk1, risk_CustomerConfidenceLoss).
61
+ dpv_hasConsequence(risk2, risk_CustomerConfidenceLoss).
62
+ dpv_hasConsequence(risk3, risk_CustomerConfidenceLoss).
63
+ dpv_hasConsequence(risk4, risk_CustomerConfidenceLoss).
64
+ dpv_hasImpact(risk1, risk_FinancialLoss).
65
+ dpv_hasImpact(risk1, risk_NonMaterialDamage).
66
+ dpv_hasImpact(risk2, risk_NonMaterialDamage).
67
+ dpv_hasImpact(risk3, risk_NonMaterialDamage).
68
+ dpv_hasImpact(risk3, risk_FinancialLoss).
69
+ dpv_hasImpact(risk4, risk_NonMaterialDamage).
70
+ aboutClause(risk1, clauseC1).
71
+ aboutClause(risk2, clauseC2).
72
+ aboutClause(risk3, clauseC3).
73
+ aboutClause(risk4, clauseC4).
74
+ violatesNeed(risk1, need_DataCannotBeRemoved).
75
+ violatesNeed(risk2, need_ChangeOnlyWithPriorNotice).
76
+ violatesNeed(risk3, need_NoSharingWithoutConsent).
77
+ violatesNeed(risk4, need_DataPortability).
78
+ scoreRaw(risk1, 110).
79
+ scoreRaw(risk2, 85).
80
+ scoreRaw(risk3, 97).
81
+ scoreRaw(risk4, 70).
82
+ dpv_hasSeverity(risk1, risk_HighSeverity).
83
+ dpv_hasSeverity(risk2, risk_HighSeverity).
84
+ dpv_hasSeverity(risk3, risk_HighSeverity).
85
+ dpv_hasSeverity(risk4, risk_ModerateSeverity).
86
+ dpv_hasRiskLevel(risk1, risk_HighRisk).
87
+ dpv_hasRiskLevel(risk2, risk_HighRisk).
88
+ dpv_hasRiskLevel(risk3, risk_HighRisk).
89
+ dpv_hasRiskLevel(risk4, risk_ModerateRisk).
90
+ dct_description(risk1, "Risk: account/data removal is permitted without notice safeguards (no notice constraint and no duty to inform). Clause C1: Provider may remove the user account (and associated data) at its discretion.").
91
+ dct_description(risk2, "Risk: terms may change with notice (3 days) below consumer requirement (14 days). Clause C2: Provider may change terms by informing users at least 3 days in advance.").
92
+ dct_description(risk3, "Risk: user data sharing is permitted without an explicit consent constraint. Clause C3: Provider may share user data with partners for business purposes.").
93
+ dct_description(risk4, "Risk: portability is restricted because exporting user data is prohibited. Clause C4: Users are not permitted to export their data.").
94
+ dct_description(m11, "Add a notice constraint (minimum noticeDays) before account removal.").
95
+ dct_description(m21, "Add a duty to inform the consumer prior to account removal.").
96
+ dct_description(m12, "Increase minimum noticeDays in the inform duty to meet the consumer requirement.").
97
+ dct_description(m13, "Add an explicit consent constraint before data sharing.").
98
+ dct_description(m14, "Add a permission allowing data export (or remove the prohibition) to support portability.").
99
+ reportKey(risk1, key(900, "C1")).
100
+ reportKey(risk2, key(915, "C2")).
101
+ reportKey(risk3, key(903, "C3")).
102
+ reportKey(risk4, key(930, "C4")).
103
+ dpv_isMitigatedByMeasure(risk1, m11).
104
+ dpv_isMitigatedByMeasure(risk1, m21).
105
+ dpv_isMitigatedByMeasure(risk2, m12).
106
+ dpv_isMitigatedByMeasure(risk3, m13).
107
+ dpv_isMitigatedByMeasure(risk4, m14).
108
+ dpv_mitigatesRisk(m11, risk1).
109
+ dpv_mitigatesRisk(m21, risk1).
110
+ dpv_mitigatesRisk(m12, risk2).
111
+ dpv_mitigatesRisk(m13, risk3).
112
+ dpv_mitigatesRisk(m14, risk4).
113
+ clauseId(clauseC1, "C1").
114
+ clauseId(clauseC2, "C2").
115
+ clauseId(clauseC3, "C3").
116
+ clauseId(clauseC4, "C4").
117
+ text(clauseC1, "Provider may remove the user account (and associated data) at its discretion.").
118
+ text(clauseC2, "Provider may change terms by informing users at least 3 days in advance.").
119
+ text(clauseC3, "Provider may share user data with partners for business purposes.").
120
+ text(clauseC4, "Users are not permitted to export their data.").
@@ -0,0 +1,7 @@
1
+ transferSemiMajorAxis_km(mars_hohmann, 188768535.34999999).
2
+ departureDeltaV_km_s(mars_hohmann, 2.9446911328430403).
3
+ arrivalDeltaV_km_s(mars_hohmann, 2.6488967223855973).
4
+ totalDeltaV_km_s(mars_hohmann, 5.5935878552286376).
5
+ transferTime_days(mars_hohmann, 258.86582676796297).
6
+ status(mars_hohmann, feasible_reference_transfer).
7
+ reason(mars_hohmann, "total Hohmann transfer delta-v is within the mission budget").
@@ -0,0 +1,3 @@
1
+ airroute(discovered, "Ostend-Bruges International Airport -> Liège Airport -> Heraklion International Nikos Kazantzakis Airport -> Václav Havel Airport Prague").
2
+ airroute(discovered, "Ostend-Bruges International Airport -> Liège Airport -> Diagoras Airport -> Václav Havel Airport Prague").
3
+ airroute(discovered, "Ostend-Bruges International Airport -> Liège Airport -> Palma De Mallorca Airport -> Václav Havel Airport Prague").
@@ -0,0 +1,3 @@
1
+ factorial(0, s(0)).
2
+ factorial(s(0), s(0)).
3
+ factorial(s(s(s(s(s(0))))), s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(s(0))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))).
@@ -0,0 +1,10 @@
1
+ prod([3, 0], 0).
2
+ prod([5, 6], 30).
3
+ prod([238, 13], 3094).
4
+ prod([8367238, 27133], 227028268654).
5
+ prod([62713345408367238, 40836723862713345], 2561007568948454773873964883391110).
6
+ prod([4083672386271334562713345408367238, 4083672386271334562713345408367238], 16676380158395015918313370200581208707756668987398133546021071748644).
7
+ pow([3, 0], 1).
8
+ pow([5, 6], 15625).
9
+ pow([238, 13], 7861409907565911395902147452928).
10
+ pow([8367238, 2713], 9232045607212052006795246694645720931277949466279701628177907740283538142209103234039439973517187737529281630849057170752784305720492044921879310570197821189938111046880741611757099186209515996545574560595569398421819439327724593883790330554198464119958380253077594176476747486483990058232772330391614523765695590076933329094315903926160289597769818256424419293451613076627508324466360726612186400591843593021231178672747824182045603899165848423037855152265845482950837492362915381074102657811860380193315088111381992883369163984493249061979770577658980276182984413366453224501926276668558570391059133297007461733806379970178451177729443654591147548896171773534035466913353947716920292373556746770210709597354796556198245785294464841029427784489194700756195161952011832934270934818959887313446096063911307313403409406593074480469018845582204848718220812149409978732541417363909693033995650385298289888835192900522879993196481107895143038431062207845467671409292879939993495775794191338994049129251032889407078950814229876697652230493052574335511698335543098672124864569018630506760295111122506445140314839898755383719270725319655624324653729144440668885419886163313402113032552728510164639345415361410433532741555249023965973869142391370132857395337987963613790104142070052402177691750836796141362723112626981402690615399678911240733885693719987133461963485799194537978265131294945084051710190782912037523869473566324564067662402020127129653928235567374270957792629843988690452449502040513392238182577391145569545326772214717486136487306194746864658381436701646272673672612457633580843635990846893525988282282093466920839358262292698962588093070552224508091588014202322431888011997254541356185442670480336382675292780234442420998836454160687713951669966694067789082527623789540493325741322401179285307729734864003865620327018038144251278427904425993839963431858469683642579025539687658707527821874613626906565574468413670320414902322069802809289982509353199027263860384935123762033392474479252822920162146066431070995077991756163501940441486598169760977714217023603171643228693290613825091933153470402008614288027113249817571790573049280856169793563989538663092879420421180211097823999933496099083547524003457897046070188962227737811303557067887562539653015054200031581930142158758651682706407760565111566395197167436716778331449745461773213880175118958247071711120226977343115076634486056288862634416836057993090542460810615795180465257137099539487302977231252633410611087234713363193018194431064477385596193687914609860899819646154234541258374587766469746031309924563268050973709826678072635114137624052372074465835606867867641797613495101553851949062461284718976103071160859786521073486285824956537559335900453036172621923823281897437885918855447442508438811473571004532093737707368850492372158447435664386797009250629905181864516221477057654887607999031943119842220983502364425918535930932664096792924717485823463880563955006251963236229972069382372530859518664887435914735765392364477866917165545798262116641859167876216687936473067421260307308596961793501475146026893251578236059157662198964612144962622999033073992589639544861589580728141516172243800932285688023006999709470217245053378527780724182120910815070866561570949149512494544474202311521764652847613978356283086522899196049238234232353079532310352784234713348573837365057785082577737849218338308467006198602741702149614256721858207668616400361542981566121180010834914431005593156346680447089258659759642006714652445084021218621296680574425003383945892723537234404530084127417129328380262998091118233383126636734301103743003544023439491357785360765916514348826561168250634462186776327578612443050776385746602790785065565625074579032786456011384842603179920952372535766477972557986594260611648084254254973781435906194480015806158205216234419475859657349754201310444279980455201256867208871727394205195927703689583558400125728042058741958776175643909467804052305534511425258126703252211055068005363074326091132645600706591357200350625778365167382833103099508306870067751436708101863531971664207525023545990896709941518325240079664478141353979810713442971539906056744019857418275613892197653313375382754389249315791071450892281011882774320476855407219852116307687771792421911542465087937079448650771626507721547711336762848560509944336367174727959905725047971088214697176796039849687939168565905716614497026641794708224515081332518836736718734272344833370995389033846468551411646577526869132060204040248528016581187098895732644486362322344896226958305925356505796032186058898302694907839960498775089055174750947819914995480730235238347194297192231152299975869624481607192869316127058997700595028994126448504702063114456502903007909266030457673675252210035614599224309622846991456440619848418950320835523122242548983717186702818931632480126600964438729449330425789858190471525892456712359896837117779158807190964727353763206579340379538739340802368199112382926337902711252178657832880738147015729833968615655206820274165657254653390581247258635568333632426810478450420392964072477715425100724376075302865873003496192079652858832726646877919495221020140924637885038196880004845448948760985845164022914491368239592214952043381395434656064547651610637595803306562912531014781573817389722172671719163835359730465784413571435031796035901679842830750408489614367744052739839440947633806376868192573379596445350919637463198732129143563288395253217620348191123621886805143501200536407681391600424097869484448481917153534987888930165734468156327323080141369378990449647609640502564317864413184425795276685084668951548107595882065146877803271684850374309412028294371208572428286827962622658906157579748000820715989372369572434065280362195582281893576951300643504694469969140655738124415880837950788925726406198844131042956608278997619519468516612998238813876435268822514759867836497176632617348780011906302523927924878522899168890212776448145530620418479470113951173371674914615780662301657139236088162600380361306783481603939408842255609933093699389300902560129141423126983893804814013786759932396874638842922139772597177764994343155837800181835648736504589347951342890430132604158202832913017130110276462823182377110373232860779188830226082483373271262070644422794293142839134156243621695491894526749882266106569612334133451641152245411627537901959693282771936966371603154063273751806507963066779141416146179788392778544181271524425809348668223878748380751676686842073539448509706568361017798144420108391278161685517117042692159852119705266946435179666704282725679953329003411496321034542496237598892609036723708215903254351646595992387434094106029974453502635304828550195988020334109848829338936059421457602785403605738695731413192664698795339910723770359104783338396650713562930237165713352852933031364201490836291652695840324383358851345947200861247494781634271602663238185226011528457766966757472328207393117660439768743275520780457354963314402783137581887151714302675427144872457135294959074989839362823280658438307245300024005198496934860891625815588262458462412036777167305084084441937586905199484726977287932935290016316496797364174018606441229120520578833390869277507092449881231708000689958250584468393257236959660603929861031385644907266926646627141645198872774771045880316984592752093208323212724685977968940408644986807835531323622606632004554785437942980330235986226959685485513753147267037636564135073751858213062127337573752625245934898155228194585723654879581467855135204200422740585301078730492966003390522542271744301554392235985282014957623541515202775076289354244057493736657439694929667618560916049568160869306184308987905818394367132458603406310128086069384240734722256488469370368464792081841884558991639164135499845403833551711948956689171438665043328866440505241104741712762062396496344129747898994931659989791470078669318601495080462518413591906969554298443373487025364697391161131507149223029431293737863281210665185481556491149286177497436169458736758568306643586698817958994173061773761826362940194776234330718231450825931969422078146817997485554458510156731403606078336779183413459099438517316651455863716144285822855365655253272340099182509640728400186182180386347540063563620327603569440409652598157127675204412261676855766391638740827818278825395877404093667464202668228286567520662217591282398964724397579102837139978437336480209987586832077896507438720640945341599374231857638645400259668646520831792981033802824467670509078225891396339621538125130754036100825685520007669511330457576183419809140675426736238536148428774372977687493453602292557291553360333291744784377227615036386890766859291167320554532596612430168498152052042760513780975410234536969871199857108220510060279257221963943284492100771660996786169402084094588755519294969504728086903114208096243679815184506455979783966809280469534326955292349607481693325330169048586011253515820995296292015824019421948397731055746966569540669462124766972266046631445298132087740309795367888437084370655348433881077712541951112605341145751568496665195320424043217718250182246013436733815092223288740027737618507093474925387448386269433213468265113693267120840397561272881509219164454955353542073756267041510311999195846457170275010632988113652089113680350385255749579636027461979755116384360391898332125732109221255895726565300634189768944611805272868825608946791566917640854339549429136796841935431631646639673253333111903804505781240621228997045113471677126161987864042165853569298815799264217175249477055241694927185500465814697418373783731711285421398206834571270519870455314193073694038548628714045818896559566352184432393309805210033129551525077029125803923233052529137897512135780750026335773328310023485988784267840304078124650554950463702922449598155949451847174289306175282261600985847050667740150832615907898149210612742055271697654222013473892765727373945974666224878494485300169886761791972431144989307312682159507593525880949223538375003197260168096561455302129228184524671480842058343603942948191475565356131529230189018183171499240131846463217264963531315560760264267960465817683692987954259172163904027575258250080987047195626487889115545984268054509707240807225016859433320402964897231085684514639471476669042878997617840144863047152058655619730522819779528371769672066077368094455294510912530848633599242236832402399826059135561269578411778566840843214006781963673638281315740515861933414690145203058081944772795887541137725796674303449007453909472694610701523305037225556759795716604225960534825551177082491345694180971182693230986719589257554495426032757124605606187476556307486975264449346744722403313295393641574099412009513010672238754222576333273155084845351650958207783871170754198705546174714151203793009475890888853429819858387206790156222412664400830353275548391817864679747022363704903761460537131337660340746198535949147835260181475464507898693321594591327311144444369597587552907247737666841685551185235338321990609666777716727170387123282113156402471327293272454658490900956637104277503284060459335612888018825476564054845877744286808999172445545611628519950147127154046043674028249275783327071274193529816176429506935032311650718610092085875443903280595312660495403842249133031446191562483390936000195289077949592663940210833456822255202277991786553760300836853031815529659401901682556495047804839898973475729887010071174515103660930807024738046893913114724575300298790979978352282963948435527839090683625060184386302485712216293158126264228028910505983203295811751635907557577430370928280072081835631632920614539375103209383733627115617105566340456417118569202108888258916280303936317567655261354860126775463060075541542627676783292446532102582915716172077428949920437746319661944155887256483313190408938846939945331502042591525882663421149367201043585575214354388196521661536471912889850723298503941165196908683901209242053731162464346994917740744139614413723003309738319947990962469167737045204155392611193525521425426016450080242335234066883156448431793163579581428292130911977501010533562700359870297222321520499810781988980427863716359895578528332458732096321894119396238729268860306407882030869109838579260751323260166783964222237783482594723108387089874437627419730642129510692763999550658852752260497693990106358537481168577603762422120894395163341979318001231893148596612122448800472364152360782513637632253256588301482205436462594601830324132211150526625025075205452365790444690491557602002814592445745673174732487402525217996052886641201949036510781238243458523456625477352280267127722245593841203920715608323005958564673704721302531512848964648789339279014635067502188129046021721945882392848492073572882374425758855575190298322349161601942841365242151889703701205865254072007466299704843951887406321996346219991922008918546479651301742580820847583404594451294192273374699760358568985513379415080946845864890477469320128948450385367986463269802991107368620485808926816715422223930689893987576410996377933428149868310379903492271047854169639045038599531763247350938319646344948157859494370816845079293102288575576188229091052330311564100250168710473469012692368361328988116289106921618682257179466649483706380881878014992970223154301585574993624561902404107869064053698016031255189937791438093828315135648995872129904042268400562113284844327854575988206730113481074073819245784134353681327577931922241812952186967974468425725410408007655976849188205971433308713217116821812283201782298628506465209361867971229280777230032674683455757737234795947205328515416099216126062764224431570469504357900045054784028213379557174062980337049225937948617432346751391068157626753581575862697096359938497232945925377863030002392452878273987998001679182131017736083672935631714166745625749789915661189743239934524515609803389418647452112156392316786914853242526675002733869812239552632861187470506140513550690740652682308035915412580501160394839857630652114528152980759653553767053560529836722177296241210230820340818517060573617218530940789305753492627545740585169103421499266888095682329356747509589725051040624688433434138027942555463572603089853184586466657684901478533411603490475460182157426864388557475280018810050405773405284304845195354685540824855390079342126605434777429339598101562900357538501668057044597732947870477656967256437179464367324885279934350255026655332693671341415555222136497930287314793876856094608702531970136965327688584221888939974908109036632758724007972252068428868882496292332342265729456027882657309962092603092817694564562799969190597522832497169741515133378064755633436657931757108842040683811401568832941770609803400717956272567431981923722069188461891542285750307204904205204414534133785627660992081008607377652413199453771213687144439399357965275974539439729024029923364299977081951045588934824272589840384237051965927135966346742605831797076960724519840989469632137752625019956398379858048442741065819650839225477029639404739080700848378668024211472558587104406377105165234406235655896915285098449328423987207371129003246605341959023555788925246834308178128511779072902188655543159852244614580673994047932199092039581951500050042209914496648719140313411424658305091397945968029374793145391827456995913497817493208695899986437060186653504745368970106019243853008256171595987541471164141131765628658340521964084670003467509829797830873372254532710791068666101602921237251076342015595763098308359413073050761536949465266193220477631636129085931950110086794879343925310678333950796405991644884566758341305442899837240339816537573053728589644455509243741168558693421968846045016026576756310231469702455949817287094552275168085555991703097743274053058986635181606036056941045341364481954941338841321463898224976675055210251281115745120511247800209782900796271700165710725353538799726041022603363855091476472472584794695043164671428124956251880247702022593515077402393380101122578294371022042538901051648450183653581797852707782706053991197443174313613798201697137431862909174710977762208616264343601946195795533467556520982795644656805390031425064136707768124137598685756109743909131570570625237827187899815223047624583946948704930436135987496683336383905173035135092991586549655150636295066112227452863013464469246372204722659087694886036877930141495847960368310337594056222729549115599626742144816617554216853506441922474866086400772046001767381807059455608634336194673557511943163416412932537145606213869113397725295956094899357905022083036578844548691919819194084265323512068227158917151576058650700959663928454622927704229278946151328403516655776563626695274064109540763766529847398733749130232173007794186235615933534153794911087504938425864784972002146646376889615055946215955430673729205426023219974269024391413146677467875540368403104385904883965416968221149377679051114905218443586131302536287634772472335280384205713654950713553406925266316508192499868529781311094253634584832514624674760265552984465233516234175313286015477141188438629539171582456376661212689012044665076206925086776150572857684631540669581299917360154178278343422943038298950897341274826595152935691846511758269411890996528390343302452602342273324817900647081421231101597684576113526942207533306224207713154444515779137696713976838894825989985045601291279990921216976118301132045844199635180267794798961815961564777076198912930637484831178846059676415122815265998785179998511147672916641430373708027322847542474922324773136505243234683544277823550837588695028434490229391566031712040113496013017139016182929253609799607296768923108053225283314856415804581537366769520544554858176009456915283566484339276992576228490292183439180209653842930937712475373726903054916886368160347935539828396847834637597635732592578896703600708443821672942396368888197804253342683881577369460648185754807570553026032306461882051924328067921155672392352776429486447417812049905988354935979287938354498050980178898454612634297480410019771423114771799337790074439694078154311051591007362971127515461161513978337302646565055933088649199441896577538606889090972266492412029483856435200741249268589843748997840321708130999210196782674992883798060672385292747263195983610957820412510503741035770773741007849440583251815137511130163803292321126272676509546286067892939190782352342295023338594623143407833243240877140958037336091157366728593341355339980514411104664672883375438193953880661432744764665482407644500717175205659369888335431044744424104859129248895994067991101858383256657024416739404343121823561227714684788372714965963238306138949221250862728496353526572282722656161290216632774117672205113189055147421681029898962453381597132514058906911135757112480673841607490058723637572175910618991844724659518152552228063046646183576521767332477560746893369412649765846639943581405674445617241157425525948915925607413819322279297752781654925328617544641010595728087334395065943588258730783733293378439767792368150857990012928).
@@ -0,0 +1,4 @@
1
+ period_s(pendulum1, 2.0).
2
+ periodError_s(pendulum1, 0.0).
3
+ status(pendulum1, within_period_tolerance).
4
+ reason(pendulum1, "small-angle period matches the two-second target").
@@ -0,0 +1,14 @@
1
+ root(real_quartic, [1, 0]).
2
+ root(real_quartic, [2, 0]).
3
+ root(real_quartic, [3, 0]).
4
+ root(real_quartic, [4, 0]).
5
+ root(complex_quartic, [0, 1]).
6
+ root(complex_quartic, [1, 1]).
7
+ root(complex_quartic, [3, 2]).
8
+ root(complex_quartic, [5, 1]).
9
+ reconstructedPolynomial(real_quartic, [[1, 0], [-10, 0], [35, 0], [-50, 0], [24, 0]]).
10
+ reconstructedPolynomial(complex_quartic, [[1, 0], [-9, -5], [14, 33], [24, -44], [-26, 0]]).
11
+ reconstructionMatches(real_quartic, true).
12
+ reconstructionMatches(complex_quartic, true).
13
+ allRootsVerified(real_quartic, true).
14
+ allRootsVerified(complex_quartic, true).
@@ -0,0 +1,6 @@
1
+ bestPortfolio(portfolio2026, result(137, 75, 28, [solar, hvac, training, quality, recycling, cloud, security])).
2
+ lowRiskTarget(portfolio2026, result(126, 74, 23, [solar, battery, hvac, training, quality, cloud])).
3
+ feasibleCount(portfolio2026, 1390).
4
+ projectCount(portfolio2026, 12).
5
+ totalAvailableValue(portfolio2026, 268).
6
+ note(portfolio2026, "aggregate builtins combine with pruning and memoization to avoid sorted candidate bags").
@@ -0,0 +1,3 @@
1
+ refutes(proof1, raining).
2
+ method(proof1, contrapositive).
3
+ reason(proof1, "if rain implies wet ground and the ground is not wet, then it is not raining").