Definition: Type-1 (cs) Grammars and Context-sensitive Languages

A type-1 (or cs) grammar is a grammar $G=(V,T,R,S)$ in which every rule $P\to Q\in R$ has the following properties:

We can state this definition more formally as follows: * Every rule $P\to Q\in R$ has the form $$P\to Q=\begin{cases}S\to\epsilon&\text{or}\\\exists u,v,\alpha\in (V\cup T)^*,\exists A\in V:P=uAv\wedge Q=u\alpha v,|\alpha|\ge 1\end{cases}$$ * $S\not\in Q$ for all $P\to Q\in R.$

Formal languages generated by type-1 grammars are called context-sensitive.

Notes

Explanations: 1


Thank you to the contributors under CC BY-SA 4.0!

Github:
bookofproofs


References

Bibliography

  1. Erk, Katrin; Priese, Lutz: "Theoretische Informatik", Springer Verlag, 2000, 2nd Edition
  2. Hoffmann, Dirk: "Theoretische Informatik, 3. Auflage", Hanser, 2015