|
|
|
|
Please go to
which is updated version of this homepage.
Information below is out-of-date and remains here only for keeping old links.
SAMPLE Language & Technology:
http://www.webspawner.com/users/samplex/.Logic Formula Transformation (shifting quantifiers)
The main clause of this program almost literally quotes a well-known formal rule from a student textbook for Mathematical Logic, along with informal constraints for application of this rule. See also next 2 programs, modifications of this one, and miscellaneous SAMPLE program examples -- for explanation of the last clauses of these programs.
|
% Goal: |
Output:
(/\ x0)[a(x0,y)] \/ (/\ x0)[b(x0,t)] --> (/\ x0)(/\ x10)([a(x0,y)] \/ [b(x10,t)]).This and the next two programs demonstrate that complex algorithms for logic formula transformations may be derived just from their semiformal descriptions!
Inverse Logic Formula Transformation (elimination of parentheses and distribution of quantifiers).
The program is the same as the previous one, but its goal is "opposite" (W at the beginning is to be filled by the resulting formula):
|
% Goal |
Output: the same as in the previous example.
Logic Formula Transformation 2
In this version of the same program we use more natural description language. Rule identification (see variable R in the goal) is added. You can run these programs using special FIND ALL DECISIONS option. The programs will form words x10, x110, x1110 etc. for representation of logic variable Z under the second quantifier /\. Note that no previous parsing of the goal is required!
|
%Goal: |
Output:
Have you noticed already that we are programming in a natural language?!
Genetics: Recognition of regularities in word codes
|
%Possible goals: |
After running, X will match 12z, Y - z21, Z - xyzxyz, then xyz, then yzx etc., W will match sequence 1 3 4 9 and hen 1 2 4 9. This program can be used for detecting of sub-word repetitions, inversions, and other special features of symbol lines, which represent a genetic structure. Note its natural language form: it is constructed from expressions occurring in literature about genetics, without involving any special knowledge about computer programming!
SAMPLE Language & Technology:
http://www.webspawner.com/users/samplex/. Back to SAMPLE Language & Technology |
Other examples: NL processing |
Other examples: misc. SAMPLE programs |
Metaphoric Conclusions about SAMPLE Technology |
Send E-Mail to: gleibman@yahoo.com