The weighted AM–GM inequality
ProvedFamousTheorems.geom_mean_le_arith_mean_weightedcombinatoricsmathlibreal-analysis
The weighted arithmetic–geometric mean inequality.
For non-negative weights summing to and non-negative ,
Taking all gives the familiar form: the geometric mean never exceeds the arithmetic mean,
with equality exactly when all the agree.
The weighted version is the sharp one, and it is really concavity of — Jensen's inequality applied to — which is why the proof generalises to give Hölder's and Young's inequalities. It is among the most-used inequalities in analysis and optimisation.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem geom_mean_le_arith_mean_weighted : ∀ {ι : Type*} (s : Finset ι) (w z : ι → ℝ),
(∀ i ∈ s, 0 ≤ w i) → ∑ i ∈ s, w i = 1 → (∀ i ∈ s, 0 ≤ z i) →
∏ i ∈ s, z i ^ w i ≤ ∑ i ∈ s, w i * z i := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.