You are here
Home ›language
Primary tabs
language
Let be an alphabet. We then define the following using the powers of an alphabet and infinite union, where .
where is the element called empty string. A string is an element of , meaning that it is a grouping of symbols from one after another (via concatenation). For example, is a string, and is a different string. A string is also commonly called a word. , like , contains all finite strings except that does not contain the empty string . Given a string , a string is a substring of if for some strings . For example, , and (the empty string) are all substrings of the string .
Definition. A language over an alphabet is a subset of , meaning that it is a set of strings made from the symbols in the alphabet .
Take for example an alphabet . The following are all languages over :
-
,
-
,
-
The empty set . In the context of languages, is called the empty language.
-
-
A language is said to be proper if the empty string does not belong to it: . A proper language is also said to be -free. Otherwise, it is improper. In the examples above, all but the first and the last examples are -free. is a finite language if is a finite set, and atomic if it is a singleton subset of , such as the fourth example above. A language can be arbitrarily formed, or constructed via some set of rules called a formal grammar.
Given a language over , the alphabet of is defined as the maximal subset of such that every symbol in occurs in some word in . Equivalently, define the alphabet of a word to be the set of all symbols that occur in , then is the union of all , where ranges over .
Remark. A language can also be described in terms of “infinite” alphabets. For example, in model theory, a language is built from a set of symbols, together with a set of variables. These sets are often infinite. Another way of generalizing the notion of a language is to allow the strings to have infinite lengths. The way to do this is to think of a string as a partial function from some set to the alphabet such that . Then the length of a string is just . This specializes to the finite case if we take to be the set of all non-negative integers.
Mathematics Subject Classification
03C07 Basic properties of first-order languages and structures68Q45 Formal languages and automata
- Forums
- Planetary Bugs
- HS/Secondary
- University/Tertiary
- Graduate/Advanced
- Industry/Practice
- Research Topics
- LaTeX help
- Math Comptetitions
- Math History
- Math Humor
- PlanetMath Comments
- PlanetMath System Updates and News
- PlanetMath help
- PlanetMath.ORG
- Strategic Communications Development
- The Math Pub
- Testing messages (ignore)
- Other useful stuff
Recent Activity
new question: pure subgroups by lvoyster
new correction: Typo in M\"obius function? by Aleph Zero
new collection: analytic number theory by Aleph Zero
May 20
new question: Taylor's Series Query! by unlord
new question: Laplace transform by J
new question: Residue Calculus by J
May 19
new Education: Project: PlanetMath Outlines Series by unlord
May 17
new image: sinx_approx.png by jeremyboden
new image: approximation_to_sinx by jeremyboden
new image: approximation_to_sinx by jeremyboden


