It's not clear for me how to represent the proof tree of a sequent that doesn't use and hypothesis, for example: $p \vdash q \rightarrow p$. The problem is that $q$ should appear as hypothesis to derive $q \rightarrow p$, eventhough is not used.
First try (bad bad bad try), clearly the premise $p$ should be a leaf, the tree makes it look as if it's derived from $[q]$: tree proof 1.
Second try (better or worse, who knows?), the hypothesis is left as a dangling node: tree proof 2.
p[q]^1}{q\to p~~}{\small({\to}\mathcal I^1)}$$ – Graham Kemp Sep 01 '23 at 00:29