What is the ruling if a postpartum woman becomes pure before forty days; are acts of worship obligatory upon her, and is she permissible for her husband?
If the postpartum woman becomes definitely pure before forty days, she must perform the ritual bath and perform acts of worship as a pure woman does. What was prohibited for her also becomes permissible, so she becomes permissible for her husband after her bath. The minimum duration for postpartum bleeding is a moment (an instant), and its usual maximum is forty days. Reaching forty days is not a condition; rather, it is sufficient for the blood to stop or to see the white discharge (qassa bayda'). And Allah the Almighty knows best.
Is it permissible to fast on behalf of the dead who died owing missed fast to make up?
His relative should fast on his behalf, and it is permissible for the guardians to give permission to non-relatives of the dead to fast on his behalf as well. And Allah Knows Best.
What is the ruling on someone who perform their prayer after finishing it because they believe they missed a Rak'a, a prostration, or that they did not perform it correctly (thinking their prayer was invalid)?
If he was sure that his prayer is void then reperforming it is an obligation along with figuring out the reason of invalidity so long as this wasn't out of uncertainty. And Allah Knows Best.
Is it permissible for a woman to sit with her brothers-in-law?
It is impermissible for a woman to sit with her brothers-in-law, and it is also impermissible for a person to have a Khulwa (seclusion) with his sister-in-law.