eyelang 0.1.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 (553) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +61 -0
  3. package/bin/eyelang.js +7 -0
  4. package/docs/guide.md +525 -0
  5. package/docs/language-reference.md +697 -0
  6. package/examples/access-control-policy.pl +52 -0
  7. package/examples/ackermann.pl +46 -0
  8. package/examples/age.pl +28 -0
  9. package/examples/aliases-and-namespaces.pl +22 -0
  10. package/examples/alignment-demo.pl +44 -0
  11. package/examples/allen-interval-calculus.pl +64 -0
  12. package/examples/ancestor.pl +21 -0
  13. package/examples/animal.pl +21 -0
  14. package/examples/annotation.pl +34 -0
  15. package/examples/auroracare.pl +309 -0
  16. package/examples/backward.pl +12 -0
  17. package/examples/basic-monadic.pl +10032 -0
  18. package/examples/bayes-diagnosis.pl +108 -0
  19. package/examples/bayes-therapy.pl +182 -0
  20. package/examples/beam-deflection.pl +50 -0
  21. package/examples/blocks-world-planning.pl +75 -0
  22. package/examples/bmi.pl +232 -0
  23. package/examples/braking-safety-worlds.pl +69 -0
  24. package/examples/buck-converter-design.pl +78 -0
  25. package/examples/cache-performance.pl +54 -0
  26. package/examples/canary-release.pl +49 -0
  27. package/examples/cat-koko.pl +24 -0
  28. package/examples/clinical-trial-screening.pl +92 -0
  29. package/examples/combinatorics-findall-sort.pl +37 -0
  30. package/examples/competitive-enzyme-kinetics.pl +78 -0
  31. package/examples/complex.pl +121 -0
  32. package/examples/composition-of-injective-functions-is-injective.pl +50 -0
  33. package/examples/context-association.pl +53 -0
  34. package/examples/context-schema-audit.pl +46 -0
  35. package/examples/control-system.pl +72 -0
  36. package/examples/cyclic-path.pl +16 -0
  37. package/examples/d3-group.pl +100 -0
  38. package/examples/dairy-energy-balance.pl +65 -0
  39. package/examples/data-negotiation.pl +39 -0
  40. package/examples/deep-taxonomy-10.pl +115 -0
  41. package/examples/deep-taxonomy-100.pl +385 -0
  42. package/examples/deep-taxonomy-1000.pl +3085 -0
  43. package/examples/deep-taxonomy-10000.pl +30094 -0
  44. package/examples/deep-taxonomy-100000.pl +300184 -0
  45. package/examples/delfour.pl +281 -0
  46. package/examples/deontic-logic.pl +52 -0
  47. package/examples/derived-backward-rule.pl +30 -0
  48. package/examples/derived-rule.pl +27 -0
  49. package/examples/diamond-property.pl +38 -0
  50. package/examples/dijkstra-findall-sort.pl +44 -0
  51. package/examples/dijkstra-risk-path.pl +86 -0
  52. package/examples/dijkstra.pl +46 -0
  53. package/examples/dining-philosophers.pl +140 -0
  54. package/examples/dog.pl +25 -0
  55. package/examples/dpv-odrl-purpose-mapping.pl +46 -0
  56. package/examples/drone-corridor-planner.pl +51 -0
  57. package/examples/easter-computus.pl +89 -0
  58. package/examples/electrical-rc-filter.pl +36 -0
  59. package/examples/epidemic-policy.pl +67 -0
  60. package/examples/equivalence-classes-overlap-implies-same-class.pl +27 -0
  61. package/examples/eulerian-path.pl +85 -0
  62. package/examples/ev-range-worlds.pl +82 -0
  63. package/examples/existential-rule.pl +18 -0
  64. package/examples/exoplanet-validation-worlds.pl +88 -0
  65. package/examples/expression-eval.pl +43 -0
  66. package/examples/family-cousins.pl +65 -0
  67. package/examples/fastpow.pl +53 -0
  68. package/examples/fft8-numeric.pl +83 -0
  69. package/examples/fibonacci.pl +53 -0
  70. package/examples/field-nitrogen-balance.pl +70 -0
  71. package/examples/flandor.pl +296 -0
  72. package/examples/floating-point.pl +23 -0
  73. package/examples/four-color-map.pl +127 -0
  74. package/examples/fundamental-theorem-arithmetic.pl +113 -0
  75. package/examples/gd-step-certified.pl +158 -0
  76. package/examples/gdpr-compliance.pl +69 -0
  77. package/examples/good-cobbler.pl +14 -0
  78. package/examples/gps.pl +152 -0
  79. package/examples/graph-reachability.pl +36 -0
  80. package/examples/gray-code-counter.pl +48 -0
  81. package/examples/greatest-lower-bound-uniqueness.pl +28 -0
  82. package/examples/group-inverse-uniqueness.pl +34 -0
  83. package/examples/hamiltonian-path.pl +49 -0
  84. package/examples/hamming-code.pl +105 -0
  85. package/examples/hanoi.pl +20 -0
  86. package/examples/heat-loss.pl +51 -0
  87. package/examples/heron-theorem.pl +36 -0
  88. package/examples/ideal-gas-law.pl +37 -0
  89. package/examples/illegitimate-reasoning.pl +88 -0
  90. package/examples/knowledge-engineering-alignment-flow.pl +40 -0
  91. package/examples/law-of-cosines.pl +31 -0
  92. package/examples/least-squares-regression.pl +81 -0
  93. package/examples/list-collection.pl +33 -0
  94. package/examples/lldm.pl +78 -0
  95. package/examples/manufacturing-quality-control.pl +73 -0
  96. package/examples/microgrid-dispatch.pl +85 -0
  97. package/examples/monkey-bananas.pl +45 -0
  98. package/examples/network-sla.pl +48 -0
  99. package/examples/newton-raphson.pl +49 -0
  100. package/examples/nixon-diamond.pl +37 -0
  101. package/examples/observability-log-correlation.pl +34 -0
  102. package/examples/odrl-dpv-fpv-trust-flow.pl +43 -0
  103. package/examples/odrl-dpv-healthcare-risk-ranked.pl +266 -0
  104. package/examples/odrl-dpv-risk-ranked.pl +320 -0
  105. package/examples/orbital-transfer-design.pl +113 -0
  106. package/examples/output/access-control-policy.pl +2 -0
  107. package/examples/output/ackermann.pl +12 -0
  108. package/examples/output/age.pl +2 -0
  109. package/examples/output/aliases-and-namespaces.pl +5 -0
  110. package/examples/output/alignment-demo.pl +32 -0
  111. package/examples/output/allen-interval-calculus.pl +154 -0
  112. package/examples/output/ancestor.pl +6 -0
  113. package/examples/output/animal.pl +4 -0
  114. package/examples/output/annotation.pl +4 -0
  115. package/examples/output/auroracare.pl +117 -0
  116. package/examples/output/backward.pl +1 -0
  117. package/examples/output/basic-monadic.pl +1518 -0
  118. package/examples/output/bayes-diagnosis.pl +13 -0
  119. package/examples/output/bayes-therapy.pl +23 -0
  120. package/examples/output/beam-deflection.pl +5 -0
  121. package/examples/output/blocks-world-planning.pl +4 -0
  122. package/examples/output/bmi.pl +32 -0
  123. package/examples/output/braking-safety-worlds.pl +18 -0
  124. package/examples/output/buck-converter-design.pl +6 -0
  125. package/examples/output/cache-performance.pl +4 -0
  126. package/examples/output/canary-release.pl +5 -0
  127. package/examples/output/cat-koko.pl +3 -0
  128. package/examples/output/clinical-trial-screening.pl +9 -0
  129. package/examples/output/combinatorics-findall-sort.pl +2 -0
  130. package/examples/output/competitive-enzyme-kinetics.pl +6 -0
  131. package/examples/output/complex.pl +1 -0
  132. package/examples/output/composition-of-injective-functions-is-injective.pl +2 -0
  133. package/examples/output/context-association.pl +3 -0
  134. package/examples/output/context-schema-audit.pl +12 -0
  135. package/examples/output/control-system.pl +6 -0
  136. package/examples/output/cyclic-path.pl +16 -0
  137. package/examples/output/d3-group.pl +2 -0
  138. package/examples/output/dairy-energy-balance.pl +13 -0
  139. package/examples/output/data-negotiation.pl +1 -0
  140. package/examples/output/deep-taxonomy-10.pl +16 -0
  141. package/examples/output/deep-taxonomy-100.pl +16 -0
  142. package/examples/output/deep-taxonomy-1000.pl +16 -0
  143. package/examples/output/deep-taxonomy-10000.pl +16 -0
  144. package/examples/output/deep-taxonomy-100000.pl +16 -0
  145. package/examples/output/delfour.pl +31 -0
  146. package/examples/output/deontic-logic.pl +4 -0
  147. package/examples/output/derived-backward-rule.pl +3 -0
  148. package/examples/output/derived-rule.pl +2 -0
  149. package/examples/output/diamond-property.pl +4 -0
  150. package/examples/output/dijkstra-findall-sort.pl +2 -0
  151. package/examples/output/dijkstra-risk-path.pl +29 -0
  152. package/examples/output/dijkstra.pl +16 -0
  153. package/examples/output/dining-philosophers.pl +350 -0
  154. package/examples/output/dog.pl +1 -0
  155. package/examples/output/dpv-odrl-purpose-mapping.pl +18 -0
  156. package/examples/output/drone-corridor-planner.pl +17 -0
  157. package/examples/output/easter-computus.pl +30 -0
  158. package/examples/output/electrical-rc-filter.pl +3 -0
  159. package/examples/output/epidemic-policy.pl +14 -0
  160. package/examples/output/equivalence-classes-overlap-implies-same-class.pl +18 -0
  161. package/examples/output/eulerian-path.pl +3 -0
  162. package/examples/output/ev-range-worlds.pl +19 -0
  163. package/examples/output/existential-rule.pl +2 -0
  164. package/examples/output/exoplanet-validation-worlds.pl +22 -0
  165. package/examples/output/expression-eval.pl +1 -0
  166. package/examples/output/family-cousins.pl +28 -0
  167. package/examples/output/fastpow.pl +6 -0
  168. package/examples/output/fft8-numeric.pl +4 -0
  169. package/examples/output/fibonacci.pl +6 -0
  170. package/examples/output/field-nitrogen-balance.pl +21 -0
  171. package/examples/output/flandor.pl +43 -0
  172. package/examples/output/floating-point.pl +9 -0
  173. package/examples/output/four-color-map.pl +3 -0
  174. package/examples/output/fundamental-theorem-arithmetic.pl +9 -0
  175. package/examples/output/gd-step-certified.pl +79 -0
  176. package/examples/output/gdpr-compliance.pl +6 -0
  177. package/examples/output/good-cobbler.pl +1 -0
  178. package/examples/output/gps.pl +21 -0
  179. package/examples/output/graph-reachability.pl +3 -0
  180. package/examples/output/gray-code-counter.pl +1 -0
  181. package/examples/output/greatest-lower-bound-uniqueness.pl +2 -0
  182. package/examples/output/group-inverse-uniqueness.pl +2 -0
  183. package/examples/output/hamiltonian-path.pl +121 -0
  184. package/examples/output/hamming-code.pl +6 -0
  185. package/examples/output/hanoi.pl +1 -0
  186. package/examples/output/heat-loss.pl +5 -0
  187. package/examples/output/heron-theorem.pl +4 -0
  188. package/examples/output/ideal-gas-law.pl +3 -0
  189. package/examples/output/illegitimate-reasoning.pl +15 -0
  190. package/examples/output/knowledge-engineering-alignment-flow.pl +17 -0
  191. package/examples/output/law-of-cosines.pl +3 -0
  192. package/examples/output/least-squares-regression.pl +5 -0
  193. package/examples/output/list-collection.pl +3 -0
  194. package/examples/output/lldm.pl +6 -0
  195. package/examples/output/manufacturing-quality-control.pl +6 -0
  196. package/examples/output/microgrid-dispatch.pl +6 -0
  197. package/examples/output/monkey-bananas.pl +5 -0
  198. package/examples/output/network-sla.pl +4 -0
  199. package/examples/output/newton-raphson.pl +3 -0
  200. package/examples/output/nixon-diamond.pl +5 -0
  201. package/examples/output/observability-log-correlation.pl +28 -0
  202. package/examples/output/odrl-dpv-fpv-trust-flow.pl +9 -0
  203. package/examples/output/odrl-dpv-healthcare-risk-ranked.pl +42 -0
  204. package/examples/output/odrl-dpv-risk-ranked.pl +120 -0
  205. package/examples/output/orbital-transfer-design.pl +7 -0
  206. package/examples/output/path-discovery.pl +3 -0
  207. package/examples/output/peano-arithmetic.pl +3 -0
  208. package/examples/output/peasant.pl +10 -0
  209. package/examples/output/pendulum-period.pl +4 -0
  210. package/examples/output/polynomial.pl +14 -0
  211. package/examples/output/proof-contrapositive.pl +3 -0
  212. package/examples/output/quadratic-formula.pl +6 -0
  213. package/examples/output/radioactive-decay.pl +5 -0
  214. package/examples/output/reusable-builtins.pl +5 -0
  215. package/examples/output/riemann-hypothesis.pl +12 -0
  216. package/examples/output/security-incident-correlation.pl +3 -0
  217. package/examples/output/service-impact.pl +11 -0
  218. package/examples/output/sieve.pl +1 -0
  219. package/examples/output/skolem-functions.pl +16 -0
  220. package/examples/output/socket-age.pl +1 -0
  221. package/examples/output/socket-family.pl +3 -0
  222. package/examples/output/socrates.pl +2 -0
  223. package/examples/output/statistics-summary.pl +4 -0
  224. package/examples/output/superdense-coding.pl +6 -0
  225. package/examples/output/term-tools.pl +6 -0
  226. package/examples/output/trust-flow-provenance-threshold.pl +6 -0
  227. package/examples/output/turing.pl +12 -0
  228. package/examples/output/vector-similarity.pl +4 -0
  229. package/examples/output/vulnerability-impact.pl +20 -0
  230. package/examples/output/witch.pl +7 -0
  231. package/examples/output/wolf-goat-cabbage.pl +3 -0
  232. package/examples/output/zebra.pl +3 -0
  233. package/examples/path-discovery.pl +45013 -0
  234. package/examples/peano-arithmetic.pl +31 -0
  235. package/examples/peasant.pl +30 -0
  236. package/examples/pendulum-period.pl +50 -0
  237. package/examples/polynomial.pl +124 -0
  238. package/examples/proof/age.pl +71 -0
  239. package/examples/proof/aliases-and-namespaces.pl +78 -0
  240. package/examples/proof/ancestor.pl +140 -0
  241. package/examples/proof/animal.pl +68 -0
  242. package/examples/proof/annotation.pl +80 -0
  243. package/examples/proof/backward.pl +22 -0
  244. package/examples/proof/cat-koko.pl +86 -0
  245. package/examples/proof/data-negotiation.pl +76 -0
  246. package/examples/proof/derived-rule.pl +43 -0
  247. package/examples/proof/dog.pl +31 -0
  248. package/examples/proof/electrical-rc-filter.pl +105 -0
  249. package/examples/proof/existential-rule.pl +40 -0
  250. package/examples/proof/floating-point.pl +160 -0
  251. package/examples/proof/good-cobbler.pl +16 -0
  252. package/examples/proof/group-inverse-uniqueness.pl +84 -0
  253. package/examples/proof/list-collection.pl +52 -0
  254. package/examples/proof/proof-contrapositive.pl +78 -0
  255. package/examples/proof/socket-age.pl +32 -0
  256. package/examples/proof/socket-family.pl +59 -0
  257. package/examples/proof/socrates.pl +38 -0
  258. package/examples/proof-contrapositive.pl +27 -0
  259. package/examples/quadratic-formula.pl +54 -0
  260. package/examples/radioactive-decay.pl +56 -0
  261. package/examples/reusable-builtins.pl +32 -0
  262. package/examples/riemann-hypothesis.pl +110 -0
  263. package/examples/security-incident-correlation.pl +69 -0
  264. package/examples/service-impact.pl +41 -0
  265. package/examples/sieve.pl +20 -0
  266. package/examples/skolem-functions.pl +52 -0
  267. package/examples/socket-age.pl +39 -0
  268. package/examples/socket-family.pl +28 -0
  269. package/examples/socrates.pl +19 -0
  270. package/examples/statistics-summary.pl +54 -0
  271. package/examples/superdense-coding.pl +84 -0
  272. package/examples/term-tools.pl +23 -0
  273. package/examples/trust-flow-provenance-threshold.pl +40 -0
  274. package/examples/turing.pl +67 -0
  275. package/examples/vector-similarity.pl +56 -0
  276. package/examples/vulnerability-impact.pl +70 -0
  277. package/examples/witch.pl +38 -0
  278. package/examples/wolf-goat-cabbage.pl +56 -0
  279. package/examples/zebra.pl +44 -0
  280. package/index.d.ts +80 -0
  281. package/index.js +4 -0
  282. package/package.json +48 -0
  283. package/src/bin.js +7 -0
  284. package/src/builtins/aggregation.js +81 -0
  285. package/src/builtins/arithmetic.js +208 -0
  286. package/src/builtins/context.js +42 -0
  287. package/src/builtins/control.js +34 -0
  288. package/src/builtins/core.js +78 -0
  289. package/src/builtins/lists.js +283 -0
  290. package/src/builtins/registry.js +48 -0
  291. package/src/builtins/strings.js +234 -0
  292. package/src/builtins/terms.js +66 -0
  293. package/src/cli.js +180 -0
  294. package/src/explain.js +324 -0
  295. package/src/hash.js +294 -0
  296. package/src/index.js +47 -0
  297. package/src/parser.js +428 -0
  298. package/src/program.js +237 -0
  299. package/src/solver.js +237 -0
  300. package/src/term.js +328 -0
  301. package/test/conformance/README.md +43 -0
  302. package/test/conformance/cases/001_fact_output.pl +4 -0
  303. package/test/conformance/cases/002_rule_recursion.pl +7 -0
  304. package/test/conformance/cases/002_rule_recursion.query +1 -0
  305. package/test/conformance/cases/003_terms_and_readback.pl +16 -0
  306. package/test/conformance/cases/003_terms_and_readback.query +1 -0
  307. package/test/conformance/cases/004_conjunction_and_parentheses.pl +5 -0
  308. package/test/conformance/cases/004_conjunction_and_parentheses.query +1 -0
  309. package/test/conformance/cases/005_list_deconstruction.pl +6 -0
  310. package/test/conformance/cases/005_list_deconstruction.query +1 -0
  311. package/test/conformance/cases/006_comma_formula_data.pl +4 -0
  312. package/test/conformance/cases/006_comma_formula_data.query +1 -0
  313. package/test/conformance/cases/007_anonymous_variables.pl +5 -0
  314. package/test/conformance/cases/007_anonymous_variables.query +1 -0
  315. package/test/conformance/cases/008_graphic_atoms.pl +6 -0
  316. package/test/conformance/cases/008_graphic_atoms.query +1 -0
  317. package/test/conformance/cases/009_comments_and_whitespace.pl +5 -0
  318. package/test/conformance/cases/009_comments_and_whitespace.query +1 -0
  319. package/test/conformance/cases/010_variable_scope_and_reuse.pl +8 -0
  320. package/test/conformance/cases/010_variable_scope_and_reuse.query +1 -0
  321. package/test/conformance/cases/011_predicate_arity.pl +6 -0
  322. package/test/conformance/cases/011_predicate_arity.query +1 -0
  323. package/test/conformance/cases/012_nested_compound_unification.pl +5 -0
  324. package/test/conformance/cases/012_nested_compound_unification.query +1 -0
  325. package/test/conformance/cases/013_multiple_clauses_order.pl +6 -0
  326. package/test/conformance/cases/013_multiple_clauses_order.query +1 -0
  327. package/test/conformance/cases/014_failure_filters_answers.pl +7 -0
  328. package/test/conformance/cases/014_failure_filters_answers.query +1 -0
  329. package/test/conformance/cases/015_improper_list_unification.pl +6 -0
  330. package/test/conformance/cases/015_improper_list_unification.query +1 -0
  331. package/test/conformance/cases/016_zero_arity_compound.pl +4 -0
  332. package/test/conformance/cases/016_zero_arity_compound.query +1 -0
  333. package/test/conformance/cases/017_three_step_recursion.pl +8 -0
  334. package/test/conformance/cases/017_three_step_recursion.query +1 -0
  335. package/test/conformance/cases/018_quoted_atom_readback.pl +6 -0
  336. package/test/conformance/cases/018_quoted_atom_readback.query +1 -0
  337. package/test/conformance/cases/019_parenthesized_three_conjuncts.pl +7 -0
  338. package/test/conformance/cases/019_parenthesized_three_conjuncts.query +1 -0
  339. package/test/conformance/cases/020_nested_list_terms.pl +5 -0
  340. package/test/conformance/cases/020_nested_list_terms.query +1 -0
  341. package/test/conformance/cases/021_repeated_variable_head.pl +7 -0
  342. package/test/conformance/cases/022_rule_head_structure.pl +5 -0
  343. package/test/conformance/cases/023_quoted_escapes_readback.pl +5 -0
  344. package/test/conformance/cases/024_numeric_literal_readback.pl +6 -0
  345. package/test/conformance/cases/025_body_parentheses_with_formula_data.pl +5 -0
  346. package/test/conformance/cases/026_underscore_named_variable_reuse.pl +5 -0
  347. package/test/conformance/cases/027_default_derived_output.pl +5 -0
  348. package/test/conformance/cases/028_materialize_focus.pl +5 -0
  349. package/test/conformance/cases/029_arithmetic_and_comparison.pl +11 -0
  350. package/test/conformance/cases/029_arithmetic_and_comparison.query +1 -0
  351. package/test/conformance/cases/030_strings_and_atoms.pl +4 -0
  352. package/test/conformance/cases/030_strings_and_atoms.query +1 -0
  353. package/test/conformance/cases/031_lists_aggregation_ordering.pl +10 -0
  354. package/test/conformance/cases/031_lists_aggregation_ordering.query +1 -0
  355. package/test/conformance/cases/032_holds_parts.pl +4 -0
  356. package/test/conformance/cases/033_negation_once_generators.pl +7 -0
  357. package/test/conformance/cases/033_negation_once_generators.query +1 -0
  358. package/test/conformance/cases/034_equality_and_inequality.pl +6 -0
  359. package/test/conformance/cases/034_equality_and_inequality.query +1 -0
  360. package/test/conformance/cases/035_list_relations.pl +5 -0
  361. package/test/conformance/cases/035_list_relations.query +1 -0
  362. package/test/conformance/cases/036_append_splits.pl +3 -0
  363. package/test/conformance/cases/036_append_splits.query +1 -0
  364. package/test/conformance/cases/037_matching_and_comparison.pl +7 -0
  365. package/test/conformance/cases/037_matching_and_comparison.query +1 -0
  366. package/test/conformance/cases/038_memoize_declaration.pl +8 -0
  367. package/test/conformance/cases/038_memoize_declaration.query +1 -0
  368. package/test/conformance/cases/039_numeric_functions.pl +9 -0
  369. package/test/conformance/cases/039_numeric_functions.query +1 -0
  370. package/test/conformance/cases/040_between_enumeration.pl +3 -0
  371. package/test/conformance/cases/040_between_enumeration.query +1 -0
  372. package/test/conformance/cases/041_smallest_divisor.pl +3 -0
  373. package/test/conformance/cases/041_smallest_divisor.query +1 -0
  374. package/test/conformance/cases/042_negation_filter.pl +7 -0
  375. package/test/conformance/cases/042_negation_filter.query +1 -0
  376. package/test/conformance/cases/043_once_user_predicate.pl +5 -0
  377. package/test/conformance/cases/043_once_user_predicate.query +1 -0
  378. package/test/conformance/cases/044_findall_user_goal.pl +6 -0
  379. package/test/conformance/cases/044_findall_user_goal.query +1 -0
  380. package/test/conformance/cases/045_sort_deduplicates_atoms.pl +3 -0
  381. package/test/conformance/cases/045_sort_deduplicates_atoms.query +1 -0
  382. package/test/conformance/cases/046_append_bound_prefix_suffix.pl +4 -0
  383. package/test/conformance/cases/046_append_bound_prefix_suffix.query +1 -0
  384. package/test/conformance/cases/047_nth0_index_generation.pl +3 -0
  385. package/test/conformance/cases/047_nth0_index_generation.query +1 -0
  386. package/test/conformance/cases/048_set_nth0_edges.pl +4 -0
  387. package/test/conformance/cases/048_set_nth0_edges.query +1 -0
  388. package/test/conformance/cases/049_select_duplicate_occurrences.pl +3 -0
  389. package/test/conformance/cases/049_select_duplicate_occurrences.query +1 -0
  390. package/test/conformance/cases/050_not_member_filter.pl +6 -0
  391. package/test/conformance/cases/050_not_member_filter.query +1 -0
  392. package/test/conformance/cases/051_nested_holds_parts.pl +4 -0
  393. package/test/conformance/cases/052_holds_member.pl +3 -0
  394. package/test/conformance/cases/053_materialize_excludes_source_fact.pl +6 -0
  395. package/test/conformance/cases/054_numeric_and_lexical_comparison.pl +5 -0
  396. package/test/conformance/cases/054_numeric_and_lexical_comparison.query +1 -0
  397. package/test/conformance/cases/055_string_matching_filters.pl +6 -0
  398. package/test/conformance/cases/055_string_matching_filters.query +1 -0
  399. package/test/conformance/cases/056_string_and_atom_concat.pl +3 -0
  400. package/test/conformance/cases/056_string_and_atom_concat.query +1 -0
  401. package/test/conformance/cases/057_countall_empty_and_nonempty.pl +4 -0
  402. package/test/conformance/cases/057_countall_empty_and_nonempty.query +1 -0
  403. package/test/conformance/cases/058_sumall_numeric_template.pl +5 -0
  404. package/test/conformance/cases/058_sumall_numeric_template.query +1 -0
  405. package/test/conformance/cases/059_aggregate_min_template.pl +5 -0
  406. package/test/conformance/cases/059_aggregate_min_template.query +1 -0
  407. package/test/conformance/cases/060_aggregate_max_compound_key.pl +5 -0
  408. package/test/conformance/cases/060_aggregate_max_compound_key.query +1 -0
  409. package/test/conformance/cases/061_date_difference.pl +4 -0
  410. package/test/conformance/cases/062_reusable_numeric_builtins.pl +10 -0
  411. package/test/conformance/cases/063_reusable_list_builtins.pl +11 -0
  412. package/test/conformance/cases/064_reusable_string_builtins.pl +12 -0
  413. package/test/conformance/cases/065_reusable_term_control_builtins.pl +11 -0
  414. package/test/conformance/cases/066_numeric_edges.pl +14 -0
  415. package/test/conformance/cases/067_list_edges.pl +10 -0
  416. package/test/conformance/cases/068_list_generation_order.pl +7 -0
  417. package/test/conformance/cases/069_list_summaries_and_sets.pl +9 -0
  418. package/test/conformance/cases/070_matches_named_captures.pl +13 -0
  419. package/test/conformance/cases/071_string_edges.pl +10 -0
  420. package/test/conformance/cases/072_string_conversions.pl +10 -0
  421. package/test/conformance/cases/073_term_introspection_edges.pl +10 -0
  422. package/test/conformance/cases/074_forall_edges.pl +10 -0
  423. package/test/conformance/cases/075_aggregation_edges.pl +12 -0
  424. package/test/conformance/cases/076_composed_reusable_builtins.pl +8 -0
  425. package/test/conformance/cases/077_recursive_path_with_lists.pl +10 -0
  426. package/test/conformance/cases/078_mutual_recursion_with_arithmetic.pl +7 -0
  427. package/test/conformance/cases/079_big_integer_arithmetic.pl +8 -0
  428. package/test/conformance/cases/080_rounding_modes.pl +10 -0
  429. package/test/conformance/cases/081_zero_safe_numeric_functions.pl +9 -0
  430. package/test/conformance/cases/082_comparison_semantics.pl +10 -0
  431. package/test/conformance/cases/083_between_modes_and_empty_ranges.pl +8 -0
  432. package/test/conformance/cases/084_append_and_select_composition.pl +7 -0
  433. package/test/conformance/cases/085_nth_and_update_edges.pl +8 -0
  434. package/test/conformance/cases/086_slicing_pipeline.pl +10 -0
  435. package/test/conformance/cases/087_sort_reverse_length.pl +8 -0
  436. package/test/conformance/cases/088_list_summaries_failures.pl +8 -0
  437. package/test/conformance/cases/089_string_split_join_pipeline.pl +7 -0
  438. package/test/conformance/cases/090_string_substring_replace_edges.pl +9 -0
  439. package/test/conformance/cases/091_string_case_and_trim.pl +7 -0
  440. package/test/conformance/cases/092_scalar_string_conversions.pl +9 -0
  441. package/test/conformance/cases/093_regex_named_captures_context.pl +8 -0
  442. package/test/conformance/cases/094_context_holds_enumeration.pl +7 -0
  443. package/test/conformance/cases/095_term_introspection_roundtrip.pl +8 -0
  444. package/test/conformance/cases/096_functor_scalar_edges.pl +8 -0
  445. package/test/conformance/cases/097_control_negation_once_forall.pl +13 -0
  446. package/test/conformance/cases/098_aggregation_nested_templates.pl +11 -0
  447. package/test/conformance/cases/099_materialize_multiple_arities.pl +8 -0
  448. package/test/conformance/cases/100_reusable_builtin_workflow.pl +10 -0
  449. package/test/conformance/expected/001_fact_output.pl +1 -0
  450. package/test/conformance/expected/002_rule_recursion.pl +2 -0
  451. package/test/conformance/expected/003_terms_and_readback.pl +13 -0
  452. package/test/conformance/expected/004_conjunction_and_parentheses.pl +1 -0
  453. package/test/conformance/expected/005_list_deconstruction.pl +2 -0
  454. package/test/conformance/expected/006_comma_formula_data.pl +1 -0
  455. package/test/conformance/expected/007_anonymous_variables.pl +1 -0
  456. package/test/conformance/expected/008_graphic_atoms.pl +3 -0
  457. package/test/conformance/expected/009_comments_and_whitespace.pl +2 -0
  458. package/test/conformance/expected/010_variable_scope_and_reuse.pl +2 -0
  459. package/test/conformance/expected/011_predicate_arity.pl +2 -0
  460. package/test/conformance/expected/012_nested_compound_unification.pl +2 -0
  461. package/test/conformance/expected/013_multiple_clauses_order.pl +2 -0
  462. package/test/conformance/expected/014_failure_filters_answers.pl +1 -0
  463. package/test/conformance/expected/015_improper_list_unification.pl +3 -0
  464. package/test/conformance/expected/016_zero_arity_compound.pl +1 -0
  465. package/test/conformance/expected/017_three_step_recursion.pl +3 -0
  466. package/test/conformance/expected/018_quoted_atom_readback.pl +3 -0
  467. package/test/conformance/expected/019_parenthesized_three_conjuncts.pl +1 -0
  468. package/test/conformance/expected/020_nested_list_terms.pl +2 -0
  469. package/test/conformance/expected/021_repeated_variable_head.pl +2 -0
  470. package/test/conformance/expected/022_rule_head_structure.pl +2 -0
  471. package/test/conformance/expected/023_quoted_escapes_readback.pl +2 -0
  472. package/test/conformance/expected/024_numeric_literal_readback.pl +3 -0
  473. package/test/conformance/expected/025_body_parentheses_with_formula_data.pl +1 -0
  474. package/test/conformance/expected/026_underscore_named_variable_reuse.pl +1 -0
  475. package/test/conformance/expected/027_default_derived_output.pl +3 -0
  476. package/test/conformance/expected/028_materialize_focus.pl +1 -0
  477. package/test/conformance/expected/029_arithmetic_and_comparison.pl +9 -0
  478. package/test/conformance/expected/030_strings_and_atoms.pl +2 -0
  479. package/test/conformance/expected/031_lists_aggregation_ordering.pl +9 -0
  480. package/test/conformance/expected/032_holds_parts.pl +3 -0
  481. package/test/conformance/expected/033_negation_once_generators.pl +2 -0
  482. package/test/conformance/expected/034_equality_and_inequality.pl +4 -0
  483. package/test/conformance/expected/035_list_relations.pl +4 -0
  484. package/test/conformance/expected/036_append_splits.pl +3 -0
  485. package/test/conformance/expected/037_matching_and_comparison.pl +5 -0
  486. package/test/conformance/expected/038_memoize_declaration.pl +2 -0
  487. package/test/conformance/expected/039_numeric_functions.pl +7 -0
  488. package/test/conformance/expected/040_between_enumeration.pl +3 -0
  489. package/test/conformance/expected/041_smallest_divisor.pl +1 -0
  490. package/test/conformance/expected/042_negation_filter.pl +2 -0
  491. package/test/conformance/expected/043_once_user_predicate.pl +1 -0
  492. package/test/conformance/expected/044_findall_user_goal.pl +1 -0
  493. package/test/conformance/expected/045_sort_deduplicates_atoms.pl +1 -0
  494. package/test/conformance/expected/046_append_bound_prefix_suffix.pl +2 -0
  495. package/test/conformance/expected/047_nth0_index_generation.pl +1 -0
  496. package/test/conformance/expected/048_set_nth0_edges.pl +2 -0
  497. package/test/conformance/expected/049_select_duplicate_occurrences.pl +2 -0
  498. package/test/conformance/expected/050_not_member_filter.pl +1 -0
  499. package/test/conformance/expected/051_nested_holds_parts.pl +3 -0
  500. package/test/conformance/expected/052_holds_member.pl +2 -0
  501. package/test/conformance/expected/053_materialize_excludes_source_fact.pl +1 -0
  502. package/test/conformance/expected/054_numeric_and_lexical_comparison.pl +3 -0
  503. package/test/conformance/expected/055_string_matching_filters.pl +2 -0
  504. package/test/conformance/expected/056_string_and_atom_concat.pl +1 -0
  505. package/test/conformance/expected/057_countall_empty_and_nonempty.pl +1 -0
  506. package/test/conformance/expected/058_sumall_numeric_template.pl +1 -0
  507. package/test/conformance/expected/059_aggregate_min_template.pl +1 -0
  508. package/test/conformance/expected/060_aggregate_max_compound_key.pl +1 -0
  509. package/test/conformance/expected/061_date_difference.pl +2 -0
  510. package/test/conformance/expected/062_reusable_numeric_builtins.pl +8 -0
  511. package/test/conformance/expected/063_reusable_list_builtins.pl +9 -0
  512. package/test/conformance/expected/064_reusable_string_builtins.pl +10 -0
  513. package/test/conformance/expected/065_reusable_term_control_builtins.pl +6 -0
  514. package/test/conformance/expected/066_numeric_edges.pl +12 -0
  515. package/test/conformance/expected/067_list_edges.pl +8 -0
  516. package/test/conformance/expected/068_list_generation_order.pl +10 -0
  517. package/test/conformance/expected/069_list_summaries_and_sets.pl +7 -0
  518. package/test/conformance/expected/070_matches_named_captures.pl +1 -0
  519. package/test/conformance/expected/071_string_edges.pl +8 -0
  520. package/test/conformance/expected/072_string_conversions.pl +8 -0
  521. package/test/conformance/expected/073_term_introspection_edges.pl +8 -0
  522. package/test/conformance/expected/074_forall_edges.pl +5 -0
  523. package/test/conformance/expected/075_aggregation_edges.pl +7 -0
  524. package/test/conformance/expected/076_composed_reusable_builtins.pl +5 -0
  525. package/test/conformance/expected/077_recursive_path_with_lists.pl +3 -0
  526. package/test/conformance/expected/078_mutual_recursion_with_arithmetic.pl +7 -0
  527. package/test/conformance/expected/079_big_integer_arithmetic.pl +6 -0
  528. package/test/conformance/expected/080_rounding_modes.pl +8 -0
  529. package/test/conformance/expected/081_zero_safe_numeric_functions.pl +7 -0
  530. package/test/conformance/expected/082_comparison_semantics.pl +8 -0
  531. package/test/conformance/expected/083_between_modes_and_empty_ranges.pl +8 -0
  532. package/test/conformance/expected/084_append_and_select_composition.pl +10 -0
  533. package/test/conformance/expected/085_nth_and_update_edges.pl +8 -0
  534. package/test/conformance/expected/086_slicing_pipeline.pl +7 -0
  535. package/test/conformance/expected/087_sort_reverse_length.pl +6 -0
  536. package/test/conformance/expected/088_list_summaries_failures.pl +6 -0
  537. package/test/conformance/expected/089_string_split_join_pipeline.pl +4 -0
  538. package/test/conformance/expected/090_string_substring_replace_edges.pl +7 -0
  539. package/test/conformance/expected/091_string_case_and_trim.pl +5 -0
  540. package/test/conformance/expected/092_scalar_string_conversions.pl +7 -0
  541. package/test/conformance/expected/093_regex_named_captures_context.pl +5 -0
  542. package/test/conformance/expected/094_context_holds_enumeration.pl +8 -0
  543. package/test/conformance/expected/095_term_introspection_roundtrip.pl +6 -0
  544. package/test/conformance/expected/096_functor_scalar_edges.pl +6 -0
  545. package/test/conformance/expected/097_control_negation_once_forall.pl +5 -0
  546. package/test/conformance/expected/098_aggregation_nested_templates.pl +5 -0
  547. package/test/conformance/expected/099_materialize_multiple_arities.pl +4 -0
  548. package/test/conformance/expected/100_reusable_builtin_workflow.pl +6 -0
  549. package/test/run-all.mjs +20 -0
  550. package/test/run-conformance.mjs +78 -0
  551. package/test/run-examples.mjs +125 -0
  552. package/test/run-regression.mjs +612 -0
  553. package/test/test-style.mjs +94 -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,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").
