Summon the Tutorial AI Mind into your presence with MSIE.

kbTraversal module of MindForth and the free AI textbook tutorial Mind
by Mentifex

1. Diagram of the AI Textbook Algorithm Step: Code the kbTraversal Mind-Module

   /^^^^^^^^^\  KB-Traversal Reactivates Concepts  /^^^^^^^^^\
  / visual    \ from the English Bootstrap Vault  / _________ \
 /  memory     \                                 / /  vault  \ \
|   _______     |    | | | |       | | | | |    | / of enBoot \ |
|  /old    \    |    | | | |       | | | | |    | | memories   ||
| / image   \---|----+ | | |       | | | | +    | | "YOU..."   ||
| \ recog   /   |   y|p|r|t|       | | + | |    | | "PEOPLE..."||
|  \_______/    |   o|e|o|r|       + | | | |    | | "ROBOTS..."||
|               |   u|o|b|u|       | | | + |    | | "TRUTH..."/ |
|               |    |p|o|t|       | | | | |    |  \_________/  |
|               |    |l|t|h|       | | | | |    |oldest memories|
|               |    |e| | |       | | | | |    |being forgotten|
|   _______     |    | | | |       | | | | |    |   ________    |
|  /new    \    |   _|_|_|_|_      |_|_|_|_|    |  /        \   |
| / percept \   |  /  Psi    \----/ English \---|-/ Auditory \  |
| \ engram  /---|-/ concepts  \--/  lexicon  \--|-\ phonemes /  |
|  \_______/    | \___________/  \___________/  |  \________/   |

http://mentifex.virtualentity.com/diagrams.html shows a Theory of Mind.


2. Wikipedia dynamically expands the free AI textbook.

Beyond the original AI4U textbook and the quasi-chapter updates
of the AI mind-module documentation webpages, Wikipedia is where
thousands of volunteers constantly update and improve the free AI
textbook by editing AI background articles for each AI4U chapter.
These Wikipedia articles expand on the kbTraversal mind-module.



3. JavaScript free Seed AI source code with free User Manual
// kbTraversal() reactivates knowledge-base concepts.
function kbTraversal() {  // atm 4sep2008
  pov = 35;    // 4sep2008 Make sure pov is "internal".
  psiDecay();  // 4sep2008 Suppress currently active concepts.  
  psiDecay();  // 4sep2008 Suppress currently active concepts.  
  psiDecay();  // 4sep2008 Suppress currently active concepts.  
  if (kbtv > 4) kbtv = 1;  // 3sep2008 Cycle through values.
  if (kbtv==1) {  // 4sep2008 As kbtv rotates through values...
    psi = 56;  // 4sep2008 Psi concept #56 for "YOU" in enBoot.
    nounval = 62;  // 4sep2008 High enough for slosh-over?
    nounAct();  // 4sep2008 Activate the indicated concept.
  }  // 4sep2008 End of test for a rotating value of kbtv.
  if (kbtv==2) {  // 4sep2008 As kbtv rotates through values...
    psi = 37;  // 4sep2008 Psi concept #37 for "PEOPLE" in enBoot.
    nounval = 62;  // 4sep2008 High enough for slosh-over?
    nounAct();  // 4sep2008 Activate the indicated concept.
  }  // 4sep2008 End of test for a rotating value of kbtv.
  if (kbtv==3) {  // 4sep2008 As kbtv rotates through values...
    psi = 39;  // 4sep2008 Psi concept #39 for "ROBOTS" in enBoot.
    nounval = 62;  // 4sep2008 High enough for slosh-over?
    nounAct();  // 4sep2008 Activate the indicated concept.
  }  // 4sep2008 End of test for a rotating value of kbtv.
  if (kbtv==4) {  // 4sep2008 As kbtv rotates through values...
    psi = 68;  // 4sep2008 Psi concept #68 for "TRUTH" in enBoot.
    nounval = 62;  // 4sep2008 High enough for slosh-over?
    nounAct();  // 4sep2008 Activate the indicated concept.
  }  // 4sep2008 End of test for a rotating value of kbtv.
  pov = 42;  // 4sep2008 Set pov to "external" to await input.
  //alert("kbTr: kbtv & rjc = " + kbtv + " & " + rjc); // 4sep2008
}  // End of function kbTraversal() called from Rejuvenate().

