Skip to content

Commit

Permalink
refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Nov 9, 2024
1 parent d855925 commit ab7343e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions color/peasant-multiplication/peasant-multiplication-proof.n3
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ skolem:lemma5 a r:Extraction;
(3 0) :prod var:x_0.
}.
};
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication.n3>].
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication-query.n3>].

skolem:lemma6 a r:Inference;
r:gives {
Expand Down Expand Up @@ -103,7 +103,7 @@ skolem:lemma7 a r:Extraction;
(5 6) :prod var:x_0.
}.
};
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication.n3>].
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication-query.n3>].

skolem:lemma8 a r:Inference;
r:gives {
Expand Down Expand Up @@ -131,7 +131,7 @@ skolem:lemma9 a r:Extraction;
(238 13) :prod var:x_0.
}.
};
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication.n3>].
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication-query.n3>].

skolem:lemma10 a r:Inference;
r:gives {
Expand Down
6 changes: 6 additions & 0 deletions color/peasant-multiplication/peasant-multiplication-query.n3
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@prefix : <http://eexample.org/#>.

# query
{(3 0) :prod ?Z} => {(3 0) :prod ?Z}.
{(5 6) :prod ?Z} => {(5 6) :prod ?Z}.
{(238 13) :prod ?Z} => {(238 13) :prod ?Z}.
5 changes: 0 additions & 5 deletions color/peasant-multiplication/peasant-multiplication.n3
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@
{(0 ?Y) :prod 0} <= true.
{(?X ?Y) :prod ?Z} <= {?X math:notEqualTo 0. (?X 2) math:remainder 0. ((?X 2)!math:integerQuotient (?Y ?Y)!math:sum) :prod ?Z}.
{(?X ?Y) :prod ?Z} <= {?X math:notEqualTo 0. (?X 2) math:remainder 1. (((?X 2)!math:integerQuotient (?Y ?Y)!math:sum)!:prod ?Y) math:sum ?Z}.

# query
{(3 0) :prod ?Z} =^ {(3 0) :prod ?Z}.
{(5 6) :prod ?Z} =^ {(5 6) :prod ?Z}.
{(238 13) :prod ?Z} =^ {(238 13) :prod ?Z}.
4 changes: 2 additions & 2 deletions color/peasant-multiplication/test
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/color .. --nope https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication.n3 --output peasant-multiplication-answer.n3
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/color .. https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication.n3 --output peasant-multiplication-proof.n3
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/color .. --nope https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication.n3 --query https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication-query.n3 --output peasant-multiplication-answer.n3
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/color .. https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication.n3 --query https://eyereasoner.github.io/eye/color/peasant-multiplication/peasant-multiplication-query.n3 --output peasant-multiplication-proof.n3

0 comments on commit ab7343e

Please sign in to comment.