The cost question and the certified result

In single-source unsplittable flow, a terminal’s entire demand must be sent along one path from a common source. Dinitz, Garg, and Goemans established a rounding theorem with additive congestion bounded by the largest demand [2]. The cost-enhanced conjecture attributed to Goemans additionally asks that the rounded flow cost no more than the given fractional flow. We use the explicit formulation in Traub, Vargas Koch, and Zenklusen, Conjecture 1.3 [11]. The 1999 paper is background for the congestion theorem; it is not used here as a source for the wording of the cost conjecture.

For the positive-demand subcase sufficient here, take a finite directed graph G=(V,A)G=(V,A), source ss, distinct terminals tkt_k different from ss, positive demands dkd_k, a feasible nonnegative fractional flow xx, and nonnegative per-unit arc costs cac_a, put D=max⁡kdkD=\max_k d_k. The existential cost-preserving assertion is that paths PkP_k from ss to tkt_k can be selected so that, for every arc,

ya≔∑k:a∈Pkdk≤xa+D,∑a∈Acaya≤∑a∈Acaxa.(1)y_a \coloneqq\sum_{k:a\in P_k} d_k \le x_a+D,\qquad\sum_{a\in A} c_a y_a \le\sum_{a\in A} c_a x_a. \tag*{(1)}

Conjecture 1.3 also asserts polynomial-time computation. Refuting its existential part suffices to refute that stronger claim, without formalizing a computational model. The cited formulation permits zero demands; our witness satisfies the stricter positivity condition of the Lean interface. A strict variant replaces the first inequality by ya<xa+Dy_a<x_a+D. We call the two bounds weak and strict only to distinguish ≤\le from <<; the cited cost conjecture uses ≤\le.

Rybin announced the counterexample on July 22, 2026, and made the discovery session public [9, 8]. The same finite certificate is formalized in Isabelle/HOL in the Archive of Formal Proofs (AFP) by Ramos, Hulak, and de Queiroz [6]. The Lean repository discussed here is a separate reimplementation [7], not a translation imported from Isabelle. Other Lean

Copyright 2026 the authors. Licensed under Creative Commons Attribution 4.0 International (CC BY 4.0). verifications by Jason Hickey and by DiscreteAlias are also publicly available [4, 3]. We make no priority claim relative to these developments and no claim to discovery.

All references to the present Lean source mean revision cc7284cf415fc2a773f00d400319ef39663c277a. The seven selected declarations are registered in Palomar as PALOMAR-2026-08-29-000003, version 1 [5]. The mathematical core is the following finite statement.

Theorem 1.1. There is a seven-vertex, nine-arc single-source instance with three demands and a feasible fractional flow xx of cost 58, with D=15D=15, such that every unsplittable routing satisfying ya≤xa+15y_a \le x_a+15 on every arc has cost at least 60. Consequently neither the weak cost-preserving assertion nor its strict variant holds universally.

The selected formal theorem proves this over Q\mathbb{Q}. Its graph-path classification ensures that the finite route model covers every source-to-terminal path in the actual graph. The corresponding real-valued counterexample follows from the same integer data and finite inequalities. That interpretation is explained below; a general rational-to-real transfer theorem is not part of this snapshot.

The finite path flow interface

The generic structure PathFlowInstance has commodity, route, and arc carrier types K,R,AK,R,A. It records an admissibility predicate Adm⁡(k,r)\operatorname{Adm}(k,r), demands dk∈Qd_k \in\mathbb{Q}, capacities ua∈Qu_a \in\mathbb{Q}, costs ca∈Qc_a \in\mathbb{Q}, and an incidence predicate U(k,r,a)U(k,r,a). The generic interface is an abstract incidence model: graph endpoints and path validity are established separately for the concrete witness. With finite KK and RR, fractional route amounts fkrf_{kr} induce

