Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eligible markers can be chosen outside a target set first

Proved
MarkedCandidateCaps.exists_markers_outside_first

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

boolean-functionsformal-proofsensitivity-separation-213303

Let T,ET,ET,E be finite sets, and let m≤∣E∣m\le|E|m≤∣E∣. There is an mmm-element subset M⊆EM\subseteq EM⊆E such that

∣T∩M∣≤max⁡{0,m−∣E∖T∣}.|T\cap M|\le\max\{0,m-|E\setminus T|\}.∣T∩M∣≤max{0,m−∣E∖T∣}.

This gives the exact overlap correction when selecting eligible markers for a target-prefix cap.

Preamble
import Definitions.Def_SensitivityCampaign
import Definitions.Def_SensitivitySeparation
import Lean.Elab.Tactic.Omega
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.Order.BigOperators.Group.Finset
import Mathlib.Combinatorics.Hall.Finite
import Mathlib.Data.Finset.Prod
import Mathlib.Data.Finset.Sort
import Mathlib.Data.List.FinRange
import Mathlib.Data.List.Sort
import Mathlib.Tactic.FinCases
import Mathlib.Tactic.Linarith
import Definitions.Def_Sensitivity213303_CandidateCoherence
import Definitions.Def_Sensitivity213303_GuardAugmentation
import Definitions.Def_Sensitivity213303_Q2CandidateTypes
import Definitions.Def_Sensitivity213303_Q2Enumeration
import Definitions.Def_Sensitivity213303_ResidualCaps
import Definitions.Def_Sensitivity213303_TournamentHighRows

namespace CandidateCoherence
end CandidateCoherence
namespace GuardAugmentation
end GuardAugmentation
namespace ResidualCaps
end ResidualCaps
namespace TournamentHighRows
end TournamentHighRows
set_option autoImplicit false
set_option maxHeartbeats 3000000
namespace MarkedCandidateCaps
end MarkedCandidateCaps
open MarkedCandidateCaps
open scoped Classical BigOperators
open Finset TournamentHighRows CandidateCoherence GuardAugmentation ResidualCaps
variable {V X : Type} [Fintype V] [DecidableEq V]
Formal statement
theorem MarkedCandidateCaps.exists_markers_outside_first (T E : Finset V) (m : ℕ) (hm : m ≤ E.card) :
    ∃ M : Finset V, M ⊆ E ∧ M.card = m ∧ (T ∩ M).card ≤ m - (E \ T).card := by sorry
Source
Original Lean formalization for the Prove2Me sensitivity campaign, MarkedCandidateCaps, lines 63–102; source SHA256 70f36cf46863ef614a9073ec6c026de5ae5410330d52f60a12e96f629777f587.

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