Assume $\Gamma$ is a set of formulas, $P(x)$ a formula, and $\Gamma\vdash P(c)$ has been derived.
The generalization rule states that $\Gamma \vdash \forall x\,P (x)$ can be derived if $c$ does not occur in $\Gamma$.
This is an intuitive rule, since if we can deduce $P(c)$ having no information about the constant $c$, that means $c$ could have any value, and therefore P would be true for any interpretation, that is $\forall x\,P (x)$.
However, I have tried to demonstrate this rule using first order logic, but I think it is impossible since there is no way to directly translate "c does not occur in $\Gamma$" in FOL as far as I know.
What logic system do I need to use in order to demonstrate this?
Where can I find a formal proof for this rule?
I don't know exactly what it should mean to 'demonstrate this rule using first order logic'. This is a rule of inference... it is part of the metatheory... it is a statement about first order logic, not in it.
There are a couple adjacent things that make sense.