Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Joint sensitivity of two true tolerant families

Proved
Paley11987Verified.Sensitivity2075.tolerant_pair_one

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

boolean-functionscombinatoricspaley11987-four-phasesensitivity

For a Boolean function fff on a finite coordinate set, write s(f)s(f)s(f) and bs(f)bs(f)bs(f) for its sensitivity and block sensitivity. For an input xxx, let Ub(f,x)={a:f(x⊕{a})=b}U_b(f,x)=\{a:f(x\oplus\{a\})=b\}Ub​(f,x)={a:f(x⊕{a})=b}, where x⊕{a}x\oplus\{a\}x⊕{a} flips coordinate aaa.

Let TTT be a tournament, ℓ\ellℓ its labels, and F=(Fi)F=(F_i)F=(Fi​) a nested family of Boolean functions on a finite coordinate set. Write Ht,g,qH_{t,g,q}Ht,g,q​ for the tolerant family obtained from target level ttt, guard level ggg, and tolerance qqq. The symbols A,B,M,P,D\mathcal A,\mathcal B,\mathcal M,\mathcal P,\mathcal DA,B,M,P,D denote the five conditional bounds on the sets UbU_bUb​ defined in the accompanying profile interface. All indices and cost parameters are natural numbers; subtraction between natural numbers is truncated at zero.

Suppose TTT has kkk vertices and constant outdegree ooo, and its labels take rrr values. Let J(f,g;x)J(f,g;x)J(f,g;x) count coordinates at which both fff and ggg change when flipped. Let ZZZ and YYY bound this count for ordered pairs of levels of FFF whose current values are both false and both true, respectively. Choose levels Ai≤AjA_i\le A_jAi​≤Aj​ and Gj≤GiG_j\le G_iGj​≤Gi​, and an input xxx where both HAi,Gi,qH_{A_i,G_i,q}HAi​,Gi​,q​ and HAj,Gj,qH_{A_j,G_j,q}HAj​,Gj​,q​ are true. Then the joint sensitivity functional JJJ from the transfer foundation satisfies

J(HAi,Gi,q,HAj,Gj,q;x)≤rY(Ai,Aj)+(o⊖q)Z(Gj,Gi).J(H_{A_i,G_i,q},H_{A_j,G_j,q};x)\le rY(A_i,A_j)+(o\mathbin{\ominus}q)Z(G_j,G_i).J(HAi​,Gi​,q​,HAj​,Gj​,q​;x)≤rY(Ai​,Aj​)+(o⊖q)Z(Gj​,Gi​).

The claim holds for all natural qqq and all finite child coordinate sets. It bounds a pair of true output levels using the corresponding child pair bounds.

Preamble
import Definitions.Def_SensitivityCampaign
import Definitions.Def_SensitivitySeparation
import Lean.Elab.Tactic.Omega
import Mathlib.Algebra.BigOperators.Field
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Group.Finset.Piecewise
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.GroupWithZero.Units.Equiv
import Mathlib.Algebra.Order.Archimedean.Basic
import Mathlib.Algebra.Order.BigOperators.Group.Finset
import Mathlib.Algebra.Order.BigOperators.GroupWithZero.Finset
import Mathlib.Algebra.Order.GroupWithZero.Basic
import Mathlib.Algebra.Order.Ring.Pow
import Mathlib.Analysis.SpecialFunctions.Log.Deriv
import Mathlib.Combinatorics.Digraph.Basic
import Mathlib.Combinatorics.Hall.Finite
import Mathlib.Data.Fin.Basic
import Mathlib.Data.Finset.Card
import Mathlib.Data.Finset.Lattice.Fold
import Mathlib.Data.Finset.Powerset
import Mathlib.Data.Finset.Prod
import Mathlib.Data.Finset.Union
import Mathlib.Data.Fintype.Basic
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.EquivFin
import Mathlib.Data.Fintype.Option
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.Fintype.Prod
import Mathlib.Data.Fintype.Sum
import Mathlib.Data.Nat.Basic
import Mathlib.Data.Nat.Choose.Basic
import Mathlib.Data.Rat.Cast.Order
import Mathlib.Logic.Equiv.Fin.Basic
import Mathlib.NumberTheory.JacobiSum.Basic
import Mathlib.NumberTheory.LegendreSymbol.Basic
import Mathlib.Order.Interval.Finset.Nat
import Mathlib.Tactic.FieldSimp
import Mathlib.Tactic.FinCases
import Mathlib.Tactic.IntervalCases
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.NormNum.Prime
import Mathlib.Tactic.Positivity
import Mathlib.Tactic.Push
import Mathlib.Tactic.Ring
import Mathlib.Tactic.Tauto
import Definitions.Def_Paley11987Support_019

