The HM–GM inequality
ProvedFamousTheorems.weighted_hm_gm_inequalityThe HM–GM inequality. Let be weights with and let . Then
The weighted harmonic mean is at most the weighted geometric mean. It follows by applying the AM–GM inequality to the reciprocals . Together with AM–GM it gives the chain of the classical means.
Formalization note. Mathlib's Real.harm_mean_le_geom_mean_weighted, over a nonempty finite index set s.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem weighted_hm_gm_inequality {ι : Type*} (s : Finset ι) (w z : ι → ℝ) (hs : s.Nonempty) (hw : ∀ i ∈ s, 0 < w i)
(hw' : ∑ i ∈ s, w i = 1) (hz : ∀ i ∈ s, 0 < z i) : (∑ i ∈ s, w i / z i)⁻¹ ≤ ∏ i ∈ s, z i ^ w i := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `Real.harm_mean_le_geom_mean_weighted`. Proof here reduces to that Mathlib result.