eyelang 1.3.9 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/README.md +19 -14
  2. package/SPEC.md +4 -4
  3. package/conformance/expected/core/001_fact_query.out +0 -8
  4. package/conformance/expected/core/002_rule_recursion.out +0 -41
  5. package/conformance/expected/core/003_terms_and_readback.out +0 -104
  6. package/conformance/expected/core/004_conjunction_and_parentheses.out +0 -25
  7. package/conformance/expected/core/005_list_deconstruction.out +0 -32
  8. package/conformance/expected/core/006_comma_formula_data.out +0 -15
  9. package/conformance/expected/core/007_anonymous_variables.out +0 -19
  10. package/conformance/expected/core/008_graphic_atoms.out +0 -24
  11. package/conformance/expected/core/009_comments_and_whitespace.out +0 -30
  12. package/conformance/expected/core/010_variable_scope_and_reuse.out +0 -52
  13. package/conformance/expected/core/011_predicate_arity.out +0 -30
  14. package/conformance/expected/core/012_nested_compound_unification.out +0 -30
  15. package/conformance/expected/core/013_multiple_clauses_order.out +0 -44
  16. package/conformance/expected/core/014_failure_filters_answers.out +0 -19
  17. package/conformance/expected/core/015_improper_list_unification.out +0 -45
  18. package/conformance/expected/core/016_zero_arity_compound.out +0 -15
  19. package/conformance/expected/core/017_three_step_recursion.out +0 -99
  20. package/conformance/expected/core/018_quoted_atom_readback.out +0 -45
  21. package/conformance/expected/core/019_parenthesized_three_conjuncts.out +0 -36
  22. package/conformance/expected/core/020_nested_list_terms.out +0 -30
  23. package/conformance/expected/extension/001_default_derived_output.out +0 -56
  24. package/conformance/expected/extension/002_materialize_focus.out +0 -22
  25. package/conformance/expected/extension/003_arithmetic_and_comparison.out +0 -148
  26. package/conformance/expected/extension/004_strings_and_atoms.out +0 -58
  27. package/conformance/expected/extension/005_lists_aggregation_ordering.out +0 -135
  28. package/conformance/expected/extension/006_formula_terms.out +0 -76
  29. package/conformance/expected/extension/007_negation_once_generators.out +0 -40
  30. package/conformance/expected/extension/008_equality_and_inequality.out +0 -58
  31. package/conformance/expected/extension/009_list_relations.out +0 -73
  32. package/conformance/expected/extension/010_append_splits.out +0 -45
  33. package/conformance/expected/extension/011_matching_and_comparison.out +0 -70
  34. package/conformance/expected/extension/012_memoize_declaration.out +0 -41
  35. package/conformance/expected/extension/013_numeric_functions.out +0 -105
  36. package/conformance/expected/extension/014_between_enumeration.out +0 -45
  37. package/conformance/expected/extension/015_smallest_divisor.out +0 -15
  38. package/conformance/expected/extension/016_negation_filter.out +0 -38
  39. package/conformance/expected/extension/017_once_user_predicate.out +0 -21
  40. package/conformance/expected/extension/018_findall_user_goal.out +0 -15
  41. package/conformance/expected/extension/019_sort_deduplicates_atoms.out +0 -15
  42. package/conformance/expected/extension/020_append_bound_prefix_suffix.out +0 -30
  43. package/conformance/expected/extension/021_nth0_index_generation.out +0 -15
  44. package/conformance/expected/extension/022_set_nth0_edges.out +0 -30
  45. package/conformance/expected/extension/023_select_duplicate_occurrences.out +0 -30
  46. package/conformance/expected/extension/024_not_member_filter.out +0 -19
  47. package/conformance/expected/extension/025_is_list_filter.out +0 -19
  48. package/conformance/expected/extension/026_nested_formula_terms.out +0 -114
  49. package/conformance/expected/extension/027_materialize_excludes_source_fact.out +0 -14
  50. package/conformance/expected/extension/028_numeric_and_lexical_comparison.out +0 -42
  51. package/conformance/expected/extension/029_string_matching_filters.out +0 -38
  52. package/conformance/expected/extension/030_string_and_atom_concat.out +0 -30
  53. package/conformance/expected/extension/031_countall_empty_and_nonempty.out +0 -18
  54. package/conformance/expected/extension/032_sumall_numeric_template.out +0 -8
  55. package/conformance/expected/extension/033_aggregate_min_template.out +0 -8
  56. package/conformance/expected/extension/034_aggregate_max_compound_key.out +0 -8
  57. package/examples/output/access-control-policy.pl +0 -156
  58. package/examples/output/ackermann.pl +0 -1240
  59. package/examples/output/age.pl +0 -69
  60. package/examples/output/aliases-and-namespaces.pl +0 -73
  61. package/examples/output/alignment-demo.pl +0 -862
  62. package/examples/output/allen-interval-calculus.pl +0 -9169
  63. package/examples/output/ancestor.pl +0 -134
  64. package/examples/output/animal.pl +0 -64
  65. package/examples/output/annotation.pl +0 -76
  66. package/examples/output/backward.pl +0 -21
  67. package/examples/output/basic-monadic.pl +0 -22770
  68. package/examples/output/bayes-diagnosis.pl +0 -195
  69. package/examples/output/bayes-therapy.pl +0 -34873
  70. package/examples/output/beam-deflection.pl +0 -222
  71. package/examples/output/blocks-world-planning.pl +0 -1339
  72. package/examples/output/bmi.pl +0 -1903
  73. package/examples/output/braking-safety-worlds.pl +0 -2452
  74. package/examples/output/buck-converter-design.pl +0 -663
  75. package/examples/output/cache-performance.pl +0 -306
  76. package/examples/output/canary-release.pl +0 -167
  77. package/examples/output/cat-koko.pl +0 -83
  78. package/examples/output/clinical-trial-screening.pl +0 -380
  79. package/examples/output/collatz-1000.pl +0 -19000
  80. package/examples/output/combinatorics-findall-sort.pl +0 -56
  81. package/examples/output/competitive-enzyme-kinetics.pl +0 -563
  82. package/examples/output/complex-matrix-stability.pl +0 -250
  83. package/examples/output/complex.pl +0 -653
  84. package/examples/output/composition-of-injective-functions-is-injective.pl +0 -256
  85. package/examples/output/context-association.pl +0 -75
  86. package/examples/output/control-system.pl +0 -328
  87. package/examples/output/cryptarithmetic-send-more-money.pl +0 -168
  88. package/examples/output/cyclic-path.pl +0 -504
  89. package/examples/output/d3-group.pl +0 -56
  90. package/examples/output/dairy-energy-balance.pl +0 -1034
  91. package/examples/output/data-negotiation.pl +0 -75
  92. package/examples/output/deep-taxonomy-10.pl +0 -1235
  93. package/examples/output/deep-taxonomy-100.pl +0 -1235
  94. package/examples/output/deep-taxonomy-1000.pl +0 -1235
  95. package/examples/output/deep-taxonomy-10000.pl +0 -2915
  96. package/examples/output/deep-taxonomy-100000.pl +0 -20240
  97. package/examples/output/delfour.pl +0 -2829
  98. package/examples/output/dense-hamiltonian-cycle.pl +0 -207
  99. package/examples/output/deontic-logic.pl +0 -105
  100. package/examples/output/derived-rule.pl +0 -41
  101. package/examples/output/diamond-property.pl +0 -303
  102. package/examples/output/dijkstra-findall-sort.pl +0 -484
  103. package/examples/output/dijkstra-risk-path.pl +0 -4841
  104. package/examples/output/dijkstra.pl +0 -1336
  105. package/examples/output/dining-philosophers.pl +0 -21646
  106. package/examples/output/dog.pl +0 -30
  107. package/examples/output/drone-corridor-planner.pl +0 -2466
  108. package/examples/output/easter-computus.pl +0 -5690
  109. package/examples/output/electrical-rc-filter.pl +0 -102
  110. package/examples/output/epidemic-policy.pl +0 -760
  111. package/examples/output/equivalence-classes-overlap-implies-same-class.pl +0 -1080
  112. package/examples/output/eulerian-path.pl +0 -383
  113. package/examples/output/ev-range-worlds.pl +0 -2294
  114. package/examples/output/exact-cover-sudoku.pl +0 -396
  115. package/examples/output/existential-rule.pl +0 -38
  116. package/examples/output/exoplanet-validation-worlds.pl +0 -1904
  117. package/examples/output/expression-eval.pl +0 -104
  118. package/examples/output/family-cousins.pl +0 -3852
  119. package/examples/output/fastpow.pl +0 -1064
  120. package/examples/output/fft8-numeric.pl +0 -2556
  121. package/examples/output/fibonacci.pl +0 -2060
  122. package/examples/output/field-nitrogen-balance.pl +0 -1452
  123. package/examples/output/floating-point.pl +0 -151
  124. package/examples/output/four-color-map.pl +0 -191
  125. package/examples/output/fundamental-theorem-arithmetic.pl +0 -1610
  126. package/examples/output/gcd-bezout-identity.pl +0 -1842
  127. package/examples/output/gd-step-certified.pl +0 -32354
  128. package/examples/output/gdpr-compliance.pl +0 -193
  129. package/examples/output/goldbach-1000.pl +0 -17490
  130. package/examples/output/good-cobbler.pl +0 -15
  131. package/examples/output/gps.pl +0 -4166
  132. package/examples/output/graph-reachability.pl +0 -148
  133. package/examples/output/gray-code-counter.pl +0 -835
  134. package/examples/output/greatest-lower-bound-uniqueness.pl +0 -148
  135. package/examples/output/group-inverse-uniqueness.pl +0 -82
  136. package/examples/output/hamiltonian-cycle.pl +0 -102
  137. package/examples/output/hamiltonian-path.pl +0 -14157
  138. package/examples/output/hamming-code.pl +0 -2665
  139. package/examples/output/hanoi.pl +0 -184
  140. package/examples/output/heat-loss.pl +0 -223
  141. package/examples/output/heron-theorem.pl +0 -253
  142. package/examples/output/ideal-gas-law.pl +0 -148
  143. package/examples/output/illegitimate-reasoning.pl +0 -530
  144. package/examples/output/kaprekar.pl +0 -208
  145. package/examples/output/law-of-cosines.pl +0 -165
  146. package/examples/output/least-squares-regression.pl +0 -1447
  147. package/examples/output/list-collection.pl +0 -49
  148. package/examples/output/lldm.pl +0 -17298
  149. package/examples/output/manufacturing-quality-control.pl +0 -562
  150. package/examples/output/matrix.pl +0 -206
  151. package/examples/output/microgrid-dispatch.pl +0 -787
  152. package/examples/output/monkey-bananas.pl +0 -575
  153. package/examples/output/n-queens.pl +0 -2046
  154. package/examples/output/network-sla.pl +0 -282
  155. package/examples/output/newton-raphson.pl +0 -756
  156. package/examples/output/nixon-diamond.pl +0 -176
  157. package/examples/output/odrl-dpv-healthcare-risk-ranked.pl +0 -6148
  158. package/examples/output/odrl-dpv-risk-ranked.pl +0 -12961
  159. package/examples/output/orbital-transfer-design.pl +0 -961
  160. package/examples/output/path-discovery.pl +0 -333
  161. package/examples/output/peano-arithmetic.pl +0 -1432
  162. package/examples/output/peasant.pl +0 -190
  163. package/examples/output/pendulum-period.pl +0 -271
  164. package/examples/output/polynomial.pl +0 -7952
  165. package/examples/output/project-portfolio-optimization.pl +0 -93
  166. package/examples/output/proof-contrapositive.pl +0 -75
  167. package/examples/output/quadratic-formula.pl +0 -454
  168. package/examples/output/quine-mccluskey.pl +0 -188
  169. package/examples/output/radioactive-decay.pl +0 -299
  170. package/examples/output/sat-dpll.pl +0 -121
  171. package/examples/output/security-incident-correlation.pl +0 -267
  172. package/examples/output/service-impact.pl +0 -457
  173. package/examples/output/sieve.pl +0 -19
  174. package/examples/output/skolem-functions.pl +0 -264
  175. package/examples/output/socket-age.pl +0 -31
  176. package/examples/output/socket-family.pl +0 -56
  177. package/examples/output/socrates.pl +0 -36
  178. package/examples/output/statistics-summary.pl +0 -741
  179. package/examples/output/sudoku.pl +0 -38
  180. package/examples/output/superdense-coding.pl +0 -476
  181. package/examples/output/traveling-salesman.pl +0 -284
  182. package/examples/output/turing.pl +0 -2144
  183. package/examples/output/vector-similarity.pl +0 -421
  184. package/examples/output/witch.pl +0 -209
  185. package/examples/output/wolf-goat-cabbage.pl +0 -900
  186. package/examples/output/zebra.pl +0 -401
  187. package/examples/proof/age.pl +71 -0
  188. package/examples/proof/aliases-and-namespaces.pl +78 -0
  189. package/examples/proof/ancestor.pl +140 -0
  190. package/examples/proof/animal.pl +68 -0
  191. package/examples/proof/annotation.pl +80 -0
  192. package/examples/proof/backward.pl +22 -0
  193. package/examples/proof/cat-koko.pl +86 -0
  194. package/examples/proof/data-negotiation.pl +76 -0
  195. package/examples/proof/derived-rule.pl +43 -0
  196. package/examples/proof/dog.pl +31 -0
  197. package/examples/proof/electrical-rc-filter.pl +105 -0
  198. package/examples/proof/existential-rule.pl +40 -0
  199. package/examples/proof/floating-point.pl +160 -0
  200. package/examples/proof/good-cobbler.pl +16 -0
  201. package/examples/proof/group-inverse-uniqueness.pl +84 -0
  202. package/examples/proof/list-collection.pl +52 -0
  203. package/examples/proof/proof-contrapositive.pl +78 -0
  204. package/examples/proof/socket-age.pl +32 -0
  205. package/examples/proof/socket-family.pl +59 -0
  206. package/examples/proof/socrates.pl +38 -0
  207. package/package.json +1 -1
  208. package/playground-worker.mjs +4 -4
  209. package/playground.html +15 -15
  210. package/src/cli.js +9 -9
  211. package/src/index.js +3 -2
  212. package/test/run-examples.js +38 -8
  213. package/test/run-regression.js +29 -37
