Mathematical logic provides formal tools to construct and verify proofs. A proof is a valid argument that determines the truth of a statement from other statements. An argument is a finite sequence of statements in which the final statement is the conclusion and the preceding statements are the premises (or hypotheses). The symbol ∴ (read therefore) is often used to mark the conclusion. An argument is valid when the conclusion follows from the premises in such a way that it is impossible for all premises to be true and the conclusion false.
Rules of Inference are standard, sound templates that allow one to derive new statements (conclusions) from given statements (premises). Each rule shows a pattern of premises that guarantees a particular conclusion; using these rules preserves truth when applied correctly.

Logical form: P / ∴ P ∨ Q
Explanation: From a single true proposition P one may infer the disjunction P ∨ Q for any proposition Q. This is truth-preserving because if P is true then the disjunction containing P is also true regardless of Q.

Example
Logical form: P, Q / ∴ P ∧ Q
Explanation: If both P and Q are known to be true, we can form the conjunction P ∧ Q. Conjunction simply combines two true statements into a single statement that is true exactly when both components are true.

Example
Logical form: P ∧ Q / ∴ P (and similarly P ∧ Q / ∴ Q)
Explanation: From a conjunction one may infer either conjunct. This is truth-preserving because if P ∧ Q is true then both P and Q are individually true.
Example
Logical form: P, P → Q / ∴ Q
Explanation: Also called the rule of detachment. If P is true and "if P then Q" is true, then Q must be true. This rule is one of the most frequently used in proofs.

Example
Logical form: P → Q, ¬Q / ∴ ¬P
Explanation: If "P implies Q" and Q is false, then P cannot be true. Modus tollens is the contrapositive form of modus ponens and is also truth-preserving.

Example
Logical form: P ∨ Q, ¬P / ∴ Q (or P ∨ Q, ¬Q / ∴ P)
Explanation: If we know that at least one of P or Q is true, and we know one of them is false, then the other must be true. This eliminates the false disjunct and is truth-preserving.

Example
Logical form: P → Q, Q → R / ∴ P → R
Explanation: If P implies Q and Q implies R, then P implies R. This rule allows chaining of conditional statements.

Example
Logical form: (P → Q) ∧ (R → S), P ∨ R / ∴ Q ∨ S
Explanation: When we have two conditionals and at least one of their antecedents holds, then at least one of the consequents holds. Constructive dilemma combines a disjunction of antecedents with two implications to produce a disjunction of consequents.

Example
Logical form: (P → Q) ∧ (R → S), ¬Q ∨ ¬S / ∴ ¬P ∨ ¬R
Explanation: If two conditionals hold and at least one of their consequents is false, then at least one of the corresponding antecedents is false. Destructive dilemma is the dual form of constructive dilemma.

Example
Rules of inference are small, standard, truth-preserving steps used to derive conclusions from premises. Familiarity with the main rules-Addition, Conjunction, Simplification, Modus Ponens, Modus Tollens, Disjunctive Syllogism, Hypothetical Syllogism, Constructive and Destructive Dilemma-allows construction and checking of formal, valid arguments in propositional logic. These rules form the backbone of reasoning in mathematics and computer science.