Skip to content

Commit

Permalink
adding duality blogic
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Sep 24, 2023
1 parent 844e0ac commit e4a34c5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 8 deletions.
27 changes: 23 additions & 4 deletions reasoning/blogic/modal.n3s
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
@prefix : <urn:example:> .

# duality blogic
(_:A _:B _:C) log:onNegativeSurface {
() log:onNegativeSurface {
() log:onModalSurface _:A .
} .
_:A log:notIncludes {
_:B log:onNegativeSurface _:C .
} .
() log:onNegativeSurface {
() log:onNegativeSurface {
() log:onModalSurface {
() log:onNegativeSurface {
() log:onNegativeSurface _:A .
} .
} .
} .
} .
} .

# it is permitted for alice to keep cats
() log:onModalSurface {
() log:onNegativeSurface {
Expand Down Expand Up @@ -37,11 +56,11 @@
# 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
27 changes: 23 additions & 4 deletions reasoning/blogic/neutral.n3s
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@
@prefix log: <http://www.w3.org/2000/10/swap/log#> .
@prefix : <urn:example:> .

# duality blogic
(_:A _:B _:C) log:onNegativeSurface {
() log:onNegativeSurface {
() log:onNeutralSurface _:A .
} .
_:A log:notIncludes {
_:B log:onNegativeSurface _:C .
} .
() log:onNegativeSurface {
() log:onNegativeSurface {
() log:onNeutralSurface {
() log:onNegativeSurface {
() log:onNegativeSurface _:A .
} .
} .
} .
} .
} .

# neutral surface with 2 triples
() log:onNeutralSurface {
:a :b :c .
Expand Down Expand Up @@ -58,12 +77,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

0 comments on commit e4a34c5

Please sign in to comment.