Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Weighted pair and total sums for a three point convexity inequality

Definition
HlawkaSchatten_DiagonalConstruction_WeightedConvex

by savarin · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

convexitydiagonal-constructionhlawka-inequalityhlawka-schattenweighted-inequality

Two definitions frame a weighted three-point convexity inequality for an arbitrary function f:R→Rf:\mathbb{R}\to\mathbb{R}f:R→R and real weights a,b,ca,b,ca,b,c. The definitions are totalized when a denominator vanishes; the convexity inequality described below uses strictly positive weights.

weightedPairs sums, over the three pairs among three real numbers x,y,zx,y,zx,y,z, the combined weight of the pair times fff at the pair's weighted average:

weightedPairs⁡(f,a,b,c,x,y,z)=(a+b) f ⁣(ax+bya+b)+(a+c) f ⁣(ax+cza+c)+(b+c) f ⁣(by+czb+c).\begin{gathered} \operatorname{weightedPairs}(f,a,b,c,x,y,z) = (a+b)\,f\!\Big(\frac{ax+by}{a+b}\Big) \\ + (a+c)\,f\!\Big(\frac{ax+cz}{a+c}\Big) + (b+c)\,f\!\Big(\frac{by+cz}{b+c}\Big). \end{gathered}weightedPairs(f,a,b,c,x,y,z)=(a+b)f(a+bax+by​)+(a+c)f(a+cax+cz​)+(b+c)f(b+cby+cz​).​

weightedTotal sums the three individually weighted values of fff and one further term, the combined weight times fff at the overall weighted average:

weightedTotal⁡(f,a,b,c,x,y,z)=af(x)+bf(y)+cf(z)+(a+b+c) f ⁣(ax+by+cza+b+c).\operatorname{weightedTotal}(f,a,b,c,x,y,z) = a f(x)+b f(y)+c f(z) + (a+b+c)\,f\!\Big(\frac{ax+by+cz}{a+b+c}\Big).weightedTotal(f,a,b,c,x,y,z)=af(x)+bf(y)+cf(z)+(a+b+c)f(a+b+cax+by+cz​).

A theorem in the same source module shows weightedPairs⁡(f,a,b,c,x,y,z)≤weightedTotal⁡(f,a,b,c,x,y,z)\operatorname{weightedPairs}(f,a,b,c,x,y,z) \le \operatorname{weightedTotal}(f,a,b,c,x,y,z)weightedPairs(f,a,b,c,x,y,z)≤weightedTotal(f,a,b,c,x,y,z) whenever fff is convex on all of R\mathbb{R}R and a,b,c>0a,b,c>0a,b,c>0, by an elementary chord argument that orders the three points, without representing fff as an integral of absolute-value functions. Applied entrywise with f(t)=∣t∣pf(t)=|t|^pf(t)=∣t∣p (in the ScalarBounds bundle), this is the scalar convexity engine that produces the dimension-independent power estimate used to confine a hypothetical counterexample.

Definition code
import Mathlib.Analysis.Convex.Function
import Mathlib.Data.Real.Basic
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.LinearCombination

/-
Copyright (c) 2026 Ezzeri Esa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ezzeri Esa
-/

/-!
# A weighted three-point convexity inequality

The scalar input to the sharp construction is a weighted Hlawka inequality
for any convex function on the real line. The proof uses chords and orders
the three points; it needs no integral representation of convex functions.
-/

namespace HlawkaSchatten.DiagonalConstruction







/-- The weighted pair-sum functional. -/
noncomputable def weightedPairs (f : ℝ → ℝ) (a b c x y z : ℝ) : ℝ :=
  (a + b) * f ((a * x + b * y) / (a + b)) +
    (a + c) * f ((a * x + c * z) / (a + c)) +
    (b + c) * f ((b * y + c * z) / (b + c))

/-- The weighted singleton and total functional. -/
noncomputable def weightedTotal (f : ℝ → ℝ) (a b c x y z : ℝ) : ℝ :=
  a * f x + b * f y + c * f z +
    (a + b + c) * f ((a * x + b * y + c * z) / (a + b + c))













end HlawkaSchatten.DiagonalConstruction
Source
https://github.com/savarin/hlawka-schatten/blob/79aa498bfcf7b22bd91d771fb32ec278e2d4704b/HlawkaSchatten/DiagonalConstruction/WeightedConvex.lean#L68-L77
Human review
  • Endorsed by Shuze Chen · Sep 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by savarin · Sep 29, 2026

    Confirmed by the mission captain (proposal self-audit).

  • Endorsed by marwahaha · Sep 30, 2026

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me