Delete data file
Browse files- depth_20_size_25_seed_1/facts.pl +0 -630
depth_20_size_25_seed_1/facts.pl
DELETED
@@ -1,630 +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("Aida Wang", "meditation").
|
32 |
-
hobby("Alison Smock", "meteorology").
|
33 |
-
hobby("Alvaro Smock", "biology").
|
34 |
-
hobby("Barabara Beltran", "meteorology").
|
35 |
-
hobby("Brian Beltran", "dolls").
|
36 |
-
hobby("Daisy Beltran", "photography").
|
37 |
-
hobby("Dino Beltran", "shogi").
|
38 |
-
hobby("Dominique Smock", "dominoes").
|
39 |
-
hobby("Eli Smock", "tether car").
|
40 |
-
hobby("Gene Smock", "architecture").
|
41 |
-
hobby("Isiah Lutz", "geocaching").
|
42 |
-
hobby("Johnetta Wang", "trainspotting").
|
43 |
-
hobby("Lannie Smock", "bus spotting").
|
44 |
-
hobby("Leeann Hackworth", "research").
|
45 |
-
hobby("Leisa Lutz", "geography").
|
46 |
-
hobby("Leslee Toombs", "microbiology").
|
47 |
-
hobby("Lesley Lutz", "canoeing").
|
48 |
-
hobby("Orlando Beltran", "learning").
|
49 |
-
hobby("Ricardo Hackworth", "dairy farming").
|
50 |
-
hobby("Ryan Wang", "fossil hunting").
|
51 |
-
hobby("Shelli Beltran", "sociology").
|
52 |
-
hobby("Stacia Toombs", "finance").
|
53 |
-
hobby("Vicki Hackworth", "meditation").
|
54 |
-
hobby("Virgil Hackworth", "wikipedia editing").
|
55 |
-
hobby("Wilbert Toombs", "radio-controlled car racing").
|
56 |
-
hobby("Williams Smock", "social studies").
|
57 |
-
|
58 |
-
granddaughter(X, Y) :-
|
59 |
-
grandchild(X, Y),
|
60 |
-
female(Y).
|
61 |
-
|
62 |
-
grandson(X, Y) :-
|
63 |
-
grandchild(X, Y),
|
64 |
-
male(Y).
|
65 |
-
|
66 |
-
:- dynamic job/2.
|
67 |
-
|
68 |
-
job("Aida Wang", "personal assistant").
|
69 |
-
job("Alison Smock", "health promotion specialist").
|
70 |
-
job("Alvaro Smock", "osteopath").
|
71 |
-
job("Barabara Beltran", "broadcast engineer").
|
72 |
-
job("Brian Beltran", "oncologist").
|
73 |
-
job("Daisy Beltran", "warehouse manager").
|
74 |
-
job("Dino Beltran", "associate professor").
|
75 |
-
job("Dominique Smock", "sports therapist").
|
76 |
-
job("Eli Smock", "retail manager").
|
77 |
-
job("Gene Smock", "immunologist").
|
78 |
-
job("Isiah Lutz", "education administrator").
|
79 |
-
job("Johnetta Wang", "early years teacher").
|
80 |
-
job("Lannie Smock", "biomedical scientist").
|
81 |
-
job("Leeann Hackworth", "music tutor").
|
82 |
-
job("Leisa Lutz", "clinical cytogeneticist").
|
83 |
-
job("Leslee Toombs", "ecologist").
|
84 |
-
job("Lesley Lutz", "barrister's clerk").
|
85 |
-
job("Orlando Beltran", "petroleum engineer").
|
86 |
-
job("Ricardo Hackworth", "clinical research associate").
|
87 |
-
job("Ryan Wang", "chief of staff").
|
88 |
-
job("Shelli Beltran", "occupational therapist").
|
89 |
-
job("Stacia Toombs", "actuary").
|
90 |
-
job("Vicki Hackworth", "police officer").
|
91 |
-
job("Virgil Hackworth", "sound technician").
|
92 |
-
job("Wilbert Toombs", "theatre manager").
|
93 |
-
job("Williams Smock", "clinical biochemist").
|
94 |
-
|
95 |
-
great_uncle(X, Y) :-
|
96 |
-
grandparent(X, A),
|
97 |
-
brother(A, Y).
|
98 |
-
|
99 |
-
:- dynamic save_all_clauses_to_file/1.
|
100 |
-
|
101 |
-
save_all_clauses_to_file(A) :-
|
102 |
-
open(A, write, B),
|
103 |
-
set_output(B),
|
104 |
-
listing,
|
105 |
-
close(B).
|
106 |
-
|
107 |
-
:- dynamic term_expansion/4.
|
108 |
-
:- multifile term_expansion/4.
|
109 |
-
|
110 |
-
|
111 |
-
grandchild(X, Y) :-
|
112 |
-
grandparent(Y, X).
|
113 |
-
|
114 |
-
:- dynamic dob/2.
|
115 |
-
|
116 |
-
dob("Aida Wang", "0985-05-30").
|
117 |
-
dob("Alison Smock", "0929-10-28").
|
118 |
-
dob("Alvaro Smock", "0867-07-12").
|
119 |
-
dob("Barabara Beltran", "0989-06-11").
|
120 |
-
dob("Brian Beltran", "0927-07-27").
|
121 |
-
dob("Daisy Beltran", "0931-09-21").
|
122 |
-
dob("Dino Beltran", "0958-08-09").
|
123 |
-
dob("Dominique Smock", "0897-09-08").
|
124 |
-
dob("Eli Smock", "0901-01-18").
|
125 |
-
dob("Gene Smock", "0898-08-16").
|
126 |
-
dob("Isiah Lutz", "1014-10-18").
|
127 |
-
dob("Johnetta Wang", "1014-07-04").
|
128 |
-
dob("Lannie Smock", "0867-08-24").
|
129 |
-
dob("Leeann Hackworth", "1011-10-25").
|
130 |
-
dob("Leisa Lutz", "1015-11-21").
|
131 |
-
dob("Leslee Toombs", "0983-02-26").
|
132 |
-
dob("Lesley Lutz", "1040-01-31").
|
133 |
-
dob("Orlando Beltran", "0953-10-23").
|
134 |
-
dob("Ricardo Hackworth", "0983-02-24").
|
135 |
-
dob("Ryan Wang", "0982-03-17").
|
136 |
-
dob("Shelli Beltran", "0958-03-08").
|
137 |
-
dob("Stacia Toombs", "0959-03-22").
|
138 |
-
dob("Vicki Hackworth", "0985-05-30").
|
139 |
-
dob("Virgil Hackworth", "1009-06-23").
|
140 |
-
dob("Wilbert Toombs", "0956-07-26").
|
141 |
-
dob("Williams Smock", "0926-04-04").
|
142 |
-
|
143 |
-
:- dynamic file_search_path/2.
|
144 |
-
:- multifile file_search_path/2.
|
145 |
-
|
146 |
-
file_search_path(library, Dir) :-
|
147 |
-
library_directory(Dir).
|
148 |
-
file_search_path(swi, A) :-
|
149 |
-
system:current_prolog_flag(home, A).
|
150 |
-
file_search_path(swi, A) :-
|
151 |
-
system:current_prolog_flag(shared_home, A).
|
152 |
-
file_search_path(library, app_config(lib)).
|
153 |
-
file_search_path(library, swi(library)).
|
154 |
-
file_search_path(library, swi(library/clp)).
|
155 |
-
file_search_path(library, A) :-
|
156 |
-
system:'$ext_library_directory'(A).
|
157 |
-
file_search_path(foreign, swi(A)) :-
|
158 |
-
system:
|
159 |
-
( current_prolog_flag(apple_universal_binary, true),
|
160 |
-
A='lib/fat-darwin'
|
161 |
-
).
|
162 |
-
file_search_path(path, A) :-
|
163 |
-
system:
|
164 |
-
( getenv('PATH', B),
|
165 |
-
current_prolog_flag(path_sep, C),
|
166 |
-
atomic_list_concat(D, C, B),
|
167 |
-
'$member'(A, D)
|
168 |
-
).
|
169 |
-
file_search_path(user_app_data, A) :-
|
170 |
-
system:'$xdg_prolog_directory'(data, A).
|
171 |
-
file_search_path(common_app_data, A) :-
|
172 |
-
system:'$xdg_prolog_directory'(common_data, A).
|
173 |
-
file_search_path(user_app_config, A) :-
|
174 |
-
system:'$xdg_prolog_directory'(config, A).
|
175 |
-
file_search_path(common_app_config, A) :-
|
176 |
-
system:'$xdg_prolog_directory'(common_config, A).
|
177 |
-
file_search_path(app_data, user_app_data('.')).
|
178 |
-
file_search_path(app_data, common_app_data('.')).
|
179 |
-
file_search_path(app_config, user_app_config('.')).
|
180 |
-
file_search_path(app_config, common_app_config('.')).
|
181 |
-
file_search_path(app_preferences, user_app_config('.')).
|
182 |
-
file_search_path(user_profile, app_preferences('.')).
|
183 |
-
file_search_path(app, swi(app)).
|
184 |
-
file_search_path(app, app_data(app)).
|
185 |
-
file_search_path(autoload, swi(library)).
|
186 |
-
file_search_path(autoload, pce(prolog/lib)).
|
187 |
-
file_search_path(autoload, app_config(lib)).
|
188 |
-
file_search_path(autoload, Dir) :-
|
189 |
-
'$autoload':'$ext_library_directory'(Dir).
|
190 |
-
file_search_path(pack, app_data(pack)).
|
191 |
-
file_search_path(library, PackLib) :-
|
192 |
-
'$pack':pack_dir(_Name, prolog, PackLib).
|
193 |
-
file_search_path(foreign, PackLib) :-
|
194 |
-
'$pack':pack_dir(_Name, foreign, PackLib).
|
195 |
-
file_search_path(app, AppDir) :-
|
196 |
-
'$pack':pack_dir(_Name, app, AppDir).
|
197 |
-
|
198 |
-
:- multifile prolog_list_goal/1.
|
199 |
-
|
200 |
-
|
201 |
-
:- dynamic type/2.
|
202 |
-
|
203 |
-
type("Aida Wang", person).
|
204 |
-
type("Alison Smock", person).
|
205 |
-
type("Alvaro Smock", person).
|
206 |
-
type("Barabara Beltran", person).
|
207 |
-
type("Brian Beltran", person).
|
208 |
-
type("Daisy Beltran", person).
|
209 |
-
type("Dino Beltran", person).
|
210 |
-
type("Dominique Smock", person).
|
211 |
-
type("Eli Smock", person).
|
212 |
-
type("Gene Smock", person).
|
213 |
-
type("Isiah Lutz", person).
|
214 |
-
type("Johnetta Wang", person).
|
215 |
-
type("Lannie Smock", person).
|
216 |
-
type("Leeann Hackworth", person).
|
217 |
-
type("Leisa Lutz", person).
|
218 |
-
type("Leslee Toombs", person).
|
219 |
-
type("Lesley Lutz", person).
|
220 |
-
type("Orlando Beltran", person).
|
221 |
-
type("Ricardo Hackworth", person).
|
222 |
-
type("Ryan Wang", person).
|
223 |
-
type("Shelli Beltran", person).
|
224 |
-
type("Stacia Toombs", person).
|
225 |
-
type("Vicki Hackworth", person).
|
226 |
-
type("Virgil Hackworth", person).
|
227 |
-
type("Wilbert Toombs", person).
|
228 |
-
type("Williams Smock", person).
|
229 |
-
|
230 |
-
grandfather(X, Y) :-
|
231 |
-
grandparent(X, Y),
|
232 |
-
male(Y).
|
233 |
-
|
234 |
-
:- dynamic expand_query/4.
|
235 |
-
:- multifile expand_query/4.
|
236 |
-
|
237 |
-
|
238 |
-
:- dynamic attribute/1.
|
239 |
-
|
240 |
-
attribute("personal assistant").
|
241 |
-
attribute("meditation").
|
242 |
-
attribute("health promotion specialist").
|
243 |
-
attribute("meteorology").
|
244 |
-
attribute("osteopath").
|
245 |
-
attribute("biology").
|
246 |
-
attribute("broadcast engineer").
|
247 |
-
attribute("meteorology").
|
248 |
-
attribute("oncologist").
|
249 |
-
attribute("dolls").
|
250 |
-
attribute("warehouse manager").
|
251 |
-
attribute("photography").
|
252 |
-
attribute("associate professor").
|
253 |
-
attribute("shogi").
|
254 |
-
attribute("sports therapist").
|
255 |
-
attribute("dominoes").
|
256 |
-
attribute("retail manager").
|
257 |
-
attribute("tether car").
|
258 |
-
attribute("immunologist").
|
259 |
-
attribute("architecture").
|
260 |
-
attribute("education administrator").
|
261 |
-
attribute("geocaching").
|
262 |
-
attribute("early years teacher").
|
263 |
-
attribute("trainspotting").
|
264 |
-
attribute("biomedical scientist").
|
265 |
-
attribute("bus spotting").
|
266 |
-
attribute("music tutor").
|
267 |
-
attribute("research").
|
268 |
-
attribute("clinical cytogeneticist").
|
269 |
-
attribute("geography").
|
270 |
-
attribute("ecologist").
|
271 |
-
attribute("microbiology").
|
272 |
-
attribute("barrister's clerk").
|
273 |
-
attribute("canoeing").
|
274 |
-
attribute("petroleum engineer").
|
275 |
-
attribute("learning").
|
276 |
-
attribute("clinical research associate").
|
277 |
-
attribute("dairy farming").
|
278 |
-
attribute("chief of staff").
|
279 |
-
attribute("fossil hunting").
|
280 |
-
attribute("occupational therapist").
|
281 |
-
attribute("sociology").
|
282 |
-
attribute("actuary").
|
283 |
-
attribute("finance").
|
284 |
-
attribute("police officer").
|
285 |
-
attribute("meditation").
|
286 |
-
attribute("sound technician").
|
287 |
-
attribute("wikipedia editing").
|
288 |
-
attribute("theatre manager").
|
289 |
-
attribute("radio-controlled car racing").
|
290 |
-
attribute("clinical biochemist").
|
291 |
-
attribute("social studies").
|
292 |
-
|
293 |
-
great_aunt(X, Y) :-
|
294 |
-
grandparent(X, A),
|
295 |
-
sister(A, Y).
|
296 |
-
|
297 |
-
grandparent(X, Y) :-
|
298 |
-
parent(X, Z),
|
299 |
-
parent(Z, Y).
|
300 |
-
|
301 |
-
grandmother(X, Y) :-
|
302 |
-
grandparent(X, Y),
|
303 |
-
female(Y).
|
304 |
-
|
305 |
-
:- dynamic friend_/2.
|
306 |
-
|
307 |
-
friend_("Aida Wang", "Alvaro Smock").
|
308 |
-
friend_("Aida Wang", "Lannie Smock").
|
309 |
-
friend_("Aida Wang", "Leslee Toombs").
|
310 |
-
friend_("Aida Wang", "Ryan Wang").
|
311 |
-
friend_("Alison Smock", "Eli Smock").
|
312 |
-
friend_("Alison Smock", "Lannie Smock").
|
313 |
-
friend_("Alison Smock", "Virgil Hackworth").
|
314 |
-
friend_("Alvaro Smock", "Dino Beltran").
|
315 |
-
friend_("Alvaro Smock", "Gene Smock").
|
316 |
-
friend_("Brian Beltran", "Eli Smock").
|
317 |
-
friend_("Brian Beltran", "Leeann Hackworth").
|
318 |
-
friend_("Brian Beltran", "Shelli Beltran").
|
319 |
-
friend_("Brian Beltran", "Stacia Toombs").
|
320 |
-
friend_("Brian Beltran", "Vicki Hackworth").
|
321 |
-
friend_("Dominique Smock", "Gene Smock").
|
322 |
-
friend_("Dominique Smock", "Isiah Lutz").
|
323 |
-
friend_("Dominique Smock", "Orlando Beltran").
|
324 |
-
friend_("Dominique Smock", "Vicki Hackworth").
|
325 |
-
friend_("Eli Smock", "Leisa Lutz").
|
326 |
-
friend_("Eli Smock", "Shelli Beltran").
|
327 |
-
friend_("Eli Smock", "Vicki Hackworth").
|
328 |
-
friend_("Eli Smock", "Virgil Hackworth").
|
329 |
-
friend_("Gene Smock", "Leeann Hackworth").
|
330 |
-
friend_("Gene Smock", "Leisa Lutz").
|
331 |
-
friend_("Gene Smock", "Ricardo Hackworth").
|
332 |
-
friend_("Isiah Lutz", "Johnetta Wang").
|
333 |
-
friend_("Isiah Lutz", "Ricardo Hackworth").
|
334 |
-
friend_("Isiah Lutz", "Shelli Beltran").
|
335 |
-
friend_("Isiah Lutz", "Stacia Toombs").
|
336 |
-
friend_("Johnetta Wang", "Leslee Toombs").
|
337 |
-
friend_("Johnetta Wang", "Ricardo Hackworth").
|
338 |
-
friend_("Lannie Smock", "Williams Smock").
|
339 |
-
friend_("Leeann Hackworth", "Stacia Toombs").
|
340 |
-
friend_("Leisa Lutz", "Leslee Toombs").
|
341 |
-
friend_("Leslee Toombs", "Shelli Beltran").
|
342 |
-
friend_("Lesley Lutz", "Shelli Beltran").
|
343 |
-
friend_("Lesley Lutz", "Stacia Toombs").
|
344 |
-
friend_("Orlando Beltran", "Virgil Hackworth").
|
345 |
-
friend_("Ryan Wang", "Shelli Beltran").
|
346 |
-
friend_("Ryan Wang", "Stacia Toombs").
|
347 |
-
friend_("Ryan Wang", "Virgil Hackworth").
|
348 |
-
|
349 |
-
friend(X, Y) :-
|
350 |
-
friend_(X, Y).
|
351 |
-
friend(X, Y) :-
|
352 |
-
friend_(Y, X).
|
353 |
-
|
354 |
-
niece(X, Y) :-
|
355 |
-
sibling(X, A),
|
356 |
-
daughter(A, Y).
|
357 |
-
|
358 |
-
nephew(X, Y) :-
|
359 |
-
sibling(X, A),
|
360 |
-
son(A, Y).
|
361 |
-
|
362 |
-
brother_in_law(X, Y) :-
|
363 |
-
married(X, A),
|
364 |
-
brother(A, Y).
|
365 |
-
|
366 |
-
:- multifile message_property/2.
|
367 |
-
|
368 |
-
|
369 |
-
sister_in_law(X, Y) :-
|
370 |
-
married(X, A),
|
371 |
-
sister(A, Y).
|
372 |
-
|
373 |
-
wife(X, Y) :-
|
374 |
-
married(X, Y),
|
375 |
-
female(Y).
|
376 |
-
|
377 |
-
husband(X, Y) :-
|
378 |
-
married(X, Y),
|
379 |
-
male(Y).
|
380 |
-
|
381 |
-
daughter_in_law(X, Y) :-
|
382 |
-
child(X, A),
|
383 |
-
wife(A, Y).
|
384 |
-
|
385 |
-
son_in_law(X, Y) :-
|
386 |
-
child(X, A),
|
387 |
-
husband(A, Y).
|
388 |
-
|
389 |
-
son(X, Y) :-
|
390 |
-
child(X, Y),
|
391 |
-
male(Y).
|
392 |
-
|
393 |
-
female(X) :-
|
394 |
-
gender(X, "female").
|
395 |
-
|
396 |
-
daughter(X, Y) :-
|
397 |
-
child(X, Y),
|
398 |
-
female(Y).
|
399 |
-
|
400 |
-
father_in_law(X, Y) :-
|
401 |
-
married(X, A),
|
402 |
-
father(A, Y).
|
403 |
-
|
404 |
-
mother_in_law(X, Y) :-
|
405 |
-
married(X, A),
|
406 |
-
mother(A, Y).
|
407 |
-
|
408 |
-
father(X, Y) :-
|
409 |
-
parent(X, Y),
|
410 |
-
male(Y).
|
411 |
-
|
412 |
-
:- multifile prolog_predicate_name/2.
|
413 |
-
|
414 |
-
|
415 |
-
child(X, Y) :-
|
416 |
-
parent(Y, X).
|
417 |
-
|
418 |
-
male_first_cousin_once_removed(X, Y) :-
|
419 |
-
cousin(X, A),
|
420 |
-
son(A, Y),
|
421 |
-
X\=Y.
|
422 |
-
|
423 |
-
:- multifile prolog_clause_name/2.
|
424 |
-
|
425 |
-
|
426 |
-
:- dynamic expand_answer/2.
|
427 |
-
:- multifile expand_answer/2.
|
428 |
-
|
429 |
-
|
430 |
-
:- dynamic exception/3.
|
431 |
-
:- multifile exception/3.
|
432 |
-
|
433 |
-
|
434 |
-
female_first_cousin_once_removed(X, Y) :-
|
435 |
-
cousin(X, A),
|
436 |
-
daughter(A, Y),
|
437 |
-
X\=Y.
|
438 |
-
|
439 |
-
brother(X, Y) :-
|
440 |
-
sibling(X, Y),
|
441 |
-
male(Y).
|
442 |
-
|
443 |
-
mother(X, Y) :-
|
444 |
-
parent(X, Y),
|
445 |
-
female(Y).
|
446 |
-
|
447 |
-
male_second_cousin(X, Y) :-
|
448 |
-
parent(X, A),
|
449 |
-
parent(Y, B),
|
450 |
-
cousin(A, B),
|
451 |
-
male(Y),
|
452 |
-
X\=Y.
|
453 |
-
|
454 |
-
:- dynamic message_hook/3.
|
455 |
-
:- multifile message_hook/3.
|
456 |
-
|
457 |
-
|
458 |
-
female_second_cousin(X, Y) :-
|
459 |
-
parent(X, A),
|
460 |
-
parent(Y, B),
|
461 |
-
cousin(A, B),
|
462 |
-
female(Y),
|
463 |
-
X\=Y.
|
464 |
-
|
465 |
-
married(X, Y) :-
|
466 |
-
parent(Child, X),
|
467 |
-
parent(Child, Y),
|
468 |
-
X\=Y.
|
469 |
-
|
470 |
-
male(X) :-
|
471 |
-
gender(X, "male").
|
472 |
-
|
473 |
-
:- dynamic prolog_file_type/2.
|
474 |
-
:- multifile prolog_file_type/2.
|
475 |
-
|
476 |
-
prolog_file_type(pl, prolog).
|
477 |
-
prolog_file_type(prolog, prolog).
|
478 |
-
prolog_file_type(qlf, prolog).
|
479 |
-
prolog_file_type(qlf, qlf).
|
480 |
-
prolog_file_type(A, executable) :-
|
481 |
-
system:current_prolog_flag(shared_object_extension, A).
|
482 |
-
prolog_file_type(dylib, executable) :-
|
483 |
-
system:current_prolog_flag(apple, true).
|
484 |
-
|
485 |
-
sister(X, Y) :-
|
486 |
-
sibling(X, Y),
|
487 |
-
female(Y).
|
488 |
-
|
489 |
-
male_cousin(X, Y) :-
|
490 |
-
cousin(X, Y),
|
491 |
-
male(Y).
|
492 |
-
|
493 |
-
:- dynamic nonbinary/1.
|
494 |
-
|
495 |
-
nonbinary(X) :-
|
496 |
-
gender(X, "nonbinary").
|
497 |
-
|
498 |
-
female_cousin(X, Y) :-
|
499 |
-
cousin(X, Y),
|
500 |
-
female(Y).
|
501 |
-
|
502 |
-
sibling(X, Y) :-
|
503 |
-
parent(X, A),
|
504 |
-
parent(Y, A),
|
505 |
-
X\=Y.
|
506 |
-
|
507 |
-
:- dynamic portray/1.
|
508 |
-
:- multifile portray/1.
|
509 |
-
|
510 |
-
|
511 |
-
:- dynamic prolog_load_file/2.
|
512 |
-
:- multifile prolog_load_file/2.
|
513 |
-
|
514 |
-
|
515 |
-
:- dynamic goal_expansion/2.
|
516 |
-
:- multifile goal_expansion/2.
|
517 |
-
|
518 |
-
|
519 |
-
:- dynamic parent/2.
|
520 |
-
|
521 |
-
parent("Aida Wang", "Dino Beltran").
|
522 |
-
parent("Aida Wang", "Shelli Beltran").
|
523 |
-
parent("Barabara Beltran", "Dino Beltran").
|
524 |
-
parent("Barabara Beltran", "Shelli Beltran").
|
525 |
-
parent("Dino Beltran", "Brian Beltran").
|
526 |
-
parent("Dino Beltran", "Daisy Beltran").
|
527 |
-
parent("Eli Smock", "Alvaro Smock").
|
528 |
-
parent("Eli Smock", "Lannie Smock").
|
529 |
-
parent("Gene Smock", "Alvaro Smock").
|
530 |
-
parent("Gene Smock", "Lannie Smock").
|
531 |
-
parent("Johnetta Wang", "Aida Wang").
|
532 |
-
parent("Johnetta Wang", "Ryan Wang").
|
533 |
-
parent("Leeann Hackworth", "Ricardo Hackworth").
|
534 |
-
parent("Leeann Hackworth", "Vicki Hackworth").
|
535 |
-
parent("Leisa Lutz", "Ricardo Hackworth").
|
536 |
-
parent("Leisa Lutz", "Vicki Hackworth").
|
537 |
-
parent("Leslee Toombs", "Stacia Toombs").
|
538 |
-
parent("Leslee Toombs", "Wilbert Toombs").
|
539 |
-
parent("Lesley Lutz", "Isiah Lutz").
|
540 |
-
parent("Lesley Lutz", "Leisa Lutz").
|
541 |
-
parent("Orlando Beltran", "Brian Beltran").
|
542 |
-
parent("Orlando Beltran", "Daisy Beltran").
|
543 |
-
parent("Shelli Beltran", "Alison Smock").
|
544 |
-
parent("Shelli Beltran", "Williams Smock").
|
545 |
-
parent("Stacia Toombs", "Alison Smock").
|
546 |
-
parent("Stacia Toombs", "Williams Smock").
|
547 |
-
parent("Vicki Hackworth", "Dino Beltran").
|
548 |
-
parent("Vicki Hackworth", "Shelli Beltran").
|
549 |
-
parent("Virgil Hackworth", "Ricardo Hackworth").
|
550 |
-
parent("Virgil Hackworth", "Vicki Hackworth").
|
551 |
-
parent("Williams Smock", "Dominique Smock").
|
552 |
-
parent("Williams Smock", "Gene Smock").
|
553 |
-
|
554 |
-
cousin(X, Y) :-
|
555 |
-
parent(X, A),
|
556 |
-
parent(Y, B),
|
557 |
-
sibling(A, B),
|
558 |
-
X\=Y.
|
559 |
-
|
560 |
-
uncle(X, Y) :-
|
561 |
-
parent(X, A),
|
562 |
-
brother(A, Y).
|
563 |
-
|
564 |
-
:- dynamic resource/3.
|
565 |
-
:- multifile resource/3.
|
566 |
-
|
567 |
-
|
568 |
-
:- thread_local thread_message_hook/3.
|
569 |
-
:- dynamic thread_message_hook/3.
|
570 |
-
:- volatile thread_message_hook/3.
|
571 |
-
|
572 |
-
|
573 |
-
aunt(X, Y) :-
|
574 |
-
parent(X, A),
|
575 |
-
sister(A, Y).
|
576 |
-
|
577 |
-
second_uncle(X, Y) :-
|
578 |
-
great_grandparent(X, A),
|
579 |
-
brother(A, Y).
|
580 |
-
|
581 |
-
:- dynamic gender/2.
|
582 |
-
|
583 |
-
gender("Aida Wang", "female").
|
584 |
-
gender("Alison Smock", "female").
|
585 |
-
gender("Alvaro Smock", "male").
|
586 |
-
gender("Barabara Beltran", "female").
|
587 |
-
gender("Brian Beltran", "male").
|
588 |
-
gender("Daisy Beltran", "female").
|
589 |
-
gender("Dino Beltran", "male").
|
590 |
-
gender("Dominique Smock", "female").
|
591 |
-
gender("Eli Smock", "male").
|
592 |
-
gender("Gene Smock", "male").
|
593 |
-
gender("Isiah Lutz", "male").
|
594 |
-
gender("Johnetta Wang", "female").
|
595 |
-
gender("Lannie Smock", "female").
|
596 |
-
gender("Leeann Hackworth", "female").
|
597 |
-
gender("Leisa Lutz", "female").
|
598 |
-
gender("Leslee Toombs", "female").
|
599 |
-
gender("Lesley Lutz", "male").
|
600 |
-
gender("Orlando Beltran", "male").
|
601 |
-
gender("Ricardo Hackworth", "male").
|
602 |
-
gender("Ryan Wang", "male").
|
603 |
-
gender("Shelli Beltran", "female").
|
604 |
-
gender("Stacia Toombs", "female").
|
605 |
-
gender("Vicki Hackworth", "female").
|
606 |
-
gender("Virgil Hackworth", "male").
|
607 |
-
gender("Wilbert Toombs", "male").
|
608 |
-
gender("Williams Smock", "male").
|
609 |
-
|
610 |
-
second_aunt(X, Y) :-
|
611 |
-
great_grandparent(X, A),
|
612 |
-
sister(A, Y).
|
613 |
-
|
614 |
-
great_grandson(X, Y) :-
|
615 |
-
great_grandchild(X, Y),
|
616 |
-
male(Y).
|
617 |
-
|
618 |
-
:- dynamic pyrun/2.
|
619 |
-
|
620 |
-
pyrun(A, B) :-
|
621 |
-
read_term_from_atom(A, C, [variable_names(B)]),
|
622 |
-
call(C).
|
623 |
-
|
624 |
-
great_granddaughter(X, Y) :-
|
625 |
-
great_grandchild(X, Y),
|
626 |
-
female(Y).
|
627 |
-
|
628 |
-
:- dynamic resource/2.
|
629 |
-
:- multifile resource/2.
|
630 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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