Problem is that : Let $\phi%$ be a sentence of length $n$. Show that for $1\leqslant k<n$, $r(\phi,k)<l(\phi,k) $, where each of them represents the number of left(or right) parenthesis among the first $k$ symbols of $\phi$.
My sketch of answer is that:using induction. base case is trivial. Let $r(\phi,k)=f(k)$ and $l(\phi,k)=g(k)$. And assume that $f(k)<g(k)$ And I pin down what values a function $f'(k)=r((\neg \phi),k)$ and $g'(k)=l((\neg \phi),k)$ has according to $k$. i.e. if k=1or 2, then $f'(k)=0$ and $g'(k)=1$
Since the language my textbook present only contain two connective negation and conditional, I could build similar function about conditional. Is it the right way to solve?
edit: my text is Enderton's a mathematical introduction to Logic. And definition of sentence is in it that either it is a member of L ,or negation or conditional of sentences.