By using the deduction theorem, and other formulas (i.e Transitivity of implication, inconsistency, double negation etc.) we can prove something like below.
$⊢(¬q→¬(q→r))→¬¬q$
By applying deduction theorem, it is sufficient to show $(¬q→¬(q→r))⊢¬¬q$.
My question is, what is the rule to make assumptions to do the proof?
i.e I found below example from a book
${A→(B→C),B,A} ⊢ C$
steps
${A→(B→C),B,A} ⊢ A$ Assumption
${A→(B→C),B,A} ⊢ A→(B→C)$ Assumption
${A→(B→C),B,A} ⊢ (B→C)$ Assumption
and so on.
I want to know how can I make those assumptions? What is the theory behind it? It would be nice if someone can explain it using this problem $⊢(¬q→¬(q→r))→¬¬q$.
Typically, the Assumption rule is that at any point in the proof you can add a line that looks like:
$\{ \varphi \} \vdash \varphi$ Assumption
So your example is a bit weird. It would make more sense as:
$\{ A \} \vdash A$ Assumption
$\{ A \rightarrow (B \rightarrow C) \} \vdash A \rightarrow (B \rightarrow C)$ Assumption
$\{ A, A \rightarrow (B \rightarrow C) \} \vdash B \rightarrow C$ MP 1,2
etc.