Download data/lean/OAI/Geometry/IntegralFillings/Currents/IntegralPush.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.09 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IntegralFillings/Currents/IntegralPush.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IntegralFillings/Currents/IntegralPush.lean
-
curl -L -o IntegralPush.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IntegralFillings/Currents/IntegralPush.lean
5.09 kB
| import Mathlib | |
| import OAI.Geometry.IntegralFillings.Geometry.Comparison | |
| import OAI.Geometry.IntegralFillings.Currents.PushBoundary | |
| import OAI.Geometry.IntegralFillings.Charts.Postcompose | |
| namespace OAI | |
| section | |
| open Set Filter MeasureTheory | |
| open scoped Topology ENNReal NNReal | |
| namespace SharpIntegralFillings | |
| open Set MeasureTheory | |
| open CurrentOperations | |
| variable {X Y : Type*} [MetricSpace X] [MetricSpace Y] | |
| [MeasurableSpace X] [MeasurableSpace Y] [BorelSpace X] [BorelSpace Y] | |
| [CompactSpace X] | |
| lemma integerRectifiable_push_of_bilipschitz {k : β} {T : Functional X k} | |
| (hT : IntegerRectifiable T) {f : X β Y} {K J : ββ₯0} | |
| (hf : LipschitzWith K f) (hfJ : AntilipschitzWith J f) : | |
| IntegerRectifiable (pushCurrent f T) := by | |
| classical | |
| obtain β¨C,hdis,hC,hm,heqβ© := hT | |
| choose L U hL hU using fun i => (C i).bilipschitz | |
| let D : β β IntegerChart Y k := fun i => (C i).postcompose hf (hfJ.comp (hU i)) | |
| have hDaction (i : β) : (D i).action = pushCurrent f (C i).action := | |
| (C i).postcompose_action hf (hfJ.comp (hU i)) | |
| have hD (i : β) : IsMetricCurrent (D i).action := by | |
| rw [hDaction] | |
| exact pushCurrent_isMetricCurrent (hC i) hf | |
| refine β¨D,?_,hD,?_,?_β© | |
| Β· intro i j hij | |
| change Disjoint ((C i).postcompose hf _).image ((C j).postcompose hf _).image | |
| rw [(C i).postcompose_image,(C j).postcompose_image] | |
| exact (Set.disjoint_image_iff hfJ.injective).mpr (hdis hij) | |
| Β· apply (hm.mul_left ((K : β)^k)).of_nonneg_of_le | |
| Β· intro i | |
| exact mass_nonneg (D i).action | |
| Β· intro i | |
| rw [hDaction] | |
| exact mass_pushCurrent_le (hC i) hf | |
| Β· intro b Ο | |
| by_cases h : Admissible b Ο | |
| Β· rw [pushCurrent_apply f T h,heq] | |
| exact tsum_congr (fun i => by rw [hDaction,pushCurrent_apply f (C i).action h]) | |
| Β· rw [show pushCurrent f T b Ο = 0 from ite_eq_right h] | |
| symm | |
| calc | |
| (β' i, (D i).action b Ο) = β' (_i : β), (0 : β) := | |
| tsum_congr (fun i => (hD i).offDomain b Ο h) | |
| _ = 0 := tsum_zero | |
| lemma integral_push_of_bilipschitz {k : β} {T : Functional X k} | |
| (hT : IsIntegral k T) {f : X β Y} {K J : ββ₯0} | |
| (hf : LipschitzWith K f) (hfJ : AntilipschitzWith J f) : | |
| IsIntegral k (pushCurrent f T) := by | |
| cases k with | |
| | zero => exact β¨pushCurrent_isMetricCurrent hT.1 hf, | |
| integerRectifiable_push_of_bilipschitz hT.2 hf hfJβ© | |
| | succ k => | |
| refine β¨pushCurrent_isMetricCurrent hT.1 hf, | |
| integerRectifiable_push_of_bilipschitz hT.2.1 hf hfJ,?_,?_β© | |
| Β· rw [pushCurrent_boundarySucc T hf] | |
| exact pushCurrent_isMetricCurrent hT.2.2.1 hf | |
| Β· rw [pushCurrent_boundarySucc T hf] | |
| exact integerRectifiable_push_of_bilipschitz hT.2.2.2 hf hfJ | |
| end SharpIntegralFillings | |
| namespace SharpIntegralFillings | |
| universe u | |
| theorem IsCAT0.closedBall {X : Type u} [MetricSpace X] (hX : IsCAT0 X) | |
| (o : X) {R : β} (hR : 0 β€ R) : IsCAT0 (Metric.closedBall o R) := by | |
| obtain β¨s, hs, hd, hcβ© := hX | |
| have hconv (x y : Metric.closedBall o R) (t : β) (ht : t β Icc (0 : β) 1) : | |
| s x.val y.val t β Metric.closedBall o R := by | |
| have hh := hc x.val y.val o t 1 ht (by simp) | |
| rw [(hs x.val o).2] at hh | |
| have he : (t * dist x.val y.val - 1 * dist x.val o) ^ 2 + | |
| t * 1 * (dist y.val o ^ 2 - (dist x.val y.val - dist x.val o) ^ 2) = | |
| (1 - t) * dist x.val o ^ 2 + t * dist y.val o ^ 2 - | |
| t * (1 - t) * dist x.val y.val ^ 2 := by ring | |
| rw [he] at hh | |
| have hx := (sq_le_sqβ dist_nonneg hR).mpr x.property | |
| have hy := (sq_le_sqβ dist_nonneg hR).mpr y.property | |
| have hx' := mul_le_mul_of_nonneg_left hx (sub_nonneg.mpr ht.2) | |
| have hy' := mul_le_mul_of_nonneg_left hy ht.1 | |
| have hh' : dist (s x.val y.val t) o ^ 2 β€ R ^ 2 := by | |
| nlinarith [mul_nonneg (mul_nonneg ht.1 (sub_nonneg.mpr ht.2)) | |
| (sq_nonneg (dist x.val y.val))] | |
| exact (sq_le_sqβ dist_nonneg hR).mp hh' | |
| let clamp : β β β := fun t => max 0 (min 1 t) | |
| have hclamp (t : β) : clamp t β Icc (0 : β) 1 := by | |
| exact β¨le_max_left _ _, max_le (by norm_num) (min_le_left _ _)β© | |
| have hclamp_eq (t : β) (ht : t β Icc (0 : β) 1) : clamp t = t := by | |
| simp only [clamp, min_eq_right ht.2, max_eq_right ht.1] | |
| let sB : Metric.closedBall o R β Metric.closedBall o R β β β | |
| Metric.closedBall o R := fun x y t => β¨s x.val y.val (clamp t), hconv x y _ (hclamp t)β© | |
| refine β¨sB, ?_, ?_, ?_β© | |
| Β· intro x y | |
| constructor <;> apply Subtype.ext | |
| Β· change s x.val y.val (clamp 0) = x.val | |
| rw [hclamp_eq _ (by simp), (hs x.val y.val).1] | |
| Β· change s x.val y.val (clamp 1) = y.val | |
| rw [hclamp_eq _ (by simp), (hs x.val y.val).2] | |
| Β· intro x y u v hu hv | |
| change dist (s x.val y.val (clamp u)) (s x.val y.val (clamp v)) = _ | |
| rw [hclamp_eq _ hu, hclamp_eq _ hv] | |
| exact hd x.val y.val u v hu hv | |
| Β· intro p x y u v hu hv | |
| change dist (s p.val x.val (clamp u)) (s p.val y.val (clamp v)) ^ 2 β€ _ | |
| rw [hclamp_eq _ hu, hclamp_eq _ hv] | |
| exact hc p.val x.val y.val u v hu hv | |
| end SharpIntegralFillings | |
| end | |
| end OAI | |