4. Mind.Forth free artificial general intelligence with User Manual
\ kbTraversal keeps the AI from becoming too dull.
:  kbTraversal ( reactivate KB concepts )  \  3sep2008
    35 pov !  \  3sep2008 Make sure pov is "internal".
    psiDecay  \  3sep2008 Suppress currently active concepts.
    psiDecay  \  3sep2008 Suppress currently active concepts.
    psiDecay  \  3sep2008 Suppress currently active concepts.
    kbtv @ 4 > IF  1 kbtv !  THEN  \  3sep2008 Cycle through values.
    CR ." KB-traversal: With kbtv at " kbtv @ .   \  3sep2008
    kbtv @ 1 = IF  \  3sep2008
      39 psi !     \  3sep2008 Psi concept #39 for "ROBOTS" in enBoot.
      ." activating concept of ROBOTS" CR
      62 nounval ! \  3sep2008 High enough for slosh-over?
      nounAct      \  3sep2008 Activate the indicated concept.
    THEN  \  3sep2008
    kbtv @ 2 = IF  \  3sep2008
      37 psi !     \  3sep2008 Psi concept #37 for "PEOPLE" in enBoot.
      ." activating concept of PEOPLE" CR
      62 nounval ! \  3sep2008 High enough for slosh-over?
      nounAct      \  3sep2008 Use the concept in a sentence of thought.
    THEN  \  3sep2008
    kbtv @ 3 = IF  \  3sep2008
      56 psi !     \  3sep2008 Psi concept #56 for "YOU" in enBoot.
      ." activating concept of YOU" CR
      62 nounval ! \  3sep2008 High enough for slosh-over?
      nounAct      \  3sep2008 Use the concept in a sentence of thought.
    THEN  \  3sep2008
    kbtv @ 4 = IF  \  3sep2008
      68 psi !     \  3sep2008 Psi concept #68 for "TRUTH" in enBoot.
      ." activating concept of TRUTH" CR
      62 nounval ! \  3sep2008 High enough for slosh-over?
      nounAct      \  3sep2008 Use the concept in a sentence of thought.
    THEN  \  3sep2008
    42 pov !  \  3sep2008 Set pov to "external" to await input.
;  \  3sep2008 End of kbTraversal; return to Rejuvenate.

http://mentifex.virtualentity.com/m4thuser.html is the Mind.Forth User Manual.
http://mentifex.virtualentity.com/variable.html explains the variables in the AI Mind.


5. What the kbTraversal module does

Knowledge base (KB) traversal is not a natural mind-module but
rather it is an especially artificial feature beyond the ordinary
mind-emulation of artificial intelligence. The kbTraversal module
is launched or invoked by another especially artificial module,
the Rejuvenate module which performs an operation not available
in natural human minds. These unnaturally artificial modules are
necessary because the primitive AI Minds do not have enough memory
for a long mental life-span (in the case of the Rejuvenate module),
and because the lack of sensory input from robotic embodiment makes
a disembodied AI Mind tend to lapse into waiting for human input
rather than following its own internal chains of meandering thought.

On 3.SEP.2008 a kbTraversal module was first installed in MindForth
as a way not only to reactivate latent ideas in the knowledge base
but -- and here is where the technique becomes powerful -- as a way
to rotate with a seeming novelty through the variety of concepts
pre-programmed into the English bootstrap (enBoot) of the AI Mind.
Suddenly the AI Forthmind became much more interesting to interact
with, because the human user no longer needed to draw out the AI Mind,
but could instead react to the deep thought streaming through the AI.

Likewise the primitive AI entities sudenly became exhibit-worthy for
educational science museums, because now the museum-going public
could behold the incessant thought-processes of the AI, with an option
to interact with the AI Mind by asking it things or telling it things.


6. Troubleshooting and Debugging

When troubleshooting the kbTraversal module, it is necessary
to wait until the freshly started AI Mind goes into Rejuvenate.
Then the function of kbTraversal will be obvious from the choice
of bootstrap concepts reactivated for the generation of thought.
Since the thoughts may be a function of user input still lodged
in the recent memory of the Mind, the AI porgrammer must be
careful to discriminate between problems caused by faulty user
input and genuine problems due to faults in the AI source code.

If the troubleshooting AI programmer is also a science museum
docent demonstrating the AI Mind to museum visitors and teaching
students how an artificial intelligence thinks, then the process
of debugging the AI becomes an integral part of the hands-on,
interactive museum display. The programmer need not fear ruining
the AI code, because the best available previous version can
always be restored or "reloaded" -- as they say in such movies
as "The Matrix Reloaded."


7. Links and Resources


Last updated: 9 September 2008
Return to the
top of this page or to the
main index page.