import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Chart.ReaderMetric /-! # Local projections onto the actual observed tangent spaces Differentiating a chart reader gives a left inverse to the observation differential. The inverse chart constructs a continuous local projection whose image is exactly the observed tangent space. Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. 447-449. -/ set_option autoImplicit false noncomputable section open Set Filter open scoped Topology Manifold ContDiff namespace PoincareMT variable {n m : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] local notation "E" => EuclideanSpace ℝ (Fin m) /-- A genuine local linear chart reader yields a continuous projection onto the observed target tangent range. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ theorem m64ChartReadable_local_projection (e : M β†’ E) (he : ContMDiff (𝓑 n) (𝓑 m) 1 e) (hread : M60.SUChartReadable (n := n) e) (p : M) : βˆƒ (U : Set M) (P : M β†’ E β†’L[ℝ] E), IsOpen U ∧ p ∈ U ∧ ContinuousOn P U ∧ (βˆ€ q ∈ U, βˆ€ w, P q (mfderiv (𝓑 n) (𝓑 m) e q w) = mfderiv (𝓑 n) (𝓑 m) e q w) ∧ βˆ€ q ∈ U, βˆ€ w, P q w ∈ range (mfderiv (𝓑 n) (𝓑 m) e q) := by obtain ⟨b, hb, L, hL⟩ := hread p let c := chartAt (EuclideanSpace ℝ (Fin n)) b have hb' : p ∈ c.source := by simpa only [extChartAt_source] using hb have hL' : (L ∘ e) =αΆ [𝓝 p] c := by change (fun q => L (e q)) =αΆ [𝓝 p] c simpa only [extChartAt_coe, modelWithCornersSelf_coe, Function.id_comp] using hL obtain ⟨U, hUsub, hUopen, hpU⟩ := mem_nhds_iff.mp (inter_mem (c.open_source.mem_nhds hb') hL') let P : M β†’ E β†’L[ℝ] E := fun q => (fderiv ℝ (e ∘ c.symm) (c q)).comp L have hc : c.MDifferentiable (𝓑 n) (𝓑 n) := mdifferentiable_chart b have hce (q : M) (hq : q ∈ U) : ContDiffAt ℝ 1 (e ∘ c.symm) (c q) := by have hi : ContMDiffAt (𝓑 n) (𝓑 n) 1 c.symm (c q) := (contMDiffOn_chart_symm : ContMDiffOn (𝓑 n) (𝓑 n) 1 c.symm c.target).contMDiffAt (c.open_target.mem_nhds (c.map_source (hUsub hq).1)) exact contMDiffAt_iff_contDiffAt.mp ((he _).comp _ hi) have hde (q : M) (hq : q ∈ U) : fderiv ℝ (e ∘ c.symm) (c q) = (mfderiv (𝓑 n) (𝓑 m) e q).comp (mfderiv (𝓑 n) (𝓑 n) c.symm (c q)) := by have hh := mfderiv_comp (c q) ((he _).mdifferentiableAt (by simp)) (hc.mdifferentiableAt_symm (c.map_source (hUsub hq).1)) rw [mfderiv_eq_fderiv, c.left_inv (hUsub hq).1] at hh exact hh have hLe (q : M) (hq : q ∈ U) : L.comp (mfderiv (𝓑 n) (𝓑 m) e q) = mfderiv (𝓑 n) (𝓑 n) c q := by have hlocal : (L ∘ e) =αΆ [𝓝 q] c := by filter_upwards [hUopen.mem_nhds hq] with y hy exact (hUsub hy).2 have hh := hlocal.mfderiv_eq (I := 𝓑 n) (I' := 𝓑 n) rw [mfderiv_comp q L.differentiableAt.mdifferentiableAt ((he q).mdifferentiableAt (by simp)), mfderiv_eq_fderiv, L.fderiv] at hh exact hh refine ⟨U, P, hUopen, hpU, ?_, ?_, ?_⟩ Β· apply continuousOn_clm_apply.mpr intro w q hq exact (((hce q hq).continuousAt_fderiv (by simp)).comp (c.continuousOn.continuousAt (c.open_source.mem_nhds (hUsub hq).1))).clm_apply continuousAt_const |>.continuousWithinAt Β· intro q hq w change fderiv ℝ (e ∘ c.symm) (c q) (L (mfderiv (𝓑 n) (𝓑 m) e q w)) = _ rw [hde q hq] change mfderiv (𝓑 n) (𝓑 m) e q (mfderiv (𝓑 n) (𝓑 n) c.symm (c q) ((L.comp (mfderiv (𝓑 n) (𝓑 m) e q)) w)) = _ rw [hLe q hq] have hid := congrArg (fun T => T w) (hc.symm_comp_deriv (hUsub hq).1) change mfderiv (𝓑 n) (𝓑 n) c.symm (c q) (mfderiv (𝓑 n) (𝓑 n) c q w) = w at hid exact congrArg (mfderiv (𝓑 n) (𝓑 m) e q) hid Β· intro q hq w refine ⟨mfderiv (𝓑 n) (𝓑 n) c.symm (c q) (L w), ?_⟩ change _ = fderiv ℝ (e ∘ c.symm) (c q) (L w) rw [hde q hq] rfl end PoincareMT