Samplinglib
Lean gate passed 2026-08-19T06:32:39.895922+00:00 · 7bcd37294df1
production module

AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge

11 named declarations scanned from AutoSamplingTheory/TechnicalLemmas/StochasticProcesses/FiniteDimensionalNormBridge.lean.

Imports
Imported by
Placeholder scan
0 declaration(s) flagged
Gate status
Compiled

Declarations

def AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.matrixSquareEnergy Compiled Not mapped

- Sum of squares of all entries of a finite real matrix, written as a curried function so it can be used without committing the stochastic layer to a particular `Matrix` wrapper.

def matrixSquareEnergy
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    (sigma : ι → κ → ℝ) : ℝ :=
  ∑ i, ∑ j, (sigma i j) ^ 2

/-- The finite matrix square energy is nonnegative. -/
theorem AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.matrixSquareEnergy_nonneg Compiled Not mapped

- The finite matrix square energy is nonnegative.

theorem matrixSquareEnergy_nonneg
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    (sigma : ι → κ → ℝ) :
    0 ≤ matrixSquareEnergy sigma := by
  unfold matrixSquareEnergy
  exact Finset.sum_nonneg fun i _ =>
    Finset.sum_nonneg fun j _ => sq_nonneg (sigma i j)

/-- Any individual matrix-entry square is bounded by the total finite matrix
square energy. This is the algebraic core of the Hilbert--Schmidt-to-entrywise
`L²` bridge. -/
theorem AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.entry_sq_le_matrixSquareEnergy Compiled Not mapped

- Any individual matrix-entry square is bounded by the total finite matrix square energy. This is the algebraic core of the Hilbert--Schmidt-to-entrywise `L²` bridge.

theorem entry_sq_le_matrixSquareEnergy
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    (sigma : ι → κ → ℝ) (i : ι) (j : κ) :
    (sigma i j) ^ 2 ≤ matrixSquareEnergy sigma := by
  unfold matrixSquareEnergy
  calc
    (sigma i j) ^ 2 ≤ ∑ j', (sigma i j') ^ 2 :=
      Finset.single_le_sum
        (fun j' _ => sq_nonneg (sigma i j')) (Finset.mem_univ j)
    _ ≤ ∑ i', ∑ j', (sigma i' j') ^ 2 :=
      Finset.single_le_sum
        (fun i' _ => Finset.sum_nonneg fun j' _ => sq_nonneg (sigma i' j'))
        (Finset.mem_univ i)

/-- Flatten a finite matrix into one Euclidean vector indexed by coordinate
pairs. No information is lost; this is only a norm/notation bridge. -/
def AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.matrixAsEuclidean Compiled Not mapped

- Flatten a finite matrix into one Euclidean vector indexed by coordinate pairs. No information is lost; this is only a norm/notation bridge.

noncomputable def matrixAsEuclidean
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    (sigma : ι → κ → ℝ) : EuclideanSpace ℝ (ι × κ) :=
  WithLp.toLp 2 (fun p : ι × κ => sigma p.1 p.2)

/-- The squared Euclidean norm of the flattened matrix is exactly the sum of
squares of its entries. In finite-dimensional Euclidean spaces this is the
Frobenius/Hilbert--Schmidt norm squared. -/
theorem AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.norm_sq_matrixAsEuclidean Compiled Not mapped

- The squared Euclidean norm of the flattened matrix is exactly the sum of squares of its entries. In finite-dimensional Euclidean spaces this is the Frobenius/Hilbert--Schmidt norm squared.

theorem norm_sq_matrixAsEuclidean
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    (sigma : ι → κ → ℝ) :
    ‖matrixAsEuclidean sigma‖ ^ 2 = matrixSquareEnergy sigma := by
  rw [EuclideanSpace.real_norm_sq_eq]
  change (∑ p : ι × κ, (sigma p.1 p.2) ^ 2) =
    ∑ i, ∑ j, (sigma i j) ^ 2
  rw [Fintype.sum_prod_type]

/-- Pathwise local finiteness of the finite matrix square energy on `[0,T]`.
This is the matrix analogue of Chewi's scalar condition (1.1.10), before the
separate progressive-measurability contract is attached. -/
def AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.MatrixLocallySquareIntegrableOn Compiled Not mapped

- Pathwise local finiteness of the finite matrix square energy on `[0,T]`. This is the matrix analogue of Chewi's scalar condition (1.1.10), before the separate progressive-measurability contract is attached.

def MatrixLocallySquareIntegrableOn
    {Omega : Type*} [MeasurableSpace Omega]
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    (sigma : ℝ≥0 → Omega → ι → κ → ℝ)
    (mu : Measure Omega) (T : ℝ≥0) : Prop :=
  ∀ᵐ omega ∂mu,
    (∫⁻ t, ENNReal.ofReal (matrixSquareEnergy (sigma t omega))
      ∂(TimeMeasure.upTo T)) < ∞

/-- Finite matrix energy implies Chewi's scalar local-square-integrability
condition for every matrix entry. No expectation over sample paths is added:
the implication remains pathwise almost surely, exactly as in display
(1.1.10). -/
theorem AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.MatrixLocallySquareIntegrableOn.entry Compiled Not mapped

