Download data/lean/OAI/MathematicalPhysics/Boltzmann/Approximation/MildRenormalization.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 13.9 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/Boltzmann/Approximation/MildRenormalization.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/Boltzmann/Approximation/MildRenormalization.lean
-
curl -L -o MildRenormalization.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/Boltzmann/Approximation/MildRenormalization.lean
13.9 kB
| import OAI.MathematicalPhysics.Boltzmann.Approximation.CapMildLimit | |
| import OAI.MathematicalPhysics.Boltzmann.Approximation.MildCurveContinuity | |
| import OAI.MathematicalPhysics.Boltzmann.Compactness.EntropyIntegralBalance | |
| import OAI.MathematicalPhysics.Boltzmann.Compactness.RenormalizedIntegrability | |
| import OAI.MathematicalPhysics.Boltzmann.Jets.TorusTransport | |
| import Mathlib.Topology.Order.Lattice | |
| namespace OAI | |
| section | |
| /-! # A strongly continuous representative of the constructed local mild solution -/ | |
| noncomputable section | |
| open MeasureTheory Set | |
| open scoped Topology ENNReal | |
| namespace BoltzmannNonuniqueness | |
| namespace MildCollisionSolution | |
| def source (g : (β Γ Position) Γ Velocity β β) (p : (β Γ Position) Γ Velocity) : β := | |
| CollisionCompactness.gainDensity g p-CollisionCompactness.lossDensity g p | |
| def characteristicSource (g : (β Γ Position) Γ Velocity β β) : β Γ Phase β β := | |
| TorusFlight.along (TorusFlight.regroup (source g)) | |
| def evolution (T : β) (fβ : Density) (g : (β Γ Position) Γ Velocity β β) : Evolution := | |
| TorusFlight.eulerianProfile (volume.restrict (Icc 0 T)) fβ (characteristicSource g) | |
| variable {T : β} {fβ : Density} {g : (β Γ Position) Γ Velocity β β} | |
| theorem source_measurable (S : MildCollisionSolution T fβ g) : Measurable (source g) := | |
| (CollisionCompactness.gainDensity_measurable S.measurable).sub | |
| (CollisionCompactness.lossDensity_measurable S.measurable) | |
| theorem characteristicSource_measurable (S : MildCollisionSolution T fβ g) : | |
| Measurable (characteristicSource g) := | |
| (S.source_measurable.comp MeasurableEquiv.prodAssoc.symm.measurable).comp | |
| (TorusFlight.along_measurePreserving (volume.restrict (Icc 0 T))).measurable | |
| theorem characteristicSource_integrable (S : MildCollisionSolution T fβ g) : | |
| Integrable (characteristicSource g) ((volume.restrict (Icc 0 T)).prod (volume : Measure Phase)) := by | |
| have hterms := CollisionCompactness.gainLoss_integrable S.measurable S.nonnegative S.pair_integrable | |
| have hi := (measurePreserving_prodAssoc (volume.restrict (Icc 0 T)) | |
| (volume : Measure Position) (volume : Measure Velocity)).symm.integrable_comp_of_integrable | |
| (hterms.1.sub hterms.2) | |
| have hr : Integrable (TorusFlight.regroup (source g)) | |
| ((volume.restrict (Icc 0 T)).prod (volume : Measure Phase)) := by | |
| rw [Measure.volume_eq_prod] | |
| exact hi | |
| exact (TorusFlight.along_measurePreserving (volume.restrict (Icc 0 T))).integrable_comp_of_integrable hr | |
| theorem evolution_eq_ae (S : MildCollisionSolution T fβ g) : | |
| TorusFlight.regroup g =α΅[(volume.restrict (Icc 0 T)).prod (volume : Measure Phase)] | |
| (fun z => evolution T fβ g z.1 z.2) := by | |
| have h := (TorusFlight.back_measurePreserving (volume.restrict (Icc 0 T))).quasiMeasurePreserving.ae | |
| S.characteristic | |
| filter_upwards [h] with z hz | |
| change TorusFlight.regroup g (z.1,TorusFlight.flight z.1 (TorusFlight.flight (-z.1) z.2)) = _ at hz | |
| rw [TorusFlight.neg_flight] at hz | |
| exact hz | |
| theorem evolution_strong_continuity (S : MildCollisionSolution T fβ g) | |
| (hT : 0 β€ T) (hfβ : Integrable fβ) {t : β} (ht : t β Icc 0 T) : | |
| Filter.Tendsto (fun s => eLpNorm (fun p => evolution T fβ g s p-evolution T fβ g t p) 1 volume) | |
| (π[Icc 0 T] t) (π 0) := | |
| TorusFlight.eulerianProfile_L1_continuous hT hfβ S.characteristicSource_measurable | |
| S.characteristicSource_integrable ht | |
| theorem evolution_initial (hT : 0 β€ T) (p : Phase) : evolution T fβ g 0 p = fβ p := by | |
| change fβ (TorusFlight.flight (-0) p)+Published.timePrimitive (volume.restrict (Icc 0 T)) | |
| (characteristicSource g) (0,TorusFlight.flight (-0) p) = fβ p | |
| simp only [neg_zero,TorusFlight.flight_zero] | |
| rw [Published.timePrimitive_eq_interval β¨le_rfl,hTβ©,intervalIntegral.integral_same,add_zero] | |
| end MildCollisionSolution | |
| end BoltzmannNonuniqueness | |
| end | |
| end | |
| section | |
| /-! # Renormalization along almost every actual mild characteristic -/ | |
| noncomputable section | |
| open MeasureTheory Set | |
| namespace BoltzmannNonuniqueness | |
| theorem continuous_path_nonnegative_of_ae {T : β} {u : β β β} | |
| (hT : 0 < T) (hu : ContinuousOn u (Icc 0 T)) | |
| (hn : βα΅ t βvolume.restrict (Icc 0 T), 0 β€ u t) : | |
| β t β Icc 0 T, 0 β€ u t := by | |
| have he : u =α΅[volume.restrict (Icc 0 T)] (fun t => max (u t) 0) := by | |
| filter_upwards [hn] with t ht | |
| exact (max_eq_left ht).symm | |
| have heq := Measure.eqOn_Icc_of_ae_eq volume hT.ne he hu (hu.sup continuousOn_const) | |
| intro t ht | |
| rw [heq ht] | |
| exact le_max_right _ _ | |
| namespace MildCollisionSolution | |
| variable {T : β} {fβ : Density} {g : (β Γ Position) Γ Velocity β β} | |
| theorem nonnegative_integral_paths (S : MildCollisionSolution T fβ g) (hT : 0 < T) : | |
| βα΅ p : Phase, β t β Icc 0 T, 0 β€ entropyPath fβ (characteristicSource g) t p := by | |
| let ΞΌ : Measure β := volume.restrict (Icc 0 T) | |
| have hp : βα΅ z βΞΌ.prod (volume : Measure Phase), | |
| 0 β€ fβ z.2+Published.timePrimitive ΞΌ (characteristicSource g) z := by | |
| filter_upwards [S.characteristic] with z hz | |
| change TorusFlight.along (TorusFlight.regroup g) z = | |
| fβ z.2+Published.timePrimitive ΞΌ (characteristicSource g) z at hz | |
| rw [β hz] | |
| exact S.nonnegative _ | |
| have hp' := (Measure.measurePreserving_swap (ΞΌ := (volume : Measure Phase)) (Ξ½ := ΞΌ)).quasiMeasurePreserving.ae hp | |
| filter_upwards [Measure.ae_ae_of_ae_prod hp',S.characteristicSource_integrable.prod_left_ae] with p hpos hri | |
| have hi : IntervalIntegrable (fun t => characteristicSource g (t,p)) volume 0 T := | |
| (intervalIntegrable_iff_integrableOn_Icc_of_le hT.le).mpr hri | |
| have hc : ContinuousOn (fun t => entropyPath fβ (characteristicSource g) t p) (Icc 0 T) := by | |
| have h := intervalIntegral.continuousOn_primitive_interval' hi | |
| (left_mem_uIcc : (0:β) β uIcc 0 T) | |
| rw [uIcc_of_le hT.le] at h | |
| exact continuousOn_const.add h | |
| apply continuous_path_nonnegative_of_ae hT hc | |
| filter_upwards [hpos,ae_restrict_mem measurableSet_Icc] with t ht hmem | |
| change 0 β€ fβ p+Published.timePrimitive (volume.restrict (Icc 0 T)) (characteristicSource g) (t,p) at ht | |
| rwa [Published.timePrimitive_eq_interval hmem] at ht | |
| theorem renormalized_integral_paths (S : MildCollisionSolution T fβ g) (hT : 0 < T) | |
| (Ξ² : Renormalization) : | |
| βα΅ p : Phase, | |
| (β« t in (0:β)..T, derivWithin Ξ².toFun (Ici 0) | |
| (entropyPath fβ (characteristicSource g) t p/maxwellian p.2)*characteristicSource g (t,p)) = | |
| maxwellian p.2*Ξ².toFun (entropyPath fβ (characteristicSource g) T p/maxwellian p.2)- | |
| maxwellian p.2*Ξ².toFun (fβ p/maxwellian p.2) := by | |
| filter_upwards [S.nonnegative_integral_paths hT,S.characteristicSource_integrable.prod_left_ae] with p hn hri | |
| have hi : IntervalIntegrable (fun t => characteristicSource g (t,p)) volume 0 T := | |
| (intervalIntegrable_iff_integrableOn_Icc_of_le hT.le).mpr hri | |
| have hp := hi.absolutelyContinuousOnInterval_intervalIntegral | |
| (left_mem_uIcc : (0:β) β uIcc 0 T) | |
| have hconst : AbsolutelyContinuousOnInterval (fun _ : β => fβ p) 0 T := by | |
| simpa only [AbsolutelyContinuousOnInterval,dist_self,Finset.sum_const_zero] using | |
| (tendsto_const_nhds : Filter.Tendsto (fun _ : β Γ (β β β Γ β) => (0:β)) _ _) | |
| have hpath : AbsolutelyContinuousOnInterval (fun t => entropyPath fβ (characteristicSource g) t p) 0 T := | |
| hconst.add hp | |
| have hd : βα΅ t, t β Icc 0 T β | |
| HasDerivAt (fun t => entropyPath fβ (characteristicSource g) t p) (characteristicSource g (t,p)) t := by | |
| filter_upwards [hi.ae_hasDerivAt_integral] with t ht hmem | |
| exact (ht (by simpa only [uIcc_of_le hT.le] using hmem) 0 left_mem_uIcc).const_add (fβ p) | |
| simpa only [entropyPath,intervalIntegral.integral_same,add_zero] using | |
| Ξ².weighted_chain_rule hT.le (maxwellian_pos p.2) hpath hn hd | |
| end MildCollisionSolution | |
| end BoltzmannNonuniqueness | |
| end | |
| end | |
| section | |
| /-! # The actual mild solution satisfies the tested renormalized path identity -/ | |
| noncomputable section | |
| open MeasureTheory Set | |
| namespace BoltzmannNonuniqueness.MildCollisionSolution | |
| variable {T : β} {fβ : Density} {g : (β Γ Position) Γ Velocity β β} | |
| theorem renormalized_tested_paths (S : MildCollisionSolution T fβ g) (hT : 0 < T) | |
| (Ξ² : Renormalization) (Ο : KineticTest) : | |
| βα΅ p : Phase, | |
| (β« t in (0:β)..T, | |
| derivWithin Ξ².toFun (Ici 0) (entropyPath fβ (characteristicSource g) t p/maxwellian p.2)* | |
| characteristicSource g (t,p)*Ο.toFun t (TorusFlight.flight t p).1 p.2+ | |
| maxwellian p.2*Ξ².toFun (entropyPath fβ (characteristicSource g) t p/maxwellian p.2)* | |
| Ο.transportDerivative t (TorusFlight.flight t p)) = | |
| maxwellian p.2*Ξ².toFun (entropyPath fβ (characteristicSource g) T p/maxwellian p.2)* | |
| Ο.toFun T (TorusFlight.flight T p).1 p.2- | |
| maxwellian p.2*Ξ².toFun (fβ p/maxwellian p.2)*Ο.toFun 0 p.1 p.2 := by | |
| filter_upwards [S.nonnegative_integral_paths hT,S.characteristicSource_integrable.prod_left_ae] | |
| with p hn hri | |
| have hi : IntervalIntegrable (fun t => characteristicSource g (t,p)) volume 0 T := | |
| (intervalIntegrable_iff_integrableOn_Icc_of_le hT.le).mpr hri | |
| have hp := hi.absolutelyContinuousOnInterval_intervalIntegral | |
| (left_mem_uIcc : (0:β) β uIcc 0 T) | |
| have hconst : AbsolutelyContinuousOnInterval (fun _ : β => fβ p) 0 T := by | |
| simpa only [AbsolutelyContinuousOnInterval,dist_self,Finset.sum_const_zero] using | |
| (tendsto_const_nhds : Filter.Tendsto (fun _ : β Γ (β β β Γ β) => (0:β)) _ _) | |
| have hpath : AbsolutelyContinuousOnInterval (fun t => entropyPath fβ (characteristicSource g) t p) 0 T := | |
| hconst.add hp | |
| have hd : βα΅ t, t β Icc 0 T β | |
| HasDerivAt (fun t => entropyPath fβ (characteristicSource g) t p) (characteristicSource g (t,p)) t := by | |
| filter_upwards [hi.ae_hasDerivAt_integral] with t ht hmem | |
| exact (ht (by simpa only [uIcc_of_le hT.le] using hmem) 0 left_mem_uIcc).const_add (fβ p) | |
| have hΟ : AbsolutelyContinuousOnInterval | |
| (fun t => Ο.toFun t (TorusFlight.flight t p).1 p.2) 0 T := | |
| ((Ο.contDiff_along p).of_le (by simp)).contDiffOn.absolutelyContinuousOnInterval | |
| have hΟ' : βα΅ t, t β Icc 0 T β HasDerivAt | |
| (fun t => Ο.toFun t (TorusFlight.flight t p).1 p.2) | |
| (Ο.transportDerivative t (TorusFlight.flight t p)) t := | |
| ae_of_all _ (fun t _ => Ο.hasDerivAt_along p t) | |
| simpa only [entropyPath,intervalIntegral.integral_same,add_zero,TorusFlight.flight_zero] using | |
| Ξ².weighted_tested_chain_rule hT.le (maxwellian_pos p.2) hpath hn hd hΟ hΟ' | |
| end BoltzmannNonuniqueness.MildCollisionSolution | |
| end | |
| end | |
| section | |
| /-! # The unrenormalized local mass test identity on each mild characteristic -/ | |
| noncomputable section | |
| open MeasureTheory Set | |
| namespace BoltzmannNonuniqueness | |
| theorem tested_absolutelyContinuous_path {T : β} {F r Ο Ο' : β β β} | |
| (hT : 0 β€ T) (hF : AbsolutelyContinuousOnInterval F 0 T) | |
| (hr : βα΅ t, t β Icc 0 T β HasDerivAt F (r t) t) | |
| (hΟ : AbsolutelyContinuousOnInterval Ο 0 T) | |
| (hΟ' : βα΅ t, t β Icc 0 T β HasDerivAt Ο (Ο' t) t) : | |
| (β« t in (0:β)..T, r t*Ο t+F t*Ο' t) = F T*Ο T-F 0*Ο 0 := by | |
| calc | |
| _ = β« t in (0:β)..T, deriv F t*Ο t+F t*deriv Ο t := by | |
| apply intervalIntegral.integral_congr_ae | |
| filter_upwards [hr,hΟ'] with t ht hpt hmem | |
| have htcc : t β Icc 0 T := by | |
| exact Ioc_subset_Icc_self (by simpa only [uIoc_of_le hT] using hmem) | |
| rw [(ht htcc).deriv,(hpt htcc).deriv] | |
| _ = _ := hF.integral_deriv_mul_eq_sub hΟ | |
| namespace MildCollisionSolution | |
| variable {T : β} {fβ : Density} {g : (β Γ Position) Γ Velocity β β} | |
| theorem mass_tested_paths (S : MildCollisionSolution T fβ g) (hT : 0 < T) (Ο : MassTest) : | |
| βα΅ p : Phase, | |
| (β« t in (0:β)..T, characteristicSource g (t,p)*Ο.toFun t (TorusFlight.flight t p).1+ | |
| entropyPath fβ (characteristicSource g) t p*Ο.transportDerivative t (TorusFlight.flight t p)) = | |
| entropyPath fβ (characteristicSource g) T p*Ο.toFun T (TorusFlight.flight T p).1- | |
| fβ p*Ο.toFun 0 p.1 := by | |
| filter_upwards [S.characteristicSource_integrable.prod_left_ae] with p hri | |
| have hi : IntervalIntegrable (fun t => characteristicSource g (t,p)) volume 0 T := | |
| (intervalIntegrable_iff_integrableOn_Icc_of_le hT.le).mpr hri | |
| have hp := hi.absolutelyContinuousOnInterval_intervalIntegral | |
| (left_mem_uIcc : (0:β) β uIcc 0 T) | |
| have hconst : AbsolutelyContinuousOnInterval (fun _ : β => fβ p) 0 T := by | |
| simpa only [AbsolutelyContinuousOnInterval,dist_self,Finset.sum_const_zero] using | |
| (tendsto_const_nhds : Filter.Tendsto (fun _ : β Γ (β β β Γ β) => (0:β)) _ _) | |
| have hpath : AbsolutelyContinuousOnInterval (fun t => entropyPath fβ (characteristicSource g) t p) 0 T := | |
| hconst.add hp | |
| have hd : βα΅ t, t β Icc 0 T β | |
| HasDerivAt (fun t => entropyPath fβ (characteristicSource g) t p) (characteristicSource g (t,p)) t := by | |
| filter_upwards [hi.ae_hasDerivAt_integral] with t ht hmem | |
| exact (ht (by simpa only [uIcc_of_le hT.le] using hmem) 0 left_mem_uIcc).const_add (fβ p) | |
| have hΟ : AbsolutelyContinuousOnInterval (fun t => Ο.toFun t (TorusFlight.flight t p).1) 0 T := | |
| ((Ο.contDiff_along p).of_le (by simp)).contDiffOn.absolutelyContinuousOnInterval | |
| have hΟ' : βα΅ t, t β Icc 0 T β HasDerivAt (fun t => Ο.toFun t (TorusFlight.flight t p).1) | |
| (Ο.transportDerivative t (TorusFlight.flight t p)) t := | |
| ae_of_all _ (fun t _ => Ο.hasDerivAt_along p t) | |
| simpa only [entropyPath,intervalIntegral.integral_same,add_zero,TorusFlight.flight_zero] using | |
| tested_absolutelyContinuous_path hT.le hpath hd hΟ hΟ' | |
| end MildCollisionSolution | |
| end BoltzmannNonuniqueness | |
| end | |
| end | |
| end OAI | |