import Euler.TransversePacketPiolaData import Euler.PacketCylinderField import Euler.PacketCylinderCoefficientData import Euler.PacketCylinderFieldSupport import Euler.PacketSourceMeanZero import Euler.PacketCylinderFieldUnique /-! The genuine Piola constraint for every generated source high/corrector pair. -/ /-! ## From `Euler/PacketCylinderPiolaCorrector.lean` The text of `Euler/PacketCylinderPiolaCorrector.lean`, folded into this file, which was its only importer. -/ section /-! The literal raw curl-corrector equals the genuine periodic Piola corrector. -/ noncomputable section namespace EulerPacketCylinderField open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace EulerMetricTransport EulerCylinderSmoothOrbit EulerPacketProfileRecursion EulerPacketAngularPotential EulerPacketPeriodicPotential EulerPacketPiola variable {P : ℝ} [Fact (0 < P)] {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : EulerTransversePacketProvider.Data U) {raw : VectorField} (G : Field P D.T raw) (t : Icc (0 : ℝ) D.T) theorem rawMean_pointField (hm : ∀ x, (∫ θ in (0 : ℝ)..P, raw (t,(x,θ))) = 0) (x : Space) : (∫ θ in (0 : ℝ)..P, pointField P G.path G.orbit t (x,(θ : AddCircle P))) = 0 := by convert hm x using 1 apply intervalIntegral.integral_congr intro θ _ exact (G.raw_eq t x θ).symm theorem rawCorrector_eq_lifted (hm : ∀ x, (∫ θ in (0 : ℝ)..P, raw (t,(x,θ))) = 0) (x : Space) (θ : ℝ) : D.curlCorrector P raw (t,(x,θ)) = EulerPacketConstructedPiola.corrector P (D.deformationEquiv t) D.m₀ (pointField P G.path G.orbit t) (x,(θ : AddCircle P)) := by let A := pointField P G.path G.orbit t let Q := EulerPacketPeriodicPotential.field P (D.normal.field t) A have hAc : Continuous A := smoothField_continuous P A (pointField_smooth P G.path G.orbit t) have hAm : ∀ y, (∫ s in (0 : ℝ)..P, A (y,(s : AddCircle P))) = 0 := rawMean_pointField D G t hm have hQ : (fun y : LiftTangent => D.rawPotential P raw (t,y)) = fun y : LiftTangent => Q (y.1,(y.2 : AddCircle P)) := by funext y have hraw : (fun s : ℝ => raw (t,(y.1,s))) = fun s : ℝ => A (y.1,(s : AddCircle P)) := funext (fun s => G.raw_eq t y.1 s) change potential P (D.normal.field (D.clamp t) y.1) (fun s : ℝ => raw (t,(y.1,s))) y.2 = _ rw [EulerTransversePacketProvider.Data.clamp_coe,hraw] have hc := field_cover P (D.normal.field t) A hAc hAm y simpa only [Q,coveringMap,coveringPotential,localFieldLift,Prod.fst_zero, Prod.snd_zero,zero_add] using hc.symm change EulerMeanBoundary.curlMatrix ((fderiv ℝ (fun y : LiftTangent => D.rawPotential P raw (t,y)) (x,θ)).comp ((ContinuousLinearMap.inl ℝ Space ℝ).comp (D.FInv.field (D.clamp t) x))) = _ rw [EulerTransversePacketProvider.Data.clamp_coe,hQ,coverField_fderiv] rfl end EulerPacketCylinderField end end /-! ## From `Euler/PacketCylinderPiolaPair.lean` The text of `Euler/PacketCylinderPiolaPair.lean`, folded into this file, which was its only importer. -/ section /-! Every actual compact high/corrector pair is a member of the closed lifted solenoidal space. -/ noncomputable section namespace EulerPacketCylinderField open Set MeasureTheory EulerSmoothLimit EulerLiftedGradientSpace EulerMetricTransport EulerCylinderSmoothOrbit EulerLpCylinderPaths EulerPacketProfileRecursion EulerPacketConstructedPiola open scoped ContDiff variable {P : ℝ} [Fact (0 < P)] {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : EulerTransversePacketProvider.Data U) def packetInverseCoefficient : MatrixCoefficient D.T (fun z => D.FInv.field (D.clamp z.1) z.2.1) where path := D.FInv.field orbit := D.FInv.translation_contDiff raw_eq t _ _ := by rw [EulerTransversePacketProvider.Data.clamp_coe] def piolaPairRaw (κ : ℝ) (raw : VectorField) (p : ℕ) : VectorField := fun z => D.FInv.field (D.clamp z.1) z.2.1 (κ^p • raw z+κ^(p+1) • D.curlCorrector P raw z) def piolaPairField {raw : VectorField} (G : Field P D.T raw) (C : Field P D.T (D.curlCorrector P raw)) (κ : ℝ) (p : ℕ) : Field P D.T (piolaPairRaw (P := P) D κ raw p) := (packetInverseCoefficient D).multiply ((G.smul (κ^p)).add (C.smul (κ^(p+1)))) theorem piolaPairField_mem {raw : VectorField} (G : Field P D.T raw) (C : Field P D.T (D.curlCorrector P raw)) (κ : ℝ) (p : ℕ) (t : Icc (0 : ℝ) D.T) (Ξ : Space → Space) (hΞ : ContDiff ℝ ∞ Ξ) (hF : ∀ x, fderiv ℝ Ξ x = D.F.field t x) (hdet : ∀ x, (EulerPacketPiola.operatorMatrix (D.F.field t x)).det = 1) (hs : G.path t ∈ Supported P Space D.support D.support_measurable) (hm : ∀ x, (∫ θ in (0 : ℝ)..P, raw (t,(x,θ))) = 0) (htan : ∀ x θ, inner ℝ (D.normalField (t,(x,θ))) (raw (t,(x,θ))) = 0) : (piolaPairField D G C κ p).path t ∈ divergenceFreeSpace P κ D.m₀ := by let A := pointField P G.path G.orbit t have hA : ∀ x, ContDiff ℝ ∞ (localFieldLift P A x) := pointField_smooth P G.path G.orbit t have hAc : HasCompactSupport A := by change HasCompactSupport (pointField P G.path G.orbit t) rw [pointField_eq_representative] exact representative_hasCompactSupport P D.support D.support_measurable D.support_compact (G.path t) (path_evaluation_smooth P G.path G.orbit t) hs have hAm : ∀ x, (∫ θ in (0 : ℝ)..P, A (x,(θ : AddCircle P))) = 0 := rawMean_pointField D G t hm have hN : ContDiff ℝ ∞ (EulerPacketConstructedPiola.normal (D.deformationEquiv t) D.m₀) := D.normal.smooth t have hAt : ∀ z, inner ℝ (EulerPacketConstructedPiola.normal (D.deformationEquiv t) D.m₀ z.1) (A z) = 0 := by intro z obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective z.2 have ht := htan z.1 θ rw [EulerTransversePacketProvider.Data.normalField, EulerTransversePacketProvider.Data.clamp_coe,G.raw_eq,hθ] at ht exact ht let L := pairLp P κ D.m₀ Ξ A hΞ hAc (D.deformationEquiv t) hN D.initialNormal_ne_zero hA hAm p have hL : L ∈ divergenceFreeSpace P κ D.m₀ := pairLp_mem P κ D.m₀ Ξ A hΞ hAc (D.deformationEquiv t) hN D.initialNormal_ne_zero hA hAm p have hLrep := pairLp_ae P κ D.m₀ Ξ A hΞ hAc (D.deformationEquiv t) hN D.initialNormal_ne_zero hA hAm hF hdet hAt p let H := piolaPairField D G C κ p have he : H.path t = L := by apply Lp.ext filter_upwards [pointField_ae P H.path H.orbit t,hLrep] with z hp' hl obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective z.2 have hh := H.raw_eq t z.1 θ rw [hθ] at hh calc H.path t z = pointField P H.path H.orbit t z := hp' _ = piolaPairRaw (P := P) D κ raw p (t,(z.1,θ)) := hh.symm _ = (D.deformationEquiv t z.1).symm (κ^p • A z+κ^(p+1) • EulerPacketConstructedPiola.corrector P (D.deformationEquiv t) D.m₀ A z) := by change D.FInv.field (D.clamp t) z.1 (κ^p • raw (t,(z.1,θ))+κ^(p+1) • D.curlCorrector P raw (t,(z.1,θ))) = _ rw [EulerTransversePacketProvider.Data.clamp_coe,G.raw_eq, rawCorrector_eq_lifted D G t hm,hθ] rfl _ = L z := hl.symm rw [show (piolaPairField D G C κ p).path t = L from he] exact hL end EulerPacketCylinderField end end noncomputable section namespace EulerPacketCylinderField open Set MeasureTheory EulerSmoothLimit EulerLiftedGradientSpace EulerPacketPointJets EulerPacketProfileRecursion EulerLpCylinderPaths open scoped ContDiff theorem Field.changeTime_apply {P T T' : ℝ} [Fact (0 < P)] {raw : VectorField} (G : Field P T raw) (h : T = T') (t : Icc (0 : ℝ) T) : (G.changeTime h).path ⟨t,by rw [← h]; exact t.property⟩ = G.path t := by subst T' rfl variable (P : ℝ) [Fact (0 < P)] (M : EulerMeanPacketProvider.Data) {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] (D : EulerTransversePacketProvider.Data U) (hT : M.T = D.T) (I Iprimary : EulerTransversePacketProvider.InitialData P D) def sourceTime (t : Icc (0 : ℝ) M.T) : Icc (0 : ℝ) D.T := ⟨t,by rw [← hT]; exact t.property⟩ def sourcePairField (κ : ℝ) (p : ℕ) : Field P M.T (fun z => (sourceOperators P M D I).inverseFrame z (κ^p • (sourceProfiles P M D I Iprimary p).high z + κ^(p+1) • (sourceProfiles P M D I Iprimary p).corrector z)) := (sourceCoefficientData P M D I hT).inverse.multiply (((sourceProfileWitness P M D hT I Iprimary p).high.smul (κ^p)).add ((sourceProfileWitness P M D hT I Iprimary p).corrector.smul (κ^(p+1)))) theorem sourcePairField_mem (κ : ℝ) (p : ℕ) (hp : 1 ≤ p) (t : Icc (0 : ℝ) M.T) (Ξ : Space → Space) (hΞ : ContDiff ℝ ∞ Ξ) (hF : ∀ x, fderiv ℝ Ξ x = D.F.field (sourceTime M D hT t) x) (hdet : ∀ x, (EulerPacketPiola.operatorMatrix (D.F.field (sourceTime M D hT t) x)).det = 1) : (sourcePairField P M D hT I Iprimary κ p).path t ∈ divergenceFreeSpace P κ D.m₀ := by let W := sourceProfileWitness P M D hT I Iprimary p let G := W.high.changeTime hT let C := (W.corrector.congr (fun _ _ _ => by rw [source_corrector_eq P M D I Iprimary p hp])).changeTime hT let V := piolaPairField D G C κ p have hs : G.path (sourceTime M D hT t) ∈ Supported P Space D.support D.support_measurable := G.supported_of_raw_zero D.support D.support_measurable (raw_zero_changeTime hT D.support W.high_zero) _ have hm : ∀ x, (∫ θ in (0 : ℝ)..P, (sourceProfiles P M D I Iprimary p).high (sourceTime M D hT t,(x,θ))) = 0 := source_high_mean_zero P M D hT I Iprimary p _ have ht : ∀ x θ, inner ℝ (D.normalField (sourceTime M D hT t,(x,θ))) ((sourceProfiles P M D I Iprimary p).high (sourceTime M D hT t,(x,θ))) = 0 := source_high_tangent P M D hT I Iprimary p _ have hV : V.path (sourceTime M D hT t) ∈ divergenceFreeSpace P κ D.m₀ := piolaPairField_mem D G C κ p (sourceTime M D hT t) Ξ hΞ hF hdet hs hm ht let H := sourcePairField P M D hT I Iprimary κ p have he : (H.changeTime hT).path = V.path := by apply Field.path_eq_of_raw_eq intro r x θ change D.FInv.field (D.clamp r) x (κ^p • (sourceProfiles P M D I Iprimary p).high (r,(x,θ)) + κ^(p+1) • D.curlCorrector P (sourceProfiles P M D I Iprimary p).high (r,(x,θ))) = D.FInv.field (D.clamp r) x (κ^p • (sourceProfiles P M D I Iprimary p).high (r,(x,θ)) + κ^(p+1) • (sourceProfiles P M D I Iprimary p).corrector (r,(x,θ))) rw [source_corrector_eq P M D I Iprimary p hp] have hev : H.path t = V.path (sourceTime M D hT t) := (H.changeTime_apply hT t).symm.trans (congrArg (fun q => q (sourceTime M D hT t)) he) rw [hev] exact hV end EulerPacketCylinderField