I'm looking at this note (page 3) and I don't really understand the substitution principle stated there. Specifically,
What are "assumptions that are not discharged in the subproof"? In the example of implication on the same page, it is stated that $u$ is not discharged in $\mathcal E$. What does it mean and how to see that?
(Probably related) Why does the hypothetical proof of $B \ true$ in the statement of the substitution principle have a horizontal line with a label $u$ on top, i.e., $$\rule{3cm}{0.4pt}\textit{u}\\ A \ true \\ \mathcal E \\ B \ true $$ as opposed to just having the form $$A \ true \\ \mathcal E \\ B \ true$$ ? The horizontal line with label $u$ is introduced in this note and my understanding was that the horizontal line with label $u$ introduces a "local subproof" (e.g. if we want to prove that $A\to B \ true$, then we need to "locally" assume $A$ and deduce $B$ from the local assumption $A$ and previous "more global" assumptions, if any). I think of it as an extra vertical line in Fitch-style deduction system. Why does the substitution principle is only stated for this kind of "local" assumption -- does it not work for global deduction trees (the ones without a horizontal line with label $u$) such as the one displayed above?
I'm not sure if I understand what "substituting $\mathcal D$ for all uses of the hypothesis labelled $u$ in $\mathcal E$" means. As far as I understand, $\mathcal D$ is itself a proof tree. What is "hypothesis labelled $u$? The thing labeled $u$ is this derivation tree $$\rule{3cm}{0.4pt}\textit{u}\\ A \ true \\ \mathcal E \\ B \ true $$ and this tree has the empty hypothesis, as far as I can tell.
