From 11, 12 in the book Logic in Computer Science by M. Ryan and M. Huth:
**
"What we are saying is: let’s make the assumption of ¬q. To do this, we open a box and put ¬q at the top. Then we continue applying other rules as normal, for example to obtain ¬p. But this still depends on the assumption of ¬q, so it goes inside the box. Finally, we are ready to apply →i. It allows us to conclude ¬q → ¬p, but that conclusion no longer depends on the assumption ¬q. Compare this with saying that ‘If you are French, then you are European.’ The truth of this sentence does not depend on whether anybody is French or not. Therefore, we write the conclusion ¬q → ¬p outside the box."
**
My question is about the scope of assumptions in propositional logic and proving techniques. I am not sure I fully understand what this text is trying to say.
How can an assumption only have scope inside the box, but once you finish what you want to prove it is no more part of the assumption box and is accessible universally in the proof? WHY is this possible? Why does it not break things in the proof? This looks too convenient and random.
Secondly, I do not understand the French and European example connection to what is written in this text. If somebody could please connect this example to what the author is actually trying to explain through this.
This is not what happens. You open a proof box with $\neg q$, and within the proof box $\neg q$ holds. Then you do some reasoning and conclude $\neg p$. Within the proof box, starting at that line, $\neg p$ holds. Once you close the box, neither $\neg q$ nor $\neg p$ is directly accessible: what you are allowed to conclude from the box as a whole is $\neg q \to \neg p$. Because you were able to derive $\neg p$ from the assumption $\neg q$, the implication $\neg q \to \neg p$ holds.
Suppose you start a proof box with the assumption "Let $x$ be French." Then the statement "$x$ is French" holds inside the proof box. By doing some reasoning, you are able to conclude "$x$ is European"; this statement still goes inside the proof box. Then you can draw as a conclusion of the whole proof box that "If $x$ is French, then $x$ is European." However, this does not say that $x$ -- whatever it refers to -- is French! It just says that if $x$ is French, then $x$ is European. In particular, you do not "have access" to the "$x$ is French" that was true inside the proof box.