|
| 1 | +(define (domain social-planning) |
| 2 | + (:requirements :adl :derived-predicates :typing) |
| 3 | + (:types |
| 4 | + locatable place - object |
| 5 | + character item - locatable |
| 6 | + ) |
| 7 | + (:predicates (alive ?c - character) (alone-at ?c - character ?p - place) (at ?l - locatable ?p - place) (believes-loves ?a - character ?c - character ?d - character) (can-see ?c - character ?l - locatable) (dead ?c - character) (friend-of ?a - character ?b - character) (gift ?from - character ?to - character ?i - item) (has ?c - character ?i - item) (is-curious ?c - character) (is-evil ?c - character) (is-greedy ?c - character) (is-jealous ?c - character) (is-lustful ?c - character) (is-obedient ?c - character) (is-pursuing ?c - character) (is-suspicious ?c - character) (is-vain ?c - character) (is-wrathful ?c - character) (killed ?a - character ?c - character) (loves ?c - character ?d - character) (main-character ?c - character) (man ?c - character) (married ?a - character ?b - character) (motive-for-at ?a - character ?l - locatable ?p - place) (motive-for-dead ?a - character ?c - character) (motive-for-has ?a - character ?c - character ?i - item) (precious ?i - item) (reason-to-believe-loves ?a - character ?c - character ?d - character) (reason-to-love ?a - character ?c - character) (requested-at ?a - character ?c - character ?p - place) (requested-has ?a - character ?c - character ?i - item) (woman ?c - character)) |
| 8 | + (:derived (alone-at ?c - character ?p - place) (forall (?d - character) (or (not (at ?d ?p)) (= ?d ?c)))) |
| 9 | + (:derived (can-see ?c - character ?l - locatable) (exists (?p - place) (and (at ?c ?p) (at ?l ?p)))) |
| 10 | + (:derived (motive-for-at ?a - character ?a1 - character ?p - place) (and (is-curious ?a) (exists (?f - character) (and (friend-of ?a ?f) (requested-at ?f ?a ?p))))) |
| 11 | + (:derived (motive-for-at ?a - character ?a1 - character ?p - place) (exists (?c - character) (and (motive-for-dead ?a ?c) (at ?c ?p)))) |
| 12 | + (:derived (motive-for-at ?a - character ?a1 - character ?p - place) (exists (?i - item ?c - character) (and (motive-for-has ?a ?c ?i) (has ?a ?i) (at ?c ?p)))) |
| 13 | + (:derived (motive-for-at ?a - character ?a1 - character ?p - place) (exists (?i - item) (and (motive-for-has ?a ?a ?i) (at ?i ?p)))) |
| 14 | + (:derived (motive-for-at ?a - character ?c - character ?p - place) (exists (?q - place ?i - item) (and (motive-for-has ?a ?a ?i) (at ?i ?q) (at ?c ?q)))) |
| 15 | + (:derived (motive-for-dead ?a - character ?c - character) (and (is-jealous ?a) (not (= ?c ?a)) (exists (?d - character) (and (married ?a ?c) (believes-loves ?a ?c ?d))))) |
| 16 | + (:derived (motive-for-dead ?a - character ?c - character) (and (is-wrathful ?a) (not (= ?c ?a)) (exists (?d - character) (and (loves ?a ?d) (killed ?c ?d))))) |
| 17 | + (:derived (motive-for-dead ?a - character ?d - character) (and (is-jealous ?a) (not (= ?d ?a)) (exists (?c - character) (and (married ?a ?c) (believes-loves ?a ?c ?d))))) |
| 18 | + (:derived (motive-for-has ?a - character ?a1 - character ?i - item) (and (is-greedy ?a) (precious ?i) (can-see ?a ?i))) |
| 19 | + (:derived (motive-for-has ?a - character ?a1 - character ?i - item) (exists (?c - character) (motive-for-has ?a ?c ?i))) |
| 20 | + (:derived (motive-for-has ?a - character ?c - character ?i - item) (and (is-obedient ?a) (loves ?a ?c) (requested-has ?c ?c ?i))) |
| 21 | + (:derived (motive-for-has ?a - character ?c - character ?i - item) (and (is-pursuing ?a) (loves ?a ?c) (precious ?i))) |
| 22 | + (:derived (reason-to-believe-loves ?a - character ?c - character ?d - character) (and (is-suspicious ?a) (not (= ?c ?d)) (not (= ?a ?c)) (not (= ?a ?d)) (exists (?i - item) (and (gift ?a ?c ?i) (has ?d ?i) (can-see ?a ?d))))) |
| 23 | + (:derived (reason-to-love ?a - character ?c - character) (and (man ?a) (is-lustful ?a) (woman ?c) (can-see ?a ?c) (exists (?i - item) (and (has ?c ?i) (precious ?i))))) |
| 24 | + (:derived (reason-to-love ?a - character ?c - character) (and (woman ?a) (is-vain ?a) (man ?c) (exists (?i - item) (and (gift ?c ?a ?i) (precious ?i))))) |
| 25 | + (:action adopt-belief-loves |
| 26 | + :parameters (?a - character ?c - character ?d - character) |
| 27 | + :precondition (and (reason-to-believe-loves ?a ?c ?d) (alive ?a) (alive ?c)) |
| 28 | + :effect (believes-loves ?a ?c ?d) |
| 29 | + ) |
| 30 | + (:action drop |
| 31 | + :parameters (?a - character ?i - item ?p - place) |
| 32 | + :precondition (and (or (main-character ?a) (motive-for-at ?a ?i ?p)) (alive ?a) (has ?a ?i) (at ?a ?p)) |
| 33 | + :effect (and (not (has ?a ?i)) (at ?i ?p)) |
| 34 | + ) |
| 35 | + (:action fall-in-love |
| 36 | + :parameters (?a - character ?c - character) |
| 37 | + :precondition (and (reason-to-love ?a ?c) (not (= ?a ?c)) (alive ?a) (alive ?c)) |
| 38 | + :effect (loves ?a ?c) |
| 39 | + ) |
| 40 | + (:action give |
| 41 | + :parameters (?a - character ?c - character ?i - item ?p - place) |
| 42 | + :precondition (and (or (main-character ?a) (motive-for-has ?a ?c ?i)) (alive ?a) (alive ?c) (has ?a ?i) (at ?a ?p) (at ?c ?p)) |
| 43 | + :effect (and (not (has ?a ?i)) (has ?c ?i) (gift ?a ?c ?i)) |
| 44 | + ) |
| 45 | + (:action goto |
| 46 | + :parameters (?a - character ?p - place ?from - place) |
| 47 | + :precondition (and (or (main-character ?a) (motive-for-at ?a ?a ?p)) (alive ?a) (at ?a ?from) (not (= ?p ?from))) |
| 48 | + :effect (and (not (at ?a ?from)) (at ?a ?p)) |
| 49 | + ) |
| 50 | + (:action kill |
| 51 | + :parameters (?a - character ?c - character ?p - place) |
| 52 | + :precondition (and (motive-for-dead ?a ?c) (alive ?a) (alive ?c) (at ?a ?p) (at ?c ?p)) |
| 53 | + :effect (and (not (alive ?c)) (dead ?c) (killed ?a ?c)) |
| 54 | + ) |
| 55 | + (:action request-at |
| 56 | + :parameters (?a - character ?c - character ?p - place) |
| 57 | + :precondition (and (or (main-character ?a) (motive-for-at ?a ?c ?p)) (alive ?a) (alive ?c)) |
| 58 | + :effect (requested-at ?a ?c ?p) |
| 59 | + ) |
| 60 | + (:action request-has |
| 61 | + :parameters (?a - character ?c - character ?i - item) |
| 62 | + :precondition (and (or (main-character ?a) (motive-for-has ?a ?c ?i)) (alive ?a) (alive ?c)) |
| 63 | + :effect (requested-has ?a ?c ?i) |
| 64 | + ) |
| 65 | + (:action take |
| 66 | + :parameters (?a - character ?i - item ?p - place) |
| 67 | + :precondition (and (or (main-character ?a) (motive-for-has ?a ?a ?i)) (alive ?a) (at ?i ?p) (at ?a ?p) (alone-at ?a ?p)) |
| 68 | + :effect (and (not (at ?i ?p)) (has ?a ?i)) |
| 69 | + ) |
| 70 | +) |
0 commit comments