A wing produces lift by diverting air downwards. This process involves creation of pressure differentials that coexist with acceleration of air, and the acceleration of air from higher pressure areas to lower pressure areas created by a wing approximately follows Bernoulii's theorem. Bernoulli's basic equation assumes that total energy of the air is not changed, but a wing affects the total energy somewhat, so Bernoulli's equation is an approximation.
The point made by CWatters is that Bernoulli's theorem and downwash theorem both apply to aeroplanes, and that they aren't in conflict.
Using an ideal wing as a frame of reference, it diverts the relative flow downwards without changing the speed, so the total energy remains constant and Bernoulli isn't violated, but from the air's frame of reference, the once still air ends up being accelerated downwards (lift) and somewhat forwards (drag), resulting in a non-zero "exit velocity" (the speed of the affected air when it's pressure first returns to ambient), and in the air's frame of reference work is performed on the air, violating Bernoulli's equation. An efficient wing diverts a large amount of air by a small angle, and from the air's frame of reference, the total energy added to the air is relatively small.