Suppose we have some set of sentences S that we call axioms and a theory T that specifies our rules of inference. Then we write $$S\vdash_TD$$ to mean that the sentence D is deducible from the axioms S using the rules of inference of T.
Let's assume that each rule of inference in T requires at least one premiss, for otherwise we can simply include its conclusion in S instead. (Question #1: Is this assumption reasonable?)
Now I am interested in exactly what conditions we can prove that
$$S\cup\{B\} \vdash_T C\quad\textrm{ if and only if }\quad S\vdash_T B\rightarrow C.\tag{1}$$ Clearly the "if" direction can be proved if we have the rule of modus ponens. The "only if" direction, or the "deduction theorem," (I believe it's called) is more problematic for me. Clearly if all the rules of inference of T are finitary, (i.e., each rule requires only a finite number of premisses,) then every sentence that can be deduced from S in the theory T can be deduced in a finite number of steps from a finite subset of S. Taken to the extreme we might say for some sentence D, that if $S\vdash_T D$, then $S'\vdash_TD$ for some finite subset $S'\subseteq S$ and so $$\emptyset\cup\{\Pi S'\} \vdash_T D\quad\textrm{ if and only if }\quad \emptyset\vdash_T \Pi S'\rightarrow D,\tag{2}$$ where $\Pi S'$ is the conjunction of all the sentences in S'. But this is absurd, because clearly nothing can be derived from the empty set if every rule of inference requires at least one premiss.
Question #2: Under my assumption, what kind of axioms must S contain in order for (1) to hold? Alternatively, (discarding my assumption,) what rules of inference are needed for (2) to also hold?