Brainhat 's disarmingly human-like qualities of understanding, learning, answering questions and speculating are simply the products of creation and manipulation of CCs. Processing routines manipulate the CCs to change their meaning, or combine them to make new. Each sentence input is echoed to verify its meaning. This next segment shows Brainhat exercising a chain of reasoning, and explaining the outcome. Each applies some simple processing, typically modifying the shape of the CCs that are passed-in, and handing them off to the routine that appears above it in the list.
New rules extend brainhat 's ability to understand.
Brainhat also uses pattern matching to identify structures within CCs. Syntactically, CC pattern templates look very much like input pattern templates. This introduction was intented simply to introduce the elements of brainhat programming. Basic Knowledge Pool Brainhat learns about the relationships between basic concepts at start-up. The notions that balls are toys, that pink is a shade of red, for example, are things that you tell brainhat in advance.