Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The cyclic comparison ratio and the cyclic constant K_p (cyclicA, cyclicB, cyclicRatio, cyclicConstant)

Definition
HlawkaSchatten_DiagonalConstruction_Cyclic

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

hlawka-inequalityhlawka-schattenreal-analysissharp-constant

Four scalar definitions, for a real exponent ppp and a real parameter ttt:

cyclicA(p,t)=(tp+2)1/p,cyclicB(p,t)=(2 ∣1−t∣p+2p)1/p,\mathrm{cyclicA}(p,t) = (t^p+2)^{1/p}, \qquad \mathrm{cyclicB}(p,t) = \big(2\,|1-t|^p + 2^p\big)^{1/p},cyclicA(p,t)=(tp+2)1/p,cyclicB(p,t)=(2∣1−t∣p+2p)1/p, cyclicRatio(p,t)=Rp(t)=3 cyclicA(p,t)−31/p ∣2−t∣6 cyclicA(p,t)−3 cyclicB(p,t),\mathrm{cyclicRatio}(p,t) = R_p(t) = \frac{3\,\mathrm{cyclicA}(p,t) - 3^{1/p}\,|2-t|}{6\,\mathrm{cyclicA}(p,t) - 3\,\mathrm{cyclicB}(p,t)},cyclicRatio(p,t)=Rp​(t)=6cyclicA(p,t)−3cyclicB(p,t)3cyclicA(p,t)−31/p∣2−t∣​, cyclicConstant(p)=Kp=sup⁡t∈[1/2, 2]Rp(t).\mathrm{cyclicConstant}(p) = K_p = \sup_{t\in[1/2,\,2]} R_p(t).cyclicConstant(p)=Kp​=t∈[1/2,2]sup​Rp​(t).

For t≥0t\ge0t≥0, cyclicA and cyclicB are, respectively, the common lpNorm value of each of the three cyclic witness vectors and the common lpNorm value of each of their three pairwise sums (a companion bundle supplies the vectors themselves); for p>0p>0p>0 and t≥0t\ge0t≥0, cyclicRatio is the resulting ratio, for that witness triple, of a triple deficit to a pair-deficit sum; cyclicConstant, KpK_pKp​, is its supremum over the fixed interval [1/2,2][1/2,2][1/2,2].

For real p>1p>1p>1, RpR_pRp​ is continuous on [1/2,2][1/2,2][1/2,2] with a positive denominator throughout, so this supremum is attained there, making KpK_pKp​ a maximum rather than merely a supremum. KpK_pKp​ is the candidate diagonal Hlawka constant: for p>1p>1p>1 it is a necessary lower bound for any constant that works on real or complex diagonal triples in dimension at least three, and — proved elsewhere, for p≥256p\ge256p≥256 — it is also sufficient, making it the sharp diagonal constant in that range.

Definition code
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.Normed.Lp.PiLp
import Mathlib.Analysis.SpecialFunctions.Pow.Continuity
import Mathlib.Topology.Order.Compact

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

/-!
# The cyclic comparison constant

The constant is defined from an explicit scalar formula on a fixed compact
interval. Its denominator is positive, so continuity gives an attained
maximum without presupposing the global Hlawka inequality.
-/

namespace HlawkaSchatten.DiagonalConstruction

noncomputable def cyclicA (p t : ℝ) : ℝ := (t ^ p + 2) ^ (1 / p)

noncomputable def cyclicB (p t : ℝ) : ℝ :=
  (2 * |1 - t| ^ p + (2 : ℝ) ^ p) ^ (1 / p)

noncomputable def cyclicRatio (p t : ℝ) : ℝ :=
  (3 * cyclicA p t - (3 : ℝ) ^ (1 / p) * |2 - t|) /
    (6 * cyclicA p t - 3 * cyclicB p t)

noncomputable def cyclicConstant (p : ℝ) : ℝ :=
  sSup (cyclicRatio p '' Set.Icc (1 / 2) 2)

























end HlawkaSchatten.DiagonalConstruction
Source
https://github.com/savarin/hlawka-schatten/blob/79aa498bfcf7b22bd91d771fb32ec278e2d4704b/HlawkaSchatten/DiagonalConstruction/Cyclic.lean#L20-L30
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