Three-label one-sided stability for block scores
ProvedFormalCapacity.Finite.threeLabel_stabilitybrownian-capacity-flowcapacity-inequalitiesfinite-partitionsstability
Let , the four block intensities , the deficits , and the weights be real numbers. Assume all four block intensities are nonnegative and satisfy the marginal capacity inequalities
Assume also
Define , , , and . Then both bounds hold:
The inequality controls downward score loss using only the two adjacent deficits and upward score gain using only the outer-pair deficit. It is a pointwise real-algebraic statement: no measure, normalization, coupling-existence hypothesis, or strict ordering of the densities is required. Zero intensities, tied densities, and boundary weights are included.
Preamble
import Mathlib import Definitions.Def_capacityThreeLabel set_option autoImplicit false /-! # The three-label scalar stability inequality This file formalizes the finite, pointwise heart of the temporal capacity-flow argument. It contains no measure theory and no stochastic assumptions. The variables `beta123`, `beta12`, `beta23`, and `beta13` are nonnegative block intensities at one density point. The three `cap` assumptions say that the blocks using a label cannot exceed that label's available density. The `dij` variables are the pairwise maximality deficits. -/ open FormalCapacity.Finite
Formal statement
theorem FormalCapacity.Finite.threeLabel_stability
{f1 f2 f3 beta123 beta12 beta23 beta13 d12 d23 d13 q12 q23 : ℝ}
(_hbeta123 : 0 ≤ beta123)
(hbeta12 : 0 ≤ beta12)
(hbeta23 : 0 ≤ beta23)
(hbeta13 : 0 ≤ beta13)
(hcap1 : beta123 + beta12 + beta13 ≤ f1)
(hcap2 : beta123 + beta12 + beta23 ≤ f2)
(hcap3 : beta123 + beta13 + beta23 ≤ f3)
(hd12 : d12 = min f1 f2 - beta123 - beta12)
(hd23 : d23 = min f2 f3 - beta123 - beta23)
(hd13 : d13 = min f1 f3 - beta123 - beta13)
(_hq12_nonneg : 0 ≤ q12)
(hq12_le_one : q12 ≤ 1)
(_hq23_nonneg : 0 ≤ q23)
(hq23_le_one : q23 ≤ 1)
(hq_sum : 1 ≤ q12 + q23)
(hmiddle : min f1 f3 ≤ f2) :
canonicalScore q12 q23 f1 f2 f3 - d12 - d23 ≤
threeScore q12 q23 beta123 beta12 beta23 ∧
threeScore q12 q23 beta123 beta12 beta23 ≤
canonicalScore q12 q23 f1 f2 f3 + d13 := by
sorry
Source
Interval-Möbius capacity and temporal block flow, unpublished project note (2026), Lemma 3.1, equation (3.3), with block capacities and deficits in equations (2.2)–(2.4); CAPACITY_FLOW_THEOREM.md SHA-256 700d20415a4a673e5b27b1e6d508a89204afb85dfe54daddf8d4d84b1492d15f. Exact formal source: formal_capacity/FormalCapacity/Finite/ThreeLabel.lean, declaration FormalCapacity.Finite.threeLabel_stability, lines 66–215 (including its source docstring). Source-file SHA-256 6fdb4ddc257384df9f6df0a8f7c6083a32828efd6c2c0d06857e83cb1b204bb0. Source ranges are compiler-derived. Local source archive; no public repository URL, commit, or externally established authorship is asserted. Upload checked with Lean 4.33.1 and Mathlib 0df444a360eaa60ab8c11dca51a86af692955474.