@@ -1,468 +1,11 @@
1
1
  impactedByFailureOf(checkout_api, payment_service).
2
- why(
3
- impactedByFailureOf(checkout_api, payment_service),
4
- proof(
5
- goal(impactedByFailureOf(checkout_api, payment_service)),
6
- by(rule("service-impact.pl", clause(24))),
7
- bindings([binding("Service", checkout_api), binding("Failed", payment_service)]),
8
- uses([
9
- proof(
10
- goal(failed(payment_service)),
11
- by(fact("service-impact.pl", clause(18)))
12
- ),
13
- proof(
14
- goal(impacted(checkout_api, payment_service)),
15
- by(rule("service-impact.pl", clause(19))),
16
- bindings([binding("Service", checkout_api), binding("Failed", payment_service)]),
17
- uses([
18
- proof(
19
- goal(depends_on(checkout_api, payment_service)),
20
- by(fact("service-impact.pl", clause(6)))
21
- )
22
- ])
23
- )
24
- ])
25
- )
26
- ).
27
-
28
2
  impactedByFailureOf(risk_rules, payment_service).
29
- why(
30
- impactedByFailureOf(risk_rules, payment_service),
31
- proof(
32
- goal(impactedByFailureOf(risk_rules, payment_service)),
33
- by(rule("service-impact.pl", clause(24))),
34
- bindings([binding("Service", risk_rules), binding("Failed", payment_service)]),
35
- uses([
36
- proof(
37
- goal(failed(payment_service)),
38
- by(fact("service-impact.pl", clause(18)))
39
- ),
40
- proof(
41
- goal(impacted(risk_rules, payment_service)),
42
- by(rule("service-impact.pl", clause(19))),
43
- bindings([binding("Service", risk_rules), binding("Failed", payment_service)]),
44
- uses([
45
- proof(
46
- goal(depends_on(risk_rules, payment_service)),
47
- by(fact("service-impact.pl", clause(10)))
48
- )
49
- ])
50
- )
51
- ])
52
- )
53
- ).
54
-
55
3
  impactedByFailureOf(web_store, payment_service).
