Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Semantic exclusions imply the pair-specific record filter

Proved
ThreeBoundRecordAllowedAlgorithm.recordAllowedFor_of

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

boolean-functionsformal-proofsensitivity-separation-213303

Let a,ca,ca,c be weak and strong recipe entries, let rrr be a q≤2q\le2q≤2 record, and assume its general cap filter accepts. Suppose every tier k≤c.tolerancek\le c.\mathrm{tolerance}k≤c.tolerance satisfies the following additional restrictions: when k<a.tolerancek<a.\mathrm{tolerance}k<a.tolerance and a.threshold(k+1)≤c.threshold(k)a.\mathrm{threshold}(k+1)\le c.\mathrm{threshold}(k)a.threshold(k+1)≤c.threshold(k), the relevant guard and overlap counts vanish; when a pure positive count r(k)r(k)r(k) is nonzero, c.guardc.\mathrm{guard}c.guard differs from the applicable weak/previous-strong target barrier. Then

recordAllowedFor⁡(caps,a,c,r)=true.\operatorname{recordAllowedFor}(\mathrm{caps},a,c,r)=\mathrm{true}.recordAllowedFor(caps,a,c,r)=true.

This separates the mathematical exclusion hypotheses from their executable Boolean filter.

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
import Definitions.Def_Sensitivity213303_Q2RawExpressions

namespace ThreeBoundNumeric
end ThreeBoundNumeric
set_option autoImplicit false
set_option maxHeartbeats 4000000
namespace ThreeBoundRecordAllowedAlgorithm
end ThreeBoundRecordAllowedAlgorithm
open ThreeBoundRecordAllowedAlgorithm
open ThreeBoundNumeric
Formal statement
theorem ThreeBoundRecordAllowedAlgorithm.recordAllowedFor_of (caps : Caps) (a c : Entry) (r : Q2Record)
    (hallowed : allowedRecord caps c.tolerance r = true)
    (hguard : ∀ k, k ≤ c.tolerance →
      k < a.tolerance → a.threshold (k+1) ≤ c.threshold k →
      r (3+k)=0 ∧ (k=0 → r 6=0) ∧ (k=1 → r 7=0))
    (hpositive : ∀ k, k ≤ c.tolerance → r k≠0 →
      c.guard ≠ (if k=0 then a.threshold k else min (a.threshold k) (c.threshold (k-1)))) :
    recordAllowedFor caps a c r = true := by sorry
Source
Original Lean formalization for the Prove2Me sensitivity campaign, RecordAllowedAlgorithm, lines 24–53; source SHA256 0890dfe0ea7f207a310834ba1791f0d3210cfcaa03b2df0efac350fe6fd48bed.

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