Galileo said:
I don't know how to write it out formally. You could make a truth table.
Anyway, suppose Q, then R->S because of (1) and R because of (2), thus S.
I can't suppose Q. And I don't want to infer S, I want infer (Q -> S). I'll post the rules.
Edit:
Here are the inference rules. You can only apply one rule per step/line. (read "/" as a line break, ".:" as "therefore"):
1. Modus Ponens (M.P.)
2. Modus Tollens (M.T.)
3. Hypothetical Syllogism (H.S.): p -> q / q -> r / .: p -> r.
4. Disjunctive Syllogism (D.S.): p V q / ~p / .: q.
5. Constructive Dilemma (C.D.): (p -> q) & (r -> s) / p V r / .: q V s.
6. Absorption (Abs.): p -> q / .: p -> (p & q).
7. Simplification (Simp.): p & q / .: p.
8. Conjunction (Conj.): p / q / .: p & q.
9. Addition (Add.): p / .: p V q.
Here are the replacement rules. One rule per step. (read "/" as a line break):
1. De Morgan's Theorems: ~(p & q) <=> ~p v ~q -and same for disjunction.
2. Commutation: You know (if not, ask).
3. Association: You know.
4. Distribution: You know.
5. Double Negation: You know.
6. Transposition: (p -> q) <=> (~q -> ~p)
7. Material Implication: (p -> q) <=> (~p v q)
8. Material Equivalence: (p <=> q) <=> [(p -> q) & (q -> p)] <=> [(p & q) v (~p & ~q)]
9. Exportation: [(p & q) -> r] <=> [p -> (q -> r)]
10. Tautology: p <=> p & p - and same for disjunction.
You apply a rule to a premise or premises, getting a new proposition and repeat until you infer the conclusion. Of course, you can also apply rules to any proposition you've inferred from the premise(s). So, for instance,
1. ~A -> A[/color] [/.: A][/color] {(Premise)[/color] (Conclusion sought)[/color]}
2. ~~A v A[/color] [1[/color], Impl.[/color]] {(New proposition)[/color] (Line # rule was applied to)[/color] (Rule applied)[/color]}
3. A v A [2, D.N.]
4. A [3, Taut. /QED]