Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix C / Eq.(67): two-row branching multiplicity

Open
QAlgorithms.Papers.Independent.Extend50.P17.two_row_branching

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let m,k,r,tm,k,r,tm,k,r,t be natural numbers with 2r≤m2r\le m2r≤m, 2t≤m+k2t\le m+k2t≤m+k, r≤tr\le tr≤t, and m−r≤m+k−tm-r\le m+k-tm−r≤m+k−t. Let α=(m−r,r)\alpha=(m-r,r)α=(m−r,r) and μ=(m+k−t,t)\mu=(m+k-t,t)μ=(m+k−t,t) be nested two-row shapes. Let b(α,μ)b(\alpha,\mu)b(α,μ) count sequences of kkk single-box additions from α\alphaα to μ\muμ for which every intermediate shape is valid. Then

b(α,μ)=(kt−r)−(km+k−r−t+1).b(\alpha,\mu)=\binom{k}{t-r}-\binom{k}{m+k-r-t+1}.b(α,μ)=(t−rk​)−(m+k−r−t+1k​).

Binomial coefficients vanish for negative or excessive integer lower arguments. With s=m/2−rs=m/2-rs=m/2−r and j=(m+k)/2−tj=(m+k)/2-tj=(m+k)/2−t, this is Eq. (67). The count is defined by actual valid paths, independently of the closed expression.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P17
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Extend50.P17

open Filter MeasureTheory

open scoped BigOperators Matrix ComplexOrder Matrix.Norms.L2Operator

attribute [local instance] Classical.propDecidable

/-- PDF pp.13–14, Eq.(67): actual valid-box-addition path count, not a definition by formula. -/
theorem two_row_branching (m k r t : ℕ) (hr : 2*r ≤ m) (ht : 2*t ≤ m+k)
    (hcontainLower : r ≤ t) (hcontainUpper : m-r ≤ m+k-t) :
    (branchingPaths m k r t : ℝ) = branchingExpression m k r t := by sorry

end QAlgorithms.Papers.Independent.Extend50.P17

end
Source
Multiport based teleportation -- transmission of a large amount of quantum information, arXiv:2008.00856v3, PDF p. 14, Appendix C / Eq.(67): two-row branching multiplicity
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For all natural numbers m,k,r,tm,k,r,tm,k,r,t satisfying 2r≤m2r\le m2r≤m, 2t≤m+k2t\le m+k2t≤m+k, r≤tr\le tr≤t, and m−r≤m+k−tm-r\le m+k-tm−r≤m+k−t, the following counting identity holds. For a Boolean string w:{0,…,k−1}→{false,true}w:\{0,\ldots,k-1\}\to\{\mathrm{false},\mathrm{true}\}w:{0,…,k−1}→{false,true}, let Lq(w)L_q(w)Lq​(w) be the number of indices i<ki<ki<k with i<qi<qi<q and w(i)=truew(i)=\mathrm{true}w(i)=true. Let PPP be the number of such strings satisfying r+Lk(w)=tr+L_k(w)=tr+Lk​(w)=t and 2(r+Lq(w))≤m+q2(r+L_q(w))\le m+q2(r+Lq​(w))≤m+q for every integer qqq with 0≤q≤k0\le q\le k0≤q≤k. For an integer zzz, define Bk(z)=(kz)B_k(z)=\binom{k}{z}Bk​(z)=(zk​) when 0≤z≤k0\le z\le k0≤z≤k, and Bk(z)=0B_k(z)=0Bk​(z)=0 otherwise. Then

(P:R)=Bk(t−r)−Bk(m+k−r−t+1),(P:\mathbb R)=B_k(t-r)-B_k(m+k-r-t+1),(P:R)=Bk​(t−r)−Bk​(m+k−r−t+1),

where the arguments of BkB_kBk​ use integer arithmetic. The subtractions in the hypotheses use natural-number subtraction, truncated at zero. Zero values of the parameters are allowed; when k=0k=0k=0, the count ranges over the single empty Boolean string.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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