Documentation

LeanPool.PumpingCfg.ChomskyNormalForm.Translation

Chomsky Normal Form Translation #

This file contains the algorithm to translate a ContextFreeGrammar. to a ChomskyNormalFormGrammar by using the algorithms ContextFreeGrammar.eliminateEmpty removing rules with an empty right-hand side, ContextFreeGrammar.eliminateUnitRules removing rules with a single nonterminal right-hand side, ContextFreeGrammar.restrictTerminals restricting all terminals to only occur as the single symbol of a rule's right-hand side, and ContextFreeGrammar.restrictLength translating ContextFreeRules with multiple nonterminals to ChomskyNormalFormRules with only two nonterminals on the right-hand side.

Main definitions #

Main theorems #

References #

Translation of ContextFreeGrammar to ChomskyNormalFormGrammar, composing the individual translation passes

Equations
Instances For