eyeling 1.24.4 → 1.24.6

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 (301) hide show
  1. package/HANDBOOK.md +2 -101
  2. package/README.md +2 -2
  3. package/dist/browser/eyeling.browser.js +256 -4
  4. package/examples/annotation.n3 +3 -4
  5. package/{see/examples/n3/backward_recursion.n3 → examples/backward-recursion.n3} +0 -2
  6. package/examples/collection.n3 +1 -2
  7. package/examples/context-association.n3 +56 -30
  8. package/{see/examples/n3/dijkstra_risk_path.n3 → examples/dijkstra-risk-path.n3} +3 -18
  9. package/{see/examples/n3/eco_route_insight.n3 → examples/eco-route-insight.n3} +2 -47
  10. package/{see/examples/n3/genetic_knapsack_selection.n3 → examples/genetic-knapsack-selection.n3} +2 -24
  11. package/{see/examples → examples}/input/annotation.trig +3 -3
  12. package/{see/examples/input/backward_recursion.trig → examples/input/backward-recursion.trig} +2 -2
  13. package/{see/examples/input/builtin_coverage.trig → examples/input/builtin-coverage.trig} +2 -2
  14. package/{see/examples → examples}/input/collection.trig +3 -3
  15. package/{see/examples/input/dijkstra_risk_path.trig → examples/input/dijkstra-risk-path.trig} +4 -4
  16. package/{see/examples/input/eco_route_insight.trig → examples/input/eco-route-insight.trig} +4 -4
  17. package/{see/examples/input/genetic_knapsack_selection.trig → examples/input/genetic-knapsack-selection.trig} +4 -4
  18. package/{see/examples/input/rc_discharge_envelope.trig → examples/input/rc-discharge-envelope.trig} +4 -4
  19. package/{see/examples/input/rdf_dataset.trig → examples/input/rdf-dataset.trig} +4 -4
  20. package/{see/examples/input/rdf_message_flow.trig → examples/input/rdf-message-flow.trig} +3 -3
  21. package/{see/examples/input/rdf_messages.trig → examples/input/rdf-messages.trig} +4 -4
  22. package/{see/examples/input/school_placement_audit.trig → examples/input/school-placement-audit.trig} +4 -4
  23. package/{see/examples/input/smoke_arithmetic.trig → examples/input/smoke-arithmetic.trig} +3 -3
  24. package/{see/examples/input/triple_terms.trig → examples/input/triple-terms.trig} +3 -3
  25. package/examples/output/backward-recursion.n3 +4 -0
  26. package/examples/output/context-association.n3 +9 -0
  27. package/examples/output/dijkstra-risk-path.n3 +3 -0
  28. package/examples/output/eco-route-insight.n3 +3 -0
  29. package/examples/output/genetic-knapsack-selection.n3 +3 -0
  30. package/examples/output/rc-discharge-envelope.n3 +9 -0
  31. package/examples/output/rc-discharge-envelope.txt +9 -0
  32. package/examples/output/rdf-dataset.n3 +5 -0
  33. package/examples/output/rdf-message-flow.n3 +7 -0
  34. package/examples/output/rdf-messages.n3 +7 -0
  35. package/examples/output/school-placement-audit.n3 +3 -0
  36. package/examples/output/smoke-arithmetic.n3 +5 -0
  37. package/examples/output/smoke-arithmetic.txt +5 -0
  38. package/examples/output/triple-terms.n3 +5 -0
  39. package/{see/examples/n3/rc_discharge_envelope.n3 → examples/rc-discharge-envelope.n3} +2 -15
  40. package/{see/examples/n3/rdf_dataset.n3 → examples/rdf-dataset.n3} +2 -11
  41. package/{see/examples/n3/rdf_message_flow.n3 → examples/rdf-message-flow.n3} +9 -75
  42. package/{see/examples/n3/rdf_messages.n3 → examples/rdf-messages.n3} +6 -43
  43. package/{see/examples/n3/school_placement_audit.n3 → examples/school-placement-audit.n3} +2 -14
  44. package/{see/examples/n3/smoke_arithmetic.n3 → examples/smoke-arithmetic.n3} +3 -5
  45. package/{see/examples/n3/triple_terms.n3 → examples/triple-terms.n3} +1 -4
  46. package/eyeling.js +256 -4
  47. package/lib/builtins.js +6 -0
  48. package/lib/lexer.js +250 -4
  49. package/package.json +4 -7
  50. package/test/api.test.js +65 -8
  51. package/test/examples.test.js +22 -2
  52. package/test/package.test.js +16 -2
  53. package/examples/arcling/README.md +0 -11
  54. package/examples/input/annotation.ttl +0 -6
  55. package/examples/input/collection.ttl +0 -13
  56. package/examples/input/reifies.ttl +0 -10
  57. package/examples/input/triple-term.ttl +0 -8
  58. package/examples/output/triple-term.n3 +0 -0
  59. package/examples/reifies.n3 +0 -8
  60. package/examples/triple-term.n3 +0 -7
  61. package/see/README.md +0 -149
  62. package/see/examples/_see.js +0 -249
  63. package/see/examples/age.js +0 -1459
  64. package/see/examples/annotation.js +0 -1320
  65. package/see/examples/backward.js +0 -1405
  66. package/see/examples/backward_recursion.js +0 -1504
  67. package/see/examples/bayes_diagnosis.js +0 -2883
  68. package/see/examples/bayes_therapy.js +0 -4152
  69. package/see/examples/bmi.js +0 -3038
  70. package/see/examples/builtin_coverage.js +0 -2524
  71. package/see/examples/collection.js +0 -1320
  72. package/see/examples/complex.js +0 -3762
  73. package/see/examples/complex_matrix_stability.js +0 -2973
  74. package/see/examples/composition_of_injective_functions_is_injective.js +0 -2170
  75. package/see/examples/control_system.js +0 -1918
  76. package/see/examples/crypto_builtins_tests.js +0 -1489
  77. package/see/examples/delfour.js +0 -3174
  78. package/see/examples/digital_product_passport.js +0 -2856
  79. package/see/examples/dijkstra.js +0 -2070
  80. package/see/examples/dijkstra_risk_path.js +0 -1874
  81. package/see/examples/doc/age.md +0 -27
  82. package/see/examples/doc/annotation.md +0 -24
  83. package/see/examples/doc/backward.md +0 -26
  84. package/see/examples/doc/backward_recursion.md +0 -26
  85. package/see/examples/doc/bayes_diagnosis.md +0 -41
  86. package/see/examples/doc/bayes_therapy.md +0 -40
  87. package/see/examples/doc/bmi.md +0 -38
  88. package/see/examples/doc/builtin_coverage.md +0 -53
  89. package/see/examples/doc/collection.md +0 -24
  90. package/see/examples/doc/complex.md +0 -38
  91. package/see/examples/doc/complex_matrix_stability.md +0 -35
  92. package/see/examples/doc/composition_of_injective_functions_is_injective.md +0 -24
  93. package/see/examples/doc/control_system.md +0 -32
  94. package/see/examples/doc/crypto_builtins_tests.md +0 -27
  95. package/see/examples/doc/delfour.md +0 -37
  96. package/see/examples/doc/digital_product_passport.md +0 -36
  97. package/see/examples/doc/dijkstra.md +0 -28
  98. package/see/examples/doc/dijkstra_risk_path.md +0 -30
  99. package/see/examples/doc/dog.md +0 -28
  100. package/see/examples/doc/eco_route_insight.md +0 -33
  101. package/see/examples/doc/equals.md +0 -26
  102. package/see/examples/doc/equivalence_classes_overlap_implies_same_class.md +0 -24
  103. package/see/examples/doc/euler_identity.md +0 -39
  104. package/see/examples/doc/ev_roundtrip_planner.md +0 -32
  105. package/see/examples/doc/existential_rule.md +0 -24
  106. package/see/examples/doc/expression_eval.md +0 -26
  107. package/see/examples/doc/family_cousins.md +0 -24
  108. package/see/examples/doc/fastpow.md +0 -29
  109. package/see/examples/doc/fibonacci.md +0 -28
  110. package/see/examples/doc/french_cities.md +0 -28
  111. package/see/examples/doc/fundamental_theorem_arithmetic.md +0 -36
  112. package/see/examples/doc/genetic_knapsack_selection.md +0 -29
  113. package/see/examples/doc/goldbach_1000.md +0 -31
  114. package/see/examples/doc/good_cobbler.md +0 -27
  115. package/see/examples/doc/gps.md +0 -35
  116. package/see/examples/doc/gray_code_counter.md +0 -31
  117. package/see/examples/doc/greatest_lower_bound_uniqueness.md +0 -24
  118. package/see/examples/doc/group_inverse_uniqueness.md +0 -24
  119. package/see/examples/doc/hadamard_approx.md +0 -32
  120. package/see/examples/doc/hanoi.md +0 -26
  121. package/see/examples/doc/odrl_dpv_risk_ranked.md +0 -57
  122. package/see/examples/doc/path_discovery.md +0 -33
  123. package/see/examples/doc/rc_discharge_envelope.md +0 -33
  124. package/see/examples/doc/rdf_dataset.md +0 -26
  125. package/see/examples/doc/rdf_message_flow.md +0 -35
  126. package/see/examples/doc/rdf_messages.md +0 -37
  127. package/see/examples/doc/school_placement_audit.md +0 -31
  128. package/see/examples/doc/smoke_arithmetic.md +0 -31
  129. package/see/examples/doc/socrates.md +0 -24
  130. package/see/examples/doc/triple_terms.md +0 -26
  131. package/see/examples/doc/wind_turbine.md +0 -37
  132. package/see/examples/doc/witch.md +0 -28
  133. package/see/examples/dog.js +0 -1436
  134. package/see/examples/eco_route_insight.js +0 -2110
  135. package/see/examples/equals.js +0 -1363
  136. package/see/examples/equivalence_classes_overlap_implies_same_class.js +0 -1792
  137. package/see/examples/euler_identity.js +0 -2038
  138. package/see/examples/ev_roundtrip_planner.js +0 -2562
  139. package/see/examples/existential_rule.js +0 -1363
  140. package/see/examples/expression_eval.js +0 -1798
  141. package/see/examples/family_cousins.js +0 -1586
  142. package/see/examples/fastpow.js +0 -2207
  143. package/see/examples/fibonacci.js +0 -1594
  144. package/see/examples/french_cities.js +0 -1492
  145. package/see/examples/fundamental_theorem_arithmetic.js +0 -2106
  146. package/see/examples/genetic_knapsack_selection.js +0 -1743
  147. package/see/examples/goldbach_1000.js +0 -1798
  148. package/see/examples/good_cobbler.js +0 -1396
  149. package/see/examples/gps.js +0 -2813
  150. package/see/examples/gray_code_counter.js +0 -1641
  151. package/see/examples/greatest_lower_bound_uniqueness.js +0 -1918
  152. package/see/examples/group_inverse_uniqueness.js +0 -1897
  153. package/see/examples/hadamard_approx.js +0 -4417
  154. package/see/examples/hanoi.js +0 -1625
  155. package/see/examples/input/age.trig +0 -27
  156. package/see/examples/input/backward.trig +0 -25
  157. package/see/examples/input/bayes_diagnosis.trig +0 -111
  158. package/see/examples/input/bayes_therapy.trig +0 -130
  159. package/see/examples/input/bmi.trig +0 -28
  160. package/see/examples/input/complex.trig +0 -26
  161. package/see/examples/input/complex_matrix_stability.trig +0 -65
  162. package/see/examples/input/composition_of_injective_functions_is_injective.trig +0 -35
  163. package/see/examples/input/control_system.trig +0 -31
  164. package/see/examples/input/crypto_builtins_tests.trig +0 -25
  165. package/see/examples/input/delfour.trig +0 -90
  166. package/see/examples/input/digital_product_passport.trig +0 -116
  167. package/see/examples/input/dijkstra.trig +0 -34
  168. package/see/examples/input/dog.trig +0 -31
  169. package/see/examples/input/equals.trig +0 -25
  170. package/see/examples/input/equivalence_classes_overlap_implies_same_class.trig +0 -28
  171. package/see/examples/input/euler_identity.trig +0 -34
  172. package/see/examples/input/ev_roundtrip_planner.trig +0 -90
  173. package/see/examples/input/existential_rule.trig +0 -26
  174. package/see/examples/input/expression_eval.trig +0 -41
  175. package/see/examples/input/family_cousins.trig +0 -39
  176. package/see/examples/input/fastpow.trig +0 -25
  177. package/see/examples/input/fibonacci.trig +0 -51
  178. package/see/examples/input/french_cities.trig +0 -38
  179. package/see/examples/input/fundamental_theorem_arithmetic.trig +0 -42
  180. package/see/examples/input/goldbach_1000.trig +0 -53
  181. package/see/examples/input/good_cobbler.trig +0 -24
  182. package/see/examples/input/gps.trig +0 -35
  183. package/see/examples/input/gray_code_counter.trig +0 -33
  184. package/see/examples/input/greatest_lower_bound_uniqueness.trig +0 -29
  185. package/see/examples/input/group_inverse_uniqueness.trig +0 -29
  186. package/see/examples/input/hadamard_approx.trig +0 -32
  187. package/see/examples/input/hanoi.trig +0 -26
  188. package/see/examples/input/odrl_dpv_risk_ranked.trig +0 -107
  189. package/see/examples/input/path-discovery.trig +0 -96448
  190. package/see/examples/input/path_discovery.trig +0 -29
  191. package/see/examples/input/socrates.trig +0 -26
  192. package/see/examples/input/wind_turbine.trig +0 -48
  193. package/see/examples/input/witch.trig +0 -26
  194. package/see/examples/n3/age.n3 +0 -28
  195. package/see/examples/n3/annotation.n3 +0 -7
  196. package/see/examples/n3/backward.n3 +0 -22
  197. package/see/examples/n3/bayes_diagnosis.n3 +0 -122
  198. package/see/examples/n3/bayes_therapy.n3 +0 -149
  199. package/see/examples/n3/bmi.n3 +0 -145
  200. package/see/examples/n3/collection.n3 +0 -3
  201. package/see/examples/n3/complex.n3 +0 -140
  202. package/see/examples/n3/complex_matrix_stability.n3 +0 -113
  203. package/see/examples/n3/composition_of_injective_functions_is_injective.n3 +0 -27
  204. package/see/examples/n3/control_system.n3 +0 -59
  205. package/see/examples/n3/crypto_builtins_tests.n3 +0 -18
  206. package/see/examples/n3/delfour.n3 +0 -167
  207. package/see/examples/n3/digital_product_passport.n3 +0 -156
  208. package/see/examples/n3/dijkstra.n3 +0 -46
  209. package/see/examples/n3/dog.n3 +0 -20
  210. package/see/examples/n3/equals.n3 +0 -11
  211. package/see/examples/n3/equivalence_classes_overlap_implies_same_class.n3 +0 -19
  212. package/see/examples/n3/euler_identity.n3 +0 -41
  213. package/see/examples/n3/ev_roundtrip_planner.n3 +0 -82
  214. package/see/examples/n3/existential_rule.n3 +0 -10
  215. package/see/examples/n3/expression_eval.n3 +0 -21
  216. package/see/examples/n3/family_cousins.n3 +0 -62
  217. package/see/examples/n3/fastpow.n3 +0 -56
  218. package/see/examples/n3/fibonacci.n3 +0 -44
  219. package/see/examples/n3/french_cities.n3 +0 -28
  220. package/see/examples/n3/fundamental_theorem_arithmetic.n3 +0 -84
  221. package/see/examples/n3/goldbach_1000.n3 +0 -66
  222. package/see/examples/n3/good_cobbler.n3 +0 -10
  223. package/see/examples/n3/gps.n3 +0 -70
  224. package/see/examples/n3/gray_code_counter.n3 +0 -53
  225. package/see/examples/n3/greatest_lower_bound_uniqueness.n3 +0 -20
  226. package/see/examples/n3/group_inverse_uniqueness.n3 +0 -19
  227. package/see/examples/n3/hadamard_approx.n3 +0 -43
  228. package/see/examples/n3/hanoi.n3 +0 -16
  229. package/see/examples/n3/odrl_dpv_risk_ranked.n3 +0 -460
  230. package/see/examples/n3/path_discovery.n3 +0 -43
  231. package/see/examples/n3/socrates.n3 +0 -21
  232. package/see/examples/n3/wind_turbine.n3 +0 -85
  233. package/see/examples/n3/witch.n3 +0 -30
  234. package/see/examples/odrl_dpv_risk_ranked.js +0 -5128
  235. package/see/examples/output/age.md +0 -48
  236. package/see/examples/output/annotation.md +0 -43
  237. package/see/examples/output/backward.md +0 -50
  238. package/see/examples/output/backward_recursion.md +0 -54
  239. package/see/examples/output/bayes_diagnosis.md +0 -103
  240. package/see/examples/output/bayes_therapy.md +0 -84
  241. package/see/examples/output/bmi.md +0 -164
  242. package/see/examples/output/builtin_coverage.md +0 -99
  243. package/see/examples/output/collection.md +0 -44
  244. package/see/examples/output/complex.md +0 -61
  245. package/see/examples/output/complex_matrix_stability.md +0 -55
  246. package/see/examples/output/composition_of_injective_functions_is_injective.md +0 -62
  247. package/see/examples/output/control_system.md +0 -61
  248. package/see/examples/output/crypto_builtins_tests.md +0 -68
  249. package/see/examples/output/delfour.md +0 -100
  250. package/see/examples/output/digital_product_passport.md +0 -100
  251. package/see/examples/output/dijkstra.md +0 -74
  252. package/see/examples/output/dijkstra_risk_path.md +0 -76
  253. package/see/examples/output/dog.md +0 -50
  254. package/see/examples/output/eco_route_insight.md +0 -88
  255. package/see/examples/output/equals.md +0 -50
  256. package/see/examples/output/equivalence_classes_overlap_implies_same_class.md +0 -86
  257. package/see/examples/output/euler_identity.md +0 -73
  258. package/see/examples/output/ev_roundtrip_planner.md +0 -79
  259. package/see/examples/output/existential_rule.md +0 -54
  260. package/see/examples/output/expression_eval.md +0 -50
  261. package/see/examples/output/family_cousins.md +0 -187
  262. package/see/examples/output/fastpow.md +0 -36
  263. package/see/examples/output/fibonacci.md +0 -53
  264. package/see/examples/output/french_cities.md +0 -70
  265. package/see/examples/output/fundamental_theorem_arithmetic.md +0 -101
  266. package/see/examples/output/genetic_knapsack_selection.md +0 -66
  267. package/see/examples/output/goldbach_1000.md +0 -58
  268. package/see/examples/output/good_cobbler.md +0 -54
  269. package/see/examples/output/gps.md +0 -102
  270. package/see/examples/output/gray_code_counter.md +0 -68
  271. package/see/examples/output/greatest_lower_bound_uniqueness.md +0 -60
  272. package/see/examples/output/group_inverse_uniqueness.md +0 -60
  273. package/see/examples/output/hadamard_approx.md +0 -510
  274. package/see/examples/output/hanoi.md +0 -51
  275. package/see/examples/output/odrl_dpv_risk_ranked.md +0 -139
  276. package/see/examples/output/path_discovery.md +0 -65
  277. package/see/examples/output/rc_discharge_envelope.md +0 -102
  278. package/see/examples/output/rdf_dataset.md +0 -54
  279. package/see/examples/output/rdf_message_flow.md +0 -198
  280. package/see/examples/output/rdf_messages.md +0 -134
  281. package/see/examples/output/school_placement_audit.md +0 -99
  282. package/see/examples/output/smoke_arithmetic.md +0 -54
  283. package/see/examples/output/socrates.md +0 -55
  284. package/see/examples/output/triple_terms.md +0 -53
  285. package/see/examples/output/wind_turbine.md +0 -108
  286. package/see/examples/output/witch.md +0 -87
  287. package/see/examples/path_discovery.js +0 -1774
  288. package/see/examples/rc_discharge_envelope.js +0 -1993
  289. package/see/examples/rdf_dataset.js +0 -1512
  290. package/see/examples/rdf_message_flow.js +0 -2580
  291. package/see/examples/rdf_messages.js +0 -2176
  292. package/see/examples/school_placement_audit.js +0 -1867
  293. package/see/examples/smoke_arithmetic.js +0 -1483
  294. package/see/examples/socrates.js +0 -1420
  295. package/see/examples/triple_terms.js +0 -1442
  296. package/see/examples/wind_turbine.js +0 -2853
  297. package/see/examples/witch.js +0 -1519
  298. package/see/see.js +0 -2179
  299. package/test/see.test.js +0 -159
  300. /package/{see/examples/n3/builtin_coverage.n3 → examples/builtin-coverage.n3} +0 -0
  301. /package/examples/output/{reifies.n3 → builtin-coverage.n3} +0 -0