xa(f)=∑k∈K∑r∈R{fkrU(k,r,a),0otherwise,C(f)=∑a∈Acaxa(f).(2)x_a(f)=\sum_{k\in K}\sum_{r\in R} \begin{cases} f_{kr} & U(k,r,a),\\ 0 & \text{otherwise}, \end{cases} \qquad C(f)=\sum_{a\in A}c_a x_a(f). \tag*{(2)}

The latter sum requires finite AA. The maximum demand additionally requires nonempty KK and is the maximum of the finite demand image.

Definition 2.1. An instance is well formed if every demand is positive, every commodity has an admissible route, and every capacity and cost is nonnegative. A fractional routing ff is feasible if the instance is well formed, fkr≥0f_{kr}\ge0, inadmissible routes have amount zero, ∑rfkr=dk\sum_r f_{kr}=d_k for every kk, and xa(f)≤uax_a(f)\le u_a for every aa.

An unsplittable routing is a function q:K→Rq:K\to R with Adm⁡(k,q(k))\operatorname{Adm}(k,q(k)) for every kk. Its arc load and cost are

ya(q)=∑k∈K{dkU(k,q(k),a),0otherwise,C(q)=∑a∈Acaya(q).(3)y_a(q)=\sum_{k\in K} \begin{cases} d_k & U(k,q(k),a),\\ 0 & \text{otherwise}, \end{cases} \qquad C(q)=\sum_{a\in A}c_a y_a(q). \tag*{(3)}

The definitions weakDggRounding and strictDggRounding combine admissibility, the corresponding congestion inequality relative to x(f)x(f), and C(q)≤C(f)C(q)\le C(f). Their existential versions quantify over qq. The reference load is the specified fractional flow, not an arbitrary capacity upper bound. In this witness xa(f)=uax_a(f)=u_a on every arc, so the two numerical formulations coincide.

The finite universal negation in the registered theorem uses the specific carrier types with three commodities, two route choices, and nine arcs. It is already enough to contradict an assertion quantified over all graph instances, because the witness is realized by a genuine graph and its routes are exhaustive. The code does not establish a generic equivalence between arbitrary incidence structures and graphs.

The graph and the fractional witness

Let

V={s,u,v,w,t1,t2,t3},(d1,d2,d3)=(15,10,15).V=\{s,u,v,w,t_1,t_2,t_3\},\qquad(d_1,d_2,d_3)=(15,10,15).

The directed arcs and all numerical data are given in Table 1. Figure 1 draws the same endpoint relation. The terminal vertices have no outgoing arcs. The ordering s,u,v,w,t1,t2,t3s,u,v,w,t_1,t_2,t_3 places every arc forward, so the graph is acyclic. All endpoints are distinct on each arc, and no ordered endpoint pair is repeated. These observations are immediate properties of the data; separate generic graph simplicity or acyclicity theorems are not selected in this formalization.

Arc aaCapacity uau_aFractional load xax_aUnit cost cac_a
s→t1s \to t_110102
s→t2s \to t_2663
s→us \to u24240
u→vu \to v14140
u→t3u \to t_310102
v→t1v \to t_1550
v→wv \to w990
w→t2w \to t_2440
w→t3w \to t_3550

Table 1. The complete arc data. The displayed fractional load equals capacity.

Directed graph with seven vertices and nine arcs

Figure 1. The seven vertices and nine arcs. Numerical labels are in Table 1; the drawing asserts only the endpoint relation.

For each terminal there is one paid route EkE_k and one free route ZkZ_k:

E1=(s,t1),Z1=(s,u,v,t1),E2=(s,t2),Z2=(s,u,v,w,t2),E3=(s,u,t3),Z3=(s,u,v,w,t3).\begin{aligned} E_1 &= (s,t_1), & Z_1 &= (s,u,v,t_1), \\ E_2 &= (s,t_2), & Z_2 &= (s,u,v,w,t_2), \\ E_3 &= (s,u,t_3), & Z_3 &= (s,u,v,w,t_3). \end{aligned}

Here vertex lists abbreviate the consecutive directed arcs. The names paid and free refer to total route cost, not to disjointness: E3E_3 and Z3Z_3 both use s→us \to u.

Lemma 3.1. Every directed source-to-tkt_k path is exactly EkE_k or ZkZ_k.

Proof. From ww a nonempty path goes directly to t2t_2 or t3t_3 and then stops. From vv it goes to t1t_1 or to ww; from uu it goes to t3t_3 or to vv; from ss it goes to t1t_1, t2t_2, or uu. Following these alternatives gives precisely the six displayed terminal paths. There are no additional continuations from any terminal. □\square

The formal predicate edgePath is recursive on a list of arcs. It checks each tail against the current vertex, advances to the head, and accepts the empty list exactly when the current and final vertices agree. It does not assume vertex simplicity. The proof classifies all such lists from each terminal, then from w,v,u,sw,v,u,s, and obtains allSourceTerminalPaths. Thus no longer walk, omitted splice, or additional source-to-terminal route escapes the two-choice model.

The fractional route amounts are

kkfk,Ekf_{k,E_k}fk,Zkf_{k,Z_k}dkd_k
110515
26410
310515

Table 3.

They are all nonnegative and meet the three demands. Summing their incidences gives Table 1, proving feasibility and saturation. For example the backbone loads are 5+4+10+5=245 + 4 + 10 + 5 = 24 on s→us \to u, 5+4+5=145 + 4 + 5 = 14 on u→vu \to v, and 4+5=94 + 5 = 9 on v→wv \to w. As an arc-flow check, the source outflow is 10+6+24=4010 + 6 + 24 = 40; conservation at u,v,wu,v,w is respectively 24=14+1024 = 14 + 10, 14=5+914 = 5 + 9, and 9=4+59 = 4 + 5. The terminal inflows are 15, 10, 15. Only three arcs have positive cost, so

C(f)=2⋅10+3⋅6+2⋅10=58,D=max⁡{15,10,15}=15.(4)C(f) = 2 \cdot10 + 3 \cdot6 + 2 \cdot10 = 58,\qquad D = \max\{15,10,15\} = 15. \tag*{(4)}

The corresponding Lean facts are fractionalLoadEqCapacity, splitFlowFeasible, fractionalCostValue, and counterexampleMaximumDemand.

The obstruction to cost preserving rounding

Let zkz_k be 1 if qq selects ZkZ_k, and 0 if it selects EkE_k. Every paid route contributes 30: its cost is respectively 15⋅215 \cdot2, 10⋅310 \cdot3, or 15⋅215 \cdot2. Every free route contributes zero. Hence

C(q)=30(3−z1−z2−z3).(5)C(q) = 30(3-z_1-z_2-z_3). \tag*{(5)}

The crucial shared-arc loads are

ysu=15z1+10z2+15,yuv=15z1+10z2+15z3,yvw=10z2+15z3.(6)y_{su} = 15z_1 + 10z_2 + 15,\qquad y_{uv} = 15z_1 + 10z_2 + 15z_3,\qquad y_{vw} = 10z_2 + 15z_3. \tag*{(6)}

The constant 15 in ysuy_{su} comes from terminal t3t_3 on either route.

Lemma 4.1. If ya(q)≤xa+15y_a(q) \le x_a + 15 on every arc, then at most one free route is selected, and at least two paid routes are selected.

Proof. If Z1,Z2Z_1,Z_2 are selected, then ysu=40>24+15=39y_{su} = 40 > 24 + 15 = 39. If Z1,Z3Z_1,Z_3 are selected, then yuv≥30>14+15=29y_{uv} \ge30 > 14 + 15 = 29. If Z2,Z3Z_2,Z_3 are selected, then yvw=25>9+15=24y_{vw} = 25 > 9 + 15 = 24. Any selection of at least two free routes contains one of these pairs, so it violates a congestion inequality. □\square

Proof of Theorem 1.1. The preceding fractional witness is feasible and has cost 58. By Lemma 3.1, every unsplittable graph routing is represented by the three binary choices. Lemma 4.1 and (5) give C(q)≥60>58C(q) \ge60 > 58 for any weakly bounded routing. Thus no routing can satisfy both inequalities in (1). A strict congestion bound implies the weak bound, so the strict cost-preserving assertion fails as well. □\square

Table 2 is an exhaustive numerical cross-check. Its excess column means max⁡a(ya−xa)\max_a(y_a-x_a), so weak congestion feasibility is exactly excess at most 15. All four feasible assignments actually have excess strictly below 15. This also shows that the obstruction is the cost requirement, rather than a lack of any bounded routing.

t1t_{1}t2t_{2}t3t_{3}CostMaximum excessBound ≤15\le15
E1E_{1}E2E_{2}E3E_{3}905Yes
E1E_{1}E2E_{2}Z3Z_{3}6010Yes
E1E_{1}Z2Z_{2}E3E_{3}606Yes
E1E_{1}Z2Z_{2}Z3Z_{3}3016No
Z1Z_{1}E2E_{2}E3E_{3}6010Yes
Z1Z_{1}E2E_{2}Z3Z_{3}3016No
Z1Z_{1}Z2Z_{2}E3E_{3}3016No
Z1Z_{1}Z2Z_{2}Z3Z_{3}026No

Table 2. All eight routing assignments, computed from the arc incidences.

For example (E1,E2,Z3)(E_1,E_2,Z_3) has loads, in the arc order of Table 1,

(15,10,15,15,0,0,15,0,15).(15,10,15,15,0,0,15,0,15).

Every load is strictly below xa+15x_a+15, and its cost is 60. Thus 60 is the exact minimum under either congestion reading. This attainment check and the full table are elementary consequences of the displayed data; the pinned selected Lean result asserts the lower bound, not a separately packaged optimum-attainment theorem. The all-free routing has cost zero and maximum excess 26, illustrating that cost alone is also satisfiable. The example makes no claim against rounding guarantees allowing larger additive error, such as 2D2D.

The Lean proof and its verification boundary

The development uses Lean 4 [1] and Mathlib [10]. The graph, route lists, rational amounts, loads, and predicates are in Definitions.lean. The substantive proofs are in Proof.lean. Finite carrier instances explicitly list the three commodities, two route choices, and nine arcs. This permits finite sums to simplify to exact rational expressions.

Path completeness is proved structurally, not stipulated by making all binary choices admissible. In the concrete instance both choices are declared admissible, but routeEdgesValid proves their graph validity and allSourceTerminalPaths proves completeness for arbitrary arc lists. This separation is essential: an incidence-table counterexample would otherwise leave open whether the real graph admits an unlisted cheap routing.

The arithmetic proof first identifies the finite universes. It uses simp and norm_num for well-formedness, demand sums, capacity saturation, maximum demand, and fractional cost. The three backbone-load formulas and unsplittableCostEqPaidCount are proved by cases on the three route choices. In boundedRoutingHasTwoPaid, the hypotheses for s→us \to u, u→vu \to v, v→wv \to w are extracted; each of the eight cases reduces to rational arithmetic, and linarith closes the impossible ones. Coercing the paid-count bound to Q\mathbb{Q} yields boundedUnsplittableCost. The remaining witness and universal negations instantiate the property at the concrete instance and combine 60≤C(q)≤5860 \le C(q) \le58.

The statement surface Challenge.lean repeats the definitions and states seven targets with deliberate sorry bodies. It is an interface for statement comparison, not the completed proof. Solution.lean imports DinitzGargGoemans.Proof, whose import chain goes through Definitions rather than Challenge. The inspected implementation files contain no sorry, admit, native_decide, or custom axiom declaration. A textual inspection by itself does not establish the transitive axiom footprint.

The pinned comparator configuration selects the seven theorems named in the registry and ten load, cost, feasibility, rounding, and witness definitions. It permits only propext, Quot.sound, and Classical.choice, and enables NanoDa checking. The registry records successful historical mechanical verification on August 28, 2026, under Lean v4.33.0; the Mathlib manifest resolves to db584cd6d46c92f209a44c0f1c829460d327499d. Its linked workflow is run 33131019615 [5]. These are historical verification records, not a new kernel or comparator run performed during manuscript preparation.

The boundary of the formal result is therefore explicit. It is a finite rational counterexample with exhaustive graph-path coverage and exact cost separation. Interpretation as an ordinary real-valued graph-flow counterexample uses the same integer incidence and arithmetic, and does not require choosing any irrational route amounts: the routing domain is still the same eight assignments. Source alignment, the conjecture’s historical attribution, and prose claims about other work are scholarly judgments outside the Lean kernel. The development does not formalize the general Dinitz–Garg–Goemans theorem, algorithmic complexity, parameterized counterexample families, or every published variant of the cost conjecture.

Provenance and reproducibility

This manuscript is a new exposition of the pinned Lean certificate. The counterexample is credited to Rybin and the GPT-5.6 Pro session he published; the prior AFP proof document remains a separate Isabelle artifact [8, 6]. No prior proof-document text or figure is reproduced here. The data tables and diagram were prepared from the inspected Lean definitions, with an independent exact-arithmetic enumeration used as a numerical cross-check. A matching enumeration is not a substitute for formal theorem verification.

The repository metadata records GPT-5 agent assistance for the historical Lean proof engineering. The present manuscript was generated primarily with OpenAI GPT-6.1 assistance for exposition, source comparison, bibliographic research, and typesetting. Arthur Freitas Ramos directed the submission and reports understanding some parts of the manuscript. No comprehensive personal line-by-line review by Arthur, or complete understanding by every listed author, is claimed. Model-assisted manuscript checks should not be read as independent human peer review.

The referenced Lean repository is licensed Apache 2.0, and the AFP entry has a BSD license. Those artifact licenses remain distinct from this manuscript’s CC BY 4.0 license. The source archive for this article contains only its LaTeX source and bibliography; it does not bundle the Lean project or the prior Isabelle document. The immutable source and registry references identify the formal artifact needed to inspect or independently reproduce the mathematical verification.

References

References

  1. [1]Leonardo de Moura and Sebastian Ullrich, The Lean 4 theorem prover and programming language, Automated Deduction – CADE 28, Lecture Notes in Computer Science, vol. 12699, Springer, 2021, https://doi.org/10.1007/978-3-030-79876-5_37, pp. 625–635.
  2. [2]Yefim Dinitz, Naveen Garg, and Michel X. Goemans, On the single-source unsplittable flow problem, Combinatorica 19 (1999), no. 1, 17–41, https://doi.org/10.1007/s004930050043.
  3. [3]DiscreteAlias, unsplittable-flow, Lean verification repository, 2026, Separate verification and catalogue of cost-conjecture formulations. Repository consulted October 1, 2026. https://github.com/DiscreteAlias/unsplittable-flow.
  4. [4]Jason Hickey, dinitz-verify, Lean verification repository, 2026, With Claude assistance; separate verification of the same finite witness. Repository consulted October 1, 2026. https://github.com/jyh/dinitz-verify.
  5. [5]Palomar Registry, PALOMAR-2026-08-29-000003, version 1, Immutable formalization registry record, 2026, Registered August 29, 2026. https://palomar-registry.org/entry?id=PALOMAR-2026-08-29-000003&version=1.
  6. [6]Arthur Freitas Ramos, David Barros Hulak, and Ruy Jose Guerra Barretto de Queiroz, A formal counterexample to the cost-preserving single-source unsplittable flow conjecture, Archive of Formal Proofs, 2026, Entry dated July 22, 2026. Isabelle/HOL formalization. https://isa-afp.org/entries/Dinitz_Garg_Goemans_Counterexample.html.
  7. [7]———, Lean formalization of the Dinitz–Garg–Goemans cost counterexample, Version-pinned source repository, 2026, Revision cc7284cf415fc2a773f00d400319ef39663c277a. https://github.com/Arthur742Ramos/dinitz-garg-goemans-counterexample-lean/tree/cc7284cf415fc2a773f00d400319ef39663c277a.
  8. [8]Dmitry Rybin, Counterexample to Dinitz conjecture, Public shared ChatGPT session, 2026, Source discovery transcript, including the complete finite certificate. https://chatgpt.com/share/6a60b2eb-0b64-83ee-9c76-7931ca1de063.
  9. [9]———, Counterexample to the Dinitz–Garg–Goemans cost conjecture, Public announcement on X, July 22, 2026, https://x.com/DmitryRybin1/status/2079904005652893709.
  10. [10]The mathlib Community, The Lean mathematical library, Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, ACM, 2020, https://doi.org/10.1145/3372885.3373824, pp. 367–381.
  11. [11]Vera Traub, Laura Vargas Koch, and Rico Zenklusen, Single-source unsplittable flows in planar and bounded-genus graphs, Mathematical Programming, online first, 2026, Published July 22, 2026. Definition 1.1 and Conjecture 1.3. https://doi.org/10.1007/s10107-026-02365-x.

Paper details

Contents