Download data/lean/OAI/Geometry/CAT0Fillings/Currents/CycleCalculus.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.08 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CAT0Fillings/Currents/CycleCalculus.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CAT0Fillings/Currents/CycleCalculus.lean
-
curl -L -o CycleCalculus.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CAT0Fillings/Currents/CycleCalculus.lean
4.08 kB
| import Mathlib | |
| import OAI.Geometry.CAT0Fillings.Currents.ProductRule | |
| import OAI.Geometry.CAT0Fillings.Currents.AffineCalculus | |
| 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) | |
| lemma Foundations.IntegerRectifiable.cycle_update {k : β} {T : Functional X (k+1)} | |
| (hT : IntegerRectifiable T) (hz : IsCycle T) {b f : X β β} | |
| (hb : BoundedLip b) (hf : BoundedLip f) (Ο : Fin (k+1) β X β β) | |
| (hΟ : β i, β K : ββ₯0, LipschitzWith K (Ο i)) (j : Fin (k+1)) : | |
| T b (Function.update Ο j f) = | |
| (-1:β)^(j.val+1) * T f (Fin.cons b (j.removeNth Ο)) := by | |
| have hp := Foundations.IntegerRectifiable.apply_permute hT | |
| (Foundations.admissible_vecCons hb hf.1 (fun i => hΟ (j.succAbove i))) j.cycleRange | |
| change T b (Fin.cons f (j.removeNth Ο) β j.cycleRange) = _ at hp | |
| rw [Fin.cons_comp_cycleRange,Fin.insertNth_removeNth,Fin.sign_cycleRange] at hp | |
| rw [hp,Foundations.IntegerRectifiable.cycle_product_rule hT hz hb hf _ (fun i => hΟ (j.succAbove i))] | |
| change ((((-1:β€Λ£)^j.val : β€Λ£) : β€) : β) * | |
| (-T f (Fin.cons b (j.removeNth Ο))) = _ | |
| simp [pow_succ] | |
| omit [MeasurableSpace X] [BorelSpace X] [CompactSpace X] in | |
| lemma fin_removeNth_succ {Ξ± : Type*} {k : β} (v : Fin (k+2) β Ξ±) (j : Fin (k+1)) : | |
| j.succ.removeNth v = Fin.cons (v 0) (j.removeNth (fun i => v i.succ)) := by | |
| funext i | |
| refine Fin.cases ?_ (fun l => ?_) i | |
| Β· simp [Fin.removeNth_apply] | |
| Β· simp [Fin.removeNth_apply] | |
| lemma IsMetricCurrent.fullMultilinear_cycle_update {k : β} {T : Functional X (k+1)} | |
| (hcur : IsMetricCurrent T) (hT : IntegerRectifiable T) (hz : IsCycle T) | |
| (v : Fin (k+2) β BL) (i : Fin (k+2)) (g : BL) : | |
| hcur.fullMultilinear (Function.update v i g) = | |
| (-1:β)^i.val * T g (fun j => (i.removeNth v j : X β β)) := by | |
| refine Fin.cases ?_ (fun j => ?_) i | |
| Β· simp only [IsMetricCurrent.fullMultilinear,MultilinearMap.mk'_apply, | |
| Function.update_self,bl_update_tail_zero,Fin.removeNth_zero] | |
| simp only [Fin.val_zero,pow_zero,one_mul] | |
| rfl | |
| Β· change T ((Function.update v j.succ g) 0) | |
| (fun l => ((Function.update v j.succ g) l.succ : X β β)) = _ | |
| rw [Function.update_of_ne (Fin.succ_ne_zero j).symm,bl_update_tail_succ] | |
| rw [Foundations.IntegerRectifiable.cycle_update hT hz (v 0).property g.property _ | |
| (fun l => (v l.succ).property.1),fin_removeNth_succ] | |
| congr 2 | |
| funext l | |
| refine Fin.cases ?_ (fun m => ?_) l <;> rfl | |
| lemma IsMetricCurrent.hasDeriv_cycleAffine {k : β} {T : Functional X (k+1)} | |
| (hcur : IsMetricCurrent T) (hT : IntegerRectifiable T) (hz : IsCycle T) | |
| (f g : Fin (k+2) β BL) (t : β) : | |
| HasDerivAt (fun s => T (f 0 + s β’ g 0) | |
| (fun i => (f i.succ + s β’ g i.succ : BL))) | |
| (β i, (-1:β)^i.val * T (g i) | |
| (fun j => ((i.removeNth (fun l => f l + t β’ g l)) j : X β β))) t := by | |
| have h := hcur.hasDeriv_fullAffine f g t | |
| convert h using 1 | |
| Β· rfl | |
| Β· symm | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| exact hcur.fullMultilinear_cycle_update hT hz _ i _ | |
| end CAT0Fillings | |
| namespace CAT0Fillings | |
| attribute [local instance] Classical.propDecidable | |
| attribute [local instance] Classical.propDecidable | |
| end CAT0Fillings | |
| end | |
| end | |
| end OAI | |