Here's the problem I'm doing;
Let $L_P$ be the language of propositional logic (consisting of parentheses, $\lnot$, $\rightarrow$ and a countable set of atomic formulae). Let $\alpha$ be any formula of $L_p$. Let $s(\alpha)$ be the number of atomic formulas in $\alpha$ (counting repetitions) and let $c(\alpha)$ be the number of occurences of $\rightarrow$ in $\alpha$. Show that $s(\alpha) = c(\alpha)+1$.
Proof Attempt:
We proceed by induction on the number of left-parentheses of a given formula. Suppose that a given formula has $0$ left-parentheses. Then, it has $0$ right-parentheses. Hence, it can only be an atomic formula. So, $s(\alpha) = 1 = 1+0 = 1+c(\alpha)$, where $c(\alpha) = 0$ because $\rightarrow$ does not appear in an atomic formula. So, the assertion holds in the base case.
Now, suppose that the assertion holds for any formula with $n$ left-parentheses. Let $\alpha$ be such a formula. Then, there are only 3 ways to construct a new formula with $n+1$ left-parentheses:
$(\lnot \alpha)$
$(\alpha \rightarrow A_n)$
$(A_n \rightarrow \alpha)$
where $A_n$ is an arbitrary but fixed atomic formula. In the first case, the number of occurences of $\rightarrow$ does not change and the number of atomic formulae does not change. So, the assertion holds for this formula. In the last two cases, the number of occurrences of $\rightarrow$ and the number of atomic formulae in the given formulas each increase by $1$. So, the assertion will hold for them as well.
Hence, the assertion holds for any formula with $n+1$ left parentheses. This proves that the assertion holds for all formulas of $L_P$. $\Box$
Does the proof above work? If it doesn't, then why? How can I fix it?