import PoincareLib.Geometry.CurveShortening.Comparison.Compatibility.SourceNames import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Interpolator.HorizontalColumn import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Uniform.SampledPolygonCloseness /-! # The strip between two uniformly close C1 loops Both endpoint curves are C1, so no polygon cuts occur. The compact endpoint derivative bound controls the angular column, while the actual minimizing interpolator speed identifies the radial column with the endpoint distance. Morgan--Tian context: Section 19.6, Lemmas 19.30-19.31, printed pp. 461-466. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff universe u namespace PoincareMT variable {M : Type u} [TopologicalSpace M] [ChartedSpace LoopAmbient M] [IsManifold (๐“ก 3) โˆž M] omit [IsManifold (๐“ก 3) โˆž M] in /-- The vertical rectangle column equals the derivative of its literal radial slice. Source: Auxiliary step for MT Section 19.6, pp. 461-462; project construction in `proof-work/tasks/M64/reports/2026-09-24-finite-nets-closed.md`. -/ theorem m64_vertical_column_eq_slice {f : LoopPlane โ†’ M} {p : LoopPlane} (hf : MDifferentiableAt (๐“ก 2) (๐“ก 3) f p) : mfderiv (๐“ก 2) (๐“ก 3) f p (EuclideanSpace.basisFun (Fin 2) โ„ 1) = mfderiv ๐“˜(โ„, โ„) (๐“ก 3) (fun s => f (annulusPoint (p 0) s)) (p 1) 1 := by have hline : HasDerivAt (annulusPoint (p 0)) (EuclideanSpace.basisFun (Fin 2) โ„ 1) (p 1) := by have heq : annulusPoint (p 0) = fun s => annulusPoint (p 0) 0 + s โ€ข EuclideanSpace.basisFun (Fin 2) โ„ 1 := by funext s ext i fin_cases i <;> simp [annulusPoint, EuclideanSpace.basisFun_apply] rw [heq] simpa only [one_smul, id_eq] using ((hasDerivAt_id (p 1)).smul_const (EuclideanSpace.basisFun (Fin 2) โ„ 1)).const_add (annulusPoint (p 0) 0) have hp : annulusPoint (p 0) (p 1) = p := by ext i fin_cases i <;> simp [annulusPoint] have hd : mfderiv ๐“˜(โ„, โ„) (๐“ก 2) (annulusPoint (p 0)) (p 1) 1 = EuclideanSpace.basisFun (Fin 2) โ„ 1 := by simpa +instances only [mfderiv_eq_fderiv, fderiv_apply_one_eq_deriv] using! hline.deriv have hc := mfderiv_comp_apply_of_eq (p 1) hf hline.differentiableAt.mdifferentiableAt hp (1 : โ„) rw [hd] at hc exact hc.symm /-- The smooth endpoint interpolator composed with two C1 loops is C1 on the rectangle. Source: Auxiliary step for MT Section 19.6, pp. 461-462; project construction in `proof-work/tasks/M64/reports/2026-09-24-finite-nets-closed.md`. -/ theorem m64_pair_interpolator_contMDiffAt (gamma beta : C1FreeLoopSpace (M := M)) {H : โ„ ร— (M ร— M) โ†’ M} {p : LoopPlane} (hH : ContMDiffAt (๐“˜(โ„, โ„).prod ((๐“ก 3).prod (๐“ก 3))) (๐“ก 3) 1 H (p 1, periodicFreeLoop gamma (p 0), periodicFreeLoop beta (p 0))) : ContMDiffAt (๐“ก 2) (๐“ก 3) 1 (fun z : LoopPlane => H (z 1, periodicFreeLoop gamma (z 0), periodicFreeLoop beta (z 0))) p := by have hp0 : ContMDiffAt (๐“ก 2) ๐“˜(โ„, โ„) 1 (fun z : LoopPlane => z 0) p := (PiLp.proj (๐•œ := โ„) 2 (fun _ : Fin 2 => โ„) 0).contDiff.contMDiff.contMDiffAt have hp1 : ContMDiffAt (๐“ก 2) ๐“˜(โ„, โ„) 1 (fun z : LoopPlane => z 1) p := (PiLp.proj (๐•œ := โ„) 2 (fun _ : Fin 2 => โ„) 1).contDiff.contMDiff.contMDiffAt exact hH.comp p (hp1.prodMk (((Proofs.M58.contMDiff_periodicFreeLoop gamma).contMDiffAt.comp p hp0).prodMk ((Proofs.M58.contMDiff_periodicFreeLoop beta).contMDiffAt.comp p hp0))) /-- Bound the close-loop rectangle's angular column by endpoint derivatives and its radial column by endpoint distance. Source: Auxiliary step for MT Section 19.6, pp. 461-462; project construction in `proof-work/tasks/M64/reports/2026-09-24-finite-nets-closed.md`. -/ theorem m64_pair_interpolator_column_bounds (g : RiemannianMetric 3 M) (gamma beta : C1FreeLoopSpace (M := M)) {H : โ„ ร— (M ร— M) โ†’ M} {S B epsilon : โ„} (hH : โˆ€ p โˆˆ m64AnnulusDomain, ContMDiffAt (๐“˜(โ„, โ„).prod ((๐“ก 3).prod (๐“ก 3))) (๐“ก 3) 1 H (p 1, periodicFreeLoop gamma (p 0), periodicFreeLoop beta (p 0))) (hB : โˆ€ p โˆˆ m64AnnulusDomain, โˆ€ v : TangentSpace (๐“ก 3) (periodicFreeLoop gamma (p 0)), g.tangentNorm (periodicFreeLoop gamma (p 0)) v โ‰ค S โ†’ โˆ€ w : TangentSpace (๐“ก 3) (periodicFreeLoop beta (p 0)), g.tangentNorm (periodicFreeLoop beta (p 0)) w โ‰ค S โ†’ g.tangentNorm (H (p 1, periodicFreeLoop gamma (p 0), periodicFreeLoop beta (p 0))) (mfderiv (๐“˜(โ„, โ„).prod ((๐“ก 3).prod (๐“ก 3))) (๐“ก 3) H (p 1, periodicFreeLoop gamma (p 0), periodicFreeLoop beta (p 0)) (0, v, w)) โ‰ค B) (hgamma : โˆ€ x โˆˆ Icc (0 : โ„) curvePeriod, g.tangentNorm (periodicFreeLoop gamma x) (curveVelocity (periodicFreeLoop gamma) x) โ‰ค S) (hbeta : โˆ€ x โˆˆ Icc (0 : โ„) curvePeriod, g.tangentNorm (periodicFreeLoop beta x) (curveVelocity (periodicFreeLoop beta) x) โ‰ค S) (hspeed : โˆ€ x : โ„, โˆ€ s โˆˆ Icc (0 : โ„) 1, g.tangentNorm (H (s, periodicFreeLoop gamma x, periodicFreeLoop beta x)) (mfderiv ๐“˜(โ„, โ„) (๐“ก 3) (fun t => H (t, periodicFreeLoop gamma x, periodicFreeLoop beta x)) s 1) = (g.edist (periodicFreeLoop gamma x) (periodicFreeLoop beta x)).toReal) (hshort : โˆ€ x : โ„, g.edist (periodicFreeLoop gamma x) (periodicFreeLoop beta x) < ENNReal.ofReal epsilon) {p : LoopPlane} (hp : p โˆˆ m64AnnulusDomain) : let f : LoopPlane โ†’ M := fun z => H (z 1, periodicFreeLoop gamma (z 0), periodicFreeLoop beta (z 0)) g.tangentNorm (f p) (mfderiv (๐“ก 2) (๐“ก 3) f p (EuclideanSpace.basisFun (Fin 2) โ„ 0)) โ‰ค B โˆง g.tangentNorm (f p) (mfderiv (๐“ก 2) (๐“ก 3) f p (EuclideanSpace.basisFun (Fin 2) โ„ 1)) โ‰ค epsilon := by dsimp only constructor ยท rw [m64_interpolator_horizontal_column_eq p ((Proofs.M58.contMDiff_periodicFreeLoop gamma).contMDiffAt.mdifferentiableAt one_ne_zero) ((Proofs.M58.contMDiff_periodicFreeLoop beta).contMDiffAt.mdifferentiableAt one_ne_zero) ((hH p hp).mdifferentiableAt one_ne_zero)] exact hB p hp _ (hgamma (p 0) โŸจhp.1, hp.2.1โŸฉ) _ (hbeta (p 0) โŸจhp.1, hp.2.1โŸฉ) ยท rw [m64_vertical_column_eq_slice ((m64_pair_interpolator_contMDiffAt gamma beta (hH p hp)).mdifferentiableAt one_ne_zero)] simp only [annulusPoint, Matrix.cons_val_zero, Matrix.cons_val_one] rw [hspeed (p 0) (p 1) โŸจhp.2.2.1, hp.2.2.2โŸฉ] exact (ENNReal.toReal_lt_of_lt_ofReal (hshort (p 0))).le end PoincareMT