|
|
|
:- dynamic term_expansion/2. |
|
:- multifile term_expansion/2. |
|
|
|
|
|
brother_in_law(X, Y) :- |
|
married(X, A), |
|
brother(A, Y). |
|
|
|
husband(X, Y) :- |
|
married(X, Y), |
|
male(Y). |
|
|
|
:- dynamic nonbinary/1. |
|
|
|
nonbinary(X) :- |
|
gender(X, nonbinary). |
|
|
|
niece(X, Y) :- |
|
sibling(X, A), |
|
daughter(A, Y). |
|
|
|
sister_in_law(X, Y) :- |
|
married(X, A), |
|
sister(A, Y). |
|
|
|
daughter_in_law(X, Y) :- |
|
child(X, A), |
|
wife(A, Y). |
|
|
|
daughter(X, Y) :- |
|
child(X, Y), |
|
female(Y). |
|
|
|
:- dynamic library_directory/1. |
|
:- multifile library_directory/1. |
|
|
|
|
|
wife(X, Y) :- |
|
married(X, Y), |
|
female(Y). |
|
|
|
son_in_law(X, Y) :- |
|
child(X, A), |
|
husband(A, Y). |
|
|
|
male(X) :- |
|
gender(X, male). |
|
|
|
:- dynamic goal_expansion/4. |
|
:- multifile goal_expansion/4. |
|
|
|
|
|
father_in_law(X, Y) :- |
|
married(X, A), |
|
father(A, Y). |
|
|
|
child(X, Y) :- |
|
parent(Y, X). |
|
|
|
son(X, Y) :- |
|
child(X, Y), |
|
male(Y). |
|
|
|
mother_in_law(X, Y) :- |
|
married(X, A), |
|
mother(A, Y). |
|
|
|
male_first_cousin_once_removed(X, Y) :- |
|
cousin(X, A), |
|
son(A, Y), |
|
X\=Y. |
|
|
|
mother(X, Y) :- |
|
parent(X, Y), |
|
female(Y). |
|
|
|
:- dynamic term_expansion/4. |
|
:- multifile term_expansion/4. |
|
|
|
|
|
father(X, Y) :- |
|
parent(X, Y), |
|
male(Y). |
|
|
|
female_first_cousin_once_removed(X, Y) :- |
|
cousin(X, A), |
|
daughter(A, Y), |
|
X\=Y. |
|
|
|
:- dynamic file_search_path/2. |
|
:- multifile file_search_path/2. |
|
|
|
file_search_path(library, Dir) :- |
|
library_directory(Dir). |
|
file_search_path(swi, A) :- |
|
system:current_prolog_flag(home, A). |
|
file_search_path(swi, A) :- |
|
system:current_prolog_flag(shared_home, A). |
|
file_search_path(library, app_config(lib)). |
|
file_search_path(library, swi(library)). |
|
file_search_path(library, swi(library/clp)). |
|
file_search_path(library, A) :- |
|
system:'$ext_library_directory'(A). |
|
file_search_path(foreign, swi(A)) :- |
|
system: |
|
( current_prolog_flag(apple_universal_binary, true), |
|
A='lib/fat-darwin' |
|
). |
|
file_search_path(path, A) :- |
|
system: |
|
( getenv('PATH', B), |
|
current_prolog_flag(path_sep, C), |
|
atomic_list_concat(D, C, B), |
|
'$member'(A, D) |
|
). |
|
file_search_path(user_app_data, A) :- |
|
system:'$xdg_prolog_directory'(data, A). |
|
file_search_path(common_app_data, A) :- |
|
system:'$xdg_prolog_directory'(common_data, A). |
|
file_search_path(user_app_config, A) :- |
|
system:'$xdg_prolog_directory'(config, A). |
|
file_search_path(common_app_config, A) :- |
|
system:'$xdg_prolog_directory'(common_config, A). |
|
file_search_path(app_data, user_app_data('.')). |
|
file_search_path(app_data, common_app_data('.')). |
|
file_search_path(app_config, user_app_config('.')). |
|
file_search_path(app_config, common_app_config('.')). |
|
file_search_path(app_preferences, user_app_config('.')). |
|
file_search_path(user_profile, app_preferences('.')). |
|
file_search_path(app, swi(app)). |
|
file_search_path(app, app_data(app)). |
|
file_search_path(autoload, swi(library)). |
|
file_search_path(autoload, pce(prolog/lib)). |
|
file_search_path(autoload, app_config(lib)). |
|
file_search_path(autoload, Dir) :- |
|
'$autoload':'$ext_library_directory'(Dir). |
|
file_search_path(pack, app_data(pack)). |
|
file_search_path(library, PackLib) :- |
|
'$pack':pack_dir(_Name, prolog, PackLib). |
|
file_search_path(foreign, PackLib) :- |
|
'$pack':pack_dir(_Name, foreign, PackLib). |
|
file_search_path(app, AppDir) :- |
|
'$pack':pack_dir(_Name, app, AppDir). |
|
file_search_path(pce, PceHome) :- |
|
link_xpce: |
|
( current_prolog_flag(xpce, true), |
|
pcehome_(PceHome) |
|
). |
|
file_search_path(library, pce('prolog/lib')). |
|
file_search_path(foreign, pce(ArchLib)) :- |
|
link_xpce: |
|
( current_prolog_flag(arch, Arch), |
|
atom_concat('lib/', Arch, ArchLib) |
|
). |
|
|
|
:- multifile prolog_list_goal/1. |
|
|
|
|
|
male_second_cousin(X, Y) :- |
|
parent(X, A), |
|
parent(Y, B), |
|
cousin(A, B), |
|
male(Y), |
|
X\=Y. |
|
|
|
sister(Y, X) :- |
|
sibling(X, Y), |
|
female(X). |
|
|
|
brother(X, Y) :- |
|
sibling(X, Y), |
|
male(Y). |
|
|
|
female_second_cousin(X, Y) :- |
|
parent(X, A), |
|
parent(Y, B), |
|
cousin(A, B), |
|
female(Y), |
|
X\=Y. |
|
|
|
male_cousin(X, Y) :- |
|
cousin(X, Y), |
|
male(Y). |
|
|
|
:- dynamic parent/2. |
|
|
|
parent('Barton Song', 'Eddy Song'). |
|
parent('Barton Song', 'Noelia Song'). |
|
parent('Bev Kidd', 'Micheal Kidd'). |
|
parent('Bev Kidd', 'Nora Kidd'). |
|
parent('Darren Karp', 'Adolfo Karp'). |
|
parent('Darren Karp', 'Erin Karp'). |
|
parent('Erin Karp', 'Jame Song'). |
|
parent('Erin Karp', 'Susanna Song'). |
|
parent('Evelia Colin', 'Danilo Colin'). |
|
parent('Evelia Colin', 'Ramona Colin'). |
|
parent('Genesis Colin', 'Micheal Kidd'). |
|
parent('Genesis Colin', 'Nora Kidd'). |
|
parent('Jame Song', 'Eddy Song'). |
|
parent('Jame Song', 'Noelia Song'). |
|
parent('Manda Roney', 'Jame Song'). |
|
parent('Manda Roney', 'Susanna Song'). |
|
parent('Mckinley Colin', 'Danilo Colin'). |
|
parent('Mckinley Colin', 'Ramona Colin'). |
|
parent('Micheal Kidd', 'Megan Kidd'). |
|
parent('Micheal Kidd', 'Mickey Kidd'). |
|
parent('Ramona Colin', 'Jesse Kiel'). |
|
parent('Ramona Colin', 'Landon Kiel'). |
|
parent('Randal Kidd', 'Micheal Kidd'). |
|
parent('Randal Kidd', 'Nora Kidd'). |
|
parent('Randi Roney', 'Franklin Roney'). |
|
parent('Randi Roney', 'Manda Roney'). |
|
parent('Sonny Song', 'Jame Song'). |
|
parent('Sonny Song', 'Susanna Song'). |
|
parent('Susanna Song', 'Genesis Colin'). |
|
parent('Susanna Song', 'Mckinley Colin'). |
|
parent('Walker Colin', 'Danilo Colin'). |
|
parent('Walker Colin', 'Ramona Colin'). |
|
|
|
married(X, Y) :- |
|
parent(Child, X), |
|
parent(Child, Y), |
|
X\=Y. |
|
|
|
female_cousin(X, Y) :- |
|
cousin(X, Y), |
|
female(Y). |
|
|
|
cousin(X, Y) :- |
|
parent(X, A), |
|
parent(Y, B), |
|
sibling(A, B), |
|
X\=Y. |
|
|
|
sibling(X, Y) :- |
|
parent(X, A), |
|
parent(Y, A), |
|
X\=Y. |
|
|
|
uncle(X, Y) :- |
|
parent(X, A), |
|
brother(A, Y). |
|
|
|
:- multifile message_property/2. |
|
|
|
|
|
aunt(X, Y) :- |
|
parent(X, A), |
|
sister(A, Y). |
|
|
|
:- dynamic gender/2. |
|
|
|
gender('Adolfo Karp', male). |
|
gender('Barton Song', male). |
|
gender('Bev Kidd', female). |
|
gender('Danilo Colin', male). |
|
gender('Darren Karp', male). |
|
gender('Eddy Song', male). |
|
gender('Erin Karp', female). |
|
gender('Evelia Colin', female). |
|
gender('Franklin Roney', male). |
|
gender('Genesis Colin', female). |
|
gender('Jame Song', male). |
|
gender('Jesse Kiel', female). |
|
gender('Landon Kiel', male). |
|
gender('Manda Roney', female). |
|
gender('Mckinley Colin', male). |
|
gender('Megan Kidd', female). |
|
gender('Micheal Kidd', male). |
|
gender('Mickey Kidd', male). |
|
gender('Noelia Song', female). |
|
gender('Nora Kidd', female). |
|
gender('Ramona Colin', female). |
|
gender('Randal Kidd', male). |
|
gender('Randi Roney', female). |
|
gender('Sonny Song', male). |
|
gender('Susanna Song', female). |
|
gender('Walker Colin', male). |
|
|
|
:- dynamic expand_query/4. |
|
:- multifile expand_query/4. |
|
|
|
|
|
:- multifile prolog_clause_name/2. |
|
|
|
|
|
second_uncle(X, Y) :- |
|
great_grandparent(X, A), |
|
brother(A, Y). |
|
|
|
second_aunt(X, Y) :- |
|
great_grandparent(X, A), |
|
sister(A, Y). |
|
|
|
:- dynamic pyrun/2. |
|
|
|
pyrun(A, B) :- |
|
read_term_from_atom(A, C, [variable_names(B)]), |
|
call(C). |
|
|
|
friend(X, Y) :- |
|
friend_(X, Y). |
|
friend(X, Y) :- |
|
friend_(Y, X). |
|
|
|
great_grandson(X, Y) :- |
|
great_grandchild(X, Y), |
|
male(Y). |
|
|
|
:- dynamic friend_/2. |
|
|
|
friend_('Adolfo Karp', 'Mckinley Colin'). |
|
friend_('Adolfo Karp', 'Mickey Kidd'). |
|
friend_('Adolfo Karp', 'Ramona Colin'). |
|
friend_('Barton Song', 'Genesis Colin'). |
|
friend_('Bev Kidd', 'Danilo Colin'). |
|
friend_('Bev Kidd', 'Manda Roney'). |
|
friend_('Bev Kidd', 'Micheal Kidd'). |
|
friend_('Bev Kidd', 'Sonny Song'). |
|
friend_('Danilo Colin', 'Darren Karp'). |
|
friend_('Danilo Colin', 'Jesse Kiel'). |
|
friend_('Danilo Colin', 'Landon Kiel'). |
|
friend_('Danilo Colin', 'Manda Roney'). |
|
friend_('Danilo Colin', 'Micheal Kidd'). |
|
friend_('Danilo Colin', 'Randal Kidd'). |
|
friend_('Danilo Colin', 'Sonny Song'). |
|
friend_('Darren Karp', 'Jesse Kiel'). |
|
friend_('Darren Karp', 'Landon Kiel'). |
|
friend_('Darren Karp', 'Randal Kidd'). |
|
friend_('Eddy Song', 'Manda Roney'). |
|
friend_('Eddy Song', 'Micheal Kidd'). |
|
friend_('Erin Karp', 'Mckinley Colin'). |
|
friend_('Erin Karp', 'Megan Kidd'). |
|
friend_('Erin Karp', 'Nora Kidd'). |
|
friend_('Erin Karp', 'Susanna Song'). |
|
friend_('Evelia Colin', 'Franklin Roney'). |
|
friend_('Evelia Colin', 'Mckinley Colin'). |
|
friend_('Evelia Colin', 'Mickey Kidd'). |
|
friend_('Evelia Colin', 'Noelia Song'). |
|
friend_('Evelia Colin', 'Ramona Colin'). |
|
friend_('Franklin Roney', 'Mickey Kidd'). |
|
friend_('Franklin Roney', 'Ramona Colin'). |
|
friend_('Jame Song', 'Mckinley Colin'). |
|
friend_('Jame Song', 'Susanna Song'). |
|
friend_('Jesse Kiel', 'Landon Kiel'). |
|
friend_('Jesse Kiel', 'Randal Kidd'). |
|
friend_('Jesse Kiel', 'Sonny Song'). |
|
friend_('Landon Kiel', 'Randal Kidd'). |
|
friend_('Landon Kiel', 'Susanna Song'). |
|
friend_('Manda Roney', 'Micheal Kidd'). |
|
friend_('Manda Roney', 'Sonny Song'). |
|
friend_('Mckinley Colin', 'Megan Kidd'). |
|
friend_('Mckinley Colin', 'Mickey Kidd'). |
|
friend_('Mckinley Colin', 'Nora Kidd'). |
|
friend_('Mckinley Colin', 'Ramona Colin'). |
|
friend_('Mckinley Colin', 'Susanna Song'). |
|
friend_('Megan Kidd', 'Nora Kidd'). |
|
friend_('Megan Kidd', 'Susanna Song'). |
|
friend_('Micheal Kidd', 'Sonny Song'). |
|
friend_('Mickey Kidd', 'Noelia Song'). |
|
friend_('Mickey Kidd', 'Ramona Colin'). |
|
friend_('Noelia Song', 'Ramona Colin'). |
|
friend_('Nora Kidd', 'Susanna Song'). |
|
friend_('Randal Kidd', 'Sonny Song'). |
|
|
|
:- dynamic expand_answer/2. |
|
:- multifile expand_answer/2. |
|
|
|
|
|
great_granddaughter(X, Y) :- |
|
great_grandchild(X, Y), |
|
female(Y). |
|
|
|
great_grandchild(X, Y) :- |
|
great_grandparent(Y, X). |
|
|
|
:- dynamic exception/3. |
|
:- multifile exception/3. |
|
|
|
|
|
great_grandfather(X, Y) :- |
|
great_grandparent(X, Y), |
|
male(Y). |
|
|
|
:- dynamic type/2. |
|
|
|
type('Adolfo Karp', person). |
|
type('Barton Song', person). |
|
type('Bev Kidd', person). |
|
type('Danilo Colin', person). |
|
type('Darren Karp', person). |
|
type('Eddy Song', person). |
|
type('Erin Karp', person). |
|
type('Evelia Colin', person). |
|
type('Franklin Roney', person). |
|
type('Genesis Colin', person). |
|
type('Jame Song', person). |
|
type('Jesse Kiel', person). |
|
type('Landon Kiel', person). |
|
type('Manda Roney', person). |
|
type('Mckinley Colin', person). |
|
type('Megan Kidd', person). |
|
type('Micheal Kidd', person). |
|
type('Mickey Kidd', person). |
|
type('Noelia Song', person). |
|
type('Nora Kidd', person). |
|
type('Ramona Colin', person). |
|
type('Randal Kidd', person). |
|
type('Randi Roney', person). |
|
type('Sonny Song', person). |
|
type('Susanna Song', person). |
|
type('Walker Colin', person). |
|
|
|
great_grandmother(X, Y) :- |
|
great_grandparent(X, Y), |
|
female(Y). |
|
|
|
:- dynamic message_hook/3. |
|
:- multifile message_hook/3. |
|
|
|
|
|
:- dynamic dob/2. |
|
|
|
dob('Adolfo Karp', '0296-04-02'). |
|
dob('Barton Song', '0270-12-17'). |
|
dob('Bev Kidd', '0237-12-04'). |
|
dob('Danilo Colin', '0219-08-09'). |
|
dob('Darren Karp', '0328-12-27'). |
|
dob('Eddy Song', '0245-01-05'). |
|
dob('Erin Karp', '0298-05-26'). |
|
dob('Evelia Colin', '0243-06-09'). |
|
dob('Franklin Roney', '0301-03-23'). |
|
dob('Genesis Colin', '0245-10-02'). |
|
dob('Jame Song', '0271-07-23'). |
|
dob('Jesse Kiel', '0188-11-05'). |
|
dob('Landon Kiel', '0189-03-08'). |
|
dob('Manda Roney', '0301-10-05'). |
|
dob('Mckinley Colin', '0246-10-18'). |
|
dob('Megan Kidd', '0191-02-02'). |
|
dob('Micheal Kidd', '0215-06-22'). |
|
dob('Mickey Kidd', '0191-07-28'). |
|
dob('Noelia Song', '0246-08-07'). |
|
dob('Nora Kidd', '0213-01-28'). |
|
dob('Ramona Colin', '0219-09-08'). |
|
dob('Randal Kidd', '0244-05-11'). |
|
dob('Randi Roney', '0335-02-06'). |
|
dob('Sonny Song', '0303-11-01'). |
|
dob('Susanna Song', '0272-11-01'). |
|
dob('Walker Colin', '0245-03-03'). |
|
|
|
great_grandparent(X, Y) :- |
|
grandparent(X, Z), |
|
parent(Z, Y). |
|
|
|
:- dynamic job/2. |
|
|
|
job('Adolfo Karp', 'field seismologist'). |
|
job('Barton Song', 'therapist, drama'). |
|
job('Bev Kidd', 'sport and exercise psychologist'). |
|
job('Danilo Colin', 'conservator, furniture'). |
|
job('Darren Karp', 'merchant navy officer'). |
|
job('Eddy Song', 'trade mark attorney'). |
|
job('Erin Karp', 'public relations account executive'). |
|
job('Evelia Colin', 'telecommunications researcher'). |
|
job('Franklin Roney', 'brewing technologist'). |
|
job('Genesis Colin', 'trading standards officer'). |
|
job('Jame Song', 'administrator, civil service'). |
|
job('Jesse Kiel', 'psychotherapist, child'). |
|
job('Landon Kiel', 'futures trader'). |
|
job('Manda Roney', 'structural engineer'). |
|
job('Mckinley Colin', 'facilities manager'). |
|
job('Megan Kidd', 'engineer, agricultural'). |
|
job('Micheal Kidd', 'psychotherapist, dance movement'). |
|
job('Mickey Kidd', 'sound technician, broadcasting/film/video'). |
|
job('Noelia Song', 'stage manager'). |
|
job('Nora Kidd', 'publishing copy'). |
|
job('Ramona Colin', 'occupational psychologist'). |
|
job('Randal Kidd', dentist). |
|
job('Randi Roney', 'exhibition designer'). |
|
job('Sonny Song', 'designer, blown glass/stained glass'). |
|
job('Susanna Song', 'scientist, research (medical)'). |
|
job('Walker Colin', 'newspaper journalist'). |
|
|
|
:- dynamic prolog_file_type/2. |
|
:- multifile prolog_file_type/2. |
|
|
|
prolog_file_type(pl, prolog). |
|
prolog_file_type(prolog, prolog). |
|
prolog_file_type(qlf, prolog). |
|
prolog_file_type(qlf, qlf). |
|
prolog_file_type(A, executable) :- |
|
system:current_prolog_flag(shared_object_extension, A). |
|
prolog_file_type(dylib, executable) :- |
|
system:current_prolog_flag(apple, true). |
|
|
|
grandson(X, Y) :- |
|
grandchild(X, Y), |
|
male(Y). |
|
|
|
:- dynamic hobby/2. |
|
|
|
hobby('Adolfo Karp', 'amateur astronomy'). |
|
hobby('Barton Song', crystals). |
|
hobby('Bev Kidd', 'stamp collecting'). |
|
hobby('Danilo Colin', trainspotting). |
|
hobby('Darren Karp', animation). |
|
hobby('Eddy Song', esports). |
|
hobby('Erin Karp', 'magnet fishing'). |
|
hobby('Evelia Colin', billiards). |
|
hobby('Franklin Roney', 'iceboat racing'). |
|
hobby('Genesis Colin', aerospace). |
|
hobby('Jame Song', learning). |
|
hobby('Jesse Kiel', meteorology). |
|
hobby('Landon Kiel', learning). |
|
hobby('Manda Roney', trapshooting). |
|
hobby('Mckinley Colin', shoes). |
|
hobby('Megan Kidd', meteorology). |
|
hobby('Micheal Kidd', birdwatching). |
|
hobby('Mickey Kidd', mahjong). |
|
hobby('Noelia Song', 'horseback riding'). |
|
hobby('Nora Kidd', birdwatching). |
|
hobby('Ramona Colin', 'air sports'). |
|
hobby('Randal Kidd', publishing). |
|
hobby('Randi Roney', fossicking). |
|
hobby('Sonny Song', dolls). |
|
hobby('Susanna Song', 'web design'). |
|
hobby('Walker Colin', tourism). |
|
|
|
granddaughter(X, Y) :- |
|
grandchild(X, Y), |
|
female(Y). |
|
|
|
:- dynamic portray/1. |
|
:- multifile portray/1. |
|
|
|
|
|
:- dynamic prolog_load_file/2. |
|
:- multifile prolog_load_file/2. |
|
|
|
|
|
:- dynamic goal_expansion/2. |
|
:- multifile goal_expansion/2. |
|
|
|
|
|
grandchild(X, Y) :- |
|
grandparent(Y, X). |
|
|
|
great_uncle(X, Y) :- |
|
grandparent(X, A), |
|
brother(A, Y). |
|
|
|
:- dynamic resource/2. |
|
:- multifile resource/2. |
|
|
|
|
|
:- thread_local thread_message_hook/3. |
|
:- dynamic thread_message_hook/3. |
|
:- volatile thread_message_hook/3. |
|
|
|
|
|
great_aunt(X, Y) :- |
|
grandparent(X, A), |
|
sister(A, Y). |
|
|
|
:- dynamic attribute/1. |
|
|
|
attribute('field seismologist'). |
|
attribute('amateur astronomy'). |
|
attribute('therapist, drama'). |
|
attribute(crystals). |
|
attribute('sport and exercise psychologist'). |
|
attribute('stamp collecting'). |
|
attribute('conservator, furniture'). |
|
attribute(trainspotting). |
|
attribute('merchant navy officer'). |
|
attribute(animation). |
|
attribute('trade mark attorney'). |
|
attribute(esports). |
|
attribute('public relations account executive'). |
|
attribute('magnet fishing'). |
|
attribute('telecommunications researcher'). |
|
attribute(billiards). |
|
attribute('brewing technologist'). |
|
attribute('iceboat racing'). |
|
attribute('trading standards officer'). |
|
attribute(aerospace). |
|
attribute('administrator, civil service'). |
|
attribute(learning). |
|
attribute('psychotherapist, child'). |
|
attribute(meteorology). |
|
attribute('futures trader'). |
|
attribute(learning). |
|
attribute('structural engineer'). |
|
attribute(trapshooting). |
|
attribute('facilities manager'). |
|
attribute(shoes). |
|
attribute('engineer, agricultural'). |
|
attribute(meteorology). |
|
attribute('psychotherapist, dance movement'). |
|
attribute(birdwatching). |
|
attribute('sound technician, broadcasting/film/video'). |
|
attribute(mahjong). |
|
attribute('stage manager'). |
|
attribute('horseback riding'). |
|
attribute('publishing copy'). |
|
attribute(birdwatching). |
|
attribute('occupational psychologist'). |
|
attribute('air sports'). |
|
attribute(dentist). |
|
attribute(publishing). |
|
attribute('exhibition designer'). |
|
attribute(fossicking). |
|
attribute('designer, blown glass/stained glass'). |
|
attribute(dolls). |
|
attribute('scientist, research (medical)'). |
|
attribute('web design'). |
|
attribute('newspaper journalist'). |
|
attribute(tourism). |
|
|
|
grandfather(X, Y) :- |
|
grandparent(X, Y), |
|
male(Y). |
|
|
|
female(X) :- |
|
gender(X, female). |
|
|
|
:- multifile prolog_predicate_name/2. |
|
|
|
|
|
grandmother(X, Y) :- |
|
grandparent(X, Y), |
|
female(Y). |
|
|
|
:- dynamic resource/3. |
|
:- multifile resource/3. |
|
|
|
|
|
grandparent(X, Y) :- |
|
parent(X, Z), |
|
parent(Z, Y). |
|
|
|
:- dynamic save_all_clauses_to_file/1. |
|
|
|
save_all_clauses_to_file(A) :- |
|
open(A, write, B), |
|
set_output(B), |
|
listing, |
|
close(B). |
|
|
|
nephew(X, Y) :- |
|
sibling(X, A), |
|
son(A, Y). |
|
|