@@ -0,0 +1,6 @@
1
+ discriminant(eq1, 1.0).
2
+ discriminant(eq2, 64.0).
3
+ root(eq1, 3.0).
4
+ root(eq2, 3.0).
5
+ root(eq1, 2.0).
6
+ root(eq2, -1.0).
@@ -0,0 +1,5 @@
1
+ halfLivesElapsed(iodine_sample, 2.0).
2
+ remainingActivity_Bq(iodine_sample, 20.0).
3
+ decayedActivity_Bq(iodine_sample, 60.0).
4
+ status(iodine_sample, low_activity).
5
+ reason(iodine_sample, "two half-lives leave one quarter of the initial activity").
@@ -0,0 +1,5 @@
1
+ report(normalized_name, "ada lovelace").
2
+ report(unique_tags, ["logic", "math", "programming"]).
3
+ report(tag_label, "logic / math / programming").
4
+ report(score_summary, summary(42, 21, 6.4807406984078604)).
5
+ report(window, [13, 21]).
@@ -0,0 +1,12 @@
1
+ rh(scope, finite_catalog_only).
2
+ rh(caveat, "finite catalogue evidence only; this is not a proof of RH").
3
+ rh(status, no_counterexample_in_catalog).
4
+ zero_check(z1, real_part, 0.5).
5
+ zero_check(z2, real_part, 0.5).
6
+ zero_check(z3, real_part, 0.5).
7
+ zero_check(z1, imaginary_part, 14.134725).
8
+ zero_check(z2, imaginary_part, 21.02204).
9
+ zero_check(z3, imaginary_part, 25.010858).
10
+ zero_check(z1, classification, on_critical_line).
11
+ zero_check(z2, classification, on_critical_line).
12
+ zero_check(z3, classification, on_critical_line).
@@ -0,0 +1,3 @@
1
+ type(inc42, confirmed_compromise).
2
+ status(inc42, escalate_to_incident_response).
3
+ reason(inc42, "privileged credential abuse, malware on a critical endpoint, C2 contact, and exploitable RCE are correlated").
@@ -0,0 +1,11 @@
1
+ impactedByFailureOf(checkout_api, payment_service).
2
+ impactedByFailureOf(risk_rules, payment_service).
3
+ impactedByFailureOf(web_store, payment_service).
4
+ impactedByFailureOf(mobile_app, payment_service).
5
+ impactedByFailureOf(payment_service, payment_service).
6
+ impactedByFailureOf(fraud_service, payment_service).
7
+ status(payment_service, failed).
8
+ businessFunctionAtRisk(place_order, true).
9
+ businessFunctionAtRisk(mobile_checkout, true).
10
+ businessFunctionAtRisk(collect_payment, true).
11
+ businessFunctionAtRisk(screen_fraud, true).
@@ -0,0 +1 @@
1
+ primes(1000, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997]).
@@ -0,0 +1,16 @@
1
+ type(skolem_observation(alice, glucose), observation).
2
+ type(skolem_observation(alice, cholesterol), observation).
3
+ type(skolem_observation(bob, glucose), observation).
4
+ type(skolem_alert(alice, glucose), highGlucoseAlert).
5
+ patient(skolem_observation(alice, glucose), alice).
6
+ patient(skolem_observation(alice, cholesterol), alice).
7
+ patient(skolem_observation(bob, glucose), bob).
8
+ test(skolem_observation(alice, glucose), glucose).
9
+ test(skolem_observation(alice, cholesterol), cholesterol).
10
+ test(skolem_observation(bob, glucose), glucose).
11
+ value(skolem_observation(alice, glucose), 6.8).
12
+ value(skolem_observation(alice, cholesterol), 4.2).
13
+ value(skolem_observation(bob, glucose), 5.1).
14
+ about(skolem_alert(alice, glucose), skolem_observation(alice, glucose)).
15
+ sameInputsSameId(skolemDemo, true).
16
+ noObservationClash(skolemDemo, true).
@@ -0,0 +1 @@
1
+ ageAbove(patH, "P80Y").
@@ -0,0 +1,3 @@
1
+ ancestor(pat, jan).
2
+ ancestor(jan, emma).
3
+ ancestor(pat, emma).
@@ -0,0 +1,2 @@
1
+ type(socrates, mortal).
2
+ is(test, true).
@@ -0,0 +1,4 @@
1
+ mean(scores, 5.0).
2
+ count(scores, 8).
3
+ populationVariance(scores, 4.0).
4
+ populationStddev(scores, 2.0).
@@ -0,0 +1,6 @@
1
+ decodesAs(message(1), 1).
2
+ decodesAs(message(3), 3).
3
+ decodesAs(message(0), 0).
4
+ decodesAs(message(2), 2).
5
+ preservesMessage(protocol, true).
6
+ cancelsCrossTalk(protocol, true).
@@ -0,0 +1,6 @@
1
+ report(shape, shape(edge, 3)).
2
+ report(second_argument, b).
3
+ report(parts, parts(edge, [a, b, 3])).
4
+ report(rebuilt, edge(c, d, 5)).
5
+ report(rendered, "edge(a, [b, c])").
6
+ report(all_weights_positive, yes).
@@ -0,0 +1,6 @@
1
+ confidence(message_a, 0.89375999999999989).
2
+ confidence(message_b, 0.41999999999999993).
3
+ trust_flow_state(message_a, fpv_accepted).
4
+ trust_flow_state(message_b, fpv_quarantine).
5
+ status(message_a, fpv_high_trust_flow).
6
+ risk(message_b, risk_low_trust_data_source).
@@ -0,0 +1,12 @@
1
+ input(case1, [1, 0, 1, 0, 0, 1]).
2
+ input(case2, [1, 0, 1, 1, 1, 1]).
3
+ input(case3, [1, 1, 1, 1, 1, 1]).
4
+ input(case4, []).
5
+ output(case1, [1, 0, 1, 0, 1, 0, #]).
6
+ output(case2, [1, 1, 0, 0, 0, 0, #]).
7
+ output(case3, [1, 0, 0, 0, 0, 0, 0, #]).
8
+ output(case4, [1, #]).
9
+ addsOne(case1, true).
10
+ addsOne(case2, true).
11
+ addsOne(case3, true).
12
+ addsOne(case4, true).
@@ -0,0 +1,4 @@
1
+ dotProduct(pair1, 12.0).
2
+ normA(pair1, 3.7416573867739413).
3
+ normB(pair1, 8.7749643873921226).
4
+ cosineSimilarity(pair1, 0.36548694232390361).
@@ -0,0 +1,20 @@
1
+ uses(webapp, api).
2
+ uses(worker, queue).
3
+ uses(frontend, ui).
4
+ uses(webapp, auth).
5
+ uses(worker, openssl).
6
+ uses(frontend, css).
7
+ uses(webapp, openssl).
8
+ impacted_by(webapp, api).
9
+ impacted_by(worker, queue).
10
+ impacted_by(frontend, ui).
11
+ impacted_by(webapp, auth).
12
+ impacted_by(worker, openssl).
13
+ impacted_by(frontend, css).
14
+ impacted_by(webapp, openssl).
15
+ risk(worker, high).
16
+ risk(webapp, high).
17
+ mitigate(worker, cve_2026_0001).
18
+ mitigate(webapp, cve_2026_0001).
19
+ urgent_patch(webapp, openssl_3_0_14).
20
+ urgent_patch(worker, openssl_3_0_14).
@@ -0,0 +1,7 @@
1
+ witch(girl).
2
+ burns(duck).
3
+ burns(girl).
4
+ madeOfWood(duck).
5
+ madeOfWood(girl).
6
+ floats(girl).
7
+ is(witchExample, true).
@@ -0,0 +1,3 @@
1
+ solution(puzzle, [goat, nothing, wolf, goat, cabbage, nothing, goat]).
2
+ solution(puzzle, [goat, nothing, cabbage, goat, wolf, nothing, goat]).
3
+ solved(puzzle, true).
@@ -0,0 +1,3 @@
1
+ waterDrinker(zebraPuzzle, norwegian).
2
+ zebraOwner(zebraPuzzle, japanese).
3
+ solved(zebraPuzzle, true).