Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (A1), (A3), (A13), (A16): closed forms for a two-level tree

Proved
AllPhotonicRepeater.twoLevel_closed_forms

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1photon-lossquantum-communicationquantum-repeaters

For a two-level tree (l=1l=1l=1, branching b0,b1b_0,b_1b0​,b1​, as in Fig. 4 of the paper) and every loss probability ϵ0\epsilon_0ϵ0​,

R1=1−ϵ0 b1,PX=R0=1−(1−(1−ϵ0)b1+1)b0,R_1=1-\epsilon_0^{\,b_1},\qquad P_X=R_0=1-\big(1-(1-\epsilon_0)^{b_1+1}\big)^{b_0},R1​=1−ϵ0b1​​,PX​=R0​=1−(1−(1−ϵ0​)b1​+1)b0​, PZ=(1−ϵ0 b1+1)b0,QL=b0+b0b1.P_Z=\big(1-\epsilon_0^{\,b_1+1}\big)^{b_0},\qquad Q_L=b_0+b_0b_1 .PZ​=(1−ϵ0b1​+1​)b0​,QL​=b0​+b0​b1​.

These closed forms are what one gets from (A3) with R2=R3=0R_2=R_3=0R2​=R3​=0 and b2=0b_2=0b2​=0, and make the dependence of PZP_ZPZ​, PXP_XPX​ and QLQ_LQL​ on the branching explicit. They are the starting point for choosing a tree with small failure probability.

Differences from the source:

  • reading: (A3) printed for 1≤k≤l1\le k\le l1≤k≤l → RkR_kRk​ given by (A3) also at k=0k=0k=0; reason: (A16) reads PX=R0P_X=R_0PX​=R0​, and (A7), (A9), (A12) give Rk=1−(1−Sk)bkR_k=1-(1-S_k)^{b_k}Rk​=1−(1−Sk​)bk​ at every level, k=0k=0k=0 included
  • encoding: Rl+1:=0R_{l+1}:=0Rl+1​:=0 and bl+1:=0b_{l+1}:=0bl+1​:=0 → Rk=0R_k=0Rk​=0 and bkb_kbk​ read as 000 for every k>lk>lk>l; reason: Rl+2R_{l+2}Rl+2​ enters only RlR_lRl​, raised to the power bl+1=0b_{l+1}=0bl+1​=0, so its value never matters; same instances
  • generalization: ϵ0\epsilon_0ϵ0​ a loss probability with ϵ0<0.5\epsilon_0<0.5ϵ0​<0.5 → every real ϵ0\epsilon_0ϵ0​; reason: the identities are polynomial identities; they specialize to the paper's range
  • reading: general depth lll in (A1), (A3), (A13), (A16) → the case l=1l=1l=1 evaluated in closed form; reason: the paper states the general recursion; this item evaluates it at the depth of Fig. 4, which the scaling argument can use
Preamble
import Mathlib
import Definitions.Def_AllPhotonicRepeater_treeSize
import Definitions.Def_AllPhotonicRepeater_zSuccess
import Definitions.Def_AllPhotonicRepeater_xSuccess

set_option autoImplicit false
Formal statement
namespace AllPhotonicRepeater

/-- Azuma, Tamaki, Lo, *All photonic quantum repeaters*, arXiv:1309.7207v1, Eqs. (A1), (A3),
p. 7, and (A13), (A16), p. 9, for a two-level tree (`l = 1`, as in Fig. 4, p. 7): for every
loss probability `ε0` and branching `b 0, b 1`,

* `R_1 = 1 − ε0^{b_1}`,
* `P_X = R_0 = 1 − (1 − (1 − ε0)^{b_1 + 1})^{b_0}`,
* `P_Z = (1 − ε0^{b_1 + 1})^{b_0}`,
* `Q_L = b_0 + b_0 b_1`.

**Formalization Note** These follow from (A3) with `R_2 = R_3 = 0` and `b_2 = 0`. Natural-number
powers with `0 ^ 0 = 1`, which is also the paper's convention. An independent cross-check, not a
dependency: the platform's Open goal
`QAlgorithms.Papers.Independent.Intakenext100.P89.depth_two_measurements` (Pant et al.) has the
same right-hand sides with `p = 1 − ε0`, for an operational loss experiment. -/
theorem twoLevel_closed_forms (ε0 : ℝ) (b : ℕ → ℕ) :
    indirectZSuccess ε0 1 b 1 = 1 - ε0 ^ b 1 ∧
    xSuccess ε0 1 b = 1 - (1 - (1 - ε0) ^ (b 1 + 1)) ^ b 0 ∧
    zSuccess ε0 1 b = (1 - ε0 ^ (b 1 + 1)) ^ b 0 ∧
    treeSize 1 b = b 0 + b 0 * b 1 := by sorry

end AllPhotonicRepeater
Source
Azuma, Tamaki, Lo, All photonic quantum repeaters, arXiv:1309.7207v1, App. A1, Eqs. (A1), (A3), p. 7; App. A2, Eqs. (A13), (A16), p. 9; Fig. 4, p. 7
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 1, 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