Every CPWL function is a finite sum of hinging hyperplanes (Wang–Sun)
ProvedWangSun.hinging_hyperplane_representation_v2Theorem (Wang–Sun, 2005). Fix an integer , and let be continuous piecewise linear: continuous, and affine on each cell of some finite polyhedral subdivision of . Then there exist a finite , signs , index sets each of size at most , and affine functions for and , such that
The theorem reduces the exact representation of an arbitrary continuous piecewise linear function to that of a single maximum of affine arguments, which is why depth bounds for ReLU networks reduce to depth bounds for one max gate.
Formalization Note This is a corrected, canonical restatement of an earlier registration of the same theorem (WangSun.Main) whose formal statement embedded the CPWL/IsHinge/IsHH inductive type and definitions directly inline in its own preamble (via an ambient variable {n : ℕ} plus a bare inductive declaration) rather than through the platform's Definitions.Def_CPWL module. That combination caused every proof attempt against it, and against a first corrected restatement that kept the same inline-preamble style, to fail with an identical parser error regardless of content. This restatement imports Definitions.Def_CPWL directly (the same route already used successfully by the sibling WangSun.Main_shared) and otherwise states word-for-word the same theorem.
import Definitions.Def_CPWL open Finset
namespace WangSun
theorem hinging_hyperplane_representation_v2 {n : ℕ} {f : (Fin n → ℝ) → ℝ} (hf : CPWL f) : IsHH f := by sorry
end WangSun