import PoincareLib.Geometry.CurveShortening.Comparison.Theory import PoincareLib.Geometry.CurveShortening.Comparison.CompleteComparison import PoincareLib.Geometry.CurveShortening.Comparison.DiskAdapters import PoincareLib.Geometry.CurveShortening.Comparison.FamilyAdapters import PoincareLib.Geometry.CurveShortening.Ramp.Main /-! # M64 polygon approximation and annulus comparison proof entry The complete construction consumes the exact M63 theorem once. The checked assembly retains the original comparison, evolution and family statements on the same actual geometry. Morgan--Tian context: Chapter 19, Sections 19.3-19.7, printed pp. 447-481; the frozen M64 contracts and project comparison erratum specify the final interfaces. -/ set_option autoImplicit false universe u namespace PoincareMT /-- M64: given M63's complete ramp-estimate theorem, every C1 loop in a compact Hausdorff second-countable smooth three-manifold with an actual metric and compatible connection has a sampled minimizing N-gon for every positive N. On each compact C1 set and for each zeta>0, one N0 works for every N>=N0 and every loop: the polygon map is unique, its length is the sum of its side lengths, its nonnegative length loss is less than zeta, and an actual piecewise C1 short-geodesic annulus has area less than zeta. Constant sides are allowed; the raw polygon need not be C1 at its corners. Every raw continuous sphere family of null C1 loops admits these polygons continuously for every sufficiently large N, with actual raw null boundaries, nonempty filling classes and filling-area error less than zeta. Fixed-profile flattening gives an actual homotopic C1 family, smooth in the angular variable, with continuous first and second angular jets and the same length/area bounds. For each compact smooth Ricci flow on [a,b] in dimension n>=3, choose one actual M63 geometry, with constants and circle products before circumference or curve. Two C2 shrinking ramps of initial degree one, joined by an actual initial annulus, have nonempty annular area classes at all included times. Their nonnegative infimum mu is continuous on [a,b]. For a<=t0 choose a positive area threshold before circumference, time and curves. Any two periodic C2 positive-slope ramps, of arbitrary positive degree, obey L1>=3*L0/4 if L0>=r, every first-curve subarc of length at most r has total curvature less than 1/200, and an actual joining annulus has area below that threshold. The intrinsic counterpart holds for every 00 and real Gaussian upper bound K: choose mu>0 before the annulus; L0>r, absolute boundary turning less than delta on all subarcs of length at most r, Gaussian curvature at most K and area