56
- why(
57
- impactedByFailureOf(web_store, payment_service),
58
- proof(
59
- goal(impactedByFailureOf(web_store, payment_service)),
60
- by(rule("service-impact.pl", clause(24))),
61
- bindings([binding("Service", web_store), binding("Failed", payment_service)]),
62
- uses([
63
- proof(
64
- goal(failed(payment_service)),
65
- by(fact("service-impact.pl", clause(18)))
66
- ),
67
- proof(
68
- goal(impacted(web_store, payment_service)),
69
- by(rule("service-impact.pl", clause(20))),
70
- bindings([binding("Service", web_store), binding("Failed", payment_service), binding("Dependency", checkout_api)]),
71
- uses([
72
- proof(
73
- goal(depends_on(web_store, checkout_api)),
74
- by(fact("service-impact.pl", clause(4)))
75
- ),
76
- proof(
77
- goal(impacted(checkout_api, payment_service)),
78
- by(rule("service-impact.pl", clause(19))),
79
- bindings([binding("Service", checkout_api), binding("Failed", payment_service)]),
80
- uses([
81
- proof(
82
- goal(depends_on(checkout_api, payment_service)),
83
- by(fact("service-impact.pl", clause(6)))
84
- )
85
- ])
86
- )
87
- ])
88
- )
89
- ])
90
- )
91
- ).
92
-
93
4
  impactedByFailureOf(mobile_app, payment_service).
