I'm currently enrolled to a CS course about programming languages and we learned about structural induction. In a question from our home assignments we need to proof that the following CFG has balanced parentheses:
My initial solution used simple induction and following the derivation rules of the CFG but the TA told us we need a stronger induction assumption that R has one more left parentheses than right parentheses. Can someone give me general direction to follow?