We are now ready to define what a formal language is. We are used to thinking of languages as being defined by a grammar, but a more abstract or “extensional” point of view is that a formal language is nothing more than the set of strings it generates. We adopt that perspective below.
Although we have defined formal languages in this very extensional manner, “rules of grammar” still plays a role: in particular, we will use inductive definitions of grammatical rules to generate formal languages by building on our prior experience with inductive definitions:
- In Lecture 14, we learned how to define the reflexive-transitive closure of a binary relation on a set, i.e. the path relation on a directed graph.
- In Lecture 15, we learned how to define a function inductively by taking the least relation “closed” under some clauses.
In what remains of this lecture, we will be studying strategies for defining and using inductive definitions of subsets of a given set.