> Any theory which predicts that math/physics/cs/EE has few women is inherently flawed if it doesn't also predict that medicine/law/advertising have plenty of women.
I am not sure where you're going with this, but you can't make such a comparison at a given moment in time. The reason is that struggles usually follow power, and so it is likely that at any point in time, a marginalized group would concentrate its efforts to penetrate positions that imbue power. As the power structure shifts, so does the struggle. You can't equate professions that hold different amounts of power at different times. Certainly up until some decades ago, law and medicine carried much more prestige and influence -- and hence, power -- than math and the physical sciences. In fact, software's gain of prestige correlates quite well with the drop in women participation. It is quite anomalous in that the existence of the field long predated its power. Law and medicine, OTOH, are professions that have been seats of power for almost a millennium.
A model that correlates low female participation with high power -- and later, increased participation after a struggle -- predicts both observations. It is not such a surprising or sophisticated theory; historians have seen this pattern so often that it is almost banal. This pattern is so regular, that it's relatively easy for us to predict the future: fifty years from now, assuming the power wielded by software remains high, women participation will equal men's, and it will be hard for people to believe that that hasn't always been the case. Unfortunately, even though the result of the fight is certain, we still need to fight it. That is the price history exacts from us.