94
- why(
95
- impactedByFailureOf(mobile_app, payment_service),
96
- proof(
97
- goal(impactedByFailureOf(mobile_app, payment_service)),
98
- by(rule("service-impact.pl", clause(24))),
99
- bindings([binding("Service", mobile_app), binding("Failed", payment_service)]),
100
- uses([
101
- proof(
102
- goal(failed(payment_service)),
103
- by(fact("service-impact.pl", clause(18)))
104
- ),
105
- proof(
106
- goal(impacted(mobile_app, payment_service)),
107
- by(rule("service-impact.pl", clause(20))),
108
- bindings([binding("Service", mobile_app), binding("Failed", payment_service), binding("Dependency", checkout_api)]),
109
- uses([
110
- proof(
111
- goal(depends_on(mobile_app, checkout_api)),
112
- by(fact("service-impact.pl", clause(5)))
113
- ),
114
- proof(
115
- goal(impacted(checkout_api, payment_service)),
116
- by(rule("service-impact.pl", clause(19))),
117
- bindings([binding("Service", checkout_api), binding("Failed", payment_service)]),
118
- uses([
119
- proof(
120
- goal(depends_on(checkout_api, payment_service)),
121
- by(fact("service-impact.pl", clause(6)))
122
- )
123
- ])
124
- )
125
- ])
126
- )
127
- ])
128
- )
129
- ).
130
-
131
5
  impactedByFailureOf(payment_service, payment_service).
