To understand Bell’s Inequality and the proof of the absence of local hidden variables, you have to understand the way polarization is measured.
The polorization of a photon is measured relative to the detector. Let’s say for a moment that we “know” a photon has a polorization of 0°. We try to pass it through a detector set at 0°; it passes through 100% of the time. We try to pass it through a detector set at 90°; it never passes through. BUT! We have not determined the “true” polarization of the photon; we have determined its state vector relative to the detector: I has two possible states (0° & 90°) with relative probability 100% and 0%.
So, we try to pass this same photon through a detector set at 45°. We find that it passes through 50% of the time! The same photon has a different state vector relative to the new setting: 45° and 135°, with relative probability 50% and 50%.
So let’s go back to Bell’s experiment. We have two photons with complementary polorizations. This means that if we have two detectors set at the same setting (0°, 45°, 90°, etc.) one photon will go through one detector, and the other will be blocked. Likewise, if we set one detector at 90° relative to the other, either both photons will always go through, or both photons will always be blocked. The photons’ polarizations are perfectly correllated (by knowing the relative angles of the detectors, I can perfectly predict the reaction of one photon to the detector by observing only the other). This proves that the photons have complementary polarization.
When we set the detectors to a relative angle between 0° and 90°. At 45°, if one photon goes through (or is blocked by) one detector, the other photon has a 50/50 chance of going through the other detector. At this point, the polarization of the photons relative to the two detectors is completely uncorrellated; I cannot accurately predict the response of one photon to its detector by observing the other photon’s response to its detector.
The change is correlation is continuous. At 1° relative orientation of the detectors, the correlation is high, but not perfect. Every now and again, you’ll get both photons going through, instead of always having one go through and one blocked when the detectors have the same relative orientation.
Here’s where Bell’s Inequality comes in (and my lack of math sadly becomes apparent). If the relative polarization of the photons are determined by local variables (i.e. variables whose effects propagate at the speed of light) then we must see a particular pattern of correlation as we move the detectors from alignment (perfect correlation) to a 45° relative orientation (zero correlation). However, Quantum Mechanics predicts a different pattern; more specifically, the polarization of the photons will be more highly correlated (i.e. I can predict the response of one photon from the behavior of the other with better accuracy) than would be possible assuming local variables.
Essentially, the photons cannot just know each others’ polarizations at the time they are generated (local variables). They must also “know” how the other reacts to its detector and instantaneously modify its reaction to its own detector to preserve the QM-predicted levels of correlation. And there can’t be any kind of subtle effect where the position of the detectors propagates to the generation of the photons; the experiment works even if you randomly change the orientation of the detectors picoseconds before they measure the relative polarization of the photons.
IIRC this experiment has been performed in real life (even to the random re-orientation of the detectors before the measurement) and its predictions have been confirmed.