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?
Note that
$$ \frac{1/n}{1-k/n} = \frac{1}{n-k} \neq \frac{n - k}{n}. $$
The reason the calculation comes out to $1/(n - k)$ is that you have used only the information that the car is not behind any of the $k$ opened doors, not the information that the contestant originally chose door $1$ or the fact that Monty is forbidden to open either the contestant's chosen door or the door with the car.
So basically you have changed the problem into one where you walk into the room when the $k$ doors are already open, and you know only that there is a car behind a door, not what happened before you walked in. There are $n - k$ closed doors and you have no reason to think the car is more likely to be behind one than the other.