set_option autoImplicit false
set_option Elab.async false
Formal statement
theorem Paley11987Verified.Sensitivity2075.tolerant_pair_one :
∀ {n k r : Nat} {I : Type} [inst : Fintype.{0} I] (T : OAI.Paper320.Tournament k) (label : Fin k → Fin k → Fin r)
  (F : Fin n → (I → Bool) → Bool),
  @OAI.Paper320.NestedFamily n I F →
    ∀ (o q : Nat),
      (∀ (i : Fin k),
          @Eq.{1} Nat
            (@Finset.card.{0} (Fin k)
              (@Finset.filter.{0} (Fin k) (@Digraph.Adj.{0} (Fin k) (@OAI.Paper320.Tournament.toDigraph k T) i)
                (fun a =>
                  Classical.propDecidable (@Digraph.Adj.{0} (Fin k) (@OAI.Paper320.Tournament.toDigraph k T) i a))
                (@Finset.univ.{0} (Fin k) (Fin.fintype k))))
            o) →
        ∀ (Z Y : Fin n → Fin n → Nat),
          @Sensitivity205.PairBound n I inst F Bool.false Z →
            @Sensitivity205.PairBound n I inst F Bool.true Y →
              ∀ (Ai Aj Gi Gj : Fin n),
                @LE.le.{0} (Fin n) (@instLEFin n) Ai Aj →
                  @LE.le.{0} (Fin n) (@instLEFin n) Gj Gi →
                    ∀ (x : Prod.{0, 0} (Prod.{0, 0} (Fin k) (Fin r)) I → Bool),
                      @Eq.{1} Bool (@Sensitivity2075.tolerantFamily n k r I T label F Ai Gi q x) Bool.true →
                        @Eq.{1} Bool (@Sensitivity2075.tolerantFamily n k r I T label F Aj Gj q x) Bool.true →
                          @LE.le.{0} Nat instLENat
                            (@OAI.Paper320.jointSensitivityAt (Prod.{0, 0} (Prod.{0, 0} (Fin k) (Fin r)) I)
                              (@instFintypeProd.{0, 0} (Prod.{0, 0} (Fin k) (Fin r)) I
                                (@instFintypeProd.{0, 0} (Fin k) (Fin r) (Fin.fintype k) (Fin.fintype r)) inst)
                              (@Sensitivity2075.tolerantFamily n k r I T label F Ai Gi q)
                              (@Sensitivity2075.tolerantFamily n k r I T label F Aj Gj q) x)
                            (@HAdd.hAdd.{0, 0, 0} Nat Nat Nat (@instHAdd.{0} Nat instAddNat)
                              (@HMul.hMul.{0, 0, 0} Nat Nat Nat (@instHMul.{0} Nat instMulNat) r (Y Ai Aj))
                              (@HMul.hMul.{0, 0, 0} Nat Nat Nat (@instHMul.{0} Nat instMulNat)
                                (@HSub.hSub.{0, 0, 0} Nat Nat Nat (@instHSub.{0} Nat instSubNat) o q) (Z Gj Gi))) := by sorry
Source
User-supplied paley11987_complete_proof.zip, SHA256 fe0ca82767dc3fbdfbd49761a4a7746918039d0c0c741580ac5685bce3104dd7; source module BooleanTransferFoundation, SHA256 d873df15ddf34254fda57ae3742d6727e5a14f23f0375f927f7cf1b57b20b6c9; compact solution lines 4537-4642, compact SHA256 5f25b5da98678c1acd4e6a349cde81b6ba60c099acc44b634d4e7d985c4b5c20.

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