--
You received this message because you are subscribed to the Google Groups "open-nars" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-nars+...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
Visit this group at http://groups.google.com/group/open-nars?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Both of your examples should not produce result in NARS. See http://www.cis.temple.edu/~pwang/Writing/NAL-Specification.pdf , page 50:
"an independent variable
normally appears in both sides of an implication or equivalence copula, as
extension or intension of two terms. A dependent variable normally appear
in two components of a conjunction, also as extension or intension of two
terms."
The valid inference patterns of NAL-6 are listed in http://code.google.com/p/open-nars/source/browse/trunk/nars-dist/Examples/Example-NAL6-in.txt which should be the basis of unit test.Pei
On Tue, Apr 2, 2013 at 5:03 AM, Jean-Marc Vanel <jeanmar...@gmail.com> wrote:
HiI added in new directory nars-dist/tests , unit tests for NAL 5 and 6 .The results looks OK for NAL 5 .But for NAL 6, only the one from "Table 8.3: Sample Independent-Variable Introduction Rules" works :**** Induction<M --> P>.<M --> S>.<<$x --> S> ==> <$x --> P>>?4*The ones I made by combining Table 8.3 and Table 3.3 ( Basic Syllogistic Rules ) do not bear any result , like :**** Exemplification , Deduction : no result !!!< P --> M >.< M --> S >.<<$x --> S> ==> <$x --> P>>?<<$x --> P> ==> <$x --> S>>?600
About variable introduction, I wrote a unit test that fails :and is a direct translation of "PDF" dialect into Open-NARS dialect.
Also, there are many lines commented out in class CompositionalRules ,in methodsintroVarOuter() and introVarInner() .What is the status of these commented lines ?Future features ?Code in need of reworking?
Could it be that the regressions are caused by this code commenting ?
On Thu, Apr 4, 2013 at 10:38 AM, Jean-Marc Vanel <jeanmar...@gmail.com> wrote:
About variable introduction, I wrote a unit test that fails :and is a direct translation of "PDF" dialect into Open-NARS dialect.Replace the `#' by `$'.
Also, there are many lines commented out in class CompositionalRules ,in methodsintroVarOuter() and introVarInner() .What is the status of these commented lines ?Future features ?Code in need of reworking?When 1.5.0 came from 1.4.0, many lines are commented out. Some are the code for NAL-7 and above, and some are caused by tentative design changes. I have to check them one by one to decide the reason and status.
Could it be that the regressions are caused by this code commenting ?That is possible, though I won't have any time to touch the code before April 20, so cannot say for sure.
2013/4/4 Pei Wang <mail.p...@gmail.com>
On Thu, Apr 4, 2013 at 10:38 AM, Jean-Marc Vanel <jeanmar...@gmail.com> wrote:
About variable introduction, I wrote a unit test that fails :and is a direct translation of "PDF" dialect into Open-NARS dialect.Replace the `#' by `$'.
I know that of course :) .I expected some comment on the fact that this rule does not fire in currrent code ( follow link above ).
Also, there are many lines commented out in class CompositionalRules ,in methodsintroVarOuter() and introVarInner() .What is the status of these commented lines ?Future features ?Code in need of reworking?When 1.5.0 came from 1.4.0, many lines are commented out. Some are the code for NAL-7 and above, and some are caused by tentative design changes. I have to check them one by one to decide the reason and status.
You probably should have forked from the revision 1.3.3 release to create 1.5 .And / or the 1.4 should have been a separate branch on the depot.But that 's the past, let's look at future !
Could it be that the regressions are caused by this code commenting ?That is possible, though I won't have any time to touch the code before April 20, so cannot say for sure.Do you see any other path I could check before April 20 ?
Does it help to have this more simple regression here (look at end of page ) :
"my" regression's question can be rewritten:
<<#1 --> blue>==>< #1 --> (/,pattern1,r1,_)> ?
So I tried this:
<b1 --> blue>. <(*,r1,b1
) --> pattern1>. <<$1 --> blue> ==> < $1 --> (/,pattern1,r1,_)> ? 100
This works ( with silence == 62 ) :
46
OUT: <b1 --> blue>? {46 : 2;4}
26
OUT: <<$1 --> blue> ==> <$1 --> (/,pattern1,r1,_)>>. %1.00;0.45% {71 : 1;2} Then the last step to desired conclusion is :
<<$1 --> blue> ==> <$1 --> (/,pattern1,r1,_)>>. <<$1 --> blue> ==> <(*,r1,$1) --> pattern1>>? 20
with result:
OUT: <<$1 --> blue> ==> <(*,r1,$1) --> pattern1>>. %1.00;0.90% {19 : 1} So, I'm puzzled, because I have 2 inferences runs : A |- B , B |- C but the direct inference A |- C fails ! To be sure, I ran to 50 000 steps the direct inference :
<b1 --> blue>. <(*,r1,b1) --> pattern1>. <<$1 --> blue> ==> <(*,r1,$1) --> pattern1>>?
My understanding was that to debug a NARS case, each step could separately checked, and the global direct inference should then work.
<b1 --> blue>. <(*,r1,b1) --> pattern1>. <<$1 --> blue> ==> <(*,r1,$1) --> pattern1>>?
In log window, I see that this is infered at step 35 :
from task: $0.80;0.80;0.95$ <b1 --> blue>. %1.00;0.90%
from belief: <b1 --> (/,pattern1,r1,_)>. %1.00;0.90% {8 : 2}
!!! Derived: $0.1718;0.1270;0.2230$ <<$1 --> blue> ==> <$1 --> (/,pattern1,r1,_)>>. %1.00;0.45% {35 : 2;1} It is re-infered several times later, but the intentional image is never translated to the desired pattern.
Quite early a form very near the answer is obtained:
--- 19 ---
* Selected Concept: b1
* Selected TaskLink: $0.9426;0.8000;0.9487$ _@(T4-1) <b1 --> blue>. %1.0000;0.9000% {0 : 2}
* Selected TermLink: $0.1421;0.3394;0.4243$ _@(T4-1) <b1 --> (/,pattern1,r1,_)>
* Selected Belief: <b1 --> (/,pattern1,r1,_)>. %1.0000;0.9000% {10 : 3}
!!! Derived: $0.3628;0.3811;0.6690$ <(/,pattern1,r1,_) --> blue>. %1.0000;0.4475% {19 : 3;2}
!!! Derived: $0.5548;0.3811;0.6690$ <blue --> (/,pattern1,r1,_)>. %1.0000;0.4475% {19 : 3;2}
!!! Derived: $0.6183;0.3811;0.6690$ <(/,pattern1,r1,_) <-> blue>. %1.0000;0.4475% {19 : 3;2}
!!! Derived: $0.3628;0.3811;0.6690$ <<#1 --> (/,pattern1,r1,_)>==><#1 --> blue>>. %1.0000;0.4475% {19 : 3;2}
!!! Derived: $0.5548;0.3811;0.6690$ <<#1 --> blue>==><#1 --> (/,pattern1,r1,_)>>. %1.0000;0.4475% {19 : 3;2}It is re-infered several times later.
But only much later is it translated to the desired pattern :
--- 262 ---
* Selected Concept: pattern1
* Selected TaskLink: $0.3147;0.3811;0.6690$ _@(T8-2-2-2) <<#1 --> blue> ==> <#1 --> (/,pattern1,r1,_)>>. %1.0000;0.4475% {114 : 3;2}
!!! Derived: $0.0702;0.0850;0.2230$ <<#1 --> blue>==><(*,r1,#1) --> pattern1>>. %1.0000;0.4475% {262 : 3;2} Deciphering the NARS 1.3.3 log that succeeds in 263 steps ...
Quite early a form very near the answer is obtained:
--- 19 --- * Selected Concept: b1 * Selected TaskLink: $0.9426;0.8000;0.9487$ _@(T4-1) <b1 --> blue>. %1.0000;0.9000% {0 : 2} * Selected TermLink: $0.1421;0.3394;0.4243$ _@(T4-1) <b1 --> (/,pattern1,r1,_)> * Selected Belief: <b1 --> (/,pattern1,r1,_)>. %1.0000;0.9000% {10 : 3} !!! Derived: $0.3628;0.3811;0.6690$ <(/,pattern1,r1,_) --> blue>. %1.0000;0.4475% {19 : 3;2} !!! Derived: $0.5548;0.3811;0.6690$ <blue --> (/,pattern1,r1,_)>. %1.0000;0.4475% {19 : 3;2} !!! Derived: $0.6183;0.3811;0.6690$ <(/,pattern1,r1,_) <-> blue>. %1.0000;0.4475% {19 : 3;2} !!! Derived: $0.3628;0.3811;0.6690$ <<#1 --> (/,pattern1,r1,_)>==><#1 --> blue>>. %1.0000;0.4475% {19 : 3;2} !!! Derived: $0.5548;0.3811;0.6690$ <<#1 --> blue>==><#1 --> (/,pattern1,r1,_)>>. %1.0000;0.4475% {19 : 3;2}It is re-infered several times later.
But only much later is it translated to the desired pattern :
--- 262 --- * Selected Concept: pattern1 * Selected TaskLink: $0.3147;0.3811;0.6690$ _@(T8-2-2-2) <<#1 --> blue> ==> <#1 --> (/,pattern1,r1,_)>>. %1.0000;0.4475% {114 : 3;2} !!! Derived: $0.0702;0.0850;0.2230$ <<#1 --> blue>==><(*,r1,#1) --> pattern1>>. %1.0000;0.4475% {262 : 3;2}Indeed it suggests that the control and/or priority mechanism is faulty.I hope it's a plain bug, and that raising some priority for this case will not prevent other inferences .
From the NARS 1.5.2 log that fails, quite early a form very near the answer is also obtained, by the same inference as with 1.3.3 :
--- 35 ---
* Selected Concept: b1
* Selected TaskLink: $0.5547;0.8000;0.9487$ _@(T4-1) <b1 --> blue>. %1.00;0.90% {0 : 1}
* Selected TermLink: $0.1533;0.3394;0.4243$ _@(T4-1) <b1 --> (/,pattern1,r1,_)>
* Selected Belief: <b1 --> (/,pattern1,r1,_)>. %1.0000;0.9000% {8 : 2}
!!! Derived: $0.2368;0.3811;0.6690$ <(/,pattern1,r1,_) --> blue>. %1.00;0.45% {35 : 2;1}
from task: $0.80;0.80;0.95$ <b1 --> blue>. %1.00;0.90%
from belief: <b1 --> (/,pattern1,r1,_)>. %1.00;0.90% {8 : 2}
!!! Derived: $0.4263;0.3811;0.6690$ <blue --> (/,pattern1,r1,_)>. %1.00;0.45% {35 : 2;1}
from task: $0.80;0.80;0.95$ <b1 --> blue>. %1.00;0.90%
from belief: <b1 --> (/,pattern1,r1,_)>. %1.00;0.90% {8 : 2}
!!! Derived: $0.4890;0.3811;0.6690$ <(/,pattern1,r1,_) <-> blue>. %1.00;0.45% {35 : 2;1}
from task: $0.80;0.80;0.95$ <b1 --> blue>. %1.00;0.90%
from belief: <b1 --> (/,pattern1,r1,_)>. %1.00;0.90% {8 : 2}
!!! Derived: $0.2592;0.1938;0.3402$ <b1 --> (|,(/,pattern1,r1,_),blue)>. %1.00;0.81% {35 : 2;1}
from task: $0.80;0.80;0.95$ <b1 --> blue>. %1.00;0.90%
from belief: <b1 --> (/,pattern1,r1,_)>. %1.00;0.90% {8 : 2}
!!! Derived: $0.2610;0.1938;0.3402$ <b1 --> (&,(/,pattern1,r1,_),blue)>. %1.00;0.81% {35 : 2;1}
from task: $0.80;0.80;0.95$ <b1 --> blue>. %1.00;0.90%
from belief: <b1 --> (/,pattern1,r1,_)>. %1.00;0.90% {8 : 2}
!!! Derived: $0.1718;0.1270;0.2230$ <<$1 --> blue> ==> <$1 --> (/,pattern1,r1,_)>>. %1.00;0.45% {35 : 2;1}--