Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Global shortest-path greedy is within a factor of four

Open
QAlgorithms.Papers.Independent.Intakethird100.P45.greedyWithinFour

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Consider a finite square-grid network with distinct terminals a,ba,ba,b in the paper's one-slot heralded-loss model. Each physical edge independently supplies at most one perfect EPR pair with probability p∈[0,1]p\in[0,1]p∈[0,1]. After seeing all external-success flags, a schedule selects disjoint memory pairs for simultaneous BSMs, whose independent success probability is q∈[0,1]q\in[0,1]q∈[0,1]. The terminals retain their delivered halves. Let Rg(p,q)R_g(p,q)Rg​(p,q) be the expected delivered ebits per slot under repeated shortest-path selection and edge deletion, using a fixed shortest-path tie choice. Let Ropt(p,q)R_{\mathrm{opt}}(p,q)Ropt​(p,q) be the optimum expected rate over all such one-slot pairwise-BSM schedules that observe external flags but cannot see future BSM outcomes. Then

Ropt(p,q)4≤Rg(p,q)≤Ropt(p,q).\frac{R_{\mathrm{opt}}(p,q)}4\le R_g(p,q)\le R_{\mathrm{opt}}(p,q).4Ropt​(p,q)​≤Rg​(p,q)≤Ropt​(p,q).

The rates are constructed by averaging the conditional path-sum yields over independent external-success subgraphs; disconnected slots contribute zero. This is a restricted-protocol guarantee, rather than a statement about unrestricted quantum-network capacity.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P45
Formal statement
namespace QAlgorithms.Papers.Independent.Intakethird100.P45

open scoped BigOperators

noncomputable section

/-- PDF pp.5–7: actual shortest-path greedy achieves at least one quarter
of the actual global optimum, and no more than the optimum. Both rates and
all pairings are constructed above. Disconnected slots contribute zero.
Endpoints `p,q=0,1` are allowed; a direct edge has zero BSMs, even at `q=0`. -/
theorem greedyWithinFour (N : ℕ) (G : GridNetwork N) (a b : Fin N)
    (hab : a ≠ b) (p q : ℝ) (hp0 : 0 ≤ p) (hp1 : p ≤ 1)
    (hq0 : 0 ≤ q) (hq1 : q ≤ 1) :
    optimalGlobalRate G a b p q / 4 ≤ greedyRate G a b p q ∧
    greedyRate G a b p q ≤ optimalGlobalRate G a b p q := by sorry

end

end QAlgorithms.Papers.Independent.Intakethird100.P45
Source
Routing entanglement in the quantum internet, arXiv:1708.07142v2, PDF p. 5, §II.B.1: global shortest-path greedy routing is within factor four
Read-back

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

For every natural number NNN, every grid network GGG given by an injective placement xi∈Z2x_i\in\mathbb Z^2xi​∈Z2 of V={0,…,N−1}V=\{0,\ldots,N-1\}V={0,…,N−1}, every pair of distinct vertices a,b∈Va,b\in Va,b∈V, and every pair of real numbers p,qp,qp,q satisfying 0≤p≤10\le p\le10≤p≤1 and 0≤q≤10\le q\le10≤q≤1, the following two inequalities hold:

14∑H⊆EGp∣H∣(1−p)∣EG∣−∣H∣Mq(H) ≤ ∑H⊆EGp∣H∣(1−p)∣EG∣−∣H∣Yq(FH) ≤ ∑H⊆EGp∣H∣(1−p)∣EG∣−∣H∣Mq(H).\frac14\sum_{H\subseteq E_G} p^{|H|}(1-p)^{|E_G|-|H|}M_q(H) \ \le\ \sum_{H\subseteq E_G} p^{|H|}(1-p)^{|E_G|-|H|}Y_q(F_H) \ \le\ \sum_{H\subseteq E_G} p^{|H|}(1-p)^{|E_G|-|H|}M_q(H).41​H⊆EG​∑​p∣H∣(1−p)∣EG​∣−∣H∣Mq​(H) ≤ H⊆EG​∑​p∣H∣(1−p)∣EG​∣−∣H∣Yq​(FH​) ≤ H⊆EG​∑​p∣H∣(1−p)∣EG​∣−∣H∣Mq​(H).

Here EGE_GEG​ consists of pairs (i,j)(i,j)(i,j) with i<ji<ji<j whose positions have Manhattan distance 111. An encoded route rrr consists of a length 1≤m(r)≤N21\le m(r)\le N^21≤m(r)≤N2 and a vertex sequence (v0,…,vm(r))(v_0,\ldots,v_{m(r)})(v0​,…,vm(r)​); it is admissible in an edge set JJJ from aaa to bbb when its endpoints are a,ba,ba,b, its canonical pairs (min⁡(vi,vi+1),max⁡(vi,vi+1))(\min(v_i,v_{i+1}),\max(v_i,v_{i+1}))(min(vi​,vi+1​),max(vi​,vi+1​)) are distinct members of JJJ, and no intermediate vertex equals either endpoint. Other vertex repetitions are permitted. A feasible family is a finite set of such routes whose edge sets are disjoint for every two distinct members, Yq(F)=∑r∈Fqm(r)−1Y_q(F)=\sum_{r\in F}q^{m(r)-1}Yq​(F)=∑r∈F​qm(r)−1, and Mq(H)M_q(H)Mq​(H) is the maximum of 000 and all values Yq(F)Y_q(F)Yq​(F) for feasible families in HHH. The family FHF_HFH​ is obtained by starting with HHH and ∣H∣|H|∣H∣ available steps: if there are no steps or no admissible routes, return the empty set; otherwise select a minimum-length admissible route by a fixed classical choice, delete its edge set, recursively continue with one fewer step, and insert that route into the resulting finite set. The outer sums include all subsets of EGE_GEG​, including the empty subset; empty family sums are 000, and every zeroth power, including 000^000, equals 111. Thus the stated parameter ranges include p=0p=0p=0, p=1p=1p=1, q=0q=0q=0, and q=1q=1q=1. For N=0N=0N=0 or N=1N=1N=1, there are no distinct endpoint choices satisfying the hypotheses.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me