I know what a bigram is, intuitively (in a string it's two contiguous symbols). However, I found this mathematical definition in a book and there is one part that keeps tripping me up, namely the $2-grams(w)$ function.
Definition 3.2 (Bigrams). Given a string $w$ over alphabet $\Sigma$, its augmented counterpart $\hat{w} := \$ \cdot w \cdot \$ $ is obtained by adding the left and right edge markers \$ and \$ to $w$, where \$ and \$ are distinguished symbols not contained in $\Sigma$. Furthermore, $2-grams(w) := \{ab \; |\; \exists u, v \in \Sigma^* \; s.t. \; u \cdot ab \cdot v = \hat{w}\}$ denotes the set of bigrams over $\hat{w}$, i.e. the smallest set that contains all substrings of $\hat{w}$ that consist of exactly 2 symbols.
I am reading this as "the function 2-grams is defined as the set of a string $ab$ such that there exist a symbol $u$ and a symbol $v$ in the alphabet Sigma star such that the concatenation of $u$, $ab$, and $v$ is equal to the augmented string $\hat{w}$"
My question is, if $\hat{w}$ is already the augmented string as we defined it above, why do we still concatenate it with $u$ and $v$? Am I supposed to assume that $u$ and $v$ are the edge markers $\$\;\$$? I am not seeing how this function gives us |the smallest set that contains all substrings of $\hat{w}$. What am I missing?
PS. Apologies for using the dollar symbol as edge marker symbols, I couldn't find the actual edge markers my textbook uses.