Download data/lean/OAI/Geometry/CylinderCovering/Ruled/LocalEndpoint.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.46 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Ruled/LocalEndpoint.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CylinderCovering/Ruled/LocalEndpoint.lean
-
curl -L -o LocalEndpoint.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Ruled/LocalEndpoint.lean
3.46 kB
| import OAI.Geometry.CylinderCovering.Ruled.LocalCylinder | |
| import OAI.Geometry.CylinderCovering.Ruled.CellCost | |
| import OAI.Geometry.CylinderCovering.Convexity.CompactProductEigenframes | |
| namespace OAI | |
| noncomputable section | |
| open Set Metric MeasureTheory | |
| namespace CylinderCovering.ProductLocal | |
| open RuledApproximation | |
| lemma hyperbolicAt_trace_det {M : β} (hM : 0 < M) | |
| {v : Plane β Plane} {p : Plane} (h : HyperbolicAt M v p) : | |
| LinearMap.trace β Plane (fderiv β v p).toLinearMap = 0 β§ | |
| LinearMap.det (fderiv β v p).toLinearMap < 0 := by | |
| obtain β¨lam,hMl,_,hp,hmβ© := h | |
| have hlam : 0 < lam := (mul_pos_iff_of_pos_left hM).mp hMl | |
| rw [Module.End.hasEigenvalue_iff_isRoot_charpoly,Polynomial.IsRoot,plane_charpoly] at hp hm | |
| simp only [Polynomial.eval_add,Polynomial.eval_sub,Polynomial.eval_pow, | |
| Polynomial.eval_X,Polynomial.eval_mul,Polynomial.eval_C] at hp hm | |
| have ht : LinearMap.trace β Plane (fderiv β v p).toLinearMap = 0 := by nlinarith | |
| refine β¨ht,?_β© | |
| rw [ht] at hp | |
| nlinarith [sq_pos_of_pos hlam] | |
| lemma hyperbolicAt_exists_unit_eigenframe {M : β} (hM : 0 < M) | |
| {v : Plane β Plane} {p : Plane} (h : HyperbolicAt M v p) : | |
| β lam : β, β L : (β Γ β) βL[β] Plane, | |
| 0 < M*lam β§ M*lam < 1 β§ IsUnitEigenframe (fderiv β v p) lam L := by | |
| have htd := hyperbolicAt_trace_det hM h | |
| obtain β¨lam,hMl,hMl1,hplus,_β© := h | |
| have hlam : 0 < lam := (mul_pos_iff_of_pos_left hM).mp hMl | |
| have heq := positive_eigenvalue_eq_sqrt (fderiv β v p) htd.1 htd.2 hlam hplus | |
| obtain β¨L,hLβ© := exists_unit_eigenframe (fderiv β v p) htd.1 htd.2 | |
| exact β¨lam,L,hMl,hMl1,by simpa only [heq] using hLβ© | |
| theorem local_proof : LocalStatement := by | |
| intro D v h M hD hDne hh hM hvnear hhyper eta tau gamma heta htau htau1 hgamma hpad hratio | |
| obtain β¨U,hU,hDU,hvβ© := hvnear | |
| have hder : ContinuousOn (fderiv β v) D := by | |
| intro p hp | |
| exact ((hv.contDiffAt (hU.mem_nhds (hDU hp))).continuousAt_fderiv | |
| (by norm_num)).continuousWithinAt | |
| obtain β¨N,hN,hNallβ© := compact_uniform_eigenframe_inverse hD hder | |
| (fun p hp => (hyperbolicAt_trace_det hM (hhyper p hp)).1) | |
| (fun p hp => (hyperbolicAt_trace_det hM (hhyper p hp)).2) | |
| obtain β¨rA,hrA,hAβ© := uniform_intercept_containment hD hU hDU hv hM hN htau hgamma | |
| obtain β¨rW,hrW,hWβ© := uniform_weight_on_cells hD (hv.continuousOn.mono hDU) h heta | |
| refine β¨min rA rW,lt_min hrA hrW,?_β© | |
| intro p hp lam L hL hML0 hML1 rho hrho hrho0 hGD | |
| have hlam : 0 < lam := (mul_pos_iff_of_pos_left hM).mp hML0 | |
| have hri : rho < rA := hrho0.trans_le (min_le_left _ _) | |
| have hrw : rho < rW := hrho0.trans_le (min_le_right _ _) | |
| let G := affineCell p rho L (ProductCells.parameterCell tau) | |
| let P := affineCell p rho L (ProductCells.interceptCell tau gamma) | |
| let C := projectedCylinder h (v p) P | |
| refine β¨C,rfl,projectedCylinder_carrier h (v p) P,?_,?_,?_β© | |
| Β· exact ProductCells.pair_frame_productCylinder_openBounded L p (v p) hrho hh tau gamma | |
| Β· apply ruled_subset_projectedCylinder | |
| exact hA p hp lam L hL hlam.le hML1.le (hNall p hp lam L hlam hL).2 rho hrho hri | |
| Β· apply projectedCylinder_cost (parameter_affineCell_isCompact p rho tau L) | |
| (hv.continuousOn.mono (hGD.trans hDU)) hh heta.le p hratio | |
| Β· exact ProductCells.pair_frame_intercept_area L p hrho htau htau1 hgamma.le hpad | |
| Β· exact hW p hp lam rho tau L hL hrho hrw hGD | |
| end CylinderCovering.ProductLocal | |
| end | |
| end OAI | |