Let $\mathcal{L_0}$ be the smallest set $L$ of finite sequences of $\textit{logical symbols}= \{(\enspace)\enspace\neg\to\}$ and $\textit{propositional symbols}=\{A_n\mid n\in\mathbb{N}\}$ for $n \in \mathbb{N}$ satisfying the following properties:
(1) For each propositional symbol $A_n$ with $n\in\mathbb{N}$, \begin{multline} A_n \in L. \end{multline}
(2) For each pair of finite sequences $s$ and $t$, if $s$ and $t$ belong to $L$, then \begin{multline} (\neg s) \in L \end{multline} and \begin{multline} (s \to t) \in L. \end{multline}
Let $\Psi$ be the property that a formula has the same number of left and right parenthesis.
basis step: Let $A$ be a prop symbol. $\Psi(A)$ holds since there are no parenthesis.
inductive step Let $A$ and $B$ be formulas. $\Psi((\neg A))$ holds since $A$ has the same number of parenthesis, and we are only adding one left and one right with negation, so they remain equal. $\Psi((A\to B))$ holds as well, since $A$ and $B$ both hold, they have an equal number of left and right parenthesis for themselves. So $(A\to B)$ simply adds one left and one right, so we see in fact $\Psi((A\to B))$ holds.
Therefore $\Psi$ holds for all formulas by induction on formulas.
What else can we prove with this induction?