132
- why(
133
- impactedByFailureOf(payment_service, payment_service),
134
- proof(
135
- goal(impactedByFailureOf(payment_service, payment_service)),
136
- by(rule("service-impact.pl", clause(24))),
137
- bindings([binding("Service", payment_service), binding("Failed", payment_service)]),
138
- uses([
139
- proof(
140
- goal(failed(payment_service)),
141
- by(fact("service-impact.pl", clause(18)))
142
- ),
143
- proof(
144
- goal(impacted(payment_service, payment_service)),
145
- by(rule("service-impact.pl", clause(20))),
146
- bindings([binding("Service", payment_service), binding("Failed", payment_service), binding("Dependency", fraud_service)]),
147
- uses([
148
- proof(
149
- goal(depends_on(payment_service, fraud_service)),
150
- by(fact("service-impact.pl", clause(8)))
151
- ),
152
- proof(
153
- goal(impacted(fraud_service, payment_service)),
154
- by(rule("service-impact.pl", clause(20))),
155
- bindings([binding("Service", fraud_service), binding("Failed", payment_service), binding("Dependency", risk_rules)]),
156
- uses([
157
- proof(
158
- goal(depends_on(fraud_service, risk_rules)),
159
- by(fact("service-impact.pl", clause(9)))
160
- ),
161
- proof(
162
- goal(impacted(risk_rules, payment_service)),
163
- by(rule("service-impact.pl", clause(19))),
164
- bindings([binding("Service", risk_rules), binding("Failed", payment_service)]),
165
- uses([
166
- proof(
167
- goal(depends_on(risk_rules, payment_service)),
168
- by(fact("service-impact.pl", clause(10)))
169
- )
170
- ])
171
- )
172
- ])
173
- )
174
- ])
175
- )
176
- ])
177
- )
178
- ).
179
-
180
6
  impactedByFailureOf(fraud_service, payment_service).
