No notes for preliminary parts of lecture.
Basic Regular Expressions
We inductively define basic regular expressions as:
Strings are lists of characters, for example .
Language
A language (over an alphabet ) is a set of words over .
For example, given .
Given :
Link to original
Concatenation
The concatenation of words and is the word followed by the word , written . We can use the syntax .
Formally, .
Link to original
We can also “concatenate” two languages, for example:
Corner Cases
Meaning of Regexes
For the purposes of this, we define as a function from regular expressions to sets of strings (languages), .
As such:
The Power Operation
The of a language:
Example
The Kleene Star
The Kleene Star of a language is .
This expands to: