Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 9 — Ca(K)C_a(K)Ca​(K) functions are exactly the quasi-KKK-convex, piecewise continuous, PF-integrable, coercive functions

Proved
PorteusSS.CaK_iff_quasiKConvex

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

inventoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1quasi-k-convex

Let K≥0K \ge 0K≥0 and f:R→Rf : \mathbb R \to \mathbb Rf:R→R. If f∈Ca(K)f \in C_a(K)f∈Ca​(K) for some a∈Ra \in \mathbb Ra∈R, then

  1. fff is quasi-KKK-convex on R\mathbb RR,
  2. fff is piecewise continuous,
  3. fff is PF-integrable, and
  4. f(x)→∞f(x) \to \inftyf(x)→∞ as ∣x∣→∞|x| \to \infty∣x∣→∞.

Conversely, if (1)–(4) hold, then f∈Ca(K)f \in C_a(K)f∈Ca​(K) for some a∈Ra \in \mathbb Ra∈R. In short,

⋃a∈RCa(K)={f:f quasi-K-convex, piecewise continuous, PF-integrable, f(x)→∞ as ∣x∣→∞}.\bigcup_{a \in \mathbb R} C_a(K) = \{ f : f \text{ quasi-}K\text{-convex, piecewise continuous, PF-integrable}, \ f(x) \to \infty \text{ as } |x| \to \infty \}.a∈R⋃​Ca​(K)={f:f quasi-K-convex, piecewise continuous, PF-integrable, f(x)→∞ as ∣x∣→∞}.

This characterization identifies Porteus's classes with quasi-KKK-convexity, a common extension of Scarf's KKK-convexity and ordinary quasi-convexity; it is the tool used to derive the (s,S)(s,S)(s,S) shape of C(K)C(K)C(K) functions.

Formalization Note. The paper defines Ca(K)C_a(K)Ca​(K) only for K≥0K \ge 0K≥0, hence the hypothesis K≥0K \ge 0K≥0.

Preamble
import Mathlib
import Definitions.Def_PorteusSS_Functions

open MeasureTheory Filter Topology Set
Formal statement
namespace PorteusSS

/-- Lemma 9 (p. 424). For `K ≥ 0`: if `f ∈ C_a(K)` for some `a`, then `f` is quasi-`K`-convex
on `ℝ`, piecewise continuous, PF-integrable and `f x → ∞` as `|x| → ∞`; conversely these four
properties imply `f ∈ C_a(K)` for some `a ∈ ℝ`. -/
theorem CaK_iff_quasiKConvex (K : ℝ) (hK : 0 ≤ K) (f : ℝ → ℝ) :
    (∀ a : ℝ, CaK a K f →
      QuasiKConvexOn f K univ ∧ PiecewiseContinuousOn f univ ∧ PFIntegrable f ∧
        Tendsto f (cocompact ℝ) atTop) ∧
    (QuasiKConvexOn f K univ ∧ PiecewiseContinuousOn f univ ∧ PFIntegrable f ∧
        Tendsto f (cocompact ℝ) atTop → ∃ a : ℝ, CaK a K f) := by sorry

end PorteusSS
Source
Porteus, On the Optimality of Generalized (s, S) Policies, Management Science 17(7):411–426 (1971), p. 424, Lemma 9
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The statement concerns a real KKK with K≥0K\ge0K≥0 and an arbitrary f:R→Rf:\mathbb R\to\mathbb Rf:R→R.

Recall f∈Ca(K)f\in C_a(K)f∈Ca​(K) means: K≥0K\ge0K≥0, and for I=(−∞,a)I=(-\infty,a)I=(−∞,a) or I=(−∞,a]I=(-\infty,a]I=(−∞,a] all of the following hold:

  • fff is piecewise continuous on R\mathbb RR: continuous off a finite set AAA, with a finite left limit and a finite right limit at each point of AAA.
  • fff is PF-integrable: ξ↦f(y−ξ)ψ(ξ)\xi\mapsto f(y-\xi)\psi(\xi)ξ↦f(y−ξ)ψ(ξ) is Lebesgue integrable for every yyy and every Pólya frequency function ψ\psiψ. Such a ψ\psiψ is integrable, has ∫ψ>0\int\psi>0∫ψ>0, and has det⁡[ψ(xi−tj)]i,j≤k≥0\det[\psi(x_i-t_j)]_{i,j\le k}\ge0det[ψ(xi​−tj​)]i,j≤k​≥0 for all k≥1k\ge1k≥1, x1<⋯<xkx_1<\dots<x_kx1​<⋯<xk​, t1<⋯<tkt_1<\dots<t_kt1​<⋯<tk​.
  • fff is nonincreasing on III.
  • f(x)≤f(y)+Kf(x)\le f(y)+Kf(x)≤f(y)+K whenever x≤yx\le yx≤y both lie in R∖I\mathbb R\setminus IR∖I.
  • f(x)→+∞f(x)\to+\inftyf(x)→+∞ as ∣x∣→∞|x|\to\infty∣x∣→∞.

The theorem asserts two things.

  1. Forward direction. For every a∈Ra\in\mathbb Ra∈R, if f∈Ca(K)f\in C_a(K)f∈Ca​(K), then all four of these hold:
    • fff is quasi-KKK-convex on R\mathbb RR: for all x≤yx\le yx≤y and λ∈[0,1]\lambda\in[0,1]λ∈[0,1], f(λx+(1−λ)y)≤max⁡{f(x),f(y)+K}f(\lambda x+(1-\lambda)y)\le\max\{f(x),f(y)+K\}f(λx+(1−λ)y)≤max{f(x),f(y)+K};
    • fff is piecewise continuous on R\mathbb RR;
    • fff is PF-integrable;
    • f(x)→+∞f(x)\to+\inftyf(x)→+∞ as ∣x∣→∞|x|\to\infty∣x∣→∞.
  2. Converse. If those four properties hold, then f∈Ca(K)f\in C_a(K)f∈Ca​(K) for some a∈Ra\in\mathbb Ra∈R.

Degenerate cases: K=0K=0K=0 is allowed. In that case quasi-KKK-convexity reads f(λx+(1−λ)y)≤max⁡{f(x),f(y)}f(\lambda x+(1-\lambda)y)\le\max\{f(x),f(y)\}f(λx+(1−λ)y)≤max{f(x),f(y)}, and Ca(0)C_a(0)Ca​(0) requires fff to be nondecreasing on R∖I\mathbb R\setminus IR∖I. There are no zero-count or empty-type cases, and no default values enter.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

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

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me