181
- why(
182
- impactedByFailureOf(fraud_service, payment_service),
183
- proof(
184
- goal(impactedByFailureOf(fraud_service, payment_service)),
185
- by(rule("service-impact.pl", clause(24))),
186
- bindings([binding("Service", fraud_service), binding("Failed", payment_service)]),
187
- uses([
188
- proof(
189
- goal(failed(payment_service)),
190
- by(fact("service-impact.pl", clause(18)))
191
- ),
192
- proof(
193
- goal(impacted(fraud_service, payment_service)),
194
- by(rule("service-impact.pl", clause(20))),
195
- bindings([binding("Service", fraud_service), binding("Failed", payment_service), binding("Dependency", risk_rules)]),
196
- uses([
197
- proof(
198
- goal(depends_on(fraud_service, risk_rules)),
199
- by(fact("service-impact.pl", clause(9)))
200
- ),
201
- proof(
202
- goal(impacted(risk_rules, payment_service)),
203
- by(rule("service-impact.pl", clause(19))),
204
- bindings([binding("Service", risk_rules), binding("Failed", payment_service)]),
205
- uses([
206
- proof(
207
- goal(depends_on(risk_rules, payment_service)),
208
- by(fact("service-impact.pl", clause(10)))
209
- )
210
- ])
211
- )
212
- ])
213
- )
214
- ])
215
- )
216
- ).
217
-
218
7
  status(payment_service, failed).
219
- why(
220
- status(payment_service, failed),
221
- proof(
222
- goal(status(payment_service, failed)),
223
- by(rule("service-impact.pl", clause(25))),
224
- bindings([binding("Service", payment_service)]),
225
- uses([
226
- proof(
227
- goal(failed(payment_service)),
228
- by(fact("service-impact.pl", clause(18)))
229
- )
230
- ])
231
- )
232
- ).
233
-
234
8
  businessFunctionAtRisk(place_order, true).
235
- why(
236
- businessFunctionAtRisk(place_order, true),
237
- proof(
238
- goal(businessFunctionAtRisk(place_order, true)),
239
- by(rule("service-impact.pl", clause(26))),
240
- bindings([binding("Function", place_order)]),
241
- uses([
242
- proof(
243
- goal(affected_function(place_order)),
244
- by(rule("service-impact.pl", clause(23))),
245
- bindings([binding("Function", place_order), binding("Service", web_store)]),
246
- uses([
247
- proof(
248
- goal(business_function(place_order, web_store)),
249
- by(fact("service-impact.pl", clause(13)))
250
- ),
251
- proof(
252
- goal(affected(web_store)),
253
- by(rule("service-impact.pl", clause(21))),
254
- bindings([binding("Service", web_store), binding("Failed", payment_service)]),
255
- uses([
256
- proof(
257
- goal(failed(payment_service)),
258
- by(fact("service-impact.pl", clause(18)))
259
- ),
260
- proof(
261
- goal(impacted(web_store, payment_service)),
262
- by(rule("service-impact.pl", clause(20))),
263
- bindings([binding("Service", web_store), binding("Failed", payment_service), binding("Dependency", checkout_api)]),
264
- uses([
265
- proof(
266
- goal(depends_on(web_store, checkout_api)),
267
- by(fact("service-impact.pl", clause(4)))
268
- ),
269
- proof(
270
- goal(impacted(checkout_api, payment_service)),
271
- by(rule("service-impact.pl", clause(19))),
272
- bindings([binding("Service", checkout_api), binding("Failed", payment_service)]),
273
- uses([
274
- proof(
275
- goal(depends_on(checkout_api, payment_service)),
276
- by(fact("service-impact.pl", clause(6)))
277
- )
278
- ])
279
- )
280
- ])
281
- )
282
- ])
283
- )
284
- ])
285
- )
286
- ])
287
- )
288
- ).
289
-
290
9
  businessFunctionAtRisk(mobile_checkout, true).
291
- why(
292
- businessFunctionAtRisk(mobile_checkout, true),
293
- proof(
294
- goal(businessFunctionAtRisk(mobile_checkout, true)),
295
- by(rule("service-impact.pl", clause(26))),
296
- bindings([binding("Function", mobile_checkout)]),
297
- uses([
298
- proof(
299
- goal(affected_function(mobile_checkout)),
300
- by(rule("service-impact.pl", clause(23))),
301
- bindings([binding("Function", mobile_checkout), binding("Service", mobile_app)]),
302
- uses([
303
- proof(
304
- goal(business_function(mobile_checkout, mobile_app)),
305
- by(fact("service-impact.pl", clause(14)))
306
- ),
307
- proof(
308
- goal(affected(mobile_app)),
309
- by(rule("service-impact.pl", clause(21))),
310
- bindings([binding("Service", mobile_app), binding("Failed", payment_service)]),
311
- uses([
312
- proof(
313
- goal(failed(payment_service)),
314
- by(fact("service-impact.pl", clause(18)))
315
- ),
316
- proof(
317
- goal(impacted(mobile_app, payment_service)),
318
- by(rule("service-impact.pl", clause(20))),
319
- bindings([binding("Service", mobile_app), binding("Failed", payment_service), binding("Dependency", checkout_api)]),
320
- uses([
321
- proof(
322
- goal(depends_on(mobile_app, checkout_api)),
323
- by(fact("service-impact.pl", clause(5)))
324
- ),
325
- proof(
326
- goal(impacted(checkout_api, payment_service)),
327
- by(rule("service-impact.pl", clause(19))),
328
- bindings([binding("Service", checkout_api), binding("Failed", payment_service)]),
329
- uses([
330
- proof(
331
- goal(depends_on(checkout_api, payment_service)),
332
- by(fact("service-impact.pl", clause(6)))
333
- )
334
- ])
335
- )
336
- ])
337
- )
338
- ])
339
- )
340
- ])
341
- )
342
- ])
343
- )
344
- ).
345
-
346
10
  businessFunctionAtRisk(collect_payment, true).
