paper

The Parikh Property for Weighted Context-Free Grammars

arXiv:1810.01351 · doi:10.4230/LIPIcs.FSTTCS.2018

Abstract

Parikh's Theorem states that every context-free grammar (CFG) is equivalent to some regular CFG when the ordering of symbols in the words is ignored. The same is not true for the so-called weighted CFGs, which additionally assign a weight to each grammar rule. If the result holds for a given weighted CFG , we say that satisfies the Parikh property. We prove constructively that the Parikh property holds for every weighted nonexpansive CFG. We also give a decision procedure for the property when the weights are over the rationals.

29 pages, 2 figures, long version of FSTTCS'18 paper