Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(10), p. 15 — |S¹₂| ≤ n(1 − ε) and |S̄²₂| ≤ C(n,2) − C(nε,2) ≤ n²(1 − ε²)/2

Proved
GraphAlignment.Possible.eq_10

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

combinatoricsgraph-alignmentp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1permutations

Let n≥1n \ge 1n≥1, let ppp be a permutation of {1,…,n}\{1,\dots,n\}{1,…,n} with mmm fixed points, and let ϵ=m/n\epsilon = m/nϵ=m/n. With S21S^1_2S21​ (ordered pairs (i,j)(i,j)(i,j), i≠ji\ne ji=j, p(i)≠ip(i)\ne ip(i)=i, swapped by ppp) and Sˉ22\bar S^2_2Sˉ22​ (unordered pairs {i,j}\{i,j\}{i,j}, i≠ji \ne ji=j, with {p(i),p(j)}≠{i,j}\{p(i),p(j)\} \ne \{i,j\}{p(i),p(j)}={i,j}) as in §4.1.2,

∣S21∣≤n(1−ϵ)and∣Sˉ22∣≤(n2)−(nϵ2)≤n22(1−ϵ2).|S^1_2| \le n(1-\epsilon) \qquad\text{and}\qquad |\bar S^2_2| \le \binom n2 - \binom{n\epsilon}2 \le \frac{n^2}{2}(1-\epsilon^2).∣S21​∣≤n(1−ϵ)and∣Sˉ22​∣≤(2n​)−(2nϵ​)≤2n2​(1−ϵ2).

These counts bound the number of terms in the decomposition of ∑(i,j)∈S2AijBp(i)p(j)′\sum_{(i,j)\in S_2} A_{ij}B'_{p(i)p(j)}∑(i,j)∈S2​​Aij​Bp(i)p(j)′​ used in Proposition 4.4.

Formalization Note The statement is for an arbitrary permutation ppp (the paper's ppp relates a candidate to the planted permutation; its definition p=π∘π∗−1p = \pi\circ\pi^{*-1}p=π∘π∗−1 is a slip for π∗−1∘π\pi^{*-1}\circ\piπ∗−1∘π, which has the same number of fixed points). (nϵ2)\binom{n\epsilon}{2}(2nϵ​) is (m2)\binom m2(2m​), and the differences are computed in R\mathbb RR after casting the binomial coefficients. The hypothesis n≥1n \ge 1n≥1 makes ϵ=m/n\epsilon = m/nϵ=m/n meaningful.

Preamble
import Mathlib
import Definitions.Def_GraphAlignment_Possible_PermutationSets
Formal statement
namespace GraphAlignment.Possible

theorem eq_10 (n : ℕ) (hn : 0 < n) (p : Equiv.Perm (Fin n)) :
    let m : ℕ := numFixed p
    let ε : ℝ := (m : ℝ) / n
    ((S12 p).card : ℝ) ≤ n * (1 - ε) ∧
      ((Sbar22 p).card : ℝ) ≤ (n.choose 2 : ℝ) - (m.choose 2 : ℝ) ∧
      (n.choose 2 : ℝ) - (m.choose 2 : ℝ) ≤ (n : ℝ) ^ 2 / 2 * (1 - ε ^ 2) := by sorry

end GraphAlignment.Possible
Source
Hall, Massoulié, Partial Recovery in the Graph Alignment Problem, arXiv:2007.00533v5, p. 15, §4.1.2, (10)
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