Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

p. 12, after (13) — the dyadic grid 𝒯 lies in 𝒟_T = {1, …, T − 1} and has |𝒯| ≤ 2 log₂ T points

Proved
CPDNetworks.Unknown.grid_card

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

change-point-detectiondyadic-gridp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let T≥2T\ge2T≥2 and let T=TL∪TR\mathcal T=\mathcal T^L\cup\mathcal T^RT=TL∪TR be the dyadic grid (13),

TL={2k:k=0,…,⌊log⁡2(T/2)⌋},TR={T−2k:k=0,…,⌊log⁡2(T/2)⌋}.\mathcal T^L=\{2^k:k=0,\dots,\lfloor\log_2(T/2)\rfloor\},\qquad\mathcal T^R=\{T-2^k:k=0,\dots,\lfloor\log_2(T/2)\rfloor\}.TL={2k:k=0,…,⌊log2​(T/2)⌋},TR={T−2k:k=0,…,⌊log2​(T/2)⌋}.

Then every grid point is a possible change point, T⊆DT={1,…,T−1}\mathcal T\subseteq\mathcal D_T=\{1,\dots,T-1\}T⊆DT​={1,…,T−1}, and

∣T∣≤2log⁡2T.|\mathcal T|\le2\log_2 T.∣T∣≤2log2​T.

The cardinality bound is what the union bound over the grid costs in the threshold (15), through the factor log⁡2T\log_2Tlog2​T inside the logarithm.

Formalization Note. The paper writes ∣T∣=2+2⌊log⁡2(T/2)⌋≤2log⁡2(T)|\mathcal T|=2+2\lfloor\log_2(T/2)\rfloor\le2\log_2(T)∣T∣=2+2⌊log2​(T/2)⌋≤2log2​(T). The equality fails when TL\mathcal T^LTL and TR\mathcal T^RTR overlap (for T=4T=4T=4, T={1,2,3}\mathcal T=\{1,2,3\}T={1,2,3}), so only the inequality, which is what the proof of Lemma 5 uses, is stated.

Preamble
import Mathlib
import Definitions.Def_HighDimProb_RandomMatrices_matrixOpNorm
import Definitions.Def_CPDNetworks_Unknown_Setting

open scoped Matrix
open HighDimProb.RandomMatrices
Formal statement
namespace CPDNetworks.Unknown

/-- p. 12, after (13): the dyadic grid lies in `𝒟_T` and has at most `2 log₂ T` points. -/
theorem grid_card (T : ℕ) (hT : 2 ≤ T) :
    ((dyadicGrid T).card : ℝ) ≤ 2 * Real.logb 2 T ∧ dyadicGrid T ⊆ DT T := by sorry

end CPDNetworks.Unknown
Source
Enikeeva and Klopp, Change-point detection in dynamic networks with missing links, arXiv:2106.14470v2, p. 12, display (13) and the sentence after it
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 14, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me