I understand that the modal necessitation rule is:
$ \vdash p \Rightarrow \vdash \Box p $
That is, if p is a theorem then necessarily p is a theorem.
But I don't quite understand what this means, or how I could use it in a modal proof. Obviously if I derive $x$ on a line I cannot then move to necessarily $x$. (Just because it's actually raining does not imply that it's raining in all possible worlds.)
Does the rule mean that only if $p$ is a tautology then I can move to necessarily $p$? Just trying to figure out exactly what is meant by "theorem" and how i can use the necessitation rule in a proof. Thanks.
Actually, $p$ has to be a tautology.
For the sake of completeness, let's consider an example about how it can be used in a proof.
Assume the following axioms and inference rules:
A1. All tautologies of propositional calculus
A2. $(\square_i \phi \land \square_i (\phi \Rightarrow \psi) \Rightarrow \square_i \psi \hspace{1cm}i=1,\cdots, n$ $\hspace{1cm}$ [Distribution Axiom]
R1. From $\phi$ and $\phi \Rightarrow \psi$ infer $\psi$ $\hspace{4.5cm}$ [MP]
R2. From $\phi$ infer $\square_i \phi$
Theorem:
$\square (p \land q) \Rightarrow \square p$
Proof:
1. $(p \land q) \Rightarrow p$ $\hspace{13.3cm}$ (A1)
2. $\square ((p \land q) \Rightarrow p)$ $\hspace{12.5cm}$ (1,R2)
3. $(\square ((p \land q) \land \square ((p \land q) \Rightarrow p)) \Rightarrow \square p$ $\hspace{8.9cm}$ (A2)
4. $((\square ((p \land q) \land \square ((p \land q) \Rightarrow p)) \Rightarrow \square p) \Rightarrow (\square ((p \land q) \Rightarrow p)\Rightarrow (\square (p \land q) \Rightarrow \square p))$ $\hspace{1.1cm}$ (A1)
5. $\square ((p \land q) \Rightarrow p)\Rightarrow (\square (p \land q) \Rightarrow \square p)$ $\hspace{8.5cm}$ (3,4,R1)
6. $\square (p \land q) \Rightarrow \square p$ $\hspace{12.2cm}$ (2,5,R1)