Download lean/OAI/Geometry/CAT0Fillings/Charts/Postcompose.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.53 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/CAT0Fillings/Charts/Postcompose.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Geometry/CAT0Fillings/Charts/Postcompose.lean
-
curl -L -o Postcompose.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/CAT0Fillings/Charts/Postcompose.lean
2.53 kB
Lean 4 · 5
declarations statementsfull
noncomputable def postcompose (hf : LipschitzWith K f)
(hJ : AntilipschitzWith J (f ∘ C.param)) : IntegerChart Y k where body · 9 lines
domain := C.domain
borel := C.borel
bounded := C.bounded
param := f ∘ C.param
bilipschitz := by
obtain ⟨L,U,hL,_⟩ := C.bilipschitz
exact ⟨K*L,J,hf.comp hL,hJ⟩
multiplicity := C.multiplicity
integrable := C.integrablelemma postcompose_scalar (hf : LipschitzWith K f)
(hJ : AntilipschitzWith J (f ∘ C.param)) (b : Y → ℝ) :
(C.postcompose hf hJ).scalar b = C.scalar (b ∘ f) := by proof · 4 lines
classical
funext x
change (if h : x ∈ C.domain then b (f (C.param ⟨x,h⟩)) else 0) = _
rfllemma postcompose_jacobian (hf : LipschitzWith K f)
(hJ : AntilipschitzWith J (f ∘ C.param)) (π : Fin k → Y → ℝ) :
(C.postcompose hf hJ).jacobian π = C.jacobian (fun i => π i ∘ f) := by proof · 1 line
rfl
lemma postcompose_action (hf : LipschitzWith K f)
(hJ : AntilipschitzWith J (f ∘ C.param)) :
(C.postcompose hf hJ).action = pushCurrent f C.action := by proof · 9 lines
classical
funext b π
by_cases h : Admissible b π
· rw [pushCurrent_apply f C.action h,action,ite_eq_left h,
action,ite_eq_left (admissible_comp h hf)]
change (∫ x in C.domain, (C.multiplicity x : ℝ)*
(C.postcompose hf hJ).scalar b x*(C.postcompose hf hJ).jacobian π x) = _
rw [C.postcompose_scalar hf hJ,C.postcompose_jacobian hf hJ]
· simp only [action,pushCurrent,ite_eq_right h]lemma postcompose_image (hf : LipschitzWith K f)
(hJ : AntilipschitzWith J (f ∘ C.param)) :
(C.postcompose hf hJ).image = f '' C.image := by proof · 1 line
exact range_comp f C.paramOutline