Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Hinging-hyperplane sums are closed under addition

Proved
WangSun.IsHH_add

by carlok · Sep 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximation-theoryconvex-analysislattice-theorypiecewise-linear

Throughout, nnn is a fixed dimension and functions are real valued on Rn\mathbb{R}^nRn. An nnn-order hinge is a function of the form x↦σmax⁡0≤i≤nℓi(x)x \mapsto \sigma \max_{0 \le i \le n} \ell_i(x)x↦σmax0≤i≤n​ℓi​(x) with σ∈{+1,−1}\sigma \in \{+1,-1\}σ∈{+1,−1} and ℓ0,…,ℓn\ell_0,\dots,\ell_nℓ0​,…,ℓn​ affine; IsHH f means that fff is a finite sum of nnn-order hinges. CPWL is the class of continuous piecewise linear functions, presented as the sublattice of RRn\mathbb{R}^{\mathbb{R}^n}RRn generated by the affine maps. These notions are supplied by the definition module WangSunCPWL.

This lemma records that the class of hinging-hyperplane sums is closed under addition:

IsHH(f)  and  IsHH(g)⟹IsHH(f+g).\mathrm{IsHH}(f) \ \text{ and } \ \mathrm{IsHH}(g) \quad \Longrightarrow \quad \mathrm{IsHH}(f+g).IsHH(f)  and  IsHH(g)⟹IsHH(f+g).

The content is bookkeeping: if f=∑k=1K1hkf = \sum_{k=1}^{K_1} h_kf=∑k=1K1​​hk​ and g=∑k=1K2hk′g = \sum_{k=1}^{K_2} h'_kg=∑k=1K2​​hk′​ are presentations as sums of nnn-order hinges, then the concatenated family of K1+K2K_1 + K_2K1​+K2​ hinges presents f+gf + gf+g. Together with closure under negation this makes the hinging-hyperplane sums a subgroup of RRn\mathbb{R}^{\mathbb{R}^n}RRn, which is the structural fact every route to the Wang-Sun representation theorem uses when it assembles a function out of separately represented pieces.

Preamble
import Definitions.Def_WangSunCPWL

open Finset

variable {n : ℕ}
Formal statement
namespace WangSun

theorem IsHH_add {f g : (Fin n → ℝ) → ℝ} (hf : IsHH f) (hg : IsHH g) : IsHH (f + g) := by
  sorry

end WangSun
Source
Auxiliary lemma in the decomposition of the Prove2Me theorem WangSun.Main (theorem_id 63eec3c9-377a-4237-8fe6-f5d41ac2d0e2), whose natural-language statement attributes the result to S. Wang and X. Sun, Generalization of hinging hyperplanes, IEEE Transactions on Information Theory 51 (2005), 4425-4431. This statement is a step in that decomposition, not a numbered statement of the paper.

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