This is not a duplicate of Extended Monty Hall Problem.
Let the Extended Monty Hall problem. i.e., it is a game where there is $n$ doors and a car behind one, and only one, door. After the player chooses one door, $k$ doors are revealed (excluding the winning and the player's chosen door), where $0 \leq k \leq n-2$ (the host must leave at least one door).
I am trying to get a very formal argument to find that the probability of switching doors after $k$ doors are open is
$$P(win | switch) = \frac{n-1}{n} \cdot \frac{1}{n-k-1}$$
For this, I'm doing the following:
Define the events $E_i = $ the car is behind door $i$, $i = 1, \ldots, n$.
We can suppose w.l.o.g. that the player initially chooses door $1$, the opened doors are $2, \ldots, k+1$ and, if the player chooses, it chooses to switch, they switch to door $k+2$.
So, the probability of winning given that the player switched doors and that we know the car is not behind doors $2, \ldots k$ is:
$$P(E_{k+2} | E_1^c \cap E_2^c \cap \ldots \cap E_{k+1}^c).$$
Using the definition of conditional probability:
$$P(E_{k+2} | E_1^c \cap E_2^c \cap \ldots \cap E_{k+1}^c) = \frac{P(E_{k+2} \cap E_1^c \cap E_2^c \cap \ldots \cap E_{k+1}^c)}{P(E_1^c \cap E_2^c \cap \ldots \cap E_{k+1}^c)} $$
Since $E_{k+2} \subset E_i^c$ if $i \neq k+2$, we then have
$$\frac{P(E_{k+2} \cap E_1^c \cap E_2^c \cap \ldots E_{k+1}^c)}{{P(E_1^c \cap E_2^c \cap \ldots \cap E_{k+1}^c)}} = \frac{P(E_{k+2})}{P\left(\left(E_1 \cup E_2 \cup \ldots \cup E_{k+1}\right)^c\right)} = \frac{P(E_{k+2})}{1 - P\left(E_1 \cup E_2 \cup \ldots \cup E_{k+1}\right)} = \frac{1/n}{1-k/n} = \frac{n - k}{n}.$$
And this is clearly wrong. What am I missing?