Download data/lean/OAI/Geometry/CAT0Fillings/Currents/CycleDifference.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.86 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CAT0Fillings/Currents/CycleDifference.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CAT0Fillings/Currents/CycleDifference.lean
-
curl -L -o CycleDifference.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CAT0Fillings/Currents/CycleDifference.lean
4.86 kB
| import Mathlib | |
| import OAI.Geometry.CAT0Fillings.Currents.CycleCalculus | |
| namespace OAI | |
| section | |
| section | |
| open Filter Set | |
| open Set Filter MeasureTheory TopologicalSpace | |
| open scoped Topology ENNReal | |
| open Set MeasureTheory | |
| open scoped RealInnerProductSpace | |
| open Matrix | |
| open scoped RealInnerProductSpace MatrixOrder | |
| open Set Filter MeasureTheory | |
| open MeasureTheory Filter Set Metric | |
| open scoped Topology Pointwise NNReal | |
| open Set MeasureTheory Measure Filter Module | |
| open Set Filter MeasureTheory Measure ContinuousLinearMap | |
| open scoped Topology Convolution NNReal | |
| open Set Filter MeasureTheory Measure Metric | |
| open scoped Topology ContDiff | |
| open Set Filter Metric | |
| open scoped Topology NNReal | |
| open Set MeasureTheory Filter | |
| open scoped Topology ENNReal NNReal | |
| namespace CAT0Fillings | |
| open Set MeasureTheory Filter Matrix | |
| open scoped Topology NNReal ENNReal | |
| variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [CompactSpace X] | |
| local notation "BL" => boundedLipSubmodule (X := X) | |
| noncomputable def mixedTuple {ΞΉ : Type*} [LinearOrder ΞΉ] {E : ΞΉ β Type*} | |
| (a b : β i, E i) (i : ΞΉ) : β j, E j := fun j => if j < i then a j else b j | |
| lemma MultilinearMap.sub_eq_sum_update {ΞΉ : Type*} [Fintype ΞΉ] [LinearOrder ΞΉ] | |
| {E : ΞΉ β Type*} [β i, AddCommGroup (E i)] [β i, Module β (E i)] | |
| (M : MultilinearMap β E β) (a b : β i, E i) : | |
| M a - M b = β i, M (Function.update (mixedTuple a b i) i (a i-b i)) := by | |
| have h := M.map_sub_map_piecewise a b Finset.univ | |
| simp only [Finset.piecewise_univ,Finset.mem_univ,true_implies] at h | |
| rw [h] | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| congr 1 | |
| funext j | |
| by_cases hji : j=i | |
| Β· subst j | |
| simp | |
| Β· by_cases hj : j < i <;> simp [mixedTuple,hj,hji,Ne.symm hji] | |
| lemma IsMetricCurrent.cycle_difference {k : β} {T : Functional X (k+1)} | |
| (hcur : IsMetricCurrent T) (hT : IntegerRectifiable T) (hz : IsCycle T) | |
| (a b : Fin (k+2) β BL) : | |
| hcur.fullMultilinear a - hcur.fullMultilinear b = | |
| β i, (-1:β)^i.val * T (a i-b i) | |
| (fun j => ((i.removeNth (mixedTuple a b i)) j : X β β)) := by | |
| rw [MultilinearMap.sub_eq_sum_update] | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| exact hcur.fullMultilinear_cycle_update hT hz _ _ _ | |
| lemma IsMetricCurrent.cycle_difference_bound {k : β} {T : Functional X (k+1)} | |
| (hcur : IsMetricCurrent T) (hT : IntegerRectifiable T) (hz : IsCycle T) | |
| (a b : Fin (k+2) β BL) (K : ββ₯0) | |
| (ha : β i, LipschitzWith K (a i : X β β)) | |
| (hb : β i, LipschitzWith K (b i : X β β)) | |
| (D : β) (hd : β i x, |(a i : X β β) x - (b i : X β β) x| β€ D) : | |
| |hcur.fullMultilinear a - hcur.fullMultilinear b| β€ | |
| ((k+2:β):β) * (K:β)^(k+1) * mass T * D := by | |
| rw [hcur.cycle_difference hT hz] | |
| calc | |
| |β i, (-1:β)^i.val * T (a i-b i) | |
| (fun j => ((i.removeNth (mixedTuple a b i)) j : X β β))| β€ | |
| β i : Fin (k+2), (K:β)^(k+1) * mass T * D := by | |
| refine (Finset.abs_sum_le_sum_abs _ _).trans (Finset.sum_le_sum fun i _ => ?_) | |
| simp only [abs_mul,abs_pow,abs_neg,abs_one,one_pow,one_mul] | |
| have H := hcur.mass_bound_uniform (a i-b i).property (fun _ => K) | |
| (fun j => show LipschitzWith K | |
| ((i.removeNth (mixedTuple a b i)) j : X β β) from by | |
| dsimp [Fin.removeNth,mixedTuple] | |
| split_ifs <;> first | exact ha _ | exact hb _) | |
| (hd i) | |
| simpa only [Finset.prod_const,Finset.card_univ,Fintype.card_fin,mul_assoc, | |
| Submodule.coe_sub,Pi.sub_apply,mul_comm D] using H | |
| _ = _ := by simp [mul_assoc] | |
| end CAT0Fillings | |
| namespace CAT0Fillings | |
| open Set MeasureTheory Filter Matrix | |
| open scoped Topology NNReal ENNReal | |
| variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] [CompactSpace X] | |
| local notation "BL" => boundedLipSubmodule (X := X) | |
| lemma IsMetricCurrent.cycle_time_lipschitz {k : β} {T : Functional X (k+1)} | |
| (hcur : IsMetricCurrent T) (hT : IntegerRectifiable T) (hz : IsCycle T) | |
| (V : β β Fin (k+2) β BL) (K : ββ₯0) | |
| (hx : β t i, LipschitzWith K (V t i : X β β)) | |
| (ht : β i x, LipschitzWith K (fun t => (V t i : X β β) x)) : | |
| LipschitzWith (β¨((k+2:β):β) * (K:β)^(k+1) * mass T * (K:β),by | |
| exact mul_nonneg (mul_nonneg (mul_nonneg (by positivity) (by positivity)) (mass_nonneg T)) K.coe_nonnegβ© : ββ₯0) (fun t => hcur.fullMultilinear (V t)) := by | |
| apply lipschitzWith_iff_dist_le_mul.mpr | |
| intro t s | |
| have H := hcur.cycle_difference_bound hT hz (V t) (V s) K (hx t) (hx s) | |
| ((K:β)*dist t s) (fun i x => by simpa only [Real.dist_eq] using (ht i x).dist_le_mul t s) | |
| change |hcur.fullMultilinear (V t) - hcur.fullMultilinear (V s)| β€ | |
| ((((k+2:β):β) * (K:β)^(k+1) * mass T) * (K:β)) * dist t s | |
| simpa only [mul_assoc] using H | |
| end CAT0Fillings | |
| end | |
| end | |
| end OAI | |