Download data/lean/OAI/MeasureTheory/Falconer/Geometry/CommonRectangles.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.09 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Geometry/CommonRectangles.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Geometry/CommonRectangles.lean
-
curl -L -o CommonRectangles.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Geometry/CommonRectangles.lean
3.09 kB
| import OAI.MeasureTheory.Falconer.Estimates.FiniteFamilyOverlap | |
| import Mathlib.Data.Finset.Prod | |
| namespace OAI | |
| /-! Simultaneous large intersections for both factors of a family of | |
| rectangles. The reference rectangle is an actual member of the family. -/ | |
| namespace Falconer | |
| theorem common_rectangular_subsets {Ξ± : Type*} | |
| (I : Finset Ξ±) (X Y : Finset β) (A B : Ξ± β Finset β) | |
| (hI : I.Nonempty) (hX : X.Nonempty) (hY : Y.Nonempty) | |
| {Ο : β} (hΟ : 0 < Ο) | |
| (hA : β i β I, A i β X) (hB : β i β I, B i β Y) | |
| (hsizeA : β i β I, Ο*(X.card : β) β€ ((A i).card : β)) | |
| (hsizeB : β i β I, Ο*(Y.card : β) β€ ((B i).card : β)) : | |
| β iβ β I, β J β I, | |
| Ο^4*(I.card : β) β€ 2*(J.card : β) β§ | |
| β j β J, | |
| Ο^4*(X.card : β)/2 β€ ((A iβ β© A j).card : β) β§ | |
| Ο^4*(Y.card : β)/2 β€ ((B iβ β© B j).card : β) := by | |
| classical | |
| have hXpos : 0 < (X.card : β) := Nat.cast_pos.mpr (Finset.card_pos.mpr hX) | |
| have hYpos : 0 < (Y.card : β) := Nat.cast_pos.mpr (Finset.card_pos.mpr hY) | |
| let R := fun i => (A i) ΓΛ’ (B i) | |
| have hRsub (i) (hi : i β I) : R i β X ΓΛ’ Y := by | |
| intro p hp | |
| obtain β¨ha,hbβ© := Finset.mem_product.mp hp | |
| exact Finset.mem_product.mpr β¨hA i hi ha,hB i hi hbβ© | |
| have hRsize (i) (hi : i β I) : Ο^2*(X.card : β)*(Y.card : β) β€ ((R i).card : β) := by | |
| have hh := mul_le_mul (hsizeA i hi) (hsizeB i hi) | |
| (mul_pos hΟ hYpos).le (Nat.cast_nonneg _) | |
| simpa only [R,Finset.card_product,Nat.cast_mul,pow_two,mul_assoc,mul_left_comm,mul_comm] using hh | |
| obtain β¨iβ,hiβ,J,hJI,hJ,hrectβ© := finite_family_common_row I (X ΓΛ’ Y) R | |
| hI (hX.product hY) (by positivity : 0 < Ο^2*(X.card : β)*(Y.card : β)) hRsub hRsize | |
| have hn : (Ο^2*(X.card : β)*(Y.card : β))^2/((X.card : β)*(Y.card : β)) = | |
| Ο^4*(X.card : β)*(Y.card : β) := by | |
| field_simp | |
| have hnorm : (Ο^2*(X.card : β)*(Y.card : β))^2/(2*((X.card : β)*(Y.card : β))) = | |
| Ο^4*(X.card : β)*(Y.card : β)/2 := by | |
| field_simp | |
| simp only [Finset.card_product,Nat.cast_mul,hn] at hJ | |
| refine β¨iβ,hiβ,J,hJI,?_,?_β© | |
| Β· apply (mul_le_mul_iff_leftβ (mul_pos hXpos hYpos)).1 | |
| convert hJ using 1 <;> ring | |
| Β· intro j hj | |
| have hh := hrect j hj | |
| simp only [R,Finset.product_inter_product,Finset.card_product,Nat.cast_mul,hnorm] at hh | |
| have ha : ((A iβ β© A j).card : β) β€ (X.card : β) := | |
| Nat.cast_le.mpr (Finset.card_le_card (Finset.inter_subset_left.trans (hA iβ hiβ))) | |
| have hb : ((B iβ β© B j).card : β) β€ (Y.card : β) := | |
| Nat.cast_le.mpr (Finset.card_le_card (Finset.inter_subset_left.trans (hB iβ hiβ))) | |
| constructor | |
| Β· have hx := hh.trans (mul_le_mul_of_nonneg_left hb (Nat.cast_nonneg _)) | |
| apply (mul_le_mul_iff_leftβ hYpos).1 | |
| convert hx using 1 | |
| ring | |
| Β· have hy := hh.trans (mul_le_mul_of_nonneg_right ha (Nat.cast_nonneg _)) | |
| apply (mul_le_mul_iff_leftβ hXpos).1 | |
| convert hy using 1 <;> ring | |
| end Falconer | |
| end OAI | |