import NavierStokes.WithinJointODE import NavierStokes.CommonCoverSolve import NavierStokes.CommonCoverClass /-! # Common-torus inverse at a one-sided slow endpoint All inputs have genuine joint within regularity on the slow domain. The actual copy and common-torus solves inherit it; an open continuation of the source is not required. -/ noncomputable section namespace NavierStokes.CommonCoverSolve.LinearData open Set Filter Function open scoped Topology ContDiff open TorusInverse variable {P V E : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] {a b : ℝ} (d : LinearData P V E) (g : Geometry) (hab : a ≤ b) {U : Set P} (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) (hA : ContDiffOn ℝ ∞ d.coefficient (U ×ˢ univ)) (hB : ContDiffOn ℝ ∞ d.forcingMap (U ×ˢ univ)) (hf : ContDiffOn ℝ ∞ d.source (U ×ˢ univ)) include hU hu hA hB hf /-- The current copy argument with the unclamped endpoint-rescaled solve. -/ noncomputable def copySolveRepresentative (k : Frequency) (p : P × Plane) : E := JointODE.reparamSolution a (d.coefficientAlong g k) (fun _ => 0) (d.forcingAlong g k) (p, (g.coordinates k p.2).2) theorem copySolveRepresentative_contDiffOn (k : Frequency) : ContDiffOn ℝ ∞ (d.copySolveRepresentative g (a := a) k) (U ×ˢ univ) := by have hh := WithinJointODE.contDiffOn_reparamSolution (a := a) (hU.prod convex_univ) (hu.prod uniqueDiffOn_univ) (d.coefficientAlong g k) (fun _ => 0) (d.forcingAlong g k) (d.coefficientAlong_contDiffOn g k hA) contDiffOn_const (d.forcingAlong_contDiffOn g k hB hf) exact hh.comp (CommonCoverClass.currentArgument_smooth (P := P) g k).contDiffOn (fun _ hz => ⟨hz, mem_univ _⟩) omit hU hu hA hB hf in theorem copySolveRepresentative_eq (k : Frequency) (hA : ContinuousOn d.coefficient (U ×ˢ univ)) (hB : ContinuousOn d.forcingMap (U ×ˢ univ)) (hf : ContinuousOn d.source (U ×ˢ univ)) {p : P × Plane} (hp : p.1 ∈ U) (ht : (g.coordinates k p.2).2 ∈ Icc a b) : d.copySolveRepresentative g (a := a) k p = d.copySolve g hab k p := JointODE.reparamSolution_eq_actualSolution hab _ _ _ ((d.coefficientAlong_continuousOn g k hA).mono (prod_mono Subset.rfl (subset_univ _))) ((d.forcingAlong_continuousOn g k hB hf).mono (prod_mono Subset.rfl (subset_univ _))) ⟨⟨hp, mem_univ _⟩, ht⟩ theorem copySolve_contDiffOn_closed_within (k : Frequency) : ContDiffOn ℝ ∞ (d.copySolve g hab k) {p : P × Plane | p.1 ∈ U ∧ (g.coordinates k p.2).2 ∈ Icc a b} := by apply ((d.copySolveRepresentative_contDiffOn g hU hu hA hB hf k (a := a)).mono (fun p hp => ⟨hp.1, mem_univ _⟩)).congr intro p hp exact (d.copySolveRepresentative_eq g hab k hA.continuousOn hB.continuousOn hf.continuousOn hp.1 hp.2).symm end NavierStokes.CommonCoverSolve.LinearData