-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
135 additions
and
21 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
@prefix : <urn:example:>. | ||
|
||
{ | ||
:ground :is :wet. | ||
} => false. | ||
{ | ||
:it :is :raining. | ||
} => false. |
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
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
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
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,3 @@ | ||
@prefix : <urn:example:>. | ||
|
||
:ground :is :wet. |
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,59 @@ | ||
@prefix skolem: <https://eyereasoner.github.io/.well-known/genid/8b98b360-9a70-4845-b52c-c675af60ad01#>. | ||
@prefix r: <http://www.w3.org/2000/10/swap/reason#>. | ||
@prefix : <urn:example:>. | ||
@prefix n3: <http://www.w3.org/2004/06/rei#>. | ||
@prefix var: <http://www.w3.org/2000/10/swap/var#>. | ||
|
||
skolem:proof a r:Proof, r:Conjunction; | ||
r:component skolem:lemma1; | ||
r:gives { | ||
:ground :is :wet. | ||
}. | ||
|
||
skolem:lemma1 a r:Inference; | ||
r:gives { | ||
:ground :is :wet. | ||
}; | ||
r:evidence ( | ||
skolem:lemma2 | ||
); | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo [ n3:uri "urn:example:ground"]]; | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_1"]; r:boundTo [ n3:uri "urn:example:wet"]]; | ||
r:rule skolem:lemma3. | ||
|
||
skolem:lemma2 a r:Inference; | ||
r:gives { | ||
:ground :is :wet. | ||
}; | ||
r:evidence ( | ||
[ a r:Fact; r:gives {{ | ||
{ | ||
:ground :is :wet. | ||
} => false. | ||
} => false}] | ||
); | ||
r:binding [ r:variable [ n3:uri "http://www.w3.org/2000/10/swap/var#x_0"]; r:boundTo { | ||
:ground :is :wet. | ||
}]; | ||
r:rule skolem:lemma4. | ||
|
||
skolem:lemma3 a r:Extraction; | ||
r:gives { | ||
@forAll var:x_0, var:x_1. { | ||
var:x_0 :is var:x_1. | ||
} => { | ||
var:x_0 :is var:x_1. | ||
}. | ||
}; | ||
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example2-query.n3>]. | ||
|
||
skolem:lemma4 a r:Extraction; | ||
r:gives { | ||
@forAll var:x_0. { | ||
{ | ||
var:x_0 => false. | ||
} => false. | ||
} => var:x_0. | ||
}; | ||
r:because [ a r:Parsing; r:source <https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example2.n3>]. | ||
|
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,8 @@ | ||
@prefix : <urn:example:>. | ||
|
||
# query | ||
{ | ||
?X :is ?Y. | ||
} => { | ||
?X :is ?Y. | ||
}. |
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,8 @@ | ||
@prefix log: <http://www.w3.org/2000/10/swap/log#>. | ||
@prefix : <urn:example:>. | ||
|
||
# the ground is not not wet | ||
{ { :ground :is :wet } => false } => false. | ||
|
||
# proof by contrapositive | ||
{ { ?P => false } => false } => ?P. |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/reasoning .. --nope https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example1.n3 --query https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example1-query.n3 --output example1-answer.n3 | ||
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/reasoning .. https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example1.n3 --query https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example1-query.n3 --output example1-proof.n3 | ||
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/reasoning .. --nope https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example2.n3 --query https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example2-query.n3 --output example2-answer.n3 | ||
eye --quiet --skolem-genid 8b98b360-9a70-4845-b52c-c675af60ad01 --wcache https://eyereasoner.github.io/eye/reasoning .. https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example2.n3 --query https://eyereasoner.github.io/eye/reasoning/proof-by-contrapositive/example2-query.n3 --output example2-proof.n3 |