Abstract: A knowledge base system for building a knowledge base. The knowledge base system includes an interface device that receives said knowledge base by a user, and a generating device that generates a program based upon the knowledge base. The interface device includes a field that stores an output knowledge variable, input and local fields that store knowledge variables for operating the output knowledge variables, and a field that stores a computing equation of declarative representation that utilizes knowledge variables using operands as other knowledge variables.