Skip to content

Commit

Permalink
reverting unify/2 wrt double negation
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Sep 23, 2023
1 parent 221567b commit 5f43e2e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 29 deletions.
1 change: 1 addition & 0 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EYE release

v4.17.2 (2023-09-23) reverting unify/2 wrt double negation
v4.17.1 (2023-09-21) reverting to graffiti as list terms
v4.17.0 (2023-09-20) graffiti as a set of blank nodes i.e. ($ bnodes $)
v4.16.6 (2023-09-19) reverting graffiti to be list terms
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.17.1
4.17.2
18 changes: 1 addition & 17 deletions eye.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:- use_module(library(pcre)).
:- catch(use_module(library(http/http_open)), _, true).

version_info('EYE v4.17.1 (2023-09-21)').
version_info('EYE v4.17.2 (2023-09-23)').

license_info('MIT License

Expand Down Expand Up @@ -10936,22 +10936,6 @@
!,
getlist(A, C),
C = B.
unify(A, B) :-
nonvar(A),
A = '<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'([], '<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'([], C)),
C \= false,
conj_list(C, D),
\+member('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(_, _), D),
!,
unify(C, B).
unify(A, B) :-
nonvar(B),
B = '<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'([], '<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'([], C)),
C \= false,
conj_list(C, D),
\+member('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(_, _), D),
!,
unify(C, A).
unify(A, B) :-
nonvar(A),
nonvar(B),
Expand Down
Binary file modified eye.zip
Binary file not shown.
12 changes: 6 additions & 6 deletions reasoning/blogic/modal.n3s
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
} .
} .

# it is obliged for bob to keep dogs
# it is obliged for bob to keep dogs and sheep
() log:onNegativeSurface {
() log:onModalSurface {
:Bob :keeps :Dogs, :Sheep.
Expand All @@ -34,14 +34,14 @@
} .
} .
} .
# is it not permitted for bob to not keep dogs?
# is it not permitted for bob to not keep dogs and sheep?
() log:onNegativeSurface {
() log:onModalSurface {
() log:onNegativeSurface {
() log:onNegativeSurface {
#() log:onNegativeSurface {
# () log:onNegativeSurface {
:Bob :keeps :Dogs, :Sheep .
} .
} .
# } .
#} .
} .
} .
# answer
Expand Down
8 changes: 4 additions & 4 deletions reasoning/blogic/neutral.n3s
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
# check that necessity(A) = ~possibility(~A)
() log:onNegativeSurface {
() log:onNeutralSurface {
() log:onNegativeSurface {
() log:onNegativeSurface {
#() log:onNegativeSurface {
# () log:onNegativeSurface {
:m :n :o .
:p :q :r .
} .
} .
# } .
#} .
} .
} .
() log:onAnswerSurface {
Expand Down
2 changes: 1 addition & 1 deletion reasoning/blogic/version.n3s.out
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@prefix log: <http://www.w3.org/2000/10/swap/log#>.

() log:version "EYE v4.17.1 (2023-09-21)".
() log:version "EYE v4.17.2 (2023-09-23)".

0 comments on commit 5f43e2e

Please sign in to comment.