import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Interpolator.VerticalColumn /-! # Cellwise vertical-column supplier The global short-pair estimate for the sampled polygon also applies to the translated side on each cell, by `cell_agreement`. This file packages that rewriting with the existing M64 chain-rule calculation for the smooth M63 interpolator. Morgan--Tian context: Section 19.4, Definition 19.18 and Claims 19.19-19.22, printed pp. 450-453. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter MeasureTheory Bundle open scoped Manifold ContDiff Topology Bundle ENNReal NNReal universe u namespace PoincareMT variable {M : Type u} [TopologicalSpace M] [T2Space M] [ChartedSpace (EuclideanSpace โ„ (Fin 3)) M] [IsManifold (๐“ก 3) โˆž M] omit [T2Space M] in /-- Transfer the sampled-polygon distance bound to its actual translated side on a closed cell. Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. 450-453; project construction in `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ theorem m64_cell_side_short_of_polygon_short {g : RiemannianMetric 3 M} {D : LeviCivitaData g} {N : โ„•} (polygon : M63GeodesicPolygon g D N) {gamma : โ„ โ†’ M} {r : โ„} (hshort : โˆ€ x : โ„, g.edist (gamma x) (polygon.map x) < ENNReal.ofReal r) (j : Fin N) {z : LoopPlane} (hz : z โˆˆ m64PolygonCellSet j) : g.edist (gamma (z 0)) ((polygon.side j).map (z 0 - m63CellLeft N j)) < ENNReal.ofReal r := by have hs : z 0 - m63CellLeft N j โˆˆ Icc (0 : โ„) (m63CellLength N) := by change m63CellLeft N j โ‰ค z 0 โˆง z 0 โ‰ค m63CellLeft N j + m63CellLength N โˆง 0 โ‰ค z 1 โˆง z 1 โ‰ค 1 at hz constructor ยท exact sub_nonneg.mpr hz.1 ยท linarith [hz.2.1] have hc := polygon.cell_agreement j (z 0 - m63CellLeft N j) hs rw [โ† hc] rw [show m63CellLeft N j + (z 0 - m63CellLeft N j) = z 0 by ring] exact hshort (z 0) omit [T2Space M] in /-- Identify the cell interpolator's vertical column with the distance of its endpoints. Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. 450-453; project construction in `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ theorem m64_interpolator_vertical_column_of_global_short {g : RiemannianMetric 3 M} {D : LeviCivitaData g} {N : โ„•} (polygon : M63GeodesicPolygon g D N) {gamma : โ„ โ†’ M} {U : Set (M ร— M)} {H : โ„ ร— (M ร— M) โ†’ M} (hU : IsOpen U) (hH : ContMDiffOn ((๐“˜(โ„, โ„)).prod ((๐“ก 3).prod (๐“ก 3))) (๐“ก 3) โˆž H (Ioo (-1 : โ„) 2 ร—หข U)) (hgamma : ContMDiffOn ๐“˜(โ„, โ„) (๐“ก 3) 1 gamma Set.univ) (hpair : โˆ€ j : Fin N, โˆ€ p โˆˆ m64PolygonCellSet j, (gamma (p 0), (polygon.side j).map (p 0 - m63CellLeft N j)) โˆˆ U) (j : Fin N) {x : LoopPlane} (hx : x โˆˆ interior (m64PolygonCellSet j)) {r : โ„} (hshort : โˆ€ y : โ„, g.edist (gamma y) (polygon.map y) < ENNReal.ofReal r) (hgeom : g.edist (gamma (x 0)) ((polygon.side j).map (x 0 - m63CellLeft N j)) < ENNReal.ofReal r โ†’ H (0, gamma (x 0), (polygon.side j).map (x 0 - m63CellLeft N j)) = gamma (x 0) โˆง H (1, gamma (x 0), (polygon.side j).map (x 0 - m63CellLeft N j)) = (polygon.side j).map (x 0 - m63CellLeft N j) โˆง g.IsGeodesicOn (fun t => H (t, gamma (x 0), (polygon.side j).map (x 0 - m63CellLeft N j))) (Ioo (-1 : โ„) 2) โˆง (โˆ€ t โˆˆ Ioo (-1 : โ„) 2, g.tangentNorm (H (t, gamma (x 0), (polygon.side j).map (x 0 - m63CellLeft N j))) (mfderiv ๐“˜(โ„, โ„) (๐“ก 3) (fun s => H (s, gamma (x 0), (polygon.side j).map (x 0 - m63CellLeft N j))) t 1) = (g.edist (gamma (x 0)) ((polygon.side j).map (x 0 - m63CellLeft N j))).toReal) โˆง g.pathELength (fun t => H (t, gamma (x 0), (polygon.side j).map (x 0 - m63CellLeft N j))) 0 1 = g.edist (gamma (x 0)) ((polygon.side j).map (x 0 - m63CellLeft N j))) : g.tangentNorm (H (x 1, gamma (x 0), (polygon.side j).map (x 0 - m63CellLeft N j))) (mfderiv (๐“ก 2) (๐“ก 3) (fun p : LoopPlane => H (p 1, gamma (p 0), (polygon.side j).map (p 0 - m63CellLeft N j))) x (EuclideanSpace.basisFun (Fin 2) โ„ 1)) = (g.edist (gamma (x 0)) ((polygon.side j).map (x 0 - m63CellLeft N j))).toReal := by apply m64_interpolator_vertical_column_of_speed polygon hU hH hgamma hpair j (interior_subset hx) (m64_cell_side_short_of_polygon_short polygon hshort j (interior_subset hx)) hgeom end PoincareMT