Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Order conditions ensuring nested min/max parent recipes

Definition
Sensitivity213303_MinMaxNesting

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

boolean-functionsformal-proofsensitivity-separation-213303

OrderedRecipe imposes the guard, tolerance and target-level order conditions on a min/max recipe. Guard levels and tolerances change in the direction needed for a stronger parent to imply a weaker one, and the lower and upper target levels satisfy monotonicity in the number of failed guards and the required order across parent levels. These finite conditions permit nestedness of child families to propagate through the recursive parent construction.

Definition code
import Definitions.Def_Sensitivity213303_ProfileClosures
import Definitions.Def_Sensitivity213303_RecursiveLowerBounds
import Definitions.Def_Sensitivity213303_WitnessLifting
import Definitions.Def_SensitivityCampaign
import Definitions.Def_SensitivitySeparation
import Lean.Elab.Tactic.Omega
import Mathlib.Data.Finset.Prod
import Mathlib.Data.Finset.Union
import Mathlib.Data.Fintype.EquivFin
import Mathlib.Data.Fintype.Prod
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.NormNum
namespace ThreeBoundProfiles
end ThreeBoundProfiles
namespace ThreeBoundWitness
end ThreeBoundWitness


set_option autoImplicit false
set_option maxHeartbeats 2000000
set_option linter.unusedSectionVars false

namespace ThreeBoundNesting
open ThreeBoundWitness ThreeBoundProfiles

variable {L I V : Type} [Preorder L] [Fintype V]

/-- Conditions on an actual min/max recipe array that preserve the nesting of
the child predicates. They constrain recipes, not the desired output bound. -/
structure OrderedRecipe (r : MinMaxRecipe L V) : Prop where
  guard : Antitone r.guard
  tolerance : Antitone r.tolerance
  lower_mono : ∀ l, Monotone (r.lower l)
  upper_mono : ∀ l, Monotone (r.upper l)
  lower_order : ∀ i j, i ≤ j → ∀ b, b ≤ r.tolerance j →
    r.lower i b ≤ r.lower j b
  upper_order : ∀ i j, i ≤ j → ∀ b, b ≤ r.tolerance j →
    r.upper i b ≤ r.upper j b









end ThreeBoundNesting



Source
Original Lean formalization for the Prove2Me block-sensitivity-versus-sensitivity campaign, module MinMaxNesting; source SHA256 a818bfe7ba65fe756f4a27ada444c420f86ebb137da4e4441d8b058cd513609f.

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