Skip to content

Commit

Permalink
refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Apr 21, 2023
1 parent 4f587c3 commit bcd93b9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions eye.pl
Original file line number Diff line number Diff line change
Expand Up @@ -739,15 +739,26 @@
catch(call(H), _, false),
'<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(_, H)
), false, '<>')),
% resolve positive surface
% simplify positive surface in negative surface
assertz(implies(('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, G),
conj_list(G, L),
select('<http://www.w3.org/2000/10/swap/log#onPositiveSurface>'([], H), L, K),
conj_list(H, D),
append(K, D, E),
conj_list(F, E)
), '<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, F), '<>')),
% erase at even level
% simplify graffiti in negative surface
assertz(implies(('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, G),
findvars(G, U, beta),
findall(M,
( member(M, V),
memberchk(M, U)
),
W
),
W \= V
), '<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(W, G), '<>')),
% simplify nested negative surfaces
assertz(implies(('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, G),
conj_list(G, L),
select('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'([], H), L, K),
Expand All @@ -763,7 +774,7 @@
),
append(V, W, U)
), '<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(U, C), '<>')),
% resolve negative surfaces
% resolve two negative surfaces
assertz(implies(('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, G),
conj_list(G, L),
\+member('<http://www.w3.org/2000/10/swap/log#onQuerySurface>'(_, _), L),
Expand Down Expand Up @@ -794,17 +805,6 @@
conj_list(H, T),
ground('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, H))
), '<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, H), '<>')),
% adjust graffiti
assertz(implies(('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, G),
findvars(G, U, beta),
findall(M,
( member(M, V),
memberchk(M, U)
),
W
),
W \= V
), '<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(W, G), '<>')),
% create forward rule
assertz(implies(('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, G),
conj_list(G, L),
Expand All @@ -817,7 +817,7 @@
findvars(S, W, beta),
makevars(S, I, beta(W))
), '<http://www.w3.org/2000/10/swap/log#implies>'(Q, I), '<>')),
% create contrapositive
% create contrapositive rule
assertz(implies(('<http://www.w3.org/2000/10/swap/log#onNegativeSurface>'(V, G),
conj_list(G, L),
\+member('<http://www.w3.org/2000/10/swap/log#onPositiveSurface>'(_, _), L),
Expand Down

0 comments on commit bcd93b9

Please sign in to comment.