|
|
|
|
word
|
(Definition)
|
|
|
Given a set , a word (or a string) over is a juxtaposition (variously called concatenation or multiplication) of a finite number of elements in . The juxtaposition is taken as an associative binary operation on . A word with zero number of elements is called an empty word, typically denoted by . The set of words over is denoted .
Examples.
- If
, the English alphabet written in the lower case, then “good”, “mathematics”, “fasluiwh” are all words (without the double quotes) over , where as “PlanetMath” is not, because it contains upper case letters, which are not in .
- Let
. Then “ ”, “ ”, “ ”, “ ”, “ ”, “ ”, “ ” are also words over .
- The notion of words is used extensively in group theory. The juxtaposition here is the group multiplication, as the multiplication is associative. In other words, if
are elements in then we can form the word
. For example, in the free group
a word could be the commutator
.
Remarks
- For any element
in , define
, and
for non-negative integers . Then
since juxtaposition is associative.
- A word
is called a subword of if , for some words and (may be empty words). If is a subword of , we also say that occurs in , or that contains . For example, “math” is a subword of “mathematics”. Given the equation , we call the triple an occurrence of in . The collection of occurrences of in is denoted . The number of occurrences of in defined as the cardinality
of , and written . For example, the number of occurrences of subword in is , since
Some of the words in the second example above, such as “ ” and “ ”, do not make any mathematical sense. The way to define words that make sense is through a process called definition by recursion. First, we declare that certain words over are sensible. Then, we have a set of rules or a grammar that dictates how new sensible words can be formed from the old ones. Any word that can be formed from the old words by these rules in a finite number of steps is called sensible.
In the last example, we could declare that all symbols
are sensible words. To form new sensible words, we have the rules:
- if
do not contain either or , then is a sensible word;
- if a two sensible words
do not contain the symbol , then and are sensible words;
- the only sensible words are the initially declared sensible words and those that can be formed by the previous two rules.
It is not hard to see based on the initially declared sensible words and the rules has one of the forms
where are words without any occurrence of and , over . As a result, we see that all words in the previous example are sensible (whether they are right or wrong), except “++231++” and “7=”, since they are not in any one of the forms specified above. Note that the third rule above ensures that “++231++” and “7=” are not sensible. Without it, we would be unable to say for sure if these words are sensible or not.
Generally, any collection of words is called a language. The collection of all sensible words described above is called the language generated by
under the rules above. In logic, one calls these sensible words well-formed formulas, or formulas or wff for short.
|
"word" is owned by juanman. [ full author list (2) ]
|
|
(view preamble)
See Also: group, straight-line program, alphabet, language, concatenation, alternative treatment of concatenation
| Other names: |
well-formed formula, wff |
| Also defines: |
empty word, well formed formula, subword, occur in, occurrence |
| Keywords: |
generator, presentation |
This object's parent.
|
|
Cross-references: formulas, logic, language, right, grammar, cardinality, collection, equation, integers, commutator, free group, theory, group, contains, alphabet, binary operation, associative, finite, juxtaposition, string
There are 108 references to this entry.
This is version 23 of word, born on 2006-07-12, modified 2007-11-11.
Object id is 8137, canonical name is Word.
Accessed 3018 times total.
Classification:
| AMS MSC: | 20-00 (Group theory and generalizations :: General reference works ) | | | 20A05 (Group theory and generalizations :: Foundations :: Axiomatics and elementary properties) | | | 08A99 (General algebraic systems :: Algebraic structures :: Miscellaneous) | | | 03D40 (Mathematical logic and foundations :: Computability and recursion theory :: Word problems, etc.) | | | 03B99 (Mathematical logic and foundations :: General logic :: Miscellaneous) | | | 03B65 (Mathematical logic and foundations :: General logic :: Logic of natural languages) | | | 03B05 (Mathematical logic and foundations :: General logic :: Classical propositional logic) | | | 03B10 (Mathematical logic and foundations :: General logic :: Classical first-order logic) |
|
|
|
|
|
|
Pending Errata and Addenda
|
|
|
|
|
|
|
|
|
|
|