Advertisement
logicmoo

Untitled

Jul 20th, 2015
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %
  2. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1585
  3. not_mudIsa(R, tPred) :-
  4.         infer_by(tell1:99),
  5.         isa(D, skIsIntPredArg2ofArityFn(R)),
  6.         not_mudIsa(D, ftInt).
  7. %
  8. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1585
  9. not_mudIsa(D, skIsIntPredArg2ofArityFn(R)) :-
  10.         infer_by(tell1:99),
  11.         isa(R, tPred),
  12.         not_mudIsa(D, ftInt).
  13. %
  14. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1585
  15. isa(D, ftInt) :-
  16.         infer_by(tell1:99),
  17.         isa(R, tPred),
  18.         isa(D, skIsIntPredArg2ofArityFn(R)).
  19. %
  20. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1585
  21. not_mudIsa(R, tPred) :-
  22.         infer_by(tell1:100),
  23.         isa(D, skIsIntPredArg2ofArityFn(R)),
  24.         not_arity(R, D).
  25. %
  26. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1585
  27. not_mudIsa(D, skIsIntPredArg2ofArityFn(R)) :-
  28.         infer_by(tell1:100),
  29.         isa(R, tPred),
  30.         not_arity(R, D).
  31. %
  32. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1585
  33. arity(R, D) :-
  34.         infer_by(tell1:100),
  35.         isa(R, tPred),
  36.         isa(D, skIsIntPredArg2ofArityFn(R)).
  37. %
  38. kif :-
  39.         all(R,
  40.             exists(D,
  41.                    (room(R)=>door(D)&has(R, D)))).
  42.  
  43. tell2:99  not_mudIsa(D,skIsDoorInRoomArg2ofHasFn(R));not_room(R);door(D).
  44. tell2:100  not_mudIsa(D,skIsDoorInRoomArg2ofHasFn(R));not_room(R);has(R,D).
  45. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1595
  46. pttp :-
  47.  
  48.         [ (not_mudIsa(D, skIsDoorInRoomArg2ofHasFn(R)):-infer_by(tell2:99), room(R), not_door(D)),
  49.           (not_room(R):-infer_by(tell2:99), isa(D, skIsDoorInRoomArg2ofHasFn(R)), not_door(D)),
  50.           (door(D):-infer_by(tell2:99), isa(D, skIsDoorInRoomArg2ofHasFn(R)), room(R)),
  51.           (not_mudIsa(D, skIsDoorInRoomArg2ofHasFn(R)):-infer_by(tell2:100), room(R), not_has(R, D)),
  52.           (not_room(R):-infer_by(tell2:100), isa(D, skIsDoorInRoomArg2ofHasFn(R)), not_has(R, D)),
  53.           (has(R, D):-infer_by(tell2:100), isa(D, skIsDoorInRoomArg2ofHasFn(R)), room(R))
  54.         ].
  55. %
  56. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1595
  57. not_mudIsa(D, skIsDoorInRoomArg2ofHasFn(R)) :-
  58.         infer_by(tell2:99),
  59.         room(R),
  60.         not_door(D).
  61. %
  62. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1595
  63. not_room(R) :-
  64.         infer_by(tell2:99),
  65.         isa(D, skIsDoorInRoomArg2ofHasFn(R)),
  66.         not_door(D).
  67. %
  68. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1595
  69. door(D) :-
  70.         infer_by(tell2:99),
  71.         isa(D, skIsDoorInRoomArg2ofHasFn(R)),
  72.         room(R).
  73. %
  74. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1595
  75. not_mudIsa(D, skIsDoorInRoomArg2ofHasFn(R)) :-
  76.         infer_by(tell2:100),
  77.         room(R),
  78.         not_has(R, D).
  79. %
  80. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1595
  81. not_room(R) :-
  82.         infer_by(tell2:100),
  83.         isa(D, skIsDoorInRoomArg2ofHasFn(R)),
  84.         not_has(R, D).
  85. %
  86. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1595
  87. has(R, D) :-
  88.         infer_by(tell2:100),
  89.         isa(D, skIsDoorInRoomArg2ofHasFn(R)),
  90.         room(R).
  91. %
  92. kif :-
  93.         all(X, (NOT(tNotFly(X))=>NOT(tPengin(X)))).
  94.  
  95. tell3:99  tNotFly(X);not_tPengin(X).
  96. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1603
  97. pttp :-
  98.  
  99.         [ (tNotFly(X):-infer_by(tell3:99), tPengin(X)),
  100.           (not_tPengin(X):-infer_by(tell3:99), not_tNotFly(X))
  101.         ].
  102. %
  103. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1603
  104. tNotFly(X) :-
  105.         infer_by(tell3:99),
  106.         tPengin(X).
  107. %
  108. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1603
  109. not_tPengin(X) :-
  110.         infer_by(tell3:99),
  111.         not_tNotFly(X).
  112. %
  113. % /opt/PrologMUD/pack/logicmoo_base/prolog/logicmoo/logicmoo_engine.pl:1603
  114. %          succeed(user:kif_tell(all(A, (~tNotFly(A)=> ~tPengin(A))))).
  115. %
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement