Download lean/OAI/Geometry/CAT0Fillings/Charts/ImageRestriction.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 4.83 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/CAT0Fillings/Charts/ImageRestriction.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Geometry/CAT0Fillings/Charts/ImageRestriction.lean
-
curl -L -o ImageRestriction.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Geometry/CAT0Fillings/Charts/ImageRestriction.lean
4.83 kB
Lean 4 · 6
declarations statementsfull
noncomputable def restrictImage (E : Set X) (hE : MeasurableSet E) : IntegerChart X k := body · 1 line
C.restrictDomain (C.borel.inter (C.measurable_paramExtended hE)) inter_subset_leftlemma restrictImage_image (E : Set X) (hE : MeasurableSet E) :
(C.restrictImage E hE).image = C.image ∩ E := by proof · 9 lines
ext x
constructor
· rintro ⟨z,rfl⟩
exact ⟨⟨⟨z,z.property.1⟩,rfl⟩,by
change C.param ⟨z,z.property.1⟩ ∈ E
simpa only [mem_preimage,paramExtended,dite_eq_left z.property.1] using z.property.2⟩
· rintro ⟨⟨z,rfl⟩,hz⟩
refine ⟨⟨z,⟨z.property,?_⟩⟩,rfl⟩
simpa only [mem_preimage,paramExtended,dite_eq_left z.property] using hzlemma restrictImage_action (E : Set X) (hE : MeasurableSet E)
(hC : IsMetricCurrent C.action) :
(C.restrictImage E hE).action = BorelRestriction.restrictCurrent hC E := by proof · 25 lines
classical
let t := C.domain ∩ C.paramExtended ⁻¹' E
have ht : MeasurableSet t := C.borel.inter (C.measurable_paramExtended hE)
have hts : t ⊆ C.domain := inter_subset_left
have him : MeasurableSet (C.paramExtended '' t) := C.measurableSet_paramExtended_image ht hts
change (C.restrictDomain ht hts).action = _
rw [C.restrictDomain_action ht hts hC,←C.restrictMultiplicity_action hC him,
←C.restrictMultiplicity_action hC hE]
funext b π
by_cases hab : Admissible b π
· simp only [action,ite_eq_left hab]
apply integral_congr_ae
filter_upwards [ae_restrict_mem C.borel] with z hz
have hi : C.paramExtended z ∈ C.paramExtended '' t ↔ C.paramExtended z ∈ E := by
rw [C.paramExtended_mem_image_iff hts hz]
exact and_iff_right hz
change (↑((C.paramExtended ⁻¹' (C.paramExtended '' t)).indicator C.multiplicity z) : ℝ) *
C.scalar b z * C.jacobian π z =
↑((C.paramExtended ⁻¹' E).indicator C.multiplicity z) * C.scalar b z * C.jacobian π z
by_cases he : C.paramExtended z ∈ E
· rw [indicator_of_mem (show z ∈ C.paramExtended ⁻¹' (C.paramExtended '' t) from hi.mpr he),
indicator_of_mem (show z ∈ C.paramExtended ⁻¹' E from he)]
· rw [indicator_of_notMem (show z ∉ C.paramExtended ⁻¹' (C.paramExtended '' t) from mt hi.mp he),
indicator_of_notMem (show z ∉ C.paramExtended ⁻¹' E from he)]
· simp only [action,ite_eq_right hab]lemma restrictImage_isMetricCurrent (E : Set X) (hE : MeasurableSet E)
(hC : IsMetricCurrent C.action) : IsMetricCurrent (C.restrictImage E hE).action := by proof · 2 lines
rw [C.restrictImage_action E hE hC]
exact BorelRestriction.restrictCurrent_isMetricCurrent hC hElemma restrictImage_mass_le (E : Set X) (hE : MeasurableSet E)
(hC : IsMetricCurrent C.action) : mass (C.restrictImage E hE).action ≤ mass C.action := by proof · 3 lines
rw [C.restrictImage_action E hE hC,BorelRestriction.restriction_mass hC hE,
←MassMeasure.currentMassMeasure_total hC]
exact measureReal_mono (subset_univ E)lemma restrictCurrent_image_eq (hC : IsMetricCurrent C.action) {E : Set X}
(hE : MeasurableSet E) (hCE : C.image ⊆ E) :
BorelRestriction.restrictCurrent hC E = C.action := by proof · 13 lines
classical
rw [←C.restrictMultiplicity_action hC hE]
funext b π
by_cases hab : Admissible b π
· simp only [action,ite_eq_left hab]
apply integral_congr_ae
filter_upwards [ae_restrict_mem C.borel] with z hz
change z ∈ C.domain at hz
have hi : C.paramExtended z ∈ E := hCE ⟨⟨z,hz⟩,by simp only [paramExtended,dite_eq_left hz]⟩
change (↑((C.paramExtended ⁻¹' E).indicator C.multiplicity z) : ℝ) *
C.scalar b z * C.jacobian π z = _
rw [indicator_of_mem (show z ∈ C.paramExtended ⁻¹' E from hi)]
· simp only [action,ite_eq_right hab]Outline