Download data/lean/OAI/Geometry/IsometricImmersion/Calculus/QuotientCalculus.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.67 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Calculus/QuotientCalculus.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/Calculus/QuotientCalculus.lean
-
curl -L -o QuotientCalculus.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Calculus/QuotientCalculus.lean
3.67 kB
| import OAI.Geometry.IsometricImmersion.Calculus.CoordinateDerivatives | |
| import Mathlib.Analysis.Calculus.Deriv.Inv | |
| import Mathlib.Analysis.Calculus.ContDiff.Operations | |
| import Mathlib.Tactic.FieldSimp | |
| import Mathlib.Tactic.Ring | |
| namespace OAI | |
| noncomputable section | |
| open scoped ContDiff Topology | |
| namespace SmoothLocal.Geometry | |
| variable {f h : Coord β β} {p : Coord} {U : Set Coord} | |
| theorem coordPartial_div | |
| (hf : DifferentiableAt β f p) (hh : DifferentiableAt β h p) | |
| (hne : h p β 0) (i : Fin 2) : | |
| coordPartial i (fun x => f x / h x) p = | |
| (coordPartial i f p * h p - f p * coordPartial i h p) / (h p) ^ 2 := by | |
| have hinv : HasFDerivAt (fun x : Coord => (h x)β»ΒΉ) | |
| (-(h p ^ 2)β»ΒΉ β’ fderiv β h p) p := by | |
| simpa only [Function.comp_def] using | |
| (hasDerivAt_inv hne).comp_hasFDerivAt p hh.hasFDerivAt | |
| have hquot : HasFDerivAt (fun x : Coord => f x / h x) | |
| (f p β’ (-(h p ^ 2)β»ΒΉ β’ fderiv β h p) + | |
| (h p)β»ΒΉ β’ fderiv β f p) p := by | |
| simpa only [div_eq_mul_inv] using hf.hasFDerivAt.fun_mul hinv | |
| unfold coordPartial | |
| rw [hquot.fderiv] | |
| simp only [add_apply, smul_apply, smul_eq_mul] | |
| field_simp [hne] | |
| ring | |
| theorem coordPartial_div_on | |
| (hU : IsOpen U) (hp : p β U) | |
| (hf : DifferentiableOn β f U) (hh : DifferentiableOn β h U) | |
| (hne : h p β 0) (i : Fin 2) : | |
| coordPartial i (fun x => f x / h x) p = | |
| (coordPartial i f p * h p - f p * coordPartial i h p) / (h p) ^ 2 := by | |
| exact coordPartial_div (hf.differentiableAt (hU.mem_nhds hp)) | |
| (hh.differentiableAt (hU.mem_nhds hp)) hne i | |
| def coordinateDrift (q w : Coord β β) (p : Coord) : β := | |
| coordPartial 0 w p - q p * coordPartial 1 w p | |
| theorem coordinateDrift_quotient (q : Coord β β) | |
| (hf : DifferentiableAt β f p) (hh : DifferentiableAt β h p) | |
| (hne : h p β 0) : | |
| coordinateDrift q (fun x => f x / h x) p = | |
| (coordinateDrift q f p * h p - f p * coordinateDrift q h p) / (h p) ^ 2 := by | |
| unfold coordinateDrift | |
| rw [coordPartial_div hf hh hne 0, coordPartial_div hf hh hne 1] | |
| field_simp [hne] | |
| ring | |
| theorem coordinateDrift_self_quotient | |
| (hf : DifferentiableAt β f p) (hh : DifferentiableAt β h p) | |
| (hne : h p β 0) : | |
| coordinateDrift (fun x => f x / h x) (fun x => f x / h x) p = | |
| (coordPartial 0 f p - (f p / h p) * coordPartial 1 f p) / h p - | |
| (f p / h p) * | |
| (coordPartial 0 h p - (f p / h p) * coordPartial 1 h p) / h p := by | |
| rw [coordinateDrift_quotient (fun x => f x / h x) hf hh hne] | |
| unfold coordinateDrift | |
| field_simp [hne] | |
| theorem quotient_contDiffOn | |
| (hf : ContDiffOn β β f U) (hh : ContDiffOn β β h U) | |
| (hne : β p β U, h p β 0) : | |
| ContDiffOn β β (fun p => f p / h p) U := by | |
| exact hf.div hh hne | |
| def explicitDriftError (h E T J : Coord β β) (p : Coord) : β := | |
| E p / (h p) ^ 2 * (T p - coordPartial 1 h p / h p) + J p / h p | |
| theorem explicitDriftError_contDiffOn | |
| {E T J : Coord β β} (hU : IsOpen U) | |
| (hh : ContDiffOn β β h U) (hE : ContDiffOn β β E U) | |
| (hT : ContDiffOn β β T U) (hJ : ContDiffOn β β J U) | |
| (hne : β p β U, h p β 0) : | |
| ContDiffOn β β (explicitDriftError h E T J) U := by | |
| have hG : ContDiffOn β β (fun p => E p / (h p) ^ 2) U := | |
| hE.div (hh.pow 2) (fun p hp => pow_ne_zero 2 (hne p hp)) | |
| have hhy : ContDiffOn β β (coordPartial 1 h) U := | |
| partial_contDiffOn hh hU 1 | |
| exact (hG.mul (hT.sub (hhy.div hh hne))).add (hJ.div hh hne) | |
| theorem height_energy_quotient_pos (E h : β) (hE : 0 < E) (hh : h β 0) : | |
| 0 < E / h ^ 2 := | |
| div_pos hE (sq_pos_of_ne_zero hh) | |
| end SmoothLocal.Geometry | |
| end | |
| end OAI | |