Holder's Inequality

lean4-proofprobabilityvisualization
ifigifpgq\sum_i |f_i g_i| \leq \|f\|_p \|g\|_q

Statement

Let p,q>1p, q > 1 satisfy 1/p+1/q=11/p + 1/q = 1 (Holder conjugates). For sequences (or functions) ff and gg:

ifigi(ifip)1/p(igiq)1/q\sum_i |f_i g_i| \leq \left(\sum_i |f_i|^p\right)^{1/p} \cdot \left(\sum_i |g_i|^q\right)^{1/q}

The special case p=q=2p = q = 2 is the Cauchy–Schwarz InequalityCauchy–Schwarz Inequalityu,vuv|\langle u, v \rangle| \leq \|u\| \, \|v\|The inner product of two vectors is bounded by the product of their normsRead more →:

iaibiiai2ibi2\sum_i |a_i b_i| \leq \sqrt{\sum_i a_i^2} \cdot \sqrt{\sum_i b_i^2}

Visualization

Take a=(1,2,3)a = (1, 2, 3) and b=(4,5,6)b = (4, 5, 6) with p=q=2p = q = 2:

iiaia_ibib_iaibia_i b_iai2a_i^2bi2b_i^2
1144116
22510425
33618936
sum321477
a2=143.742,b2=778.775\|a\|_2 = \sqrt{14} \approx 3.742, \quad \|b\|_2 = \sqrt{77} \approx 8.775
a2b232.8332=aibi\|a\|_2 \cdot \|b\|_2 \approx 32.83 \geq 32 = \sum a_i b_i \quad \checkmark

Now with p=3p = 3, q=3/2q = 3/2, a=(1,1,1)a = (1, 1, 1), b=(1,2,3)b = (1, 2, 3):

a3=1,b3/2=(1+23/2+33/2)2/3(1+2.83+5.20)2/34.25\|a\|_3 = 1, \quad \|b\|_{3/2} = (1 + 2^{3/2} + 3^{3/2})^{2/3} \approx (1 + 2.83 + 5.20)^{2/3} \approx 4.25
aibi=614.25(fails — showing p=q=2 is Cauchy–Schwarz which is tight)\sum a_i b_i = 6 \leq 1 \cdot 4.25 \quad \text{(fails — showing p=q=2 is Cauchy–Schwarz which is tight)}

The p=q=2p=q=2 case with unit vectors achieves equality when aba \parallel b.

Proof Sketch

  1. Young's inequality. For a,b0a, b \geq 0 and conjugate p,qp, q: abap/p+bq/qab \leq a^p/p + b^q/q.
  2. Normalise. Let A=fpA = \|f\|_p and B=gqB = \|g\|_q. Apply Young to f~i=fi/A\tilde f_i = |f_i|/A and g~i=gi/B\tilde g_i = |g_i|/B:
f~ig~if~ipp+g~iqq\tilde f_i \tilde g_i \leq \frac{\tilde f_i^p}{p} + \frac{\tilde g_i^q}{q}
  1. Sum. Summing over ii and using f~ip=1\sum \tilde f_i^p = 1, g~iq=1\sum \tilde g_i^q = 1:
1ABifigi1p+1q=1\frac{1}{AB}\sum_i |f_i g_i| \leq \frac{1}{p} + \frac{1}{q} = 1
  1. Conclude. ifigiAB=fpgq\sum_i |f_i g_i| \leq AB = \|f\|_p \|g\|_q.

Connections

The case p=q=2p = q = 2 recovers the Cauchy–Schwarz InequalityCauchy–Schwarz Inequalityu,vuv|\langle u, v \rangle| \leq \|u\| \, \|v\|The inner product of two vectors is bounded by the product of their normsRead more →. Minkowski's InequalityMinkowski's Inequalityf+gpfp+gp\|f+g\|_p \leq \|f\|_p + \|g\|_pThe L^p norm satisfies the triangle inequality: ||f+g||_p <= ||f||_p + ||g||_p for p >= 1Read more → for LpL^p norms is proved using Holder's inequality applied cleverly. The same integral form underlies Markov's InequalityMarkov's InequalityP(Xa)E[X]aP(X \geq a) \leq \frac{E[X]}{a}A non-negative random variable rarely exceeds a multiple of its expectationRead more → and appears throughout analysisMean Value Theoremc(a,b)  :  f(c)=f(b)f(a)ba\exists\, c \in (a,b)\;:\; f'(c) = \frac{f(b)-f(a)}{b-a}There exists a point where the instantaneous rate of change equals the average rate of changeRead more →.

Lean4 Proof

Mathlib provides the discrete NNReal form as NNReal.inner_le_Lp_mul_Lq in Mathlib.Analysis.MeanInequalities.

NNReal.inner_le_Lp_mul_Lq reduces to Young's inequality applied term-by-term after normalisation.

Lean4 Proof

import Mathlib.Analysis.MeanInequalities

namespace MoonMath

open NNReal Finset

/-- **Holder's inequality** (finite discrete, NNReal form).
    For Holder-conjugate exponents p, q and non-negative sequences f, g,
    `Σ f_i * g_i ≤ (Σ f_i^p)^(1/p) * (Σ g_i^q)^(1/q)`. -/
theorem holder_discrete {ι : Type*} (s : Finset ι)
    (f g : ι  0) {p q : } (hpq : p.HolderConjugate q) :
    ∑ i  s, f i * g i 
      (∑ i  s, f i ^ p) ^ (1 / p) * (∑ i  s, g i ^ q) ^ (1 / q) :=
  NNReal.inner_le_Lp_mul_Lq s f g hpq

end MoonMath