-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.0.2 pre-alpha: most of the testacses of nal7, except those relatei…
…ve to nal6, have been passed.
- Loading branch information
xubowen
committed
Feb 19, 2022
1 parent
dd5a5c7
commit 4f95b13
Showing
87 changed files
with
2,775 additions
and
1,318 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
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,12 @@ | ||
'********** deduction with interval summation | ||
|
||
' a + 1 = b | ||
<(&/, a, +1) =/> (&/, b, c)>. | ||
|
||
' b + 1 = c | ||
<(&/, b, c, +1) =/> d>. | ||
|
||
10 | ||
|
||
' a + 2 = c | ||
''outputMustContain('<(&/,a,+2) =/> d>. %1.00;0.81%') |
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,12 @@ | ||
'********** deduction with interval summation | ||
|
||
' a + 1 = b | ||
<(&/, a, +1) =/> (&/, b, c)>. | ||
|
||
' b + 1 = c | ||
<(&/, c, b, +1) =/> d>. | ||
|
||
10 | ||
|
||
' a + 2 = c | ||
''outputMustNotContain('<(&/,a,+2) =/> d>. %1.00;0.81%') |
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,14 @@ | ||
'********** inference on tense | ||
|
||
'If someone hold key_101, he will enter room_101 (in 100 steps) | ||
<(&/,<(*, John, key_101) --> hold>,+100) =/> <(*, John, room_101) --> enter>>. | ||
|
||
'John held the key_101 | ||
<(*, John, key_101) --> hold>. :\: | ||
|
||
20 | ||
|
||
'John will enter room_101 | ||
''outputMustContain('<(*,John,room_101) --> enter>. :!95: %1.00;0.81%') | ||
|
||
'this one is working, but throws an exception |
File renamed without changes.
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,12 @@ | ||
'********** inference on tense | ||
|
||
'If someone hold key_101, he will enter room_101 (in 100 steps) | ||
<(&/,<(*, John, key_101) --> hold>,+100) =/> <(*, John, room_101) --> enter>>. | ||
|
||
'John is entering room_101 now | ||
<(*,John,room_101) --> enter>. :|: | ||
|
||
25 | ||
|
||
'John held the key_101 (105 steps before) | ||
''outputMustContain('<(*,John,key_101) --> hold>. :!-105: %1.00;0.45%') |
File renamed without changes.
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,18 @@ | ||
'********** induction on events | ||
|
||
'John is opening door_101 | ||
<John --> (/,open,_,door_101)>. :|: | ||
|
||
6 | ||
|
||
'John is entering room_101 | ||
<John --> (/,enter,_,room_101)>. :|: | ||
|
||
20 | ||
|
||
'If John enter room_101, he should open door_101 before | ||
''outputMustContain('<<John --> (/,enter,_,room_101)> =\> (&/,<John --> (/,open,_,door_101)>,+6)>. :!6: %1.00;0.45%') | ||
|
||
'adjusted +2 to +3 in both conditions | ||
|
||
10 |
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 |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
<A <|> B>. | ||
<B <|> C>. | ||
|
||
5 | ||
|
||
''outputMustContain('<A <|> C>. %1.00;0.81%') |
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,6 +1,8 @@ | ||
' (A =|> B), (A =|> C) |- (B =|> C) (Truth:Abduction) | ||
' (A =|> B), (C =|> B) |- (A =|> C) (Truth:Induction) | ||
|
||
<A =|> B>. | ||
<A =|> C>. | ||
<C =|> B>. | ||
|
||
''outputMustContain('<B =|> C>. %1.00;0.45%') | ||
5 | ||
|
||
''outputMustContain('<A =|> C>. %1.00;0.45%') |
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 |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
<A =|> B>. | ||
<B =|> C>. | ||
|
||
5 | ||
|
||
''outputMustContain('<A =|> C>. %1.00;0.81%') |
6 changes: 6 additions & 0 deletions
6
Tests/examples/single_step/nal7/nal7.concurrentImpl.goal.const.nal
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,6 @@ | ||
<<something --> [hardened]> =|> <something --> [unscrewing]>>. %1.00;0.90% | ||
<something --> [unscrewing]>! | ||
|
||
15 | ||
|
||
''outputMustContain('<something --> [hardened]>! %1.00;0.81%') |
2 changes: 1 addition & 1 deletion
2
...le_step/nal7/nal7.concurrentImpl.goal.nal → ...tep/nal7/nal7.concurrentImpl.goal.var.nal
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,6 +1,6 @@ | ||
<<$1 --> [hardened]> =|> <$1 --> [unscrewing]>>. %1.00;0.90% | ||
<#1 --> [unscrewing]>! | ||
|
||
10 | ||
15 | ||
|
||
''outputMustContain('<#1 --> [hardened]>! %1.00;0.81%') |
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,6 +1,8 @@ | ||
' (A =|> B), (C =|> B) |- (A =|> C) (Truth:Induction) | ||
' (A =|> B), (A =|> C) |- (B =|> C) (Truth:Abduction) | ||
|
||
<A =|> B>. | ||
<C =|> B>. | ||
<A =|> C>. | ||
|
||
''outputMustContain('<A =|> C>. %1.00;0.45%') | ||
5 | ||
|
||
''outputMustContain('<B =|> C>. %1.00;0.45%') |
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
6 changes: 6 additions & 0 deletions
6
Tests/examples/single_step/nal7/nal7.predictiveImpl.goal.const.nal
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,6 @@ | ||
<<something --> [hardened]> =/> <something --> [unscrewing]>>. %1.00;0.90% | ||
<something --> [unscrewing]>! | ||
|
||
15 | ||
|
||
''outputMustContain('<something --> [hardened]>! %1.00;0.81%') |
2 changes: 1 addition & 1 deletion
2
...le_step/nal7/nal7.predictiveImpl.goal.nal → ...tep/nal7/nal7.predictiveImpl.goal.var.nal
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,6 +1,6 @@ | ||
<<$1 --> [hardened]> =/> <$1 --> [unscrewing]>>. %1.00;0.90% | ||
<#1 --> [unscrewing]>! | ||
|
||
10 | ||
15 | ||
|
||
''outputMustContain('<#1 --> [hardened]>! %1.00;0.81%') |
6 changes: 6 additions & 0 deletions
6
Tests/examples/single_step/nal7/nal7.retrospectiveImpl.goal.const.nal
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,6 @@ | ||
<<something --> [unscrewing]> =\> <something --> [hardened]>>. %1.00;0.90% | ||
<something --> [unscrewing]>! | ||
|
||
10 | ||
|
||
''outputMustContain('<something --> [hardened]>! %1.00;0.45%') |
File renamed without changes.
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
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
Oops, something went wrong.