-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new tests for Modals.java and THFnew.java translation to HOL
- Loading branch information
Showing
3 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
; (note TQM3) | ||
; (time 20) | ||
; (file tinySUMO.kif) | ||
; (file tinyHOL.kif) | ||
|
||
;3. Bill believes that the Earth is flat. Is the Earth flat? Does Bill know that the Earth is flat? | ||
; if you try to circumnavigate a flat earth you will fall off the edge and die | ||
; Does Bill believe he will die if he tries to circumnavigate the Earth? | ||
|
||
(believes Bill (attribute Earth Flat)) | ||
|
||
; believes has fewer successor worlds than knows | ||
; a quantifier over fewer things is easier, therefore | ||
; the implication is "backwards" from what one would | ||
; expect | ||
|
||
(=> | ||
(believes ?H ?F) | ||
(knows ?H ?F)) | ||
|
||
(=> | ||
(and | ||
(instance ?C Circumnavigation) | ||
(located ?C ?E) | ||
(attribute ?E Flat) | ||
(agent ?C ?A)) | ||
(attribute ?A Dead))) | ||
|
||
; We want to say if (X => Y) and A believes X then A believes Y - requires true HOL | ||
|
||
(=> | ||
(and | ||
(=> ?X ?Y) | ||
(believes ?A X)) | ||
(believes ?A ?Y)) | ||
|
||
(believes Bill | ||
(and | ||
(instance ?C Circumnavigation) | ||
(located ?C ?E ) | ||
(attribute ?E Flat) | ||
(agent ?C Joe))) | ||
|
||
|
||
; (believes Bill (attribute ?P Dead)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
(note TQM3) | ||
(time 20) | ||
(file tinySUMO.kif) | ||
(file tinyHOL.kif) | ||
|
||
;3. Bill believes that the Earth is flat. Is the Earth flat? Does Bill know that the Earth is flat? | ||
; if you try to circumnavigate a flat earth you will fall off the edge and die | ||
; Does Bill believe he will die if he tries to circumnavigate the Earth? | ||
|
||
(believes Bill (attribute Earth Flat)) | ||
|
||
; believes has fewer successor worlds than knows | ||
; a quantifier over fewer things is easier, therefore | ||
; the implication is "backwards" from what one would | ||
; expect | ||
|
||
(=> | ||
(believes ?H ?F) | ||
(knows ?H ?F)) | ||
|
||
(=> | ||
(and | ||
(instance ?C Circumnavigation) | ||
(located ?C ?E) | ||
(attribute ?E Flat) | ||
(agent ?C ?A)) | ||
(attribute ?A Dead))) | ||
|
||
; We want to say if (X => Y) and A believes X then A believes Y - requires true HOL | ||
|
||
(=> | ||
(and | ||
(=> ?X ?Y) | ||
(believes ?A X)) | ||
(believes ?A ?Y)) | ||
|
||
(believes Bill | ||
(and | ||
(instance ?C Circumnavigation) | ||
(located ?C ?E ) | ||
(attribute ?E Flat) | ||
(agent ?C Joe))) | ||
|
||
|
||
; (believes Bill | ||
; (attribute ?P Dead)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters