Skip to content

Commit

Permalink
supporting lists of graph terms as conclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Sep 29, 2023
1 parent 3d29f68 commit b2f383c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 27 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.18.0 (2023-09-29) supporting lists of graph terms as conclusions
v4.17.7 (2023-09-28) correcting list:remove and list:removeAt built-ins
v4.17.6 (2023-09-25) fixing inference fuse explanation
v4.17.5 (2023-09-24) speeding up inference fuse
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.17.7
4.18.0
6 changes: 4 additions & 2 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.7 (2023-09-28)').
version_info('EYE v4.18.0 (2023-09-29)').

license_info('MIT License

Expand Down Expand Up @@ -4943,6 +4943,7 @@
; true
),
\+atom(Conc),
\+is_list(Conc),
( flag('rule-histogram'),
copy_term_nat(Rule, RuleL)
-> lookup(RTP, tp, RuleL),
Expand Down Expand Up @@ -6506,7 +6507,8 @@
when(
( nonvar(A)
),
( sort(A, B)
( is_list(A),
sort(A, B)
)
).

Expand Down
Binary file modified eye.zip
Binary file not shown.
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.7 (2023-09-28)".
() log:version "EYE v4.18.0 (2023-09-29)".
20 changes: 9 additions & 11 deletions reasoning/refresh/beetle.n3
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@
# all cars are red or green or blue
{
?A a :Car.
} => {
(
{
?A :is :red.
} {
?A :is :green.
} {
?A :is :blue.
}
) log:or true.
}.
} => (
{
?A :is :red.
} {
?A :is :green.
} {
?A :is :blue.
}
).

# red things are beautiful
{
Expand Down
16 changes: 4 additions & 12 deletions reasoning/refresh/refresh.n3
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,26 @@

# factoring
{
?P => {
?C log:or true.
}.
?P => ?C.
?C list:sort (?D).
} => {
?P => ?D.
}.

# resolution
{
?P => {
?C log:or true.
}.
?P => ?C.
?C list:member ?D.
?D => ?E.
(?C ?D) list:remove ?F.
?G list:firstRest (?E ?F).
} => {
?P => {
?G log:or true.
}.
?P => ?G.
}.

# not(P) implies P is inconsistent
{
?P => {
() log:or true.
}.
?P => ().
} => {
?P => false.
}.

0 comments on commit b2f383c

Please sign in to comment.