347
- why(
348
- businessFunctionAtRisk(collect_payment, true),
349
- proof(
350
- goal(businessFunctionAtRisk(collect_payment, true)),
351
- by(rule("service-impact.pl", clause(26))),
352
- bindings([binding("Function", collect_payment)]),
353
- uses([
354
- proof(
355
- goal(affected_function(collect_payment)),
356
- by(rule("service-impact.pl", clause(23))),
357
- bindings([binding("Function", collect_payment), binding("Service", payment_service)]),
358
- uses([
359
- proof(
360
- goal(business_function(collect_payment, payment_service)),
361
- by(fact("service-impact.pl", clause(15)))
362
- ),
363
- proof(
364
- goal(affected(payment_service)),
365
- by(rule("service-impact.pl", clause(21))),
366
- bindings([binding("Service", payment_service), binding("Failed", payment_service)]),
367
- uses([
368
- proof(
369
- goal(failed(payment_service)),
370
- by(fact("service-impact.pl", clause(18)))
371
- ),
372
- proof(
373
- goal(impacted(payment_service, payment_service)),
374
- by(rule("service-impact.pl", clause(20))),
375
- bindings([binding("Service", payment_service), binding("Failed", payment_service), binding("Dependency", fraud_service)]),
376
- uses([
377
- proof(
378
- goal(depends_on(payment_service, fraud_service)),
379
- by(fact("service-impact.pl", clause(8)))
380
- ),
381
- proof(
382
- goal(impacted(fraud_service, payment_service)),
383
- by(rule("service-impact.pl", clause(20))),
384
- bindings([binding("Service", fraud_service), binding("Failed", payment_service), binding("Dependency", risk_rules)]),
385
- uses([
386
- proof(
387
- goal(depends_on(fraud_service, risk_rules)),
388
- by(fact("service-impact.pl", clause(9)))
389
- ),
390
- proof(
391
- goal(impacted(risk_rules, payment_service)),
392
- by(rule("service-impact.pl", clause(19))),
393
- bindings([binding("Service", risk_rules), binding("Failed", payment_service)]),
394
- uses([
395
- proof(
396
- goal(depends_on(risk_rules, payment_service)),
397
- by(fact("service-impact.pl", clause(10)))
398
- )
399
- ])
400
- )
401
- ])
402
- )
403
- ])
404
- )
405
- ])
406
- )
407
- ])
408
- )
409
- ])
410
- )
411
- ).
412
-
413
11
  businessFunctionAtRisk(screen_fraud, true).
414
- why(
415
- businessFunctionAtRisk(screen_fraud, true),
416
- proof(
417
- goal(businessFunctionAtRisk(screen_fraud, true)),
418
- by(rule("service-impact.pl", clause(26))),
419
- bindings([binding("Function", screen_fraud)]),
420
- uses([
421
- proof(
422
- goal(affected_function(screen_fraud)),
423
- by(rule("service-impact.pl", clause(23))),
424
- bindings([binding("Function", screen_fraud), binding("Service", fraud_service)]),
425
- uses([
426
- proof(
427
- goal(business_function(screen_fraud, fraud_service)),
428
- by(fact("service-impact.pl", clause(16)))
429
- ),
430
- proof(
431
- goal(affected(fraud_service)),
432
- by(rule("service-impact.pl", clause(21))),
433
- bindings([binding("Service", fraud_service), binding("Failed", payment_service)]),
434
- uses([
435
- proof(
436
- goal(failed(payment_service)),
437
- by(fact("service-impact.pl", clause(18)))
438
- ),
439
- proof(
440
- goal(impacted(fraud_service, payment_service)),
441
- by(rule("service-impact.pl", clause(20))),
442
- bindings([binding("Service", fraud_service), binding("Failed", payment_service), binding("Dependency", risk_rules)]),
443
- uses([
444
- proof(
445
- goal(depends_on(fraud_service, risk_rules)),
446
- by(fact("service-impact.pl", clause(9)))
447
- ),
448
- proof(
449
- goal(impacted(risk_rules, payment_service)),
450
- by(rule("service-impact.pl", clause(19))),
451
- bindings([binding("Service", risk_rules), binding("Failed", payment_service)]),
452
- uses([
453
- proof(
454
- goal(depends_on(risk_rules, payment_service)),
455
- by(fact("service-impact.pl", clause(10)))
456
- )
457
- ])
458
- )
459
- ])
460
- )
461
- ])
462
- )
463
- ])
464
- )
465
- ])
466
- )
467
- ).
468
-
@@ -1,20 +1 @@
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]).
2
- why(
3
- 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]),
4
- proof(
5
- goal(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])),
6
- by(rule("sieve.pl", clause(4))),
7
- bindings([binding("Limit", 1000), binding("Ps", [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])]),
8
- uses([
9
- proof(
10
- goal(want_primes(1000)),
11
- by(fact("sieve.pl", clause(2)))
12
- ),
13
- proof(
14
- goal(findall(P, prime_under(1000, P), [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])),
15
- by(builtin(findall, 3))
16
- )
17
- ])
18
- )
19
- ).
20
-