Appendix A: divergence under the conditioning integral
ProvedFlowMatchingT1.divergence_integralLet , let be any Borel measure on , and let . At a position , assume is -integrable, nearby slices are almost-everywhere strongly measurable, and is almost-everywhere strongly measurable. Assume there exist a common neighborhood of and a -integrable real function such that, for almost every , the map is differentiable throughout and for every . Then the averaged field is differentiable at , the conditional divergence is -integrable, and
This isolates the third equality of Appendix A's proof as a local vector-calculus statement. The result allows arbitrary measures and includes the empty coordinate sum when .
import Definitions.Def_FlowMatchingT1 open MeasureTheory open FlowMatchingT1
theorem FlowMatchingT1.divergence_integral
{d : ℕ} (Q : Measure (Space d))
(F : Space d → Space d → Space d) (x : Space d)
(h : SpaceRegularAt Q F x) :
DifferentiableAt ℝ (fun y => ∫ z, F y z ∂Q) x ∧
Integrable (fun z => divergence (fun y => F y z) x) Q ∧
divergence (fun y => ∫ z, F y z ∂Q) x =
∫ z, divergence (fun y => F y z) x ∂Q := by sorryRead-back
What the Lean code literally says, in plain math · gpt-6-astra
For every natural number , including , let , with its usual finite-product real normed-space structure (the maximum norm), let be any measure on the Borel measurable space , let be any function, and let . For a function , write for its real Fréchet derivative, regarded as a continuous linear map, with the convention that this map is zero when is not differentiable at , and define , where has coordinate at and zero at all other coordinates. Assume that is Bochner integrable with respect to ; that there is a neighborhood of on which, for every , the function is -almost everywhere strongly measurable; that is -almost everywhere strongly measurable as a function taking values in the space of continuous real linear maps ; and that there exist a set containing an open neighborhood of and a real-valued -integrable function such that, for -almost every , simultaneously for every , , and, for -almost every , simultaneously for every , the function is real Fréchet differentiable at . The two almost-everywhere conditions may initially have different null exceptional sets, but neither exceptional set depends on . Here almost-everywhere strong measurability means agreement outside a -null set with a strongly measurable function, and Bochner integrability means almost-everywhere strong measurability together with a finite integral of the norm. Then the function defined by is real Fréchet differentiable at , the real-valued function is -integrable, and . The integral defining uses the total Bochner-integral convention, which assigns zero to a nonintegrable integrand; the assumptions do not separately require integrability of at every . There is no assumption that is a probability measure, finite, or sigma-finite, no joint measurability assumption on , and no global nonnegativity assumption on ; its displayed bound forces almost everywhere because . The case is included, in which the almost-everywhere conditions are vacuous and all the displayed integrals are zero. When , is the one-point zero vector space, the defining divergence sum is empty and equals zero, every -valued function is the zero vector, and the asserted equality is for every measure on this space. The neighborhood cannot be empty because it contains .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.