Langlib

Langlib.Classes.Linear.Examples.AnBn

a^n b^n as a Linear Language #

This file constructs a linear grammar for {a^n b^n} and proves that the language is linear.

Main results #

An unrestricted grammar for the language {aⁿbⁿ | n ∈ ℕ} with linear rules. Rules: S → aSb (i.e., [] S [] → [a, S, b]) S → ε (i.e., [] S [] → [])

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    The language {aⁿbⁿ} is linear.