I am confused about Jech's notations $ M[X] $ and $ V[A] $.
Let us begin with exercise 13.34 (see [Jec02, p. 199]).
Let $ \mathbf{M} $ be a transitive model of $ \mathsf{ZF} $ containing all the ordinals and let $ X $ be a subset of $ \mathbf{M} $. Then there is a least model $ \mathbf{M}[X] $ of $ \mathsf{ZF} $ such that $ \mathbf{M} \subseteq \mathbf{M}[X] $ and $ X \in \mathbf{M}[X] $ and, if $ \mathbf{M} \models \mathsf{AC} $, then $ \mathbf{M}[X] \models \mathsf{AC} $.
One must realize that this is really a theorem schema as we are talking about proper classes: In fact, for each formula $ \phi(x) \equiv x \in \mathbf{M} $ we have to find another formula $ \psi(x, X) \equiv x \in \mathbf{M}[X] $ such that ...
Q1: Can someone give me a hint more helpful than Jech's one?
This leads to my next question. As far as I understand, forcing over $ V $ and the notation $ V[G] $ (where $ G \notin V $ is a generic filter for some forcing poset $ P \in V $) is just a sloppy notation. More precisely, one should always use a large enough finite fragment $ \mathsf{ZFC}^* $ and some c.t.m. $ M $ for $ \mathsf{ZFC}^* $ (i.e. a set model) as $ G \notin V $ is nonsense from a formalist's point of view.
Q2: So, how can I formalize Jech's results Lemma 15.40 up to Lemma 15.43 (see [Jec02, p. 247]) using the c.t.m. approach?
I am particularly puzzled as the analogue of exercise 13.34 for set models seems to fail.
[Jec02] Thomas Jech: "Set Theory: The Third Millennium Edition, revised and expanded". Springer, 2002