Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(66), p. 67 — ⌈L/ε⌉ thresholds approximate every threshold indicator within Hamming distance ε/L

Proved
OfflinePolicyLearning.Trees.eq66_threshold_approximation

by mikedeng1 · Oct 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

covering-numberdecision-treeshamming-distancep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

For b∈Rb\in\mathbb Rb∈R let 1b(r)=1\mathbf 1_b(r)=11b​(r)=1 if r<br<br<b and 000 if r≥br\ge br≥b. Let L≥1L\ge1L≥1 be an integer, ε>0\varepsilon>0ε>0, m≥1m\ge1m≥1, and let r1,…,rmr_1,\dots,r_mr1​,…,rm​ be real numbers (repetitions allowed). Then there are K=⌈L/ε⌉K=\lceil L/\varepsilon\rceilK=⌈L/ε⌉ thresholds b1,…,bKb_1,\dots,b_Kb1​,…,bK​ such that for every b∈Rb\in\mathbb Rb∈R

min⁡1≤i≤K 1m∑j=1m∣1b(rj)−1bi(rj)∣ ≤ εL.\min_{1\le i\le K}\ \frac1m\sum_{j=1}^m\big|\mathbf 1_b(r_j)-\mathbf 1_{b_i}(r_j)\big|\ \le\ \frac{\varepsilon}{L}.1≤i≤Kmin​ m1​j=1∑m​​1b​(rj​)−1bi​​(rj​)​ ≤ Lε​.

This is the one-dimensional approximation step behind the covering bound for decision trees: a single branch node's threshold can be replaced by one of ⌈L/ε⌉\lceil L/\varepsilon\rceil⌈L/ε⌉ fixed thresholds at a Hamming cost of at most ε/L\varepsilon/Lε/L.

Formalization Note The thresholds are indexed by Fin ⌈L/ε⌉₊. The paper's display writes the minimum over i∈{1,…,n}i\in\{1,\dots,n\}i∈{1,…,n}, a slip for i∈{1,…,⌈L/ε⌉}i\in\{1,\dots,\lceil L/\varepsilon\rceil\}i∈{1,…,⌈L/ε⌉}. The paper's proof removes duplicate rjr_jrj​ "without loss of generality", which changes the normalization 1/m1/m1/m; the statement here keeps the multiplicities, which is the form the tree argument applies to.

Preamble
import Mathlib
Formal statement
namespace OfflinePolicyLearning.Trees

/-- (66), p. 67 (App. F, Step 1): for any `m` reals `r_1, …, r_m` (repetitions allowed) there are
`⌈L/ε⌉` thresholds `b'_i` such that every threshold indicator `1_b(r) = 1{r < b}` is within
Hamming distance `ε/L` of some `1_{b'_i}` with respect to `r_1, …, r_m`. -/
theorem eq66_threshold_approximation (L : ℕ) (hL : 1 ≤ L) (ε : ℝ) (hε : 0 < ε) (m : ℕ)
    (hm : 1 ≤ m) (r : Fin m → ℝ) :
    ∃ b' : Fin ⌈(L : ℝ) / ε⌉₊ → ℝ, ∀ b : ℝ, ∃ i,
      (1 / (m : ℝ)) * ((Finset.univ.filter fun j => ¬ (r j < b ↔ r j < b' i)).card : ℝ)
        ≤ ε / L := by sorry

end OfflinePolicyLearning.Trees
Source
Zhou, Athey & Wager, Offline Multi-Action Policy Learning, arXiv:1810.04778v2, p. 67, App. F, Step 1, display (66)
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 2026

    Confirmed by the mission captain (proposal self-audit).

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