Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Step III residual bound with the corrected cross-term exponent

Proved
NarrowDNF.HatamiCrossTerms.approxTruncated_residual_le

by chenghua.liu · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsnarrow-dnf-authors-importprobabilitystoc-2027

Let f:{0,1}I→{0,1}f:\{0,1\}^I\to\{0,1\}f:{0,1}I→{0,1} on finite III, 0<p≤1/20<p\le1/20<p≤1/2, k≥1k\ge1k≥1, 0≤δ≤10\le\delta\le10≤δ≤1, and η>0\eta>0η>0. Write FSF_SFS​ for its biased Fourier components, A={S:∣S∣≤k, ∥FS∥∞>η}\mathcal A=\{S:|S|\le k,\ \|F_S\|_\infty>\eta\}A={S:∣S∣≤k, ∥FS​∥∞​>η}, and JJJ for the threshold activation built from tail masses Pp(∣FS∣≥η)P_p(|F_S|\ge\eta)Pp​(∣FS​∣≥η). Let F~S=Ep[FS∣FJS]\widetilde F_S=E_p[F_S\mid\mathcal F_{J_S}]FS​=Ep​[FS​∣FJS​​], where JSJ_SJS​ retains activations inside SSS. Define M=∑∣S∣≤kEp[FS21∣FS∣≤η]M=\sum_{|S|\le k}E_p[F_S^2\mathbf1_{|F_S|\le\eta}]M=∑∣S∣≤k​Ep​[FS2​1∣FS​∣≤η​]. Then

Ep[(∑S∈A(FS−F~S))2]≤2kM+29kδ/η2.E_p\left[\left(\sum_{S\in\mathcal A}(F_S-\widetilde F_S)\right)^2\right]\le2kM+2^{9k}\delta/\eta^2.Ep​​(S∈A∑​(FS​−FS​))2​≤2kM+29kδ/η2.
Preamble
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.GroupWithZero.Finset
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Order.BigOperators.Group.Finset
import Mathlib.Algebra.Order.BigOperators.Ring.Finset
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Analysis.SpecialFunctions.Sqrt
import Mathlib.Data.Bool.Basic
import Mathlib.Data.Finset.Card
import Mathlib.Data.Finset.Image
import Mathlib.Data.Finset.Insert
import Mathlib.Data.Finset.Lattice.Fold
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.Real.Basic
import Mathlib.Logic.Equiv.Prod
import Mathlib.Order.Monotone.Basic
import Mathlib.Tactic
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.GCongr
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Positivity
import Mathlib.Tactic.Ring
import Definitions.Def_NarrowDNF_Adaptive
import Definitions.Def_NarrowDNF_Certificates
import Definitions.Def_NarrowDNF_ConditionalExpectation
import Definitions.Def_NarrowDNF_CoordinateShift
import Definitions.Def_NarrowDNF_Fourier
import Definitions.Def_NarrowDNF_FourierTruncation
import Definitions.Def_NarrowDNF_HatamiActivation
import Definitions.Def_NarrowDNF_HatamiCrossTerms
import Definitions.Def_NarrowDNF_HatamiResidual
import Definitions.Def_NarrowDNF_Influence
import Definitions.Def_NarrowDNF_LoadTransport
import Definitions.Def_NarrowDNF_ProductMeasure
import Theorems.Thm_NarrowDNF_HatamiCrossTerms_crossEnvelope_le_corrected
import Theorems.Thm_NarrowDNF_HatamiCrossTerms_residual_le_rank_factor
import Theorems.Thm_NarrowDNF_HatamiResidual_sum_diagonal_le_small_mass

namespace NarrowDNF
end NarrowDNF

namespace NarrowDNF.Activation
end NarrowDNF.Activation

namespace NarrowDNF.FiberShift
end NarrowDNF.FiberShift

namespace NarrowDNF.Fourier
end NarrowDNF.Fourier

namespace NarrowDNF.HatamiActivation
end NarrowDNF.HatamiActivation

namespace NarrowDNF.HatamiCrossTerms
end NarrowDNF.HatamiCrossTerms

namespace NarrowDNF.HatamiResidual
end NarrowDNF.HatamiResidual

namespace NarrowDNF.Influence
end NarrowDNF.Influence

namespace NarrowDNF.ProductMeasure
end NarrowDNF.ProductMeasure
noncomputable section
open scoped BigOperators
open NarrowDNF
open NarrowDNF.HatamiCrossTerms
open ProductMeasure HatamiResidual HatamiActivation
attribute [local instance] Classical.propDecidable
variable {ι : Type*} [Fintype ι] [DecidableEq ι]
Formal statement
theorem NarrowDNF.HatamiCrossTerms.approxTruncated_residual_le {p k δ η : ℝ}
    (hp0 : 0 < p) (hp : p ≤ 1/2) (hk : 1 ≤ k)
    (hδ0 : 0 ≤ δ) (hδ1 : δ ≤ 1) (hη : 0 < η) (f : Cube ι → Bool) :
    ConditionalExpectation.squaredError (weight p)
      (truncated p (fun x => Influence.boolValue (f x))
        (significantSets p (fun x => Influence.boolValue (f x)) k η))
      (approxTruncated p (fourierActivation k p δ η (fun x => Influence.boolValue (f x)))
        (fun x => Influence.boolValue (f x))
        (significantSets p (fun x => Influence.boolValue (f x)) k η)) ≤
      2*k*FourierTruncation.smallMassReal p (fun x => Influence.boolValue (f x)) k η +
        (2:ℝ)^(9*k)*δ/η^2 := by sorry
Source
https://github.com/liuchliuch/narrow-dnf-lean/blob/eecadd6a5ea0a331d6cf9fd5cb39fc6ec854b372/NarrowDNF/HatamiCrossTerms.lean#L463-L513

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