Delete data file
Browse files- depth_20_size_25_seed_2/facts.pl +0 -620
depth_20_size_25_seed_2/facts.pl
DELETED
@@ -1,620 +0,0 @@
|
|
1 |
-
|
2 |
-
:- dynamic term_expansion/2.
|
3 |
-
:- multifile term_expansion/2.
|
4 |
-
|
5 |
-
|
6 |
-
great_grandfather(X, Y) :-
|
7 |
-
great_grandparent(X, Y),
|
8 |
-
male(Y).
|
9 |
-
|
10 |
-
great_grandchild(X, Y) :-
|
11 |
-
great_grandparent(Y, X).
|
12 |
-
|
13 |
-
great_grandparent(X, Y) :-
|
14 |
-
grandparent(X, Z),
|
15 |
-
parent(Z, Y).
|
16 |
-
|
17 |
-
:- dynamic library_directory/1.
|
18 |
-
:- multifile library_directory/1.
|
19 |
-
|
20 |
-
|
21 |
-
great_grandmother(X, Y) :-
|
22 |
-
great_grandparent(X, Y),
|
23 |
-
female(Y).
|
24 |
-
|
25 |
-
:- dynamic goal_expansion/4.
|
26 |
-
:- multifile goal_expansion/4.
|
27 |
-
|
28 |
-
|
29 |
-
:- dynamic hobby/2.
|
30 |
-
|
31 |
-
hobby("Adolph Barbee", "birdwatching").
|
32 |
-
hobby("Allie Barbee", "geography").
|
33 |
-
hobby("Andres Barbee", "research").
|
34 |
-
hobby("Courtney Parkinson", "audiophile").
|
35 |
-
hobby("Dollie Barbee", "knowledge/word games").
|
36 |
-
hobby("Elicia Barbee", "geocaching").
|
37 |
-
hobby("Karolyn Lance", "croquet").
|
38 |
-
hobby("Kelley Barbee", "badminton").
|
39 |
-
hobby("Kenny Barbee", "fossil hunting").
|
40 |
-
hobby("Konstantin Barbee", "rail transport modelling").
|
41 |
-
hobby("Krystle Barbee", "jujitsu").
|
42 |
-
hobby("Kurt Parkinson", "beauty pageants").
|
43 |
-
hobby("Leonila Parkinson", "softball").
|
44 |
-
hobby("Lyndon Barbee", "golfing").
|
45 |
-
hobby("Nettie Barbee", "inline skating").
|
46 |
-
hobby("Rocco Lance", "radio-controlled model collecting").
|
47 |
-
hobby("Rudy Barbee", "videography").
|
48 |
-
hobby("Twyla Parkinson", "butterfly watching").
|
49 |
-
hobby("Tyrone Parkinson", "learning").
|
50 |
-
hobby("Wallace Ragland", "business").
|
51 |
-
hobby("Walter Hope", "curling").
|
52 |
-
hobby("Wanita Hope", "magnet fishing").
|
53 |
-
hobby("Willie Parkinson", "pickleball").
|
54 |
-
hobby("Windy Parkinson", "shuffleboard").
|
55 |
-
hobby("Yasmin Ragland", "geocaching").
|
56 |
-
|
57 |
-
granddaughter(X, Y) :-
|
58 |
-
grandchild(X, Y),
|
59 |
-
female(Y).
|
60 |
-
|
61 |
-
grandson(X, Y) :-
|
62 |
-
grandchild(X, Y),
|
63 |
-
male(Y).
|
64 |
-
|
65 |
-
:- dynamic job/2.
|
66 |
-
|
67 |
-
job("Adolph Barbee", "police officer").
|
68 |
-
job("Allie Barbee", "community education officer").
|
69 |
-
job("Andres Barbee", "herbalist").
|
70 |
-
job("Courtney Parkinson", "podiatrist").
|
71 |
-
job("Dollie Barbee", "prison officer").
|
72 |
-
job("Elicia Barbee", "animal technologist").
|
73 |
-
job("Karolyn Lance", "leisure centre manager").
|
74 |
-
job("Kelley Barbee", "speech and language therapist").
|
75 |
-
job("Kenny Barbee", "dietitian").
|
76 |
-
job("Konstantin Barbee", "amenity horticulturist").
|
77 |
-
job("Krystle Barbee", "theatre stage manager").
|
78 |
-
job("Kurt Parkinson", "hydrologist").
|
79 |
-
job("Leonila Parkinson", "learning mentor").
|
80 |
-
job("Lyndon Barbee", "location manager").
|
81 |
-
job("Nettie Barbee", "chartered management accountant").
|
82 |
-
job("Rocco Lance", "plant breeder").
|
83 |
-
job("Rudy Barbee", "advertising account executive").
|
84 |
-
job("Twyla Parkinson", "tourism officer").
|
85 |
-
job("Tyrone Parkinson", "civil service fast streamer").
|
86 |
-
job("Wallace Ragland", "designer").
|
87 |
-
job("Walter Hope", "development worker").
|
88 |
-
job("Wanita Hope", "tourist information centre manager").
|
89 |
-
job("Willie Parkinson", "community education officer").
|
90 |
-
job("Windy Parkinson", "farm manager").
|
91 |
-
job("Yasmin Ragland", "doctor").
|
92 |
-
|
93 |
-
great_uncle(X, Y) :-
|
94 |
-
grandparent(X, A),
|
95 |
-
brother(A, Y).
|
96 |
-
|
97 |
-
:- dynamic save_all_clauses_to_file/1.
|
98 |
-
|
99 |
-
save_all_clauses_to_file(A) :-
|
100 |
-
open(A, write, B),
|
101 |
-
set_output(B),
|
102 |
-
listing,
|
103 |
-
close(B).
|
104 |
-
|
105 |
-
:- dynamic term_expansion/4.
|
106 |
-
:- multifile term_expansion/4.
|
107 |
-
|
108 |
-
|
109 |
-
grandchild(X, Y) :-
|
110 |
-
grandparent(Y, X).
|
111 |
-
|
112 |
-
:- dynamic dob/2.
|
113 |
-
|
114 |
-
dob("Adolph Barbee", "0980-08-29").
|
115 |
-
dob("Allie Barbee", "0928-07-23").
|
116 |
-
dob("Andres Barbee", "0977-09-16").
|
117 |
-
dob("Courtney Parkinson", "0954-06-24").
|
118 |
-
dob("Dollie Barbee", "0975-03-08").
|
119 |
-
dob("Elicia Barbee", "1040-03-27").
|
120 |
-
dob("Karolyn Lance", "0924-11-06").
|
121 |
-
dob("Kelley Barbee", "0952-08-19").
|
122 |
-
dob("Kenny Barbee", "0953-06-18").
|
123 |
-
dob("Konstantin Barbee", "1007-05-04").
|
124 |
-
dob("Krystle Barbee", "1008-12-24").
|
125 |
-
dob("Kurt Parkinson", "0924-12-27").
|
126 |
-
dob("Leonila Parkinson", "0924-09-18").
|
127 |
-
dob("Lyndon Barbee", "1036-01-09").
|
128 |
-
dob("Nettie Barbee", "1032-05-15").
|
129 |
-
dob("Rocco Lance", "0924-02-03").
|
130 |
-
dob("Rudy Barbee", "0927-04-02").
|
131 |
-
dob("Twyla Parkinson", "0949-02-16").
|
132 |
-
dob("Tyrone Parkinson", "0982-10-06").
|
133 |
-
dob("Wallace Ragland", "0951-01-09").
|
134 |
-
dob("Walter Hope", "0980-04-11").
|
135 |
-
dob("Wanita Hope", "0977-12-27").
|
136 |
-
dob("Willie Parkinson", "0954-09-22").
|
137 |
-
dob("Windy Parkinson", "0978-10-20").
|
138 |
-
dob("Yasmin Ragland", "0952-10-08").
|
139 |
-
|
140 |
-
:- dynamic file_search_path/2.
|
141 |
-
:- multifile file_search_path/2.
|
142 |
-
|
143 |
-
file_search_path(library, Dir) :-
|
144 |
-
library_directory(Dir).
|
145 |
-
file_search_path(swi, A) :-
|
146 |
-
system:current_prolog_flag(home, A).
|
147 |
-
file_search_path(swi, A) :-
|
148 |
-
system:current_prolog_flag(shared_home, A).
|
149 |
-
file_search_path(library, app_config(lib)).
|
150 |
-
file_search_path(library, swi(library)).
|
151 |
-
file_search_path(library, swi(library/clp)).
|
152 |
-
file_search_path(library, A) :-
|
153 |
-
system:'$ext_library_directory'(A).
|
154 |
-
file_search_path(foreign, swi(A)) :-
|
155 |
-
system:
|
156 |
-
( current_prolog_flag(apple_universal_binary, true),
|
157 |
-
A='lib/fat-darwin'
|
158 |
-
).
|
159 |
-
file_search_path(path, A) :-
|
160 |
-
system:
|
161 |
-
( getenv('PATH', B),
|
162 |
-
current_prolog_flag(path_sep, C),
|
163 |
-
atomic_list_concat(D, C, B),
|
164 |
-
'$member'(A, D)
|
165 |
-
).
|
166 |
-
file_search_path(user_app_data, A) :-
|
167 |
-
system:'$xdg_prolog_directory'(data, A).
|
168 |
-
file_search_path(common_app_data, A) :-
|
169 |
-
system:'$xdg_prolog_directory'(common_data, A).
|
170 |
-
file_search_path(user_app_config, A) :-
|
171 |
-
system:'$xdg_prolog_directory'(config, A).
|
172 |
-
file_search_path(common_app_config, A) :-
|
173 |
-
system:'$xdg_prolog_directory'(common_config, A).
|
174 |
-
file_search_path(app_data, user_app_data('.')).
|
175 |
-
file_search_path(app_data, common_app_data('.')).
|
176 |
-
file_search_path(app_config, user_app_config('.')).
|
177 |
-
file_search_path(app_config, common_app_config('.')).
|
178 |
-
file_search_path(app_preferences, user_app_config('.')).
|
179 |
-
file_search_path(user_profile, app_preferences('.')).
|
180 |
-
file_search_path(app, swi(app)).
|
181 |
-
file_search_path(app, app_data(app)).
|
182 |
-
file_search_path(autoload, swi(library)).
|
183 |
-
file_search_path(autoload, pce(prolog/lib)).
|
184 |
-
file_search_path(autoload, app_config(lib)).
|
185 |
-
file_search_path(autoload, Dir) :-
|
186 |
-
'$autoload':'$ext_library_directory'(Dir).
|
187 |
-
file_search_path(pack, app_data(pack)).
|
188 |
-
file_search_path(library, PackLib) :-
|
189 |
-
'$pack':pack_dir(_Name, prolog, PackLib).
|
190 |
-
file_search_path(foreign, PackLib) :-
|
191 |
-
'$pack':pack_dir(_Name, foreign, PackLib).
|
192 |
-
file_search_path(app, AppDir) :-
|
193 |
-
'$pack':pack_dir(_Name, app, AppDir).
|
194 |
-
|
195 |
-
:- multifile prolog_list_goal/1.
|
196 |
-
|
197 |
-
|
198 |
-
:- dynamic type/2.
|
199 |
-
|
200 |
-
type("Adolph Barbee", person).
|
201 |
-
type("Allie Barbee", person).
|
202 |
-
type("Andres Barbee", person).
|
203 |
-
type("Courtney Parkinson", person).
|
204 |
-
type("Dollie Barbee", person).
|
205 |
-
type("Elicia Barbee", person).
|
206 |
-
type("Karolyn Lance", person).
|
207 |
-
type("Kelley Barbee", person).
|
208 |
-
type("Kenny Barbee", person).
|
209 |
-
type("Konstantin Barbee", person).
|
210 |
-
type("Krystle Barbee", person).
|
211 |
-
type("Kurt Parkinson", person).
|
212 |
-
type("Leonila Parkinson", person).
|
213 |
-
type("Lyndon Barbee", person).
|
214 |
-
type("Nettie Barbee", person).
|
215 |
-
type("Rocco Lance", person).
|
216 |
-
type("Rudy Barbee", person).
|
217 |
-
type("Twyla Parkinson", person).
|
218 |
-
type("Tyrone Parkinson", person).
|
219 |
-
type("Wallace Ragland", person).
|
220 |
-
type("Walter Hope", person).
|
221 |
-
type("Wanita Hope", person).
|
222 |
-
type("Willie Parkinson", person).
|
223 |
-
type("Windy Parkinson", person).
|
224 |
-
type("Yasmin Ragland", person).
|
225 |
-
|
226 |
-
grandfather(X, Y) :-
|
227 |
-
grandparent(X, Y),
|
228 |
-
male(Y).
|
229 |
-
|
230 |
-
:- dynamic expand_query/4.
|
231 |
-
:- multifile expand_query/4.
|
232 |
-
|
233 |
-
|
234 |
-
:- dynamic attribute/1.
|
235 |
-
|
236 |
-
attribute("police officer").
|
237 |
-
attribute("birdwatching").
|
238 |
-
attribute("community education officer").
|
239 |
-
attribute("geography").
|
240 |
-
attribute("herbalist").
|
241 |
-
attribute("research").
|
242 |
-
attribute("podiatrist").
|
243 |
-
attribute("audiophile").
|
244 |
-
attribute("prison officer").
|
245 |
-
attribute("knowledge/word games").
|
246 |
-
attribute("animal technologist").
|
247 |
-
attribute("geocaching").
|
248 |
-
attribute("leisure centre manager").
|
249 |
-
attribute("croquet").
|
250 |
-
attribute("speech and language therapist").
|
251 |
-
attribute("badminton").
|
252 |
-
attribute("dietitian").
|
253 |
-
attribute("fossil hunting").
|
254 |
-
attribute("amenity horticulturist").
|
255 |
-
attribute("rail transport modelling").
|
256 |
-
attribute("theatre stage manager").
|
257 |
-
attribute("jujitsu").
|
258 |
-
attribute("hydrologist").
|
259 |
-
attribute("beauty pageants").
|
260 |
-
attribute("learning mentor").
|
261 |
-
attribute("softball").
|
262 |
-
attribute("location manager").
|
263 |
-
attribute("golfing").
|
264 |
-
attribute("chartered management accountant").
|
265 |
-
attribute("inline skating").
|
266 |
-
attribute("plant breeder").
|
267 |
-
attribute("radio-controlled model collecting").
|
268 |
-
attribute("advertising account executive").
|
269 |
-
attribute("videography").
|
270 |
-
attribute("tourism officer").
|
271 |
-
attribute("butterfly watching").
|
272 |
-
attribute("civil service fast streamer").
|
273 |
-
attribute("learning").
|
274 |
-
attribute("designer").
|
275 |
-
attribute("business").
|
276 |
-
attribute("development worker").
|
277 |
-
attribute("curling").
|
278 |
-
attribute("tourist information centre manager").
|
279 |
-
attribute("magnet fishing").
|
280 |
-
attribute("community education officer").
|
281 |
-
attribute("pickleball").
|
282 |
-
attribute("farm manager").
|
283 |
-
attribute("shuffleboard").
|
284 |
-
attribute("doctor").
|
285 |
-
attribute("geocaching").
|
286 |
-
|
287 |
-
great_aunt(X, Y) :-
|
288 |
-
grandparent(X, A),
|
289 |
-
sister(A, Y).
|
290 |
-
|
291 |
-
grandparent(X, Y) :-
|
292 |
-
parent(X, Z),
|
293 |
-
parent(Z, Y).
|
294 |
-
|
295 |
-
grandmother(X, Y) :-
|
296 |
-
grandparent(X, Y),
|
297 |
-
female(Y).
|
298 |
-
|
299 |
-
:- dynamic friend_/2.
|
300 |
-
|
301 |
-
friend_("Adolph Barbee", "Andres Barbee").
|
302 |
-
friend_("Adolph Barbee", "Kenny Barbee").
|
303 |
-
friend_("Adolph Barbee", "Leonila Parkinson").
|
304 |
-
friend_("Adolph Barbee", "Wanita Hope").
|
305 |
-
friend_("Allie Barbee", "Karolyn Lance").
|
306 |
-
friend_("Allie Barbee", "Konstantin Barbee").
|
307 |
-
friend_("Allie Barbee", "Walter Hope").
|
308 |
-
friend_("Allie Barbee", "Willie Parkinson").
|
309 |
-
friend_("Andres Barbee", "Willie Parkinson").
|
310 |
-
friend_("Andres Barbee", "Windy Parkinson").
|
311 |
-
friend_("Courtney Parkinson", "Kenny Barbee").
|
312 |
-
friend_("Courtney Parkinson", "Lyndon Barbee").
|
313 |
-
friend_("Elicia Barbee", "Twyla Parkinson").
|
314 |
-
friend_("Elicia Barbee", "Walter Hope").
|
315 |
-
friend_("Karolyn Lance", "Konstantin Barbee").
|
316 |
-
friend_("Karolyn Lance", "Krystle Barbee").
|
317 |
-
friend_("Karolyn Lance", "Wanita Hope").
|
318 |
-
friend_("Kelley Barbee", "Nettie Barbee").
|
319 |
-
friend_("Kelley Barbee", "Tyrone Parkinson").
|
320 |
-
friend_("Kelley Barbee", "Walter Hope").
|
321 |
-
friend_("Kenny Barbee", "Lyndon Barbee").
|
322 |
-
friend_("Kenny Barbee", "Nettie Barbee").
|
323 |
-
friend_("Kenny Barbee", "Tyrone Parkinson").
|
324 |
-
friend_("Konstantin Barbee", "Kurt Parkinson").
|
325 |
-
friend_("Konstantin Barbee", "Tyrone Parkinson").
|
326 |
-
friend_("Konstantin Barbee", "Wanita Hope").
|
327 |
-
friend_("Krystle Barbee", "Kurt Parkinson").
|
328 |
-
friend_("Krystle Barbee", "Rocco Lance").
|
329 |
-
friend_("Kurt Parkinson", "Windy Parkinson").
|
330 |
-
friend_("Leonila Parkinson", "Walter Hope").
|
331 |
-
friend_("Leonila Parkinson", "Wanita Hope").
|
332 |
-
friend_("Lyndon Barbee", "Nettie Barbee").
|
333 |
-
friend_("Lyndon Barbee", "Rocco Lance").
|
334 |
-
friend_("Lyndon Barbee", "Walter Hope").
|
335 |
-
friend_("Lyndon Barbee", "Windy Parkinson").
|
336 |
-
friend_("Nettie Barbee", "Wanita Hope").
|
337 |
-
friend_("Rocco Lance", "Walter Hope").
|
338 |
-
friend_("Rudy Barbee", "Tyrone Parkinson").
|
339 |
-
friend_("Twyla Parkinson", "Willie Parkinson").
|
340 |
-
friend_("Wallace Ragland", "Wanita Hope").
|
341 |
-
|
342 |
-
friend(X, Y) :-
|
343 |
-
friend_(X, Y).
|
344 |
-
friend(X, Y) :-
|
345 |
-
friend_(Y, X).
|
346 |
-
|
347 |
-
niece(X, Y) :-
|
348 |
-
sibling(X, A),
|
349 |
-
daughter(A, Y).
|
350 |
-
|
351 |
-
nephew(X, Y) :-
|
352 |
-
sibling(X, A),
|
353 |
-
son(A, Y).
|
354 |
-
|
355 |
-
brother_in_law(X, Y) :-
|
356 |
-
married(X, A),
|
357 |
-
brother(A, Y).
|
358 |
-
|
359 |
-
:- multifile message_property/2.
|
360 |
-
|
361 |
-
|
362 |
-
sister_in_law(X, Y) :-
|
363 |
-
married(X, A),
|
364 |
-
sister(A, Y).
|
365 |
-
|
366 |
-
wife(X, Y) :-
|
367 |
-
married(X, Y),
|
368 |
-
female(Y).
|
369 |
-
|
370 |
-
husband(X, Y) :-
|
371 |
-
married(X, Y),
|
372 |
-
male(Y).
|
373 |
-
|
374 |
-
daughter_in_law(X, Y) :-
|
375 |
-
child(X, A),
|
376 |
-
wife(A, Y).
|
377 |
-
|
378 |
-
son_in_law(X, Y) :-
|
379 |
-
child(X, A),
|
380 |
-
husband(A, Y).
|
381 |
-
|
382 |
-
son(X, Y) :-
|
383 |
-
child(X, Y),
|
384 |
-
male(Y).
|
385 |
-
|
386 |
-
female(X) :-
|
387 |
-
gender(X, "female").
|
388 |
-
|
389 |
-
daughter(X, Y) :-
|
390 |
-
child(X, Y),
|
391 |
-
female(Y).
|
392 |
-
|
393 |
-
father_in_law(X, Y) :-
|
394 |
-
married(X, A),
|
395 |
-
father(A, Y).
|
396 |
-
|
397 |
-
mother_in_law(X, Y) :-
|
398 |
-
married(X, A),
|
399 |
-
mother(A, Y).
|
400 |
-
|
401 |
-
father(X, Y) :-
|
402 |
-
parent(X, Y),
|
403 |
-
male(Y).
|
404 |
-
|
405 |
-
:- multifile prolog_predicate_name/2.
|
406 |
-
|
407 |
-
|
408 |
-
child(X, Y) :-
|
409 |
-
parent(Y, X).
|
410 |
-
|
411 |
-
male_first_cousin_once_removed(X, Y) :-
|
412 |
-
cousin(X, A),
|
413 |
-
son(A, Y),
|
414 |
-
X\=Y.
|
415 |
-
|
416 |
-
:- multifile prolog_clause_name/2.
|
417 |
-
|
418 |
-
|
419 |
-
:- dynamic expand_answer/2.
|
420 |
-
:- multifile expand_answer/2.
|
421 |
-
|
422 |
-
|
423 |
-
:- dynamic exception/3.
|
424 |
-
:- multifile exception/3.
|
425 |
-
|
426 |
-
|
427 |
-
female_first_cousin_once_removed(X, Y) :-
|
428 |
-
cousin(X, A),
|
429 |
-
daughter(A, Y),
|
430 |
-
X\=Y.
|
431 |
-
|
432 |
-
brother(X, Y) :-
|
433 |
-
sibling(X, Y),
|
434 |
-
male(Y).
|
435 |
-
|
436 |
-
mother(X, Y) :-
|
437 |
-
parent(X, Y),
|
438 |
-
female(Y).
|
439 |
-
|
440 |
-
male_second_cousin(X, Y) :-
|
441 |
-
parent(X, A),
|
442 |
-
parent(Y, B),
|
443 |
-
cousin(A, B),
|
444 |
-
male(Y),
|
445 |
-
X\=Y.
|
446 |
-
|
447 |
-
:- dynamic message_hook/3.
|
448 |
-
:- multifile message_hook/3.
|
449 |
-
|
450 |
-
|
451 |
-
female_second_cousin(X, Y) :-
|
452 |
-
parent(X, A),
|
453 |
-
parent(Y, B),
|
454 |
-
cousin(A, B),
|
455 |
-
female(Y),
|
456 |
-
X\=Y.
|
457 |
-
|
458 |
-
married(X, Y) :-
|
459 |
-
parent(Child, X),
|
460 |
-
parent(Child, Y),
|
461 |
-
X\=Y.
|
462 |
-
|
463 |
-
male(X) :-
|
464 |
-
gender(X, "male").
|
465 |
-
|
466 |
-
:- dynamic prolog_file_type/2.
|
467 |
-
:- multifile prolog_file_type/2.
|
468 |
-
|
469 |
-
prolog_file_type(pl, prolog).
|
470 |
-
prolog_file_type(prolog, prolog).
|
471 |
-
prolog_file_type(qlf, prolog).
|
472 |
-
prolog_file_type(qlf, qlf).
|
473 |
-
prolog_file_type(A, executable) :-
|
474 |
-
system:current_prolog_flag(shared_object_extension, A).
|
475 |
-
prolog_file_type(dylib, executable) :-
|
476 |
-
system:current_prolog_flag(apple, true).
|
477 |
-
|
478 |
-
sister(X, Y) :-
|
479 |
-
sibling(X, Y),
|
480 |
-
female(Y).
|
481 |
-
|
482 |
-
male_cousin(X, Y) :-
|
483 |
-
cousin(X, Y),
|
484 |
-
male(Y).
|
485 |
-
|
486 |
-
:- dynamic nonbinary/1.
|
487 |
-
|
488 |
-
nonbinary(X) :-
|
489 |
-
gender(X, "nonbinary").
|
490 |
-
|
491 |
-
female_cousin(X, Y) :-
|
492 |
-
cousin(X, Y),
|
493 |
-
female(Y).
|
494 |
-
|
495 |
-
sibling(X, Y) :-
|
496 |
-
parent(X, A),
|
497 |
-
parent(Y, A),
|
498 |
-
X\=Y.
|
499 |
-
|
500 |
-
:- dynamic portray/1.
|
501 |
-
:- multifile portray/1.
|
502 |
-
|
503 |
-
|
504 |
-
:- dynamic prolog_load_file/2.
|
505 |
-
:- multifile prolog_load_file/2.
|
506 |
-
|
507 |
-
|
508 |
-
:- dynamic goal_expansion/2.
|
509 |
-
:- multifile goal_expansion/2.
|
510 |
-
|
511 |
-
|
512 |
-
:- dynamic parent/2.
|
513 |
-
|
514 |
-
parent("Adolph Barbee", "Kelley Barbee").
|
515 |
-
parent("Adolph Barbee", "Kenny Barbee").
|
516 |
-
parent("Andres Barbee", "Kelley Barbee").
|
517 |
-
parent("Andres Barbee", "Kenny Barbee").
|
518 |
-
parent("Courtney Parkinson", "Karolyn Lance").
|
519 |
-
parent("Courtney Parkinson", "Rocco Lance").
|
520 |
-
parent("Dollie Barbee", "Wallace Ragland").
|
521 |
-
parent("Dollie Barbee", "Yasmin Ragland").
|
522 |
-
parent("Elicia Barbee", "Konstantin Barbee").
|
523 |
-
parent("Elicia Barbee", "Krystle Barbee").
|
524 |
-
parent("Kelley Barbee", "Karolyn Lance").
|
525 |
-
parent("Kelley Barbee", "Rocco Lance").
|
526 |
-
parent("Kenny Barbee", "Allie Barbee").
|
527 |
-
parent("Kenny Barbee", "Rudy Barbee").
|
528 |
-
parent("Konstantin Barbee", "Andres Barbee").
|
529 |
-
parent("Konstantin Barbee", "Dollie Barbee").
|
530 |
-
parent("Krystle Barbee", "Walter Hope").
|
531 |
-
parent("Krystle Barbee", "Wanita Hope").
|
532 |
-
parent("Lyndon Barbee", "Konstantin Barbee").
|
533 |
-
parent("Lyndon Barbee", "Krystle Barbee").
|
534 |
-
parent("Nettie Barbee", "Konstantin Barbee").
|
535 |
-
parent("Nettie Barbee", "Krystle Barbee").
|
536 |
-
parent("Twyla Parkinson", "Kurt Parkinson").
|
537 |
-
parent("Twyla Parkinson", "Leonila Parkinson").
|
538 |
-
parent("Tyrone Parkinson", "Courtney Parkinson").
|
539 |
-
parent("Tyrone Parkinson", "Willie Parkinson").
|
540 |
-
parent("Willie Parkinson", "Kurt Parkinson").
|
541 |
-
parent("Willie Parkinson", "Leonila Parkinson").
|
542 |
-
parent("Windy Parkinson", "Courtney Parkinson").
|
543 |
-
parent("Windy Parkinson", "Willie Parkinson").
|
544 |
-
|
545 |
-
cousin(X, Y) :-
|
546 |
-
parent(X, A),
|
547 |
-
parent(Y, B),
|
548 |
-
sibling(A, B),
|
549 |
-
X\=Y.
|
550 |
-
|
551 |
-
uncle(X, Y) :-
|
552 |
-
parent(X, A),
|
553 |
-
brother(A, Y).
|
554 |
-
|
555 |
-
:- dynamic resource/3.
|
556 |
-
:- multifile resource/3.
|
557 |
-
|
558 |
-
|
559 |
-
:- thread_local thread_message_hook/3.
|
560 |
-
:- dynamic thread_message_hook/3.
|
561 |
-
:- volatile thread_message_hook/3.
|
562 |
-
|
563 |
-
|
564 |
-
aunt(X, Y) :-
|
565 |
-
parent(X, A),
|
566 |
-
sister(A, Y).
|
567 |
-
|
568 |
-
second_uncle(X, Y) :-
|
569 |
-
great_grandparent(X, A),
|
570 |
-
brother(A, Y).
|
571 |
-
|
572 |
-
:- dynamic gender/2.
|
573 |
-
|
574 |
-
gender("Adolph Barbee", "male").
|
575 |
-
gender("Allie Barbee", "female").
|
576 |
-
gender("Andres Barbee", "male").
|
577 |
-
gender("Courtney Parkinson", "female").
|
578 |
-
gender("Dollie Barbee", "female").
|
579 |
-
gender("Elicia Barbee", "female").
|
580 |
-
gender("Karolyn Lance", "female").
|
581 |
-
gender("Kelley Barbee", "female").
|
582 |
-
gender("Kenny Barbee", "male").
|
583 |
-
gender("Konstantin Barbee", "male").
|
584 |
-
gender("Krystle Barbee", "female").
|
585 |
-
gender("Kurt Parkinson", "male").
|
586 |
-
gender("Leonila Parkinson", "female").
|
587 |
-
gender("Lyndon Barbee", "male").
|
588 |
-
gender("Nettie Barbee", "female").
|
589 |
-
gender("Rocco Lance", "male").
|
590 |
-
gender("Rudy Barbee", "male").
|
591 |
-
gender("Twyla Parkinson", "female").
|
592 |
-
gender("Tyrone Parkinson", "male").
|
593 |
-
gender("Wallace Ragland", "male").
|
594 |
-
gender("Walter Hope", "male").
|
595 |
-
gender("Wanita Hope", "female").
|
596 |
-
gender("Willie Parkinson", "male").
|
597 |
-
gender("Windy Parkinson", "female").
|
598 |
-
gender("Yasmin Ragland", "female").
|
599 |
-
|
600 |
-
second_aunt(X, Y) :-
|
601 |
-
great_grandparent(X, A),
|
602 |
-
sister(A, Y).
|
603 |
-
|
604 |
-
great_grandson(X, Y) :-
|
605 |
-
great_grandchild(X, Y),
|
606 |
-
male(Y).
|
607 |
-
|
608 |
-
:- dynamic pyrun/2.
|
609 |
-
|
610 |
-
pyrun(A, B) :-
|
611 |
-
read_term_from_atom(A, C, [variable_names(B)]),
|
612 |
-
call(C).
|
613 |
-
|
614 |
-
great_granddaughter(X, Y) :-
|
615 |
-
great_grandchild(X, Y),
|
616 |
-
female(Y).
|
617 |
-
|
618 |
-
:- dynamic resource/2.
|
619 |
-
:- multifile resource/2.
|
620 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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