Integer weights on the terminals and a value for each variable show that one grammar derives only words of one weight. A word of the other grammar with another weight then separates them.
Integer weights on the terminals and a value for each variable show that one grammar derives only words of one weight. A word of the other grammar with another weight then separates them.