Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Ordinary zero-tolerance transfer

Proved
Paley11987Verified.CompactBooleanTransfer.ordinary_zero_tolerance

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.

Choose levels ta≤tbt_a\le t_bta​≤tb​, gb≤ga≤tag_b\le g_a\le t_agb​≤ga​≤ta​ and natural costs a,b,s,j,da,b,s,j,da,b,s,j,d with j≤sj\le sj≤s. Suppose the child bounds are

P(F;gb,ta,tb;a),A(F;gb,tb;b),B(F;gb,ga;s),B(F;gb,tb;j),D(F;gb,ga,ta,tb;d).\mathcal P(F;g_b,t_a,t_b;a),\quad\mathcal A(F;g_b,t_b;b),\quad \mathcal B(F;g_b,g_a;s),\quad\mathcal B(F;g_b,t_b;j),\quad \mathcal D(F;g_b,g_a,t_a,t_b;d).P(F;gb​,ta​,tb​;a),A(F;gb​,tb​;b),B(F;gb​,ga​;s),B(F;gb​,tb​;j),D(F;gb​,ga​,ta​,tb​;d).

Assume the binary labeling has ordinary defect cap 242424 at tolerance zero, source cap 222222, and double-dominator cap 181818, in the precise exclusion senses of the interface. Then, whenever Hta,ga,0(x)=0H_{t_a,g_a,0}(x)=0Hta​,ga​,0​(x)=0,

∣U1(Htb,gb,0,x)∣≤Z0(a,b,s,j,d),|U_1(H_{t_b,g_b,0},x)|\le Z_0(a,b,s,j,d),∣U1​(Htb​,gb​,0​,x)∣≤Z0​(a,b,s,j,d),

where Z0Z_0Z0​ is the explicit zero-tolerance cost function. This handles the zero-tolerance branch without requiring the full positive-tolerance labeling-cap hypothesis.

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_041

set_option autoImplicit false
set_option Elab.async false
Formal statement
theorem Paley11987Verified.CompactBooleanTransfer.ordinary_zero_tolerance :
∀ {n k : Nat} {I : Type} [inst : Fintype.{0} I] (T : OAI.Paper320.Tournament k)
  (label : Fin k → Fin k → Fin (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2))))
  (F : Fin n → (I → Bool) → Bool),
  @OAI.Paper320.NestedFamily n I F →
    ∀ (ta tb ga gb : Fin n),
      @LE.le.{0} (Fin n) (@instLEFin n) ta tb →
        @LE.le.{0} (Fin n) (@instLEFin n) gb ga →
          @LE.le.{0} (Fin n) (@instLEFin n) ga ta →
            ∀ (a b s j d : Nat),
              @LE.le.{0} Nat instLENat j s →
                @ZT.PBound I inst n F gb ta tb a →
                  @ZT.ABound I inst n F gb tb b →
                    @ZT.BBound I inst n F gb ga s →
                      @ZT.BBound I inst n F gb tb j →
                        @ZT.DBound I inst n F gb ga ta tb d →
                          @SensitivityQ.DefectBound k (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2))) T
                              label (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0)))
                              (@OfNat.ofNat.{0} Nat (nat_lit 24) (instOfNatNat (nat_lit 24))) →
                            @SensitivitySourceZero.SourceBound k
                                (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2))) T label
                                (@OfNat.ofNat.{0} Nat (nat_lit 22) (instOfNatNat (nat_lit 22))) →
                              @ZT.DoubleCardBound k T label
                                  (@OfNat.ofNat.{0} Nat (nat_lit 18) (instOfNatNat (nat_lit 18))) →
                                ∀
                                  (x :
                                    Prod.{0, 0}
                                        (Prod.{0, 0} (Fin k)
                                          (Fin (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2)))))
                                        I →
                                      Bool),
                                  @Eq.{1} Bool
                                      (@Sensitivity2075.tolerantFamily n k
                                        (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2))) I T label F ta ga
                                        (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0))) x)
                                      Bool.false →
                                    @LE.le.{0} Nat instLENat
                                      (@Finset.card.{0}
                                        (Prod.{0, 0}
                                          (Prod.{0, 0} (Fin k)
                                            (Fin (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2)))))
                                          I)
                                        (@ZT.flipsTo
                                          (Prod.{0, 0}
                                            (Prod.{0, 0} (Fin k)
                                              (Fin (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2)))))
                                            I)
                                          (@instFintypeProd.{0, 0}
                                            (Prod.{0, 0} (Fin k)
                                              (Fin (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2)))))
                                            I
                                            (@instFintypeProd.{0, 0} (Fin k)
                                              (Fin (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2))))
                                              (Fin.fintype k)
                                              (Fin.fintype
                                                (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2)))))
                                            inst)
                                          (@Sensitivity2075.tolerantFamily n k
                                            (@OfNat.ofNat.{0} Nat (nat_lit 2) (instOfNatNat (nat_lit 2))) I T label F tb
                                            gb (@OfNat.ofNat.{0} Nat (nat_lit 0) (instOfNatNat (nat_lit 0))))
                                          Bool.true x))
                                      (ZT.zeroCost a b s j d) := by sorry
Source
User-supplied paley11987_complete_proof.zip, SHA256 fe0ca82767dc3fbdfbd49761a4a7746918039d0c0c741580ac5685bce3104dd7; source module BooleanTransferZeroStage, SHA256 ee0edbeba2de9c6593dd177d6c7c31f2c3b09f60bae57768d4b04cc5fef879ed; compact solution lines 9092-9141, 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