- Finite matrix energy implies Chewi's scalar local-square-integrability condition for every matrix entry. No expectation over sample paths is added: the implication remains pathwise almost surely, exactly as in display (1.1.10).

theorem MatrixLocallySquareIntegrableOn.entry
    {Omega : Type*} [MeasurableSpace Omega]
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    {sigma : ℝ≥0 → Omega → ι → κ → ℝ}
    {mu : Measure Omega} {T : ℝ≥0}
    (hSigma : MatrixLocallySquareIntegrableOn sigma mu T)
    (i : ι) (j : κ) :
    IsLocallySquareIntegrableOn (fun t omega => sigma t omega i j) mu T := by
  filter_upwards [hSigma] with omega hOmega
  refine lt_of_le_of_lt (lintegral_mono fun t => ?_) hOmega
  exact ENNReal.ofReal_le_ofReal
    (entry_sq_le_matrixSquareEnergy (sigma t omega) i j)

/-- Chewi's finite-dimensional diffusion condition written literally with the
squared Euclidean/Frobenius norm of the matrix coefficient. This source-facing
predicate keeps the public statement free of the implementation-oriented
finite sum `matrixSquareEnergy`. -/
def AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.MatrixLocallySquareIntegrableNormOn Compiled Not mapped

- Chewi's finite-dimensional diffusion condition written literally with the squared Euclidean/Frobenius norm of the matrix coefficient. This source-facing predicate keeps the public statement free of the implementation-oriented finite sum `matrixSquareEnergy`.

def MatrixLocallySquareIntegrableNormOn
    {Omega : Type*} [MeasurableSpace Omega]
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    (sigma : ℝ≥0 → Omega → ι → κ → ℝ)
    (mu : Measure Omega) (T : ℝ≥0) : Prop :=
  ∀ᵐ omega ∂mu,
    (∫⁻ t, ENNReal.ofReal (‖matrixAsEuclidean (sigma t omega)‖ ^ 2)
      ∂(TimeMeasure.upTo T)) < ∞

/-- The literal Frobenius-norm formulation implies the finite-sum energy
formulation used by the scalar integration layer. -/
theorem AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.MatrixLocallySquareIntegrableNormOn.toEnergy Compiled Not mapped

- The literal Frobenius-norm formulation implies the finite-sum energy formulation used by the scalar integration layer.

theorem MatrixLocallySquareIntegrableNormOn.toEnergy
    {Omega : Type*} [MeasurableSpace Omega]
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    {sigma : ℝ≥0 → Omega → ι → κ → ℝ}
    {mu : Measure Omega} {T : ℝ≥0}
    (hSigma : MatrixLocallySquareIntegrableNormOn sigma mu T) :
    MatrixLocallySquareIntegrableOn sigma mu T := by
  filter_upwards [hSigma] with omega hOmega
  simpa only [norm_sq_matrixAsEuclidean] using hOmega

/-- A source-level Frobenius local-`L²` hypothesis yields local square
integrability for every scalar matrix entry. -/
theorem AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.MatrixLocallySquareIntegrableNormOn.entry Compiled Not mapped

- A source-level Frobenius local-`L²` hypothesis yields local square integrability for every scalar matrix entry.

theorem MatrixLocallySquareIntegrableNormOn.entry
    {Omega : Type*} [MeasurableSpace Omega]
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    {sigma : ℝ≥0 → Omega → ι → κ → ℝ}
    {mu : Measure Omega} {T : ℝ≥0}
    (hSigma : MatrixLocallySquareIntegrableNormOn sigma mu T)
    (i : ι) (j : κ) :
    IsLocallySquareIntegrableOn (fun t omega => sigma t omega i j) mu T :=
  hSigma.toEnergy.entry i j

/-- Package one diffusion entry into the global scalar progressive-`L²` ABI
used by the Itô integral, from finite-dimensional source assumptions.
Progressive measurability is supplied componentwise here; the coordinate
measurability bridge is kept logically separate from this norm argument. -/
def AutoSamplingTheory.TechnicalLemmas.StochasticProcesses.FiniteDimensionalNormBridge.entryGlobalLocalProgressiveL2 Compiled Not mapped

- Package one diffusion entry into the global scalar progressive-`L²` ABI used by the Itô integral, from finite-dimensional source assumptions. Progressive measurability is supplied componentwise here; the coordinate measurability bridge is kept logically separate from this norm argument.

noncomputable def entryGlobalLocalProgressiveL2
    {Omega : Type*} [m : MeasurableSpace Omega]
    {ι κ : Type*} [Fintype ι] [Fintype κ]
    {filtration : Filtration ℝ≥0 m}
    {sigma : ℝ≥0 → Omega → ι → κ → ℝ}
    {mu : Measure Omega}
    (hProgressive : ∀ i j,
      IsStronglyProgressive filtration (fun t omega => sigma t omega i j))
    (hSigma : ∀ T, MatrixLocallySquareIntegrableNormOn sigma mu T)
    (i : ι) (j : κ) :
    GlobalLocalProgressiveL2Integrand filtration mu where
  process := fun t omega => sigma t omega i j
  progressive := hProgressive i j
  finiteEnergy := fun T => (hSigma T).entry i j

end FiniteDimensionalNormBridge
end StochasticProcesses
end TechnicalLemmas
end AutoSamplingTheory