Canonical three-label block intensities and scores
DefinitioncapacityThreeLabelFor arbitrary real numbers , define the canonical three-label and adjacent-pair intensities by
For arbitrary real weights and arbitrary real block values , the weighted score is
The canonical score at is , obtained by substituting the three displayed intensities. These five functions are defined for all real inputs: no positivity, normalization, probability law, or restriction on the weights is imposed by the definitions themselves. In particular, the triple intensity may be negative outside nonnegative-density applications.
The functions provide the pointwise block-score interface for three-label stability inequalities and their later measure-theoretic applications. They do not assert the existence of a coupling realizing any chosen block values.
import Mathlib
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.
-/
namespace FormalCapacity.Finite
/-- The intensity of the canonical three-label block. -/
def canonical123 (f1 f2 f3 : ℝ) : ℝ := min f1 (min f2 f3)
/-- The canonical `{1,2}`-block intensity. -/
def canonical12 (f1 f2 f3 : ℝ) : ℝ := max (min f1 f2 - f3) 0
/-- The canonical `{2,3}`-block intensity. -/
def canonical23 (f1 f2 f3 : ℝ) : ℝ := max (min f2 f3 - f1) 0
/-- The asymmetric block-additive score used by the capacity-flow witness. -/
def threeScore (q12 q23 x123 x12 x23 : ℝ) : ℝ :=
x123 + q12 * x12 + q23 * x23
/-- The canonical score at densities `f1`, `f2`, `f3`. -/
def canonicalScore (q12 q23 f1 f2 f3 : ℝ) : ℝ :=
threeScore q12 q23 (canonical123 f1 f2 f3)
(canonical12 f1 f2 f3) (canonical23 f1 f2 f3)
end FormalCapacity.Finite