NARS

User's Guide of the NARS Applet

Pei Wang

Last changed: August 16, 2006


Input/Output Language

In this demonstration, NARS implements the following formal language, Narsese. The input and output of the system are sequences of Narsese sentences, plus number of inference steps to be carried out.
           <sentence> ::= <judgment>
                        | <question>
                        | <goal>
           <judgment> ::= <statement> <truth-value>
           <question> ::= <statement>
               <goal> ::= <statement> <desire-value>
          <statement> ::= <<term> <relation> <term>>
                        | <compound-statement>
                        | <term>
               <term> ::= <word>
                        | <variable>
                        | <compound-term>
                        | <statement>
           <relation> ::= -->                              // inheritance
                        | <->                              // similarity
                        | {--                              // instance
                        | --]                              // property
                        | {-]                              // instance-property
                        | ==>                              // implication
                        | <=>                              // equivalence
                        | =/>                              // predictive implication
                        | =\>                              // retrospective implication
                        | </>                              // predictive equivalence
 <compound-statement> ::= (-- <statement>)                 // negation
                        | (&& <statement> <statement>+)    // conjunction
                        | (|| <statement> <statement>+)    // disjunction
                        | (&/ <statement> <statement>+)    // sequential conjunction
                        | (/> <statement>)                 // future tense
                        | (\> <statement>)                 // past tense
      <compound-term> ::= {<term>+}                        // extensional set
                        | [<term>+]                        // intensional set
                        | (& <term> <term>+)               // extensional intersection
                        | (| <term> <term>+)               // intensional intersection
                        | (- <term> <term>)                // extensional difference
                        | (~ <term> <term>)                // intensional difference
                        | (* <term> <term>+)               // product
                        | (/ <term> <term>)                // extensional image
                        | (\ <term> <term>)                // intensional image
           <variable> ::= <dependent-var>
                        | <independent-var>
                        | <query-var>
      <dependent-var> ::= #<word>(<independent-var>*)
    <independent-var> ::= #<word>
          <query-var> ::= ?<word>
        <truth-value> ::= %<frequency> <confidence>%
       <desire-value> ::= !<frequency> <confidence>!
          <frequency> : real number in [0, 1]
         <confidence> : real number in (0, 1), with 0.9 as default
               <word> : string in an alphabet


Graphical User Interface

The GUI of NARS consists of several windows. In the following, they are described one by one. The following color code is used in the GUI: