Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Adjacent boundary maxima control a nonadjacent union profile

Proved
ThreeBoundNumeric.unionExpr_bound

by yousofy · Oct 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

boolean-functionsformal-proofsensitivity-separation-213303

Let vvv upper-bound the profiles of a Boolean family FFF indexed by Fin⁡(n)\operatorname{Fin}(n)Fin(n). If i≤j<k≤li\le j<k\le li≤j<k≤l, then

DF(i,j,k,l)≤unionExpr⁡(n,i,j,k,l)[v].D_F(i,j,k,l)\le \operatorname{unionExpr}(n,i,j,k,l)[v].DF​(i,j,k,l)≤unionExpr(n,i,j,k,l)[v].

Here the right-hand side is the maximum of the stored DDD-coordinates obtained by placing an adjacent true-to-false boundary between jjj and kkk, while retaining endpoints i,li,li,l. This supplies the interval union bounds used in shared-child repair costs.

Preamble
import Definitions.Def_SensitivityCampaign
import Definitions.Def_SensitivitySeparation
import Lean.Elab.Tactic.Omega
import Mathlib.Algebra.Order.Ring.Nat
import Mathlib.Data.Finset.Union
import Mathlib.Data.List.FinRange
import Mathlib.Tactic.Ring
import Definitions.Def_Sensitivity213303_FullProfileClosure
import Definitions.Def_Sensitivity213303_NumericExpressions
import Definitions.Def_Sensitivity213303_ProfileClosures

namespace ThreeBoundFullProfile
end ThreeBoundFullProfile
namespace ThreeBoundProfiles
end ThreeBoundProfiles
set_option autoImplicit false
set_option maxHeartbeats 1000000
namespace ThreeBoundNumeric
end ThreeBoundNumeric
open ThreeBoundNumeric
open ThreeBoundProfiles ThreeBoundFullProfile
variable {n : ℕ} {I : Type} [Fintype I]
Formal statement
theorem ThreeBoundNumeric.unionExpr_bound (F : Fin n → (I → Bool) → Bool) (v : Profile n)
    (hv : Upper F v) (i j k l : Fin n)
    (hij : i ≤ j) (hjk : j < k) (hkl : k ≤ l) :
    DBound F i j k l ((unionExpr n i.val j.val k.val l.val).eval v) := by sorry
Source
Original Lean formalization for the Prove2Me sensitivity campaign, ProfileIntervals, lines 81–95; source SHA256 d459359ece9a5eb9b94eebb512c181956cf125c4577048018b0a8a4b66a1a2e9.

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