math / data /lean /OAI /MathematicalPhysics /Boltzmann /Compactness /FiniteParameterChain.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
4.13 kB
import OAI.MathematicalPhysics.Boltzmann.Branching.FiveGainPullback
namespace OAI
/-! # A finite parameterized gain chain as one product integral
This is the Fubini assembly used after replacing each physical collision by its
thermal and redundant-plane parameters. The transition maps and densities are
explicit functions, and the conclusion is an exact integral identity.
-/
noncomputable section
open MeasureTheory
open scoped ENNReal
namespace BoltzmannNonuniqueness.FiveGainMap
def parameterChain (next : β„• β†’ State β†’ StageControls β†’ State)
(density : β„• β†’ State β†’ StageControls β†’ ℝβ‰₯0∞) (g : State β†’ ℝβ‰₯0∞)
(i : β„•) : β„• β†’ State β†’ ℝβ‰₯0∞
| 0, z => g z
| n+1, z => ∫⁻ p : StageControls, density i z p*
parameterChain next density g (i+1) n (next i z p)
def chainIntegrand (next : β„• β†’ State β†’ StageControls β†’ State)
(density : β„• β†’ State β†’ StageControls β†’ ℝβ‰₯0∞) (g : State β†’ ℝβ‰₯0∞)
(i : β„•) : (n : β„•) β†’ State β†’ (Fin n β†’ StageControls) β†’ ℝβ‰₯0∞
| 0, z, _ => g z
| n+1, z, q => density i z (q 0)*
chainIntegrand next density g (i+1) n (next i z (q 0)) (Fin.tail q)
theorem integrateControls_const_mul {c : ℝβ‰₯0∞} (hc : c β‰  ∞) (n : β„•)
(F : (Fin n β†’ StageControls) β†’ ℝβ‰₯0∞) :
integrateControls n (fun q => c*F q) = c*integrateControls n F := by
induction n with
| zero => rfl
| succ n ih =>
simp only [integrateControls,ih]
exact lintegral_const_mul' _ _ hc
theorem parameterChain_eq_nested (next : β„• β†’ State β†’ StageControls β†’ State)
(density : β„• β†’ State β†’ StageControls β†’ ℝβ‰₯0∞)
(hfinite : βˆ€ i z p, density i z p β‰  ∞) (g : State β†’ ℝβ‰₯0∞) (i n : β„•) (z : State) :
parameterChain next density g i n z =
integrateControls n (chainIntegrand next density g i n z) := by
induction n generalizing i z with
| zero => rfl
| succ n ih =>
simp only [parameterChain,integrateControls]
apply lintegral_congr
intro p
rw [ih]
have he := integrateControls_const_mul (hfinite i z p) n
(chainIntegrand next density g (i+1) n (next i z p))
simpa only [chainIntegrand,Fin.cons_zero,Fin.tail_cons] using he.symm
theorem chainIntegrand_measurable (next : β„• β†’ State β†’ StageControls β†’ State)
(density : β„• β†’ State β†’ StageControls β†’ ℝβ‰₯0∞)
(hnext : βˆ€ i, Measurable (fun p : State Γ— StageControls => next i p.1 p.2))
(hdensity : βˆ€ i, Measurable (fun p : State Γ— StageControls => density i p.1 p.2))
{g : State β†’ ℝβ‰₯0∞} (hg : Measurable g) (i n : β„•) :
Measurable (fun p : State Γ— (Fin n β†’ StageControls) =>
chainIntegrand next density g i n p.1 p.2) := by
induction n generalizing i with
| zero => exact hg.comp measurable_fst
| succ n ih =>
have hfirst : Measurable (fun p : State Γ— (Fin (n+1) β†’ StageControls) => (p.1,p.2 0)) :=
measurable_fst.prodMk ((measurable_pi_apply 0).comp measurable_snd)
have htail : Measurable (fun p : State Γ— (Fin (n+1) β†’ StageControls) => Fin.tail p.2) := by
exact Measurable.of_eval (fun j => (measurable_pi_apply j.succ).comp measurable_snd)
exact ((hdensity i).comp hfirst).mul
((ih (i+1)).comp (((hnext i).comp hfirst).prodMk htail))
theorem parameterChain_eq_product (next : β„• β†’ State β†’ StageControls β†’ State)
(density : β„• β†’ State β†’ StageControls β†’ ℝβ‰₯0∞)
(hnext : βˆ€ i, Measurable (fun p : State Γ— StageControls => next i p.1 p.2))
(hdensity : βˆ€ i, Measurable (fun p : State Γ— StageControls => density i p.1 p.2))
(hfinite : βˆ€ i z p, density i z p β‰  ∞) {g : State β†’ ℝβ‰₯0∞} (hg : Measurable g)
(i n : β„•) (z : State) :
parameterChain next density g i n z =
∫⁻ q : Fin n β†’ StageControls, chainIntegrand next density g i n z q := by
rw [parameterChain_eq_nested next density hfinite g i n z]
exact integrateControls_eq n ((chainIntegrand_measurable next density hnext hdensity hg i n).comp
measurable_prodMk_left)
end BoltzmannNonuniqueness.FiveGainMap
end
end OAI