A grammar as a rewriting system
The previous lesson argued that language needs a generative model: a finite set of rules producing an infinite set of sentences. A formal grammar is exactly that, made precise.
It has a set of symbols, split into terminals, the actual words or characters, and non-terminals, abstract categories like noun phrase. It has a start symbol and a set of production rules, each saying that one string of symbols may be rewritten as another. You generate a sentence by starting from the start symbol and applying rules until only terminals remain.
A rule like "Sentence goes to NounPhrase VerbPhrase" expands one category into two. The set of all terminal strings you can reach is the language the grammar defines. Noam Chomsky's 1956 paper "Three Models for the Description of Language" introduced this framing and, with it, the question of how much a grammar's rules may be constrained.

