import NavierStokes.R3.L2TimeDerivative import NavierStokes.R3.H3CompactCurve import NavierStokes.R3.H3StrongSolution noncomputable section open Set Filter MeasureTheory open scoped ContDiff Topology BigOperators namespace NavierStokesR3.H3Comparison open ProblemStatement open NavierStokes.ProblemStatement (temporalDerivative advection spatialDerivative spatialDivergence) open NavierStokes.PeriodicUniqueness (slab spatial_smooth time_differentiable_at_interior) private theorem time_derivative {a b t : ℝ} {u : VelocityField} (hu : ContDiffOn ℝ ∞ u (slab a b)) (ht : t ∈ Ioo a b) (x : Space) : HasDerivAt (fun r => u (r, x)) (temporalDerivative u t x) t := (time_differentiable_at_interior hu ht x).hasDerivAt private theorem time_derivative_continuous {a b : ℝ} {u : VelocityField} (hu : ContDiffOn ℝ ∞ u (slab a b)) : ContinuousOn (fun z => temporalDerivative u z.1 z.2) (Ioo a b ×ˢ univ) := CompactTimeIntegral.continuousOn_timeDeriv_of_contDiffOn (hu.of_le (by simp)) private theorem time_derivative_zero {a b t : ℝ} {u : VelocityField} {K : Set Space} (hu : ContDiffOn ℝ ∞ u (slab a b)) (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) (ht : t ∈ Ioo a b) {x : Space} (hx : x ∉ K) : temporalDerivative u t x = 0 := by exact CompactTimeIntegral.derivative_eq_zero_outside (G := fun z => temporalDerivative u z.1 z.2) (fun r hr y hy => CompactEnergy.zero_outside (hsupp r (Ioo_subset_Icc_self hr)) hy) (fun r hr y => time_derivative hu hr y) ht hx end NavierStokesR3.H3Comparison