@@ -1,187 +0,0 @@
1
- # Family cousins
2
-
3
- ## Entailment
4
- The derivation produced 25 new fact(s) from 15 stated fact(s).
5
- Main entailment: **:Judy :cousin :Ivan.**
6
-
7
- Selected entailments:
8
- - :Judy :cousin :Ivan .
9
- - :Judy :cousin :Heidi .
10
- - :Ivan :cousin :Judy .
11
- - :Heidi :cousin :Judy .
12
- - :Judy :generation 3 .
13
- - :Ivan :generation 3 .
14
-
15
- ## Explanation
16
- Starts with 15 source fact(s), applies 4 rule(s), and reaches a fixpoint.
17
-
18
- Derivation steps:
19
- - Rule 1: true => :Adam :generation 0 derives :Adam :generation 0 .
20
- - Uses: no graph premises; built-ins/constants satisfied the rule.
21
- - Rule 2 (3 premise pattern(s) => 1 conclusion pattern(s)) derives :Bob :generation 1 ., :Carol :generation 1 ., :Dave :generation 2 ., :Eve :generation 2 ., … +5 more
22
- - Uses: :Adam :parentOf :Bob . _(source)_; :Adam :generation 0 . _(derived)_; :Adam :parentOf :Carol . _(source)_; :Bob :parentOf :Dave . _(source)_; … +11 more premise fact(s)
23
- - Rule 3: ?P :parentOf ?C; ?P :branch ?B => ?C :branch ?B derives :Heidi :branch :b ., :Ivan :branch :b ., :Judy :branch :c .
24
- - Uses: :Dave :parentOf :Heidi . _(source)_; :Dave :branch :b . _(source)_; :Eve :parentOf :Ivan . _(source)_; :Eve :branch :b . _(source)_; … +2 more premise fact(s)
25
- - Rule 4 (5 premise pattern(s) => 1 conclusion pattern(s)) derives :Dave :cousin :Frank ., :Dave :cousin :Grace ., :Eve :cousin :Frank ., :Eve :cousin :Grace ., … +8 more
26
- - Uses: :Dave :generation 2 . _(derived)_; :Frank :generation 2 . _(derived)_; :Dave :branch :b . _(source)_; :Frank :branch :c . _(source)_; … +12 more premise fact(s)
27
-
28
- Selected explanation support:
29
- - :Judy :cousin :Ivan . _(derived by Rule 4)_
30
- - :Judy :generation 3 . _(derived by Rule 2)_
31
- - :Frank :parentOf :Judy . _(source)_
32
- - :Frank :generation 2 . _(derived by Rule 2)_
33
- - :Carol :parentOf :Frank . _(source)_
34
- - :Carol :generation 1 . _(derived by Rule 2)_
35
- - :Adam :parentOf :Carol . _(source)_
36
- - :Adam :generation 0 . _(derived by Rule 1)_
37
- - :Ivan :generation 3 . _(derived by Rule 2)_
38
- - :Eve :parentOf :Ivan . _(source)_
39
- - :Eve :generation 2 . _(derived by Rule 2)_
40
- - :Bob :parentOf :Eve . _(source)_
41
- - :Bob :generation 1 . _(derived by Rule 2)_
42
- - :Adam :parentOf :Bob . _(source)_
43
- - :Adam :generation 0 . _(derived by Rule 1)_
44
- - :Judy :branch :c . _(derived by Rule 3)_
45
- - :Frank :parentOf :Judy . _(source)_
46
- - :Frank :branch :c . _(source)_
47
- - :Ivan :branch :b . _(derived by Rule 3)_
48
- - :Eve :parentOf :Ivan . _(source)_
49
- - :Eve :branch :b . _(source)_
50
- - ... 1 more premise fact(s)
51
- - :Judy :cousin :Heidi . _(derived by Rule 4)_
52
- - :Judy :generation 3 . _(derived by Rule 2)_
53
- - :Frank :parentOf :Judy . _(source)_
54
- - :Frank :generation 2 . _(derived by Rule 2)_
55
- - :Carol :parentOf :Frank . _(source)_
56
- - :Carol :generation 1 . _(derived by Rule 2)_
57
- - :Adam :parentOf :Carol . _(source)_
58
- - :Adam :generation 0 . _(derived by Rule 1)_
59
- - :Heidi :generation 3 . _(derived by Rule 2)_
60
- - :Dave :parentOf :Heidi . _(source)_
61
- - :Dave :generation 2 . _(derived by Rule 2)_
62
- - :Bob :parentOf :Dave . _(source)_
63
- - :Bob :generation 1 . _(derived by Rule 2)_
64
- - :Adam :parentOf :Bob . _(source)_
65
- - :Adam :generation 0 . _(derived by Rule 1)_
66
- - :Judy :branch :c . _(derived by Rule 3)_
67
- - :Frank :parentOf :Judy . _(source)_
68
- - :Frank :branch :c . _(source)_
69
- - :Heidi :branch :b . _(derived by Rule 3)_
70
- - :Dave :parentOf :Heidi . _(source)_
71
- - :Dave :branch :b . _(source)_
72
- - ... 1 more premise fact(s)
73
- - :Ivan :cousin :Judy . _(derived by Rule 4)_
74
- - :Ivan :generation 3 . _(derived by Rule 2)_
75
- - :Eve :parentOf :Ivan . _(source)_
76
- - :Eve :generation 2 . _(derived by Rule 2)_
77
- - :Bob :parentOf :Eve . _(source)_
78
- - :Bob :generation 1 . _(derived by Rule 2)_
79
- - :Adam :parentOf :Bob . _(source)_
80
- - :Adam :generation 0 . _(derived by Rule 1)_
81
- - :Judy :generation 3 . _(derived by Rule 2)_
82
- - :Frank :parentOf :Judy . _(source)_
83
- - :Frank :generation 2 . _(derived by Rule 2)_
84
- - :Carol :parentOf :Frank . _(source)_
85
- - :Carol :generation 1 . _(derived by Rule 2)_
86
- - :Adam :parentOf :Carol . _(source)_
87
- - :Adam :generation 0 . _(derived by Rule 1)_
88
- - :Ivan :branch :b . _(derived by Rule 3)_
89
- - :Eve :parentOf :Ivan . _(source)_
90
- - :Eve :branch :b . _(source)_
91
- - :Judy :branch :c . _(derived by Rule 3)_
92
- - :Frank :parentOf :Judy . _(source)_
93
- - :Frank :branch :c . _(source)_
94
- - ... 1 more premise fact(s)
95
- - :Heidi :cousin :Judy . _(derived by Rule 4)_
96
- - :Heidi :generation 3 . _(derived by Rule 2)_
97
- - :Dave :parentOf :Heidi . _(source)_
98
- - :Dave :generation 2 . _(derived by Rule 2)_
99
- - :Bob :parentOf :Dave . _(source)_
100
- - :Bob :generation 1 . _(derived by Rule 2)_
101
- - :Adam :parentOf :Bob . _(source)_
102
- - :Adam :generation 0 . _(derived by Rule 1)_
103
- - :Judy :generation 3 . _(derived by Rule 2)_
104
- - :Frank :parentOf :Judy . _(source)_
105
- - :Frank :generation 2 . _(derived by Rule 2)_
106
- - :Carol :parentOf :Frank . _(source)_
107
- - :Carol :generation 1 . _(derived by Rule 2)_
108
- - :Adam :parentOf :Carol . _(source)_
109
- - :Adam :generation 0 . _(derived by Rule 1)_
110
- - :Heidi :branch :b . _(derived by Rule 3)_
111
- - :Dave :parentOf :Heidi . _(source)_
112
- - :Dave :branch :b . _(source)_
113
- - :Judy :branch :c . _(derived by Rule 3)_
114
- - :Frank :parentOf :Judy . _(source)_
115
- - :Frank :branch :c . _(source)_
116
- - ... 1 more premise fact(s)
117
- - :Judy :generation 3 . _(derived by Rule 2)_
118
- - :Frank :parentOf :Judy . _(source)_
119
- - :Frank :generation 2 . _(derived by Rule 2)_
120
- - :Carol :parentOf :Frank . _(source)_
121
- - :Carol :generation 1 . _(derived by Rule 2)_
122
- - :Adam :parentOf :Carol . _(source)_
123
- - :Adam :generation 0 . _(derived by Rule 1)_
124
- - no graph premises; built-ins/constants satisfied the rule.
125
- - :Ivan :generation 3 . _(derived by Rule 2)_
126
- - :Eve :parentOf :Ivan . _(source)_
127
- - :Eve :generation 2 . _(derived by Rule 2)_
128
- - :Bob :parentOf :Eve . _(source)_
129
- - :Bob :generation 1 . _(derived by Rule 2)_
130
- - :Adam :parentOf :Bob . _(source)_
131
- - :Adam :generation 0 . _(derived by Rule 1)_
132
- - no graph premises; built-ins/constants satisfied the rule.
133
-
134
- The selected facts are serialized in the Formal TriG Output section.
135
-
136
- ## Formal TriG Output
137
-
138
- ```trig
139
- @prefix : <http://example.org/family#> .
140
- @prefix math: <http://www.w3.org/2000/10/swap/math#> .
141
- @prefix log: <http://www.w3.org/2000/10/swap/log#> .
142
- @prefix see: <https://example.org/see#> .
143
- @prefix in: <https://example.org/see/input#> .
144
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
145
-
146
- :Adam :generation 0 .
147
- :Bob :generation 1 .
148
- :Carol :generation 1 .
149
- :Heidi :branch :b .
150
- :Ivan :branch :b .
151
- :Judy :branch :c .
152
- :Dave :generation 2 .
153
- :Eve :generation 2 .
154
- :Frank :generation 2 .
155
- :Grace :generation 2 .
156
- :Dave :cousin :Frank .
157
- :Dave :cousin :Grace .
158
- :Eve :cousin :Frank .
159
- :Eve :cousin :Grace .
160
- :Frank :cousin :Dave .
161
- :Frank :cousin :Eve .
162
- :Grace :cousin :Dave .
163
- :Grace :cousin :Eve .
164
- :Heidi :generation 3 .
165
- :Ivan :generation 3 .
166
- :Judy :generation 3 .
167
- :Heidi :cousin :Judy .
168
- :Ivan :cousin :Judy .
169
- :Judy :cousin :Heidi .
170
- :Judy :cousin :Ivan .
171
-
172
- in:metadata {
173
- in:run a see:InputDataset .
174
- in:run see:name "family_cousins" .
175
- in:run see:title "Family cousins" .
176
- in:run see:sourceFile "examples/n3/family_cousins.n3" .
177
- in:run see:sourceSHA256 "5254e987fd72e71aafad53c8e3e9eb91d034cfd06878fcd02f611539200ab3e4" .
178
- in:run see:description "" .
179
- in:run see:compiler "see.js N3-to-JS compiler" .
180
- in:run see:inputFacts 15 .
181
- in:run see:compiledRules 4 .
182
- in:run see:compiledBackwardRules 0 .
183
- in:run see:compiledFuses 0 .
184
- in:run see:compiledQueries 0 .
185
- }
186
- ```
187
-
@@ -1,36 +0,0 @@
1
- # Fast exponentiation demo
2
-
3
- ## Entailment
4
- The derivation produced 0 new fact(s) from 0 stated fact(s).
5
-
6
- ## Explanation
7
- Starts with 0 source fact(s), applies 8 rule(s), and reaches a fixpoint.
8
-
9
- The selected facts are serialized in the Formal TriG Output section.
10
-
11
- ## Formal TriG Output
12
-
13
- ```trig
14
- @prefix : <https://eyereasoner.github.io/see/examples/fastpow#> .
15
- @prefix math: <http://www.w3.org/2000/10/swap/math#> .
16
- @prefix log: <http://www.w3.org/2000/10/swap/log#> .
17
- @prefix see: <https://example.org/see#> .
18
- @prefix in: <https://example.org/see/input#> .
19
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
20
-
21
- in:metadata {
22
- in:run a see:InputDataset .
23
- in:run see:name "fastpow" .
24
- in:run see:title "Fast exponentiation demo" .
25
- in:run see:sourceFile "examples/n3/fastpow.n3" .
26
- in:run see:sourceSHA256 "be6ae46e774f3887cf89f2302ba55a826a08d3c846b77dd3c78a90e32d0ebc14" .
27
- in:run see:description "" .
28
- in:run see:compiler "see.js N3-to-JS compiler" .
29
- in:run see:inputFacts 0 .
30
- in:run see:compiledRules 1 .
31
- in:run see:compiledBackwardRules 7 .
32
- in:run see:compiledFuses 0 .
33
- in:run see:compiledQueries 0 .
34
- }
35
- ```
36
-
@@ -1,53 +0,0 @@
1
- # Fibonacci Example (Big)
2
-
3
- ## Entailment
4
- The Fibonacci number for index 10000 is:
5
- 33644764876431783266621612005107543310302148460680063906564769974680081442166662368155595513633734025582065332680836159373734790483865268263040892463056431887354544369559827491606602099884183933864652731300088830269235673613135117579297437854413752130520504347701602264758318906527890855154366159582987279682987510631200575428783453215515103870818298969791613127856265033195487140214287532698187962046936097879900350962302291026368131493195275630227837628441540360584402572114334961180023091208287046088923962328835461505776583271252546093591128203925285393434620904245248929403901706233888991085841065183173360437470737908552631764325733993712871937587746897479926305837065742830161637408969178426378624212835258112820516370298089332099905707920064367426202389783111470054074998459250360633560933883831923386783056136435351892133279732908133732642652633989763922723407882928177953580570993691049175470808931841056146322338217465637321248226383092103297701648054726243842374862411453093812206564914032751086643394517512161526545361333111314042436854805106765843493523836959653428071768775328348234345557366719731392746273629108210679280784718035329131176778924659089938635459327894523777674406192240337638674004021330343297496902028328145933418826817683893072003634795623117103101291953169794607632737589253530772552375943788434504067715555779056450443016640119462580972216729758615026968443146952034614932291105970676243268515992834709891284706740862008587135016260312071903172086094081298321581077282076353186624611278245537208532365305775956430072517744315051539600905168603220349163222640885248852433158051534849622434848299380905070483482449327453732624567755879089187190803662058009594743150052402532709746995318770724376825907419939632265984147498193609285223945039707165443156421328157688908058783183404917434556270520223564846495196112460268313970975069382648706613264507665074611512677522748621598642530711298441182622661057163515069260029861704945425047491378115154139941550671256271197133252763631939606902895650288268608362241082050562430701794976171121233066073310059947366875
6
-
7
- ## Explanation
8
- The Fibonacci sequence is defined by F(0)=0, F(1)=1, and F(n)=F(n-1)+F(n-2) for n>=2. The N3 source records the target, base cases, recurrence rule, and sample facts for representative indices. The compiled SEE example carries the exact 2090-digit result as a compiled report while preserving the original JSON data input.
9
-
10
- **Generated derivation support**
11
-
12
- Compiled support: 27 source fact(s), 1 rule(s), fixpoint reached before rendering.
13
-
14
- Derivation steps:
15
- - Rule 1 (12 premise pattern(s) => 2 conclusion pattern(s)) derives :fibonacciExample log:outputString "[authored report]" ., :fibonacciExample :certifies :Sample10000 .
16
- - Uses: :Run :target 10000 . _(source)_; :Run :sampleIndex 0 . _(source)_; :Run :sampleIndex 1 . _(source)_; :Run :sampleIndex 2 . _(source)_; … +7 more premise fact(s)
17
-
18
- Selected explanation support:
19
- - :fibonacciExample :certifies :Sample10000 . _(derived by Rule 1)_
20
- - :Run :target 10000 . _(source)_
21
- - :Run :sampleIndex 0 . _(source)_
22
- - :Run :sampleIndex 1 . _(source)_
23
- - :Run :sampleIndex 2 . _(source)_
24
- - ... 7 more premise fact(s)
25
-
26
- ## Formal TriG Output
27
-
28
- ```trig
29
- @prefix : <https://eyereasoner.github.io/see/examples/fibonacci#> .
30
- @prefix log: <http://www.w3.org/2000/10/swap/log#> .
31
- @prefix string: <http://www.w3.org/2000/10/swap/string#> .
32
- @prefix see: <https://example.org/see#> .
33
- @prefix in: <https://example.org/see/input#> .
34
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
35
-
36
- :fibonacciExample :certifies :Sample10000 .
37
-
38
- in:metadata {
39
- in:run a see:InputDataset .
40
- in:run see:name "fibonacci" .
41
- in:run see:title "Fibonacci Example (Big)" .
42
- in:run see:sourceFile "examples/n3/fibonacci.n3" .
43
- in:run see:sourceSHA256 "25d93f4de352e797e1afb277f9f5805b1cdaface366f199b1195cc601555a172" .
44
- in:run see:description "N3-compiled version of the exact Fibonacci example. The target and sample indices are represented as formal TriG input\nevidence when this source is compiled." .
45
- in:run see:compiler "see.js N3-to-JS compiler" .
46
- in:run see:inputFacts 27 .
47
- in:run see:compiledRules 1 .
48
- in:run see:compiledBackwardRules 0 .
49
- in:run see:compiledFuses 0 .
50
- in:run see:compiledQueries 1 .
51
- }
52
- ```
53
-
@@ -1,70 +0,0 @@
1
- # French cities — graph path traversal.
2
-
3
- ## Entailment
4
- The compiled query selected 1 fact(s) after the rule closure was computed.
5
- Main entailment: **:paris :path :nantes.**
6
-
7
- Selected entailments:
8
- - :paris :path :nantes .
9
-
10
- ## Explanation
11
- Starts with 12 source fact(s), applies 2 rule(s), and reaches a fixpoint.
12
- The log:query projection then keeps only the matching fact(s) shown above.
13
-
14
- Derivation steps:
15
- - Rule 1: ?P rdfs:subPropertyOf ?R; ?S ?P ?O => ?S ?R ?O derives :paris :path :orleans ., :paris :path :chartres ., :paris :path :amiens ., :orleans :path :blois ., … +6 more
16
- - Uses: :oneway rdfs:subPropertyOf :path . _(source)_; :paris :oneway :orleans . _(source)_; :paris :oneway :chartres . _(source)_; :paris :oneway :amiens . _(source)_; … +7 more premise fact(s)
17
- - Rule 2 (3 premise pattern(s) => 1 conclusion pattern(s)) derives :paris :path :blois ., :paris :path :bourges ., :orleans :path :tours ., :paris :path :lemans ., … +7 more
18
- - Uses: :path rdf:type owl:TransitiveProperty . _(source)_; :orleans :path :blois . _(derived)_; :paris :path :orleans . _(derived)_; :orleans :path :bourges . _(derived)_; … +10 more premise fact(s)
19
-
20
- Selected explanation support:
21
- - :paris :path :nantes . _(derived by Rule 2)_
22
- - :path rdf:type owl:TransitiveProperty . _(source)_
23
- - :lemans :path :nantes . _(derived by Rule 2)_
24
- - :path rdf:type owl:TransitiveProperty . _(source)_
25
- - :angers :path :nantes . _(derived by Rule 1)_
26
- - :oneway rdfs:subPropertyOf :path . _(source)_
27
- - :angers :oneway :nantes . _(source)_
28
- - :lemans :path :angers . _(derived by Rule 1)_
29
- - :oneway rdfs:subPropertyOf :path . _(source)_
30
- - :lemans :oneway :angers . _(source)_
31
- - :paris :path :lemans . _(derived by Rule 2)_
32
- - :path rdf:type owl:TransitiveProperty . _(source)_
33
- - :chartres :path :lemans . _(derived by Rule 1)_
34
- - :oneway rdfs:subPropertyOf :path . _(source)_
35
- - :chartres :oneway :lemans . _(source)_
36
- - :paris :path :chartres . _(derived by Rule 1)_
37
- - :oneway rdfs:subPropertyOf :path . _(source)_
38
- - :paris :oneway :chartres . _(source)_
39
-
40
- The query-selected facts are serialized in the Formal TriG Output section.
41
-
42
- ## Formal TriG Output
43
-
44
- ```trig
45
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
46
- @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
47
- @prefix owl: <http://www.w3.org/2002/07/owl#> .
48
- @prefix log: <http://www.w3.org/2000/10/swap/log#> .
49
- @prefix : <https://eyereasoner.github.io/see/examples/french-cities#> .
50
- @prefix see: <https://example.org/see#> .
51
- @prefix in: <https://example.org/see/input#> .
52
-
53
- :paris :path :nantes .
54
-
55
- in:metadata {
56
- in:run a see:InputDataset .
57
- in:run see:name "french_cities" .
58
- in:run see:title "French cities — graph path traversal." .
59
- in:run see:sourceFile "examples/n3/french_cities.n3" .
60
- in:run see:sourceSHA256 "7e3672e6ab314845d44cdd16e7a91484c205de77ff8c9a06971f857612692be4" .
61
- in:run see:description "Based on the EYE reasoning/graph example: graph.axiom.n3 plus graph.filter.n3.\nIt asks whether Paris can reach Nantes by following one-way links, using a\nsubproperty rule and a transitive-property rule." .
62
- in:run see:compiler "see.js N3-to-JS compiler" .
63
- in:run see:inputFacts 12 .
64
- in:run see:compiledRules 2 .
65
- in:run see:compiledBackwardRules 0 .
66
- in:run see:compiledFuses 0 .
67
- in:run see:compiledQueries 1 .
68
- }
69
- ```
70
-
@@ -1,101 +0,0 @@
1
- # Fundamental Theorem Arithmetic
2
-
3
- ## Entailment
4
- Primary N3 case: n = 202692987 has prime factors 3 * 3 * 7 * 829 * 3881.
5
- primary prime-power form : 3^2 * 7 * 829 * 3881
6
- sample count : 6
7
- largest sample : 600851475143
8
- total prime factors counted with multiplicity : 31
9
- distinct primes seen across samples : 17
10
-
11
- Sample factorizations:
12
- 360360 = 2^3 * 3^2 * 5 * 7 * 11 * 13
13
- 202692987 = 3^2 * 7 * 829 * 3881
14
- 4294967295 = 3 * 5 * 17 * 257 * 65537
15
- 600851475143 = 71 * 839 * 1471 * 6857
16
- 9876543210 = 2 * 3^2 * 5 * 17^2 * 379721
17
- 9999999967 = 9999999967
18
-
19
- ## Explanation
20
- Existence comes from repeated smallest-divisor decomposition. At each step, the first divisor found is prime because no smaller positive divisor can divide the current number.
21
-
22
- Smallest-divisor trace for the N3 source number:
23
- 202692987 = 3 * 67564329
24
- 67564329 = 3 * 22521443
25
- 22521443 = 7 * 3217349
26
- 3217349 = 829 * 3881
27
- 3881 is prime
28
-
29
- Uniqueness up to order is validated by reversing each traversal and sorting both factor lists. Matching sorted lists describe the same multiset of prime factors, even when the factors were discovered in the opposite order.
30
- source smallest-first factors : 3 * 3 * 7 * 829 * 3881
31
- source largest-first factors : 3881 * 829 * 7 * 3 * 3
32
- source sorted comparison : 3 * 3 * 7 * 829 * 3881
33
-
34
- The additional samples cover repeated small factors, special products, large composites, and a larger prime that has no smaller divisor.
35
-
36
- **Generated derivation support**
37
-
38
- Compiled support: 16 source fact(s), 4 rule(s), fixpoint reached before rendering.
39
-
40
- Derivation steps:
41
- - Rule 1 (4 premise pattern(s) => 1 conclusion pattern(s)) derives :Case :reconstructsProduct true .
42
- - Uses: :Case :n 202692987 . _(source)_; :Case :factors (3 3 7 829 3881) . _(source)_
43
- - Rule 2 (5 premise pattern(s) => 1 conclusion pattern(s)) derives :Case :uniqueUpToOrder true .
44
- - Uses: :Case :factors (3 3 7 829 3881) . _(source)_
45
- - Rule 3 (4 premise pattern(s) => 1 conclusion pattern(s)) derives :Case :allDistinctFactorsPrime true .
46
- - Uses: 3 :primeWitness true . _(source)_; 7 :primeWitness true . _(source)_; 829 :primeWitness true . _(source)_; 3881 :primeWitness true . _(source)_
47
- - Rule 7 (15 premise pattern(s) => 4 conclusion pattern(s)) derives :fundamentalTheoremArithmetic log:outputString "[authored report]" ., :fundamentalTheoremArithmetic :demonstrates :Existence ., :fundamentalTheoremArithmetic :demonstrates :UniquenessUpToOrder ., :fundamentalTheoremArithmetic :demonstrates :PrimeWitnesses .
48
- - Uses: :Case :n 202692987 . _(source)_; :Case :flatFactorString "3 * 3 * 7 * 829 * 3881" . _(source)_; :Case :primePowerString "3^2 * 7 * 829 * 3881" . _(source)_; :Case :largestFlatFactorString "3881 * 829 * 7 * 3 * 3" . _(source)_; … +10 more premise fact(s)
49
-
50
- Selected explanation support:
51
- - :fundamentalTheoremArithmetic :demonstrates :PrimeWitnesses . _(derived by Rule 7)_
52
- - :Case :n 202692987 . _(source)_
53
- - :Case :flatFactorString "3 * 3 * 7 * 829 * 3881" . _(source)_
54
- - :Case :primePowerString "3^2 * 7 * 829 * 3881" . _(source)_
55
- - :Case :largestFlatFactorString "3881 * 829 * 7 * 3 * 3" . _(source)_
56
- - ... 10 more premise fact(s)
57
- - :fundamentalTheoremArithmetic :demonstrates :UniquenessUpToOrder . _(derived by Rule 7)_
58
- - :Case :n 202692987 . _(source)_
59
- - :Case :flatFactorString "3 * 3 * 7 * 829 * 3881" . _(source)_
60
- - :Case :primePowerString "3^2 * 7 * 829 * 3881" . _(source)_
61
- - :Case :largestFlatFactorString "3881 * 829 * 7 * 3 * 3" . _(source)_
62
- - ... 10 more premise fact(s)
63
- - :fundamentalTheoremArithmetic :demonstrates :Existence . _(derived by Rule 7)_
64
- - :Case :n 202692987 . _(source)_
65
- - :Case :flatFactorString "3 * 3 * 7 * 829 * 3881" . _(source)_
66
- - :Case :primePowerString "3^2 * 7 * 829 * 3881" . _(source)_
67
- - :Case :largestFlatFactorString "3881 * 829 * 7 * 3 * 3" . _(source)_
68
- - ... 10 more premise fact(s)
69
-
70
- ## Formal TriG Output
71
-
72
- ```trig
73
- @prefix : <https://eyereasoner.github.io/see/examples/fundamental-theorem-arithmetic#> .
74
- @prefix math: <http://www.w3.org/2000/10/swap/math#> .
75
- @prefix list: <http://www.w3.org/2000/10/swap/list#> .
76
- @prefix log: <http://www.w3.org/2000/10/swap/log#> .
77
- @prefix string: <http://www.w3.org/2000/10/swap/string#> .
78
- @prefix see: <https://example.org/see#> .
79
- @prefix in: <https://example.org/see/input#> .
80
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
81
-
82
- :fundamentalTheoremArithmetic :demonstrates :Existence .
83
- :fundamentalTheoremArithmetic :demonstrates :UniquenessUpToOrder .
84
- :fundamentalTheoremArithmetic :demonstrates :PrimeWitnesses .
85
-
86
- in:metadata {
87
- in:run a see:InputDataset .
88
- in:run see:name "fundamental_theorem_arithmetic" .
89
- in:run see:title "Fundamental Theorem Arithmetic" .
90
- in:run see:sourceFile "examples/n3/fundamental_theorem_arithmetic.n3" .
91
- in:run see:sourceSHA256 "d88eca366c590d49544e49453cbe69ba38938f8bc23919278bfaadd0bed0cd2d" .
92
- in:run see:description "N3-compiled version of the hand-written SEE example. The primary case mirrors\nEyeling's fundamental-theorem-arithmetic.n3: n = 202692987 is validated against\nthe factorization 3^2 * 7 * 829 * 3881. Extra sample summaries are kept as\ndata so the SEE report still documents the larger regression set." .
93
- in:run see:compiler "see.js N3-to-JS compiler" .
94
- in:run see:inputFacts 16 .
95
- in:run see:compiledRules 4 .
96
- in:run see:compiledBackwardRules 0 .
97
- in:run see:compiledFuses 3 .
98
- in:run see:compiledQueries 1 .
99
- }
100
- ```
101
-
@@ -1,66 +0,0 @@
1
- # Genetic Knapsack Selection
2
-
3
- ## Entailment
4
- final genome : 101000000101
5
- selected items : item01, item03, item10, item12
6
- weight : 50 / 50
7
- value : 101
8
- fitness : 999899
9
- generations evaluated : 5
10
- exhaustive optimum value : 104 at genome 001000011111
11
-
12
- ## Explanation
13
- Each genome bit says whether the corresponding item is selected for the knapsack. Feasible candidates get fitness 1000000 minus value, so higher value means lower fitness; overweight candidates are penalized above every feasible candidate. The N3 source records the deterministic local-search result and validates that the final genome respects capacity and has no strictly better one-bit neighbor. For transparency, an exhaustive enumeration also records the global best feasible value, showing this is a local mutation search rather than a global-optimality claim.
14
-
15
- **Generated derivation support**
16
-
17
- Compiled support: 14 source fact(s), 2 rule(s), fixpoint reached before rendering.
18
-
19
- Derivation steps:
20
- - Rule 1 (7 premise pattern(s) => 1 conclusion pattern(s)) derives :Run :localSearchStopsAt :FinalLocal .
21
- - Uses: :Run :capacity 50 . _(source)_; :FinalLocal :weight 50 . _(source)_; :FinalLocal :value 101 . _(source)_; :NeighborSummary :bestNeighborValue 101 . _(source)_; … +1 more premise fact(s)
22
- - Rule 2 (11 premise pattern(s) => 2 conclusion pattern(s)) derives :geneticKnapsackSelection log:outputString "[authored report]" ., :geneticKnapsackSelection :selects :FinalLocal .
23
- - Uses: :Run :capacity 50 . _(source)_; :Run :localSearchStopsAt :FinalLocal . _(derived)_; :FinalLocal :genome "101000000101" . _(source)_; :FinalLocal :selectedItems "item01, item03, item10, item12" . _(source)_; … +6 more premise fact(s)
24
-
25
- Selected explanation support:
26
- - :geneticKnapsackSelection :selects :FinalLocal . _(derived by Rule 2)_
27
- - :Run :capacity 50 . _(source)_
28
- - :Run :localSearchStopsAt :FinalLocal . _(derived by Rule 1)_
29
- - :Run :capacity 50 . _(source)_
30
- - :FinalLocal :weight 50 . _(source)_
31
- - :FinalLocal :value 101 . _(source)_
32
- - :NeighborSummary :bestNeighborValue 101 . _(source)_
33
- - ... 1 more premise fact(s)
34
- - :FinalLocal :genome "101000000101" . _(source)_
35
- - :FinalLocal :selectedItems "item01, item03, item10, item12" . _(source)_
36
- - ... 6 more premise fact(s)
37
-
38
- ## Formal TriG Output
39
-
40
- ```trig
41
- @prefix : <https://eyereasoner.github.io/see/examples/genetic-knapsack-selection#> .
42
- @prefix math: <http://www.w3.org/2000/10/swap/math#> .
43
- @prefix log: <http://www.w3.org/2000/10/swap/log#> .
44
- @prefix string: <http://www.w3.org/2000/10/swap/string#> .
45
- @prefix see: <https://example.org/see#> .
46
- @prefix in: <https://example.org/see/input#> .
47
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
48
-
49
- :geneticKnapsackSelection :selects :FinalLocal .
50
-
51
- in:metadata {
52
- in:run a see:InputDataset .
53
- in:run see:name "genetic_knapsack_selection" .
54
- in:run see:title "Genetic Knapsack Selection" .
55
- in:run see:sourceFile "examples/n3/genetic_knapsack_selection.n3" .
56
- in:run see:sourceSHA256 "c8fb351156e7656f2e3600f0d1eaf8a624742a91f688425564822cea78530855" .
57
- in:run see:description "N3-compiled version of the deterministic one-bit mutation knapsack example.\nThe original item list JSON is preserved as the data-input sidecar." .
58
- in:run see:compiler "see.js N3-to-JS compiler" .
59
- in:run see:inputFacts 14 .
60
- in:run see:compiledRules 2 .
61
- in:run see:compiledBackwardRules 0 .
62
- in:run see:compiledFuses 0 .
63
- in:run see:compiledQueries 1 .
64
- }
65
- ```
66
-
@@ -1,58 +0,0 @@
1
- # Goldbach 1000
2
-
3
- ## Entailment
4
- All 499 even integers from 4 through 1000 have a Goldbach witness.
5
- sample witnesses : 4=2+2; 28=5+23; 100=3+97; 998=7+991; 1000=3+997
6
-
7
- ## Explanation
8
- The bounded run caches primes up to the configured bound and then searches each even number E for a prime P not greater than E/2 where E-P is also prime. No counterexample is found in the bounded range, so the bounded Goldbach condition succeeds for this dataset.
9
-
10
- **Generated derivation support**
11
-
12
- Compiled support: 28 source fact(s), 3 rule(s), fixpoint reached before rendering.
13
-
14
- Derivation steps:
15
- - Rule 1 (6 premise pattern(s) => 1 conclusion pattern(s)) derives :w4 :verifiedGoldbachWitness true ., :w28 :verifiedGoldbachWitness true ., :w100 :verifiedGoldbachWitness true ., :w998 :verifiedGoldbachWitness true ., … +1 more
16
- - Uses: :w4 :even 4 . _(source)_; :w4 :p 2 . _(source)_; :w4 :q 2 . _(source)_; 2 :prime true . _(source)_; … +19 more premise fact(s)
17
- - Rule 2 (6 premise pattern(s) => 1 conclusion pattern(s)) derives :BoundedRun :boundedGoldbachCondition true .
18
- - Uses: :w4 :verifiedGoldbachWitness true . _(derived)_; :w28 :verifiedGoldbachWitness true . _(derived)_; :w100 :verifiedGoldbachWitness true . _(derived)_; :w998 :verifiedGoldbachWitness true . _(derived)_; … +2 more premise fact(s)
19
- - Rule 4 (6 premise pattern(s) => 2 conclusion pattern(s)) derives :goldbach1000 log:outputString "[authored report]" ., :goldbach1000 :demonstrates :BoundedGoldbachEvidence .
20
- - Uses: :BoundedRun :minEven 4 . _(source)_; :BoundedRun :maxEven 1000 . _(source)_; :BoundedRun :evenCount 499 . _(source)_; :BoundedRun :sampleWitnesses "4=2+2; 28=5+23; 100=3+97; 998=7+991; 1000=3+997" . _(source)_; … +1 more premise fact(s)
21
-
22
- Selected explanation support:
23
- - :goldbach1000 :demonstrates :BoundedGoldbachEvidence . _(derived by Rule 4)_
24
- - :BoundedRun :minEven 4 . _(source)_
25
- - :BoundedRun :maxEven 1000 . _(source)_
26
- - :BoundedRun :evenCount 499 . _(source)_
27
- - :BoundedRun :sampleWitnesses "4=2+2; 28=5+23; 100=3+97; 998=7+991; 1000=3+997" . _(source)_
28
- - ... 1 more premise fact(s)
29
-
30
- ## Formal TriG Output
31
-
32
- ```trig
33
- @prefix : <https://eyereasoner.github.io/see/examples/goldbach-1000#> .
34
- @prefix math: <http://www.w3.org/2000/10/swap/math#> .
35
- @prefix log: <http://www.w3.org/2000/10/swap/log#> .
36
- @prefix string: <http://www.w3.org/2000/10/swap/string#> .
37
- @prefix see: <https://example.org/see#> .
38
- @prefix in: <https://example.org/see/input#> .
39
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
40
-
41
- :goldbach1000 :demonstrates :BoundedGoldbachEvidence .
42
-
43
- in:metadata {
44
- in:run a see:InputDataset .
45
- in:run see:name "goldbach_1000" .
46
- in:run see:title "Goldbach 1000" .
47
- in:run see:sourceFile "examples/n3/goldbach_1000.n3" .
48
- in:run see:sourceSHA256 "f40ec2cb172140ebdb5632a0abf0f0498be1183564755aaf76748545a2b49158" .
49
- in:run see:description "N3-compiled version of the bounded Goldbach SEE example. It keeps the bounded\nresult as committed data and uses rules to verify the representative witness\nequations that are shown in the report." .
50
- in:run see:compiler "see.js N3-to-JS compiler" .
51
- in:run see:inputFacts 28 .
52
- in:run see:compiledRules 3 .
53
- in:run see:compiledBackwardRules 0 .
54
- in:run see:compiledFuses 1 .
55
- in:run see:compiledQueries 1 .
56
- }
57
- ```
58
-
@@ -1,54 +0,0 @@
1
- # Good cobbler
2
-
3
- ## Entailment
4
- The derivation produced 1 formula-valued entailment(s).
5
- Main entailment: **:test is { :joe :is (:good :Cobbler) }.**
6
-
7
- Selected entailments:
8
- - :test :is { :joe :is (:good :Cobbler) } .
9
-
10
- ## Explanation
11
- Starts with 1 source fact(s), applies 1 rule(s), and reaches a fixpoint.
12
-
13
- Derivation steps:
14
- - Rule 1: ?X :is (:good ?Y) => :test :is { ?X :is (:good ?Y) } derives :test :is { :joe :is (:good :Cobbler) } .
15
- - Uses: :joe :is (:good :Cobbler) . _(source)_
16
-
17
- Selected explanation support:
18
- - :test :is { :joe :is (:good :Cobbler) } . _(derived by Rule 1)_
19
- - :joe :is (:good :Cobbler) . _(source)_
20
-
21
- The formula-valued facts are serialized in the Formal TriG Output section.
22
-
23
- ## Formal TriG Output
24
-
25
- ```trig
26
- @prefix : <https://eyereasoner.github.io/see/examples/good-cobbler#> .
27
- @prefix log: <http://www.w3.org/2000/10/swap/log#> .
28
- @prefix see: <https://example.org/see#> .
29
- @prefix in: <https://example.org/see/input#> .
30
- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
31
- @prefix out: <https://example.org/see/output#> .
32
-
33
- :test :is out:formula1 .
34
-
35
- out:formula1 {
36
- :joe :is (:good :Cobbler) .
37
- }
38
-
39
- in:metadata {
40
- in:run a see:InputDataset .
41
- in:run see:name "good_cobbler" .
42
- in:run see:title "Good cobbler" .
43
- in:run see:sourceFile "examples/n3/good_cobbler.n3" .
44
- in:run see:sourceSHA256 "7aeddb38a902b2684ba8824e3ec909e24716520433e9fbd31f6a0238cc1bd686" .
45
- in:run see:description "Example from https://shs.hal.science/halshs-04148373/document\nUsing term logic http://intrologic.stanford.edu/chapters/chapter_11.html" .
46
- in:run see:compiler "see.js N3-to-JS compiler" .
47
- in:run see:inputFacts 1 .
48
- in:run see:compiledRules 1 .
49
- in:run see:compiledBackwardRules 0 .
50
- in:run see:compiledFuses 0 .
51
- in:run see:compiledQueries 0 .
52
- }
53
- ```
54
-