-
Notifications
You must be signed in to change notification settings - Fork 73
/
HOLtests.txt
134 lines (100 loc) · 2.88 KB
/
HOLtests.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
; test problems for SUMO that are beyond first order
; from Transportation.kif
(<=>
(totalFacilityTypeInArea ?AREA ?TYPE ?COUNT)
(cardinality
(KappaFn ?ITEM
(and
(instance ?ITEM ?TYPE)
(located ?ITEM ?AREA))) ?COUNT))
(instance DejvickaStation TrainStation)
(located DejvickaStation PragueCzechRepublic)
(instance HradCanskaStation TrainStation)
(located HradCanskaStation PragueCzechRepublic)
Q: (totalFacilityTypeInArea ?AREA ?TYPE ?COUNT)
A: [?AREA=PragueCzechRepublic,?TYPE=TrainStation,?COUNT=2]
; from Merge.kif
; (instance geographicSubregion TransitiveRelation)
; from CountriesAndRegions.kif
; (geographicSubregion PragueCzechRepublic CzechRepublic)
Q: (totalFacilityTypeInArea CzechRepublic ?TYPE ?COUNT)
A: [?TYPE=TrainStation,?COUNT=2]
----------------------------------------------
(believes John
(acquaintance John Sue))
Q: (believes John (acquaintance John ?X))
A: Sue
Q: (believes John (not (acquaintance John Sue)))
A: false
------------
(believes John
(and
(acquaintance John Sue)
(relative John Bill)))
Q: (believes John (acquainted John Sue))
A: true
-------------
(instance LastWeek TimePosition)
(holdsDuring LastWeek
(attribute John Unemployed))
Q: (holdsDuring LastWeek
(exists (?O)
(employs ?O John)))
A: false
(holdsDuring LastWeek
(attribute John Barefoot))
Q: (holdsDuring LastWeek
(exists (?O ?S)
(and
(instance ?S Shoe)
(wears John ?S))))
A: timeout
----------------------------------------------
(exists (?P)
(and
(instance ?FM FormalMeeting)
(agent ?FM John)
(during ?FM Yesterday)))
Q: (holdsDuring Yesterday
(attribute John Alone))
A: false
-----------------------------------------------
from SUMO:
(=>
(and
(holdsDuring ?T
(attribute ?H
(DeadOrMissingBodyPartFn ?P)))
(instance ?PI ?P)
(part ?PI ?H)
(hasPurpose ?PI ?F))
(not ?F))
(=>
(instance ?LEG Leg)
(exists (?ANIMAL)
(and
(instance ?ANIMAL Animal)
(part ?LEG ?ANIMAL))))
(subclass Human Animal)
new:
(instance John Human)
(holdsDuring AfterJohnsInjury
(attribute John (DeadOrMissingBodyPartFn Leg)))
(=>
(and
(instance ?L Leg)
(part ?L ?H)
(instance ?H Human)
(hasPurpose ?L
(exists (?W)
(and
(instance ?W Walking)
(instrument ?W ?L)))
Q: (exists (?W)
(and
(instance ?W Walking)
(during ?W AfterJohnsInjury)
(agent ?W John)))
A: false
--------------------------------------------
Please note that all these problems should probably be interpreted as "sketches" of problems until we can test them. They may well be incomplete and we'll have to tackle them on a case-by-case basis to determine, if they don't work, whether the issue is the HOL translator, or just a lack of needed axioms in SUMO