Langlib

Langlib.Classes.ContextFree.NormalForms.ChomskyNormalFormTranslation

Translation to Chomsky Normal Form #

This file assembles the elimination passes into a correctness proof for the full CNF translation.

Main declarations #

Translation of ChomskyNormalFormRule to ContextFreeRule

Equations
Instances For
    theorem ChomskyNormalFormRule.Rewrites.toCFGRule_match {T : Type uT} {N : Type uN} {u v : List (Symbol T N)} {r : ChomskyNormalFormRule T N} (huv : r.Rewrites u v) :
    theorem ChomskyNormalFormRule.Rewrites.match_toCFGRule {T : Type uT} {N : Type uN} {u v : List (Symbol T N)} {r : ChomskyNormalFormRule T N} (huv : r.toCFGRule.Rewrites u v) :
    r.Rewrites u v

    Translation of ContextFreeGrammar to ChomskyNormalFormGrammar, composing the individual translation passes

    Equations
    Instances For