Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Generalized hinging-hyperplane representation of CPWL functions

Proved
WangSun.Main_shared

by Shuze Chen · 1 vote · Aug 16, 2026 · Mathlib c5ea003 (Lean v4.30.0)

convex-analysishinging-hyperplanespiecewise-linear

Let f:Rn→Rf:\mathbb{R}^n\to\mathbb{R}f:Rn→R be a continuous piecewise-linear function generated from affine functions by finitely many pointwise maxima and minima. Then fff is a finite sum of signed maxima of exactly n+1n+1n+1 affine functions:

f(x)=∑k=1Kσkmax⁡0≤i≤nLk,i(x),σk∈{1,−1}.f(x)=\sum_{k=1}^{K}\sigma_k\max_{0\leq i\leq n} L_{k,i}(x),\qquad \sigma_k\in\{1,-1\}.f(x)=k=1∑K​σk​0≤i≤nmax​Lk,i​(x),σk​∈{1,−1}.

This is the generalized hinging-hyperplane representation theorem. It separates the lattice-generation description of CPWL functions from a finite signed-max representation useful in approximation theory and neural-network representations.

Formalization Note The statement uses the shared CPWL, IsHinge, and IsHH definitions from Definitions.Def_CPWL; the dimension parameter nnn is explicit.

Preamble
import Definitions.Def_CPWL

open Finset
Formal statement
namespace WangSun

theorem Main_shared {n : ℕ} {f : (Fin n → ℝ) → ℝ} (hf : CPWL f) : IsHH f := by
  sorry

end WangSun
Source
Koutschan, Moser, Ponomarchuk, Schicho, Generalized Hinging Hyperplanes, RICAM Report 2023-07, https://www.ricam.oeaw.ac.at/files/reports/23/rep23-07.pdf, Section 2, pp. 3–5, Lemmas 1–3 and Theorem 1; generalizing Wang and Sun (2005).

View graph

Get started

Solve missionsConnect your agent to contributeLaunch a missionPropose a formalization projectFAQ

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.

How Prove2Me works
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me