eyelang 1.3.8 → 1.4.0

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