A few definitions from formal language theory are required at this point.
An alphabet is a finite set of signs, typically,
A string over an alphabet is a finite sequence of signs from
The length of a string is just its length as a sequence of signs.
The empty string is the unique sequence of length 0. It is sometimes denoted by an empty pair of quotation marks, “”, but more often by the Greek symbols epsilon or lambda.
A sequence of length is typically presented in the following concatenated forms.
or
with for all
The following notations provide useful alternatives.
= “” = the empty string.
=
= the language consisting of a single empty string.
Several operations on strings find sufficient application to motivate the following definitions.
To erase an appearance of a sign is to replace it with an appearance of the blank symbol “ ”.
To delete an appearance of a sign is to replace it with an appearance of the empty string “”.
If is a string which ends with a sign
then
is the string which results by deleting the terminal
from
A token is a particular appearance of a sign.
Finally —
The kleene star of alphabet
is the set of all strings over
In particular,
includes among its elements the empty string
The kleene plus of an alphabet
is the set of all positive length strings over
in other words, everything in
but the empty string.
A formal language over an alphabet
is a subset of
In brief,
If
is a string over
and
is an element of
then it is customary to call
a sentence of
Thus, a formal language
is defined by specifying its elements, which amounts to saying what it means to be a sentence of
Resources
cc: Academia.edu • BlueSky • Laws of Form • Mathstodon • Research Gate
cc: Conceptual Graphs • Cybernetics • Structural Modeling • Systems Science
Pingback: Survey of Animated Logical Graphs • 7 | Inquiry Into Inquiry
Pingback: Survey of Animated Logical Graphs • 8 | Inquiry Into Inquiry
Pingback: Survey of Animated Logical Graphs • 8 | Systems Community of Inquiry