 This “proof” really just shows that the inference from \(A\) and \(A \rightarrow B\) to \(B\) is relevantly valid. Because the number 2 does not appear in the subscript on the conclusion, the second “premise” does not really count as a premise.