\(\DeclarePairedDelimiterX{\Set}[2]{\{}{\}}{#1 \nonscript\;\delimsize\vert\nonscript\; #2}\) \( \DeclarePairedDelimiter{\set}{\{}{\}}\) \( \DeclarePairedDelimiter{\parens}{\left(}{\right)}\) \(\DeclarePairedDelimiterX{\innerproduct}[1]{\langle}{\rangle}{#1}\) \(\newcommand{\ip}[1]{\innerproduct{#1}}\) \(\newcommand{\bmat}[1]{\left[\hspace{2.0pt}\begin{matrix}#1\end{matrix}\hspace{2.0pt}\right]}\) \(\newcommand{\barray}[1]{\left[\hspace{2.0pt}\begin{matrix}#1\end{matrix}\hspace{2.0pt}\right]}\) \(\newcommand{\mat}[1]{\begin{matrix}#1\end{matrix}}\) \(\newcommand{\pmat}[1]{\begin{pmatrix}#1\end{pmatrix}}\) \(\newcommand{\mathword}[1]{\mathop{\textup{#1}}}\)
Needs:
Lists
Needed by:
Finite Automata
Flash Code
Formal Languages
Links:
Sheet PDF
Graph PDF

Alphabets

Why

We return to our discussion of symbols and scripts, to make precise these concepts in the language of sets and lists.

Definition

An alphabet is a nonempty finite set. For example, let $A$ be the set

\[ \set{a, b, c, d, e, f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w, x, y,z}, \]

where $a$ denotes the latin lower case letter “a”, $b$ denotes the latin lower case letter “b”, and so on. In other words, $A$ is the set of lowercase latin letters. It is an alphabet. By analogy with this familiar case, we frequently refer to the elements of an alphabet as letters or symbols.

A word is a list of letters in an alphabet, and a phrase is a list of words. For example, $(c,a,t,s)$ is a word in $\mathcal{A} $ (meant to correspond to the word “cats”) and

\[ ((c,a,t,s), (a,n,d), (d,o,g,s)) \]

is a phrase in $\mathcal{A} $ (meant to correspond to the phrase “cats and dogs”).

Strings

Let $A$ be an alphabet. In this case (in which $A$ is a finite set), we refer to the lists of $A$ as strings. The string whose length is zero is the empty set.

Notation

We denote the set of all lists (strings) in $A$ by $\str(A)$. We read $\str(A)$ aloud as “the strings in $A$.” Other notation is $A^*$; i.e., $A^* := \cup_{n \in \N } A^n$.

Copyright © 2023 The Bourbaki Authors — All rights reserved — Version 13a6779cc About Show the old page view