eyeling 1.5.11 → 1.5.13

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 (96) hide show
  1. package/README.md +4 -6
  2. package/examples/age.n3 +29 -0
  3. package/examples/backward.n3 +24 -0
  4. package/examples/basic-monadic.n3 +10032 -0
  5. package/examples/cat-koko.n3 +29 -0
  6. package/examples/collect-all-in.n3 +32 -0
  7. package/examples/complex.n3 +142 -0
  8. package/examples/control-system.n3 +77 -0
  9. package/examples/crypto-builtins-tests.n3 +60 -0
  10. package/examples/deep-taxonomy-10.n3 +21 -0
  11. package/examples/deep-taxonomy-100.n3 +111 -0
  12. package/examples/deep-taxonomy-1000.n3 +1011 -0
  13. package/examples/deep-taxonomy-10000.n3 +10011 -0
  14. package/examples/derived-backward-rule-2.n3 +28 -0
  15. package/examples/derived-backward-rule.n3 +32 -0
  16. package/examples/derived-rule.n3 +19 -0
  17. package/examples/dijkstra.n3 +64 -0
  18. package/examples/dog.n3 +21 -0
  19. package/examples/equals.n3 +12 -0
  20. package/examples/existential-rule.n3 +18 -0
  21. package/examples/fibonacci.n3 +34 -0
  22. package/examples/for-all-in.n3 +21 -0
  23. package/examples/french-cities.n3 +32 -0
  24. package/examples/fuse.n3 +13 -0
  25. package/examples/good-cobbler.n3 +18 -0
  26. package/examples/gray-code-counter.n3 +64 -0
  27. package/examples/hanoi.n3 +21 -0
  28. package/examples/liar.n3 +6 -0
  29. package/examples/list-builtins-tests.n3 +84 -0
  30. package/examples/lldm.n3 +133 -0
  31. package/examples/math-builtins-tests.n3 +612 -0
  32. package/examples/monkey.n3 +11 -0
  33. package/examples/output/age.n3 +20 -0
  34. package/examples/output/backward.n3 +18 -0
  35. package/examples/output/basic-monadic.n3 +122 -0
  36. package/examples/output/cat-koko.n3 +125 -0
  37. package/examples/output/collect-all-in.n3 +122 -0
  38. package/examples/output/complex.n3 +57 -0
  39. package/examples/output/control-system.n3 +79 -0
  40. package/examples/output/crypto-builtins-tests.n3 +66 -0
  41. package/examples/output/deep-taxonomy-10.n3 +636 -0
  42. package/examples/output/deep-taxonomy-100.n3 +6036 -0
  43. package/examples/output/deep-taxonomy-1000.n3 +60036 -0
  44. package/examples/output/deep-taxonomy-10000.n3 +600036 -0
  45. package/examples/output/derived-backward-rule-2.n3 +71 -0
  46. package/examples/output/derived-backward-rule.n3 +53 -0
  47. package/examples/output/derived-rule.n3 +52 -0
  48. package/examples/output/dijkstra.n3 +315 -0
  49. package/examples/output/dog.n3 +33 -0
  50. package/examples/output/equals.n3 +18 -0
  51. package/examples/output/existential-rule.n3 +38 -0
  52. package/examples/output/fibonacci.n3 +44 -0
  53. package/examples/output/for-all-in.n3 +30 -0
  54. package/examples/output/french-cities.n3 +507 -0
  55. package/examples/output/fuse.n3 +1 -0
  56. package/examples/output/good-cobbler.n3 +27 -0
  57. package/examples/output/gray-code-counter.n3 +20 -0
  58. package/examples/output/hanoi.n3 +20 -0
  59. package/examples/output/liar.n3 +1 -0
  60. package/examples/output/list-builtins-tests.n3 +148 -0
  61. package/examples/output/lldm.n3 +1000 -0
  62. package/examples/output/math-builtins-tests.n3 +4479 -0
  63. package/examples/output/monkey.n3 +40 -0
  64. package/examples/output/peano.n3 +26 -0
  65. package/examples/output/pi.n3 +20 -0
  66. package/examples/output/polygon.n3 +20 -0
  67. package/examples/output/reordering.n3 +29 -0
  68. package/examples/output/rule-matching.n3 +29 -0
  69. package/examples/output/self-referential.n3 +88 -0
  70. package/examples/output/similar.n3 +18 -0
  71. package/examples/output/skolem.n3 +20 -0
  72. package/examples/output/snaf.n3 +26 -0
  73. package/examples/output/socrates.n3 +24 -0
  74. package/examples/output/string-builtins-tests.n3 +258 -0
  75. package/examples/output/turing.n3 +44 -0
  76. package/examples/output/uri.n3 +46 -0
  77. package/examples/output/witch.n3 +115 -0
  78. package/examples/output/zebra.n3 +114 -0
  79. package/examples/peano.n3 +45 -0
  80. package/examples/pi.n3 +32 -0
  81. package/examples/polygon.n3 +26 -0
  82. package/examples/reordering.n3 +23 -0
  83. package/examples/rule-matching.n3 +15 -0
  84. package/examples/self-referential.n3 +32 -0
  85. package/examples/similar.n3 +28 -0
  86. package/examples/skolem.n3 +15 -0
  87. package/examples/snaf.n3 +18 -0
  88. package/examples/socrates.n3 +19 -0
  89. package/examples/string-builtins-tests.n3 +210 -0
  90. package/examples/test +154 -0
  91. package/examples/turing.n3 +93 -0
  92. package/examples/uri.n3 +17 -0
  93. package/examples/witch.n3 +33 -0
  94. package/examples/zebra.n3 +47 -0
  95. package/package.json +6 -5
  96. package/test/api.test.js +22 -0
@@ -0,0 +1,122 @@
1
+ @prefix : <http://eulersharp.sourceforge.net/2007/07test/graph#> .
2
+
3
+ # ----------------------------------------------------------------------
4
+ # Proof for derived triple:
5
+ # :test :is {
6
+ # :i42 :cycle (:i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75) .
7
+ # } .
8
+ # It holds because the following instance of the rule body is provable:
9
+ # :i42 :cycle (:i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75) .
10
+ # via the schematic forward rule:
11
+ # {
12
+ # :i42 :cycle ?C .
13
+ # } => {
14
+ # :test :is {
15
+ # :i42 :cycle ?C .
16
+ # } .
17
+ # } .
18
+ # with substitution (on rule variables):
19
+ # ?C = (:i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75)
20
+ # Therefore the derived triple above is entailed by the rules and facts.
21
+ # ----------------------------------------------------------------------
22
+
23
+ :test :is {
24
+ :i42 :cycle (:i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75) .
25
+ } .
26
+
27
+ # ----------------------------------------------------------------------
28
+ # Proof for derived triple:
29
+ # :test :is {
30
+ # :i42 :cycle (:i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81) .
31
+ # } .
32
+ # It holds because the following instance of the rule body is provable:
33
+ # :i42 :cycle (:i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81) .
34
+ # via the schematic forward rule:
35
+ # {
36
+ # :i42 :cycle ?C .
37
+ # } => {
38
+ # :test :is {
39
+ # :i42 :cycle ?C .
40
+ # } .
41
+ # } .
42
+ # with substitution (on rule variables):
43
+ # ?C = (:i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81)
44
+ # Therefore the derived triple above is entailed by the rules and facts.
45
+ # ----------------------------------------------------------------------
46
+
47
+ :test :is {
48
+ :i42 :cycle (:i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81 :i81) .
49
+ } .
50
+
51
+ # ----------------------------------------------------------------------
52
+ # Proof for derived triple:
53
+ # :test :is {
54
+ # :i42 :cycle (:i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87) .
55
+ # } .
56
+ # It holds because the following instance of the rule body is provable:
57
+ # :i42 :cycle (:i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87) .
58
+ # via the schematic forward rule:
59
+ # {
60
+ # :i42 :cycle ?C .
61
+ # } => {
62
+ # :test :is {
63
+ # :i42 :cycle ?C .
64
+ # } .
65
+ # } .
66
+ # with substitution (on rule variables):
67
+ # ?C = (:i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87)
68
+ # Therefore the derived triple above is entailed by the rules and facts.
69
+ # ----------------------------------------------------------------------
70
+
71
+ :test :is {
72
+ :i42 :cycle (:i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87 :i87) .
73
+ } .
74
+
75
+ # ----------------------------------------------------------------------
76
+ # Proof for derived triple:
77
+ # :test :is {
78
+ # :i42 :cycle (:i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72) .
79
+ # } .
80
+ # It holds because the following instance of the rule body is provable:
81
+ # :i42 :cycle (:i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72) .
82
+ # via the schematic forward rule:
83
+ # {
84
+ # :i42 :cycle ?C .
85
+ # } => {
86
+ # :test :is {
87
+ # :i42 :cycle ?C .
88
+ # } .
89
+ # } .
90
+ # with substitution (on rule variables):
91
+ # ?C = (:i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72)
92
+ # Therefore the derived triple above is entailed by the rules and facts.
93
+ # ----------------------------------------------------------------------
94
+
95
+ :test :is {
96
+ :i42 :cycle (:i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72 :i75 :i72) .
97
+ } .
98
+
99
+ # ----------------------------------------------------------------------
100
+ # Proof for derived triple:
101
+ # :test :is {
102
+ # :i42 :cycle (:i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9) .
103
+ # } .
104
+ # It holds because the following instance of the rule body is provable:
105
+ # :i42 :cycle (:i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9) .
106
+ # via the schematic forward rule:
107
+ # {
108
+ # :i42 :cycle ?C .
109
+ # } => {
110
+ # :test :is {
111
+ # :i42 :cycle ?C .
112
+ # } .
113
+ # } .
114
+ # with substitution (on rule variables):
115
+ # ?C = (:i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9)
116
+ # Therefore the derived triple above is entailed by the rules and facts.
117
+ # ----------------------------------------------------------------------
118
+
119
+ :test :is {
120
+ :i42 :cycle (:i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9 :i9) .
121
+ } .
122
+
@@ -0,0 +1,125 @@
1
+ @prefix : <https://eyereasoner.github.io/ns#> .
2
+ @prefix log: <http://www.w3.org/2000/10/swap/log#> .
3
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
4
+
5
+ # ----------------------------------------------------------------------
6
+ # Proof for derived triple:
7
+ # {
8
+ # :Koko a :Animal .
9
+ # } => {
10
+ # _:x a :Cat .
11
+ # } .
12
+ # It holds because the following instance of the rule body is provable:
13
+ # :Koko a :Animal .
14
+ # via the schematic forward rule:
15
+ # {
16
+ # :Koko a :Animal .
17
+ # } => {
18
+ # {
19
+ # :Koko a :Animal .
20
+ # } => {
21
+ # _:x a :Cat .
22
+ # } .
23
+ # {
24
+ # :Koko a :Animal .
25
+ # } => {
26
+ # _:x a :BritishShortHair .
27
+ # } .
28
+ # } .
29
+ # Therefore the derived triple above is entailed by the rules and facts.
30
+ # ----------------------------------------------------------------------
31
+
32
+ {
33
+ :Koko a :Animal .
34
+ } => {
35
+ _:x a :Cat .
36
+ } .
37
+
38
+ # ----------------------------------------------------------------------
39
+ # Proof for derived triple:
40
+ # {
41
+ # :Koko a :Animal .
42
+ # } => {
43
+ # _:x a :BritishShortHair .
44
+ # } .
45
+ # It holds because the following instance of the rule body is provable:
46
+ # :Koko a :Animal .
47
+ # via the schematic forward rule:
48
+ # {
49
+ # :Koko a :Animal .
50
+ # } => {
51
+ # {
52
+ # :Koko a :Animal .
53
+ # } => {
54
+ # _:x a :Cat .
55
+ # } .
56
+ # {
57
+ # :Koko a :Animal .
58
+ # } => {
59
+ # _:x a :BritishShortHair .
60
+ # } .
61
+ # } .
62
+ # Therefore the derived triple above is entailed by the rules and facts.
63
+ # ----------------------------------------------------------------------
64
+
65
+ {
66
+ :Koko a :Animal .
67
+ } => {
68
+ _:x a :BritishShortHair .
69
+ } .
70
+
71
+ # ----------------------------------------------------------------------
72
+ # Proof for derived triple:
73
+ # _:sk_0 a :Cat .
74
+ # It holds because the following instance of the rule body is provable:
75
+ # :Koko a :Animal .
76
+ # via the schematic forward rule:
77
+ # {
78
+ # :Koko a :Animal .
79
+ # } => {
80
+ # _:x a :Cat .
81
+ # } .
82
+ # Therefore the derived triple above is entailed by the rules and facts.
83
+ # ----------------------------------------------------------------------
84
+
85
+ _:sk_0 a :Cat .
86
+
87
+ # ----------------------------------------------------------------------
88
+ # Proof for derived triple:
89
+ # _:sk_1 a :BritishShortHair .
90
+ # It holds because the following instance of the rule body is provable:
91
+ # :Koko a :Animal .
92
+ # via the schematic forward rule:
93
+ # {
94
+ # :Koko a :Animal .
95
+ # } => {
96
+ # _:x a :BritishShortHair .
97
+ # } .
98
+ # Therefore the derived triple above is entailed by the rules and facts.
99
+ # ----------------------------------------------------------------------
100
+
101
+ _:sk_1 a :BritishShortHair .
102
+
103
+ # ----------------------------------------------------------------------
104
+ # Proof for derived triple:
105
+ # :test :is true .
106
+ # It holds because the following instance of the rule body is provable:
107
+ # _:sk_0 a :Cat .
108
+ # _:sk_1 a :BritishShortHair .
109
+ # _:sk_0 log:notEqualTo _:sk_1 .
110
+ # via the schematic forward rule:
111
+ # {
112
+ # ?X a :Cat .
113
+ # ?Y a :BritishShortHair .
114
+ # ?X log:notEqualTo ?Y .
115
+ # } => {
116
+ # :test :is true .
117
+ # } .
118
+ # with substitution (on rule variables):
119
+ # ?X = _:sk_0
120
+ # ?Y = _:sk_1
121
+ # Therefore the derived triple above is entailed by the rules and facts.
122
+ # ----------------------------------------------------------------------
123
+
124
+ :test :is true .
125
+
@@ -0,0 +1,122 @@
1
+ @prefix : <http://example.org/> .
2
+
3
+ # ----------------------------------------------------------------------
4
+ # Proof for derived triple:
5
+ # :result1 :is ("Huey" "Dewey" "Louie") .
6
+ # It holds because the following instance of the rule body is provable:
7
+ # (?param {
8
+ # :Let :param ?param .
9
+ # } ("Huey" "Dewey" "Louie")) log:collectAllIn ?_b1 .
10
+ # ((?param) {
11
+ # :Let :param ?param .
12
+ # } (("Huey") ("Dewey") ("Louie"))) log:collectAllIn ?_b1 .
13
+ # (?param {
14
+ # :Let :param ?param .
15
+ # ?param string:lessThan "Louie" .
16
+ # } ("Dewey" "Huey")) log:collectAllIn ?_b1 .
17
+ # via the schematic forward rule:
18
+ # {
19
+ # (?param {
20
+ # :Let :param ?param .
21
+ # } ?allParams) log:collectAllIn ?_b1 .
22
+ # ((?param) {
23
+ # :Let :param ?param .
24
+ # } ?nestedParams) log:collectAllIn ?_b1 .
25
+ # (?param {
26
+ # :Let :param ?param .
27
+ # ?param string:lessThan "Louie" .
28
+ # } ?filteredParams) log:collectAllIn ?_b1 .
29
+ # } => {
30
+ # :result1 :is ?allParams .
31
+ # :result2 :is ?nestedParams .
32
+ # :result3 :is ?filteredParams .
33
+ # } .
34
+ # with substitution (on rule variables):
35
+ # ?allParams = ("Huey" "Dewey" "Louie")
36
+ # ?filteredParams = ("Dewey" "Huey")
37
+ # ?nestedParams = (("Huey") ("Dewey") ("Louie"))
38
+ # Therefore the derived triple above is entailed by the rules and facts.
39
+ # ----------------------------------------------------------------------
40
+
41
+ :result1 :is ("Huey" "Dewey" "Louie") .
42
+
43
+ # ----------------------------------------------------------------------
44
+ # Proof for derived triple:
45
+ # :result2 :is (("Huey") ("Dewey") ("Louie")) .
46
+ # It holds because the following instance of the rule body is provable:
47
+ # (?param {
48
+ # :Let :param ?param .
49
+ # } ("Huey" "Dewey" "Louie")) log:collectAllIn ?_b1 .
50
+ # ((?param) {
51
+ # :Let :param ?param .
52
+ # } (("Huey") ("Dewey") ("Louie"))) log:collectAllIn ?_b1 .
53
+ # (?param {
54
+ # :Let :param ?param .
55
+ # ?param string:lessThan "Louie" .
56
+ # } ("Dewey" "Huey")) log:collectAllIn ?_b1 .
57
+ # via the schematic forward rule:
58
+ # {
59
+ # (?param {
60
+ # :Let :param ?param .
61
+ # } ?allParams) log:collectAllIn ?_b1 .
62
+ # ((?param) {
63
+ # :Let :param ?param .
64
+ # } ?nestedParams) log:collectAllIn ?_b1 .
65
+ # (?param {
66
+ # :Let :param ?param .
67
+ # ?param string:lessThan "Louie" .
68
+ # } ?filteredParams) log:collectAllIn ?_b1 .
69
+ # } => {
70
+ # :result1 :is ?allParams .
71
+ # :result2 :is ?nestedParams .
72
+ # :result3 :is ?filteredParams .
73
+ # } .
74
+ # with substitution (on rule variables):
75
+ # ?allParams = ("Huey" "Dewey" "Louie")
76
+ # ?filteredParams = ("Dewey" "Huey")
77
+ # ?nestedParams = (("Huey") ("Dewey") ("Louie"))
78
+ # Therefore the derived triple above is entailed by the rules and facts.
79
+ # ----------------------------------------------------------------------
80
+
81
+ :result2 :is (("Huey") ("Dewey") ("Louie")) .
82
+
83
+ # ----------------------------------------------------------------------
84
+ # Proof for derived triple:
85
+ # :result3 :is ("Dewey" "Huey") .
86
+ # It holds because the following instance of the rule body is provable:
87
+ # (?param {
88
+ # :Let :param ?param .
89
+ # } ("Huey" "Dewey" "Louie")) log:collectAllIn ?_b1 .
90
+ # ((?param) {
91
+ # :Let :param ?param .
92
+ # } (("Huey") ("Dewey") ("Louie"))) log:collectAllIn ?_b1 .
93
+ # (?param {
94
+ # :Let :param ?param .
95
+ # ?param string:lessThan "Louie" .
96
+ # } ("Dewey" "Huey")) log:collectAllIn ?_b1 .
97
+ # via the schematic forward rule:
98
+ # {
99
+ # (?param {
100
+ # :Let :param ?param .
101
+ # } ?allParams) log:collectAllIn ?_b1 .
102
+ # ((?param) {
103
+ # :Let :param ?param .
104
+ # } ?nestedParams) log:collectAllIn ?_b1 .
105
+ # (?param {
106
+ # :Let :param ?param .
107
+ # ?param string:lessThan "Louie" .
108
+ # } ?filteredParams) log:collectAllIn ?_b1 .
109
+ # } => {
110
+ # :result1 :is ?allParams .
111
+ # :result2 :is ?nestedParams .
112
+ # :result3 :is ?filteredParams .
113
+ # } .
114
+ # with substitution (on rule variables):
115
+ # ?allParams = ("Huey" "Dewey" "Louie")
116
+ # ?filteredParams = ("Dewey" "Huey")
117
+ # ?nestedParams = (("Huey") ("Dewey") ("Louie"))
118
+ # Therefore the derived triple above is entailed by the rules and facts.
119
+ # ----------------------------------------------------------------------
120
+
121
+ :result3 :is ("Dewey" "Huey") .
122
+
@@ -0,0 +1,57 @@
1
+ @prefix : <http://example.org/#> .
2
+ @prefix complex: <https://eyereasoner.github.io/eye/complex#> .
3
+
4
+ # ----------------------------------------------------------------------
5
+ # Proof for derived triple:
6
+ # :test :is {
7
+ # ((-1 0) (0.5 0)) complex:exponentiation (6.123233995736766e-17 1) .
8
+ # ((2.718281828459045 0) (0 3.141592653589793)) complex:exponentiation (-1 1.2246467991473532e-16) .
9
+ # ((0 1) (0 1)) complex:exponentiation (0.20787957635076193 0) .
10
+ # ((2.718281828459045 0) (-1.57079632679 0)) complex:exponentiation (0.20787957635177984 0) .
11
+ # (2 0) complex:asin (1.5707963267948966 1.3169578969248166) .
12
+ # (2 0) complex:acos (0 -1.3169578969248166) .
13
+ # } .
14
+ # It holds because the following instance of the rule body is provable:
15
+ # ((-1 0) (0.5 0)) complex:exponentiation (6.123233995736766e-17 1) .
16
+ # ((2.718281828459045 0) (0 3.141592653589793)) complex:exponentiation (-1 1.2246467991473532e-16) .
17
+ # ((0 1) (0 1)) complex:exponentiation (0.20787957635076193 0) .
18
+ # ((2.718281828459045 0) (-1.57079632679 0)) complex:exponentiation (0.20787957635177984 0) .
19
+ # (2 0) complex:asin (1.5707963267948966 1.3169578969248166) .
20
+ # (2 0) complex:acos (0 -1.3169578969248166) .
21
+ # via the schematic forward rule:
22
+ # {
23
+ # ((-1 0) (0.5 0)) complex:exponentiation ?C1 .
24
+ # ((2.718281828459045 0) (0 3.141592653589793)) complex:exponentiation ?C2 .
25
+ # ((0 1) (0 1)) complex:exponentiation ?C3 .
26
+ # ((2.718281828459045 0) (-1.57079632679 0)) complex:exponentiation ?C4 .
27
+ # (2 0) complex:asin ?C5 .
28
+ # (2 0) complex:acos ?C6 .
29
+ # } => {
30
+ # :test :is {
31
+ # ((-1 0) (0.5 0)) complex:exponentiation ?C1 .
32
+ # ((2.718281828459045 0) (0 3.141592653589793)) complex:exponentiation ?C2 .
33
+ # ((0 1) (0 1)) complex:exponentiation ?C3 .
34
+ # ((2.718281828459045 0) (-1.57079632679 0)) complex:exponentiation ?C4 .
35
+ # (2 0) complex:asin ?C5 .
36
+ # (2 0) complex:acos ?C6 .
37
+ # } .
38
+ # } .
39
+ # with substitution (on rule variables):
40
+ # ?C1 = (6.123233995736766e-17 1)
41
+ # ?C2 = (-1 1.2246467991473532e-16)
42
+ # ?C3 = (0.20787957635076193 0)
43
+ # ?C4 = (0.20787957635177984 0)
44
+ # ?C5 = (1.5707963267948966 1.3169578969248166)
45
+ # ?C6 = (0 -1.3169578969248166)
46
+ # Therefore the derived triple above is entailed by the rules and facts.
47
+ # ----------------------------------------------------------------------
48
+
49
+ :test :is {
50
+ ((-1 0) (0.5 0)) complex:exponentiation (6.123233995736766e-17 1) .
51
+ ((2.718281828459045 0) (0 3.141592653589793)) complex:exponentiation (-1 1.2246467991473532e-16) .
52
+ ((0 1) (0 1)) complex:exponentiation (0.20787957635076193 0) .
53
+ ((2.718281828459045 0) (-1.57079632679 0)) complex:exponentiation (0.20787957635177984 0) .
54
+ (2 0) complex:asin (1.5707963267948966 1.3169578969248166) .
55
+ (2 0) complex:acos (0 -1.3169578969248166) .
56
+ } .
57
+
@@ -0,0 +1,79 @@
1
+ @prefix : <https://eyereasoner.github.io/eye/reasoning/cs#> .
2
+
3
+ # ----------------------------------------------------------------------
4
+ # Proof for derived triple:
5
+ # :actuator1 :control1 39.27346198678276 .
6
+ # It holds because the following instance of the rule body is provable:
7
+ # :input1 :measurement10 2.23606797749979 .
8
+ # :input2 :measurement2 true .
9
+ # :disturbance1 :measurement3 35766 .
10
+ # (2.23606797749979 19.6) math:product 43.82693235899588 .
11
+ # (10 4.553470372213121) math:exponentiation 35766 .
12
+ # (43.82693235899588 4.553470372213121) math:difference 39.27346198678276 .
13
+ # via the schematic forward rule:
14
+ # {
15
+ # :input1 :measurement10 ?M1 .
16
+ # :input2 :measurement2 true .
17
+ # :disturbance1 :measurement3 ?D1 .
18
+ # (?M1 19.6) math:product ?C1 .
19
+ # (10 ?C2) math:exponentiation ?D1 .
20
+ # (?C1 ?C2) math:difference ?C .
21
+ # } => {
22
+ # :actuator1 :control1 ?C .
23
+ # } .
24
+ # with substitution (on rule variables):
25
+ # ?C = 39.27346198678276
26
+ # ?C1 = 43.82693235899588
27
+ # ?C2 = 4.553470372213121
28
+ # ?D1 = 35766
29
+ # ?M1 = 2.23606797749979
30
+ # Therefore the derived triple above is entailed by the rules and facts.
31
+ # ----------------------------------------------------------------------
32
+
33
+ :actuator1 :control1 39.27346198678276 .
34
+
35
+ # ----------------------------------------------------------------------
36
+ # Proof for derived triple:
37
+ # :actuator2 :control1 26.08 .
38
+ # It holds because the following instance of the rule body is provable:
39
+ # :input3 :measurement3 56967 .
40
+ # :state3 :observation3 22 .
41
+ # :output2 :measurement4 24 .
42
+ # :output2 :target2 29 .
43
+ # (29 24) math:difference 5 .
44
+ # (22 24) math:difference -2 .
45
+ # (5.8 5) math:product 29 .
46
+ # (7.3 5) math:quotient 1.46 .
47
+ # (1.46 -2) math:product -2.92 .
48
+ # (29 -2.92) math:sum 26.08 .
49
+ # via the schematic forward rule:
50
+ # {
51
+ # :input3 :measurement3 ?M3 .
52
+ # :state3 :observation3 ?P3 .
53
+ # :output2 :measurement4 ?M4 .
54
+ # :output2 :target2 ?T2 .
55
+ # (?T2 ?M4) math:difference ?E .
56
+ # (?P3 ?M4) math:difference ?D .
57
+ # (5.8 ?E) math:product ?C1 .
58
+ # (7.3 ?E) math:quotient ?N .
59
+ # (?N ?D) math:product ?C2 .
60
+ # (?C1 ?C2) math:sum ?C .
61
+ # } => {
62
+ # :actuator2 :control1 ?C .
63
+ # } .
64
+ # with substitution (on rule variables):
65
+ # ?C = 26.08
66
+ # ?C1 = 29
67
+ # ?C2 = -2.92
68
+ # ?D = -2
69
+ # ?E = 5
70
+ # ?M3 = 56967
71
+ # ?M4 = 24
72
+ # ?N = 1.46
73
+ # ?P3 = 22
74
+ # ?T2 = 29
75
+ # Therefore the derived triple above is entailed by the rules and facts.
76
+ # ----------------------------------------------------------------------
77
+
78
+ :actuator2 :control1 26.08 .
79
+
@@ -0,0 +1,66 @@
1
+ @prefix : <https://eyereasoner.github.io/ns#> .
2
+
3
+ # ----------------------------------------------------------------------
4
+ # Proof for derived triple:
5
+ # :ok_crypto_sha_1 a :Pass .
6
+ # It holds because the following instance of the rule body is provable:
7
+ # "hello world" crypto:sha "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed" .
8
+ # via the schematic forward rule:
9
+ # {
10
+ # "hello world" crypto:sha "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed" .
11
+ # } => {
12
+ # :ok_crypto_sha_1 a :Pass .
13
+ # } .
14
+ # Therefore the derived triple above is entailed by the rules and facts.
15
+ # ----------------------------------------------------------------------
16
+
17
+ :ok_crypto_sha_1 a :Pass .
18
+
19
+ # ----------------------------------------------------------------------
20
+ # Proof for derived triple:
21
+ # :ok_crypto_md5_1 a :Pass .
22
+ # It holds because the following instance of the rule body is provable:
23
+ # "hello world" crypto:md5 "5eb63bbbe01eeed093cb22bb8f5acdc3" .
24
+ # via the schematic forward rule:
25
+ # {
26
+ # "hello world" crypto:md5 "5eb63bbbe01eeed093cb22bb8f5acdc3" .
27
+ # } => {
28
+ # :ok_crypto_md5_1 a :Pass .
29
+ # } .
30
+ # Therefore the derived triple above is entailed by the rules and facts.
31
+ # ----------------------------------------------------------------------
32
+
33
+ :ok_crypto_md5_1 a :Pass .
34
+
35
+ # ----------------------------------------------------------------------
36
+ # Proof for derived triple:
37
+ # :ok_crypto_sha256_1 a :Pass .
38
+ # It holds because the following instance of the rule body is provable:
39
+ # "hello world" crypto:sha256 "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9" .
40
+ # via the schematic forward rule:
41
+ # {
42
+ # "hello world" crypto:sha256 "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9" .
43
+ # } => {
44
+ # :ok_crypto_sha256_1 a :Pass .
45
+ # } .
46
+ # Therefore the derived triple above is entailed by the rules and facts.
47
+ # ----------------------------------------------------------------------
48
+
49
+ :ok_crypto_sha256_1 a :Pass .
50
+
51
+ # ----------------------------------------------------------------------
52
+ # Proof for derived triple:
53
+ # :ok_crypto_sha512_1 a :Pass .
54
+ # It holds because the following instance of the rule body is provable:
55
+ # "hello world" crypto:sha512 "309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f" .
56
+ # via the schematic forward rule:
57
+ # {
58
+ # "hello world" crypto:sha512 "309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f" .
59
+ # } => {
60
+ # :ok_crypto_sha512_1 a :Pass .
61
+ # } .
62
+ # Therefore the derived triple above is entailed by the rules and facts.
63
+ # ----------------------------------------------------------------------
64
+
65
+ :ok_crypto_sha512_1 a :Pass .
66
+