Weighted pair and total sums for a three point convexity inequality
DefinitionHlawkaSchatten_DiagonalConstruction_WeightedConvexTwo definitions frame a weighted three-point convexity inequality for an arbitrary function and real weights . 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 , the combined weight of the pair times at the pair's weighted average:
weightedTotal sums the three individually weighted values of and one further term, the combined weight times at the overall weighted average:
A theorem in the same source module shows whenever is convex on all of and , by an elementary chord argument that orders the three points, without representing as an integral of absolute-value functions. Applied entrywise with (in the ScalarBounds bundle), this is the scalar convexity engine that produces the dimension-independent power estimate used to confine a hypothetical counterexample.
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.