eyeling 1.22.13 → 1.22.15
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.
- package/HANDBOOK.md +2 -0
- package/dist/browser/eyeling.browser.js +232 -180
- package/examples/control-system-becoming.n3 +203 -0
- package/examples/developmental-genetics-becoming.n3 +204 -0
- package/examples/engineering-becoming.n3 +167 -0
- package/examples/output/control-system-becoming.n3 +35 -0
- package/examples/output/developmental-genetics-becoming.n3 +32 -0
- package/examples/output/engineering-becoming.n3 +26 -0
- package/examples/output/whitehead-becoming.n3 +42 -0
- package/examples/whitehead-becoming.n3 +155 -0
- package/eyeling.js +240 -184
- package/lib/builtins.js +164 -151
- package/lib/engine.js +67 -29
- package/package.json +1 -1
- package/test/api.test.js +28 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# ================================================================
|
|
2
|
+
# This program models becoming as a relational event. Each actual
|
|
3
|
+
# occasion takes up a past, inherits what has been realized,
|
|
4
|
+
# responds to a lure of possible form, and gathers these into a
|
|
5
|
+
# new satisfaction. What becomes is never wholly lost: once
|
|
6
|
+
# achieved, it stands available for future prehension. The logic
|
|
7
|
+
# below is therefore not a logic of static things, but of process,
|
|
8
|
+
# inheritance, and renewed concretion.
|
|
9
|
+
# =========================================#======================
|
|
10
|
+
|
|
11
|
+
@prefix : <http://example.org/whitehead#>.
|
|
12
|
+
|
|
13
|
+
# ----------
|
|
14
|
+
# CATEGORIES
|
|
15
|
+
# ----------
|
|
16
|
+
|
|
17
|
+
:ActualOccasion a :Category.
|
|
18
|
+
:PurePotential a :Category.
|
|
19
|
+
:SubjectiveAim a :Category.
|
|
20
|
+
|
|
21
|
+
# ---------------
|
|
22
|
+
# PURE POTENTIALS
|
|
23
|
+
# ---------------
|
|
24
|
+
|
|
25
|
+
:red a :PurePotential.
|
|
26
|
+
:warm a :PurePotential.
|
|
27
|
+
:bright a :PurePotential.
|
|
28
|
+
:dark a :PurePotential.
|
|
29
|
+
|
|
30
|
+
# -------------------------------
|
|
31
|
+
# SUBJECTIVE AIMS AND THEIR LURES
|
|
32
|
+
# -------------------------------
|
|
33
|
+
|
|
34
|
+
:intensity a :SubjectiveAim.
|
|
35
|
+
:contrast a :SubjectiveAim.
|
|
36
|
+
|
|
37
|
+
:intensity :lures :bright.
|
|
38
|
+
:contrast :lures :dark.
|
|
39
|
+
|
|
40
|
+
# -------------
|
|
41
|
+
# INITIAL WORLD
|
|
42
|
+
# -------------
|
|
43
|
+
|
|
44
|
+
:o1 a :ActualOccasion;
|
|
45
|
+
:time 1;
|
|
46
|
+
:realizes :red, :warm;
|
|
47
|
+
:achieves :satisfaction.
|
|
48
|
+
|
|
49
|
+
:o2 a :ActualOccasion;
|
|
50
|
+
:time 2;
|
|
51
|
+
:prehends :o1;
|
|
52
|
+
:subjectiveAim :intensity.
|
|
53
|
+
|
|
54
|
+
:o3 a :ActualOccasion;
|
|
55
|
+
:time 3;
|
|
56
|
+
:prehends :o2;
|
|
57
|
+
:subjectiveAim :contrast.
|
|
58
|
+
|
|
59
|
+
# ---------------------------
|
|
60
|
+
# RULE 1
|
|
61
|
+
# PREHENSION AS BECOMING-FROM
|
|
62
|
+
# ---------------------------
|
|
63
|
+
|
|
64
|
+
{
|
|
65
|
+
?later :prehends ?earlier.
|
|
66
|
+
}
|
|
67
|
+
=>
|
|
68
|
+
{
|
|
69
|
+
?later :becomesFrom ?earlier.
|
|
70
|
+
}.
|
|
71
|
+
|
|
72
|
+
# -----------------------------
|
|
73
|
+
# RULE 2
|
|
74
|
+
# INHERITANCE OF REALIZED FORMS
|
|
75
|
+
# -----------------------------
|
|
76
|
+
|
|
77
|
+
{
|
|
78
|
+
?later :prehends ?earlier.
|
|
79
|
+
?earlier :realizes ?form.
|
|
80
|
+
}
|
|
81
|
+
=>
|
|
82
|
+
{
|
|
83
|
+
?later :inherits ?form.
|
|
84
|
+
}.
|
|
85
|
+
|
|
86
|
+
# ---------------------------
|
|
87
|
+
# RULE 3
|
|
88
|
+
# SUBJECTIVE AIM OPENS A LURE
|
|
89
|
+
# ---------------------------
|
|
90
|
+
|
|
91
|
+
{
|
|
92
|
+
?o :subjectiveAim ?aim.
|
|
93
|
+
?aim :lures ?form.
|
|
94
|
+
}
|
|
95
|
+
=>
|
|
96
|
+
{
|
|
97
|
+
?o :mayRealize ?form.
|
|
98
|
+
}.
|
|
99
|
+
|
|
100
|
+
# --------------------------------------------
|
|
101
|
+
# RULE 4
|
|
102
|
+
# CONCRESCENCE INTEGRATES PAST AND POSSIBILITY
|
|
103
|
+
# --------------------------------------------
|
|
104
|
+
|
|
105
|
+
{
|
|
106
|
+
?o :inherits ?pastForm.
|
|
107
|
+
?o :mayRealize ?novelForm.
|
|
108
|
+
}
|
|
109
|
+
=>
|
|
110
|
+
{
|
|
111
|
+
?o :integrates ?pastForm, ?novelForm;
|
|
112
|
+
:achieves :satisfaction.
|
|
113
|
+
}.
|
|
114
|
+
|
|
115
|
+
# ---------------------------------
|
|
116
|
+
# RULE 5
|
|
117
|
+
# SATISFACTION MAKES FORMS REALIZED
|
|
118
|
+
# ---------------------------------
|
|
119
|
+
|
|
120
|
+
{
|
|
121
|
+
?o :integrates ?form.
|
|
122
|
+
?o :achieves :satisfaction.
|
|
123
|
+
}
|
|
124
|
+
=>
|
|
125
|
+
{
|
|
126
|
+
?o :realizes ?form.
|
|
127
|
+
}.
|
|
128
|
+
|
|
129
|
+
# -----------------------------
|
|
130
|
+
# RULE 6
|
|
131
|
+
# INGRESSION OF PURE POTENTIALS
|
|
132
|
+
# -----------------------------
|
|
133
|
+
|
|
134
|
+
{
|
|
135
|
+
?o :realizes ?form.
|
|
136
|
+
?form a :PurePotential.
|
|
137
|
+
}
|
|
138
|
+
=>
|
|
139
|
+
{
|
|
140
|
+
?o :ingresses ?form.
|
|
141
|
+
}.
|
|
142
|
+
|
|
143
|
+
# ---------------------
|
|
144
|
+
# RULE 7
|
|
145
|
+
# OBJECTIVELY AVAILABLE
|
|
146
|
+
# ---------------------
|
|
147
|
+
|
|
148
|
+
{
|
|
149
|
+
?o :achieves :satisfaction.
|
|
150
|
+
}
|
|
151
|
+
=>
|
|
152
|
+
{
|
|
153
|
+
?o :status :objectivelyAvailable;
|
|
154
|
+
:availableForFuturePrehension :yes.
|
|
155
|
+
}.
|