Canonical density-flow functionals and component integrability
DefinitioncapacityTemporalFlowLet and be arbitrary measure spaces, each equipped with seven real-valued three-label density functions. For , their canonical components are
Let be any function and let be any weights. Set and , and write
The canonical score-gap functional is
Define the component integrals by
The expanded functional is separately defined as
For one density system and one pair of weights, the component-integrability predicate requires the three functions to be real-integrable. This predicate supplies the hypotheses used later to identify with .
The bundle defines the two functionals and the integrability predicate; it does not itself assert their equality, an inequality between them, or a temporal coarsening law. Neither the measures' finiteness nor the measurability of is assumed by these definitions. The letters label two systems, not actual times in a specified process.
Formalization Note The functionals use Lean's total real-valued integral. Integrability is not built into the functions' inputs; it is imposed explicitly in the subsequent theorems.
import Mathlib
import Mathlib.MeasureTheory.Integral.Bochner.Basic
import Mathlib.MeasureTheory.Measure.FiniteMeasure
import Definitions.Def_capacityThreeLabel
import Definitions.Def_capacityMeasureThreeLabel
set_option autoImplicit false
/-!
# The temporal capacity-flow inequality
This file proves the abstract form of equation (4.2). The first theorem uses
finite block measures and an arbitrary measurable restriction map. The second
specializes it to the density hypotheses discharged by the integrated
three-label stability theorem. The final corollary expands the canonical
score into the triple and two weighted pair terms printed in (4.2).
-/
open MeasureTheory
namespace FormalCapacity.Measure
noncomputable section
variable {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
/-- Difference of the early pulled-back and late integrated canonical scores. -/
def densityCanonicalFlowGap
(early : ThreeLabelDensities α) (late : ThreeLabelDensities β)
(μEarly : Measure α) (μLate : Measure β) (R : α → β)
(q12 q23 : β → ℝ) : ℝ :=
(∫ x, early.canonicalScore (q12 ∘ R) (q23 ∘ R) x ∂μEarly) -
(∫ y, late.canonicalScore q12 q23 y ∂μLate)
/-- Integrability of the three separate canonical score components. -/
structure CanonicalComponentsIntegrable
(d : ThreeLabelDensities α) (q12 q23 : α → ℝ) (μ : Measure α) : Prop where
triple : Integrable d.canonical123 μ
pair12 : Integrable (fun x ↦ q12 x * d.canonical12 x) μ
pair23 : Integrable (fun x ↦ q23 x * d.canonical23 x) μ
/-- The displayed, term-by-term version of the left side of (4.2). -/
def densityCanonicalFlowGapExpanded
(early : ThreeLabelDensities α) (late : ThreeLabelDensities β)
(μEarly : Measure α) (μLate : Measure β) (R : α → β)
(q12 q23 : β → ℝ) : ℝ :=
((∫ x, early.canonical123 x ∂μEarly) - (∫ y, late.canonical123 y ∂μLate)) +
((∫ x, q12 (R x) * early.canonical12 x ∂μEarly) -
(∫ y, q12 y * late.canonical12 y ∂μLate)) +
((∫ x, q23 (R x) * early.canonical23 x ∂μEarly) -
(∫ y, q23 y * late.canonical23 y ∂μLate))
end
end FormalCapacity.Measure