Download data/lean/OAI/MeasureTheory/Falconer/Geometry/CommonUnbalancedProjections.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.68 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Geometry/CommonUnbalancedProjections.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Geometry/CommonUnbalancedProjections.lean
-
curl -L -o CommonUnbalancedProjections.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Geometry/CommonUnbalancedProjections.lean
3.68 kB
| import OAI.MeasureTheory.Falconer.Geometry.UnbalancedRatioNormalization | |
| namespace OAI | |
| /-! Common reference projection bounds with an explicit cardinality-ratio | |
| loss. This avoids padding the actual planar coordinate sets. -/ | |
| namespace Falconer | |
| open scoped Pointwise | |
| theorem common_unbalanced_ratio_projections {Ξ± : Type*} {Ξ΄ Ο K Q : β} | |
| (hΞ΄ : 0 < Ξ΄) (hΟ : 0 < Ο) (hK : 0 β€ K) (hQ : 1 β€ Q) | |
| (I : Finset Ξ±) (X Y : Finset β) (A B : Ξ± β Finset β) (c : Ξ± β β) | |
| (hI : I.Nonempty) (hX : X.Nonempty) (hY : Y.Nonempty) (hXY : (X.card:β) β€ Q*(Y.card:β)) | |
| (hXsep : β x β X, β y β X, x β y β Ξ΄ β€ |x-y|) | |
| (hYsep : β x β Y, β y β Y, x β y β Ξ΄ β€ |x-y|) | |
| (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 : β)) | |
| (M : β) (hc : β i β I, c i β 0 β§ |c i| β€ M β§ |(c i)β»ΒΉ| β€ M) | |
| (hproj : β i β I, ((scalarCells Ξ΄ (A i+(B i).image (fun y => c i*y))).card : β) β€ | |
| K*(X.card : β)) : | |
| β iβ β I, β J β I, | |
| Ο^4*(I.card : β) β€ 2*(J.card : β) β§ (A iβ).Nonempty β§ | |
| ((scalarCells Ξ΄ (A iβ+A iβ)).card : β) β€ | |
| (1024*(2*M+3)^2*K^4*Q^2/Ο^6)*(scalarCells Ξ΄ (A iβ)).card β§ | |
| β j β J, | |
| ((scalarCells Ξ΄ (A iβ-(A iβ).image (fun x => (c j/c iβ)*x))).card : β) β€ | |
| (4096*(2*(M*M)+3)*(2*M+3)^2*K^4*Q^2/Ο^13)*(scalarCells Ξ΄ (A iβ)).card := by | |
| classical | |
| obtain β¨iβ,hiβ,J,hJI,hJ,hrawβ© := common_small_ratio_projections hΞ΄ hΟ | |
| (by positivity : 0 β€ K*(X.card : β)) I X Y A B c hI hX hY hXsep hYsep | |
| hA hB hsizeA hsizeB M hc hproj | |
| have hN : 0 < (X.card : β) := Nat.cast_pos.mpr (Finset.card_pos.mpr hX) | |
| have hAi0 : 0 < ((A iβ).card : β) := (mul_pos hΟ hN).trans_le (hsizeA iβ hiβ) | |
| have hAi : (A iβ).Nonempty := Finset.card_pos.mp (Nat.cast_pos.mp hAi0) | |
| have hAc : (scalarCells Ξ΄ (A iβ)).card = (A iβ).card := | |
| Finset.card_image_of_injOn (scalarCells_injective hΞ΄ | |
| (fun x hx y hy hxy => hXsep x (hA iβ hiβ hx) y (hA iβ hiβ hy) hxy)) | |
| have hP : 0 < (Y.card:β) := Nat.cast_pos.mpr (Finset.card_pos.mpr hY) | |
| have hQpos : 0 < Q := zero_lt_one.trans_le hQ | |
| have hbase : ((scalarCells Ξ΄ (A iβ+(B iβ).image (fun y => c iβ*y))).card : β) β€ | |
| (K/Ο)*(scalarCells Ξ΄ (A iβ)).card := by | |
| apply (hproj iβ hiβ).trans | |
| rw [hAc] | |
| have hh := mul_le_mul_of_nonneg_left (hsizeA iβ hiβ) (div_nonneg hK hΟ.le) | |
| calc | |
| _ = (K/Ο)*(Ο*(X.card : β)) := by field_simp | |
| _ β€ _ := hh | |
| have hBsize : (Ο/Q)*((scalarCells Ξ΄ (A iβ)).card : β) β€ ((B iβ).card : β) := by | |
| rw [hAc] | |
| have hAX : ((A iβ).card:β) β€ (X.card:β) := | |
| Nat.cast_le.mpr (Finset.card_le_card (hA iβ hiβ)) | |
| have hh := mul_le_mul_of_nonneg_left (hAX.trans hXY) (show 0 β€ Ο/Q by positivity) | |
| calc | |
| _ β€ (Ο/Q)*(Q*(Y.card:β)) := hh | |
| _ = Ο*(Y.card:β) := by field_simp | |
| _ β€ _ := hsizeB iβ hiβ | |
| have hd := scalar_doubling_from_projection hΞ΄ (hc iβ hiβ).1 (div_pos hΟ hQpos) (A iβ) (B iβ) | |
| hAi M (hc iβ hiβ).2.2 | |
| (fun x hx y hy hxy => hYsep x (hB iβ hiβ hx) y (hB iβ hiβ hy) hxy) hBsize hbase | |
| refine β¨iβ,hiβ,J,hJI,hJ,hAi,?_,?_β© | |
| Β· convert hd using 1 | |
| field_simp | |
| Β· intro j hj | |
| have hb := hraw j hj | |
| have hh := normalize_unbalanced_ratio | |
| (by positivity : 0 β€ (4096 : β)*(2*(M*M)+3)*(2*M+3)^2) | |
| hΟ hN hP hXY (hsizeA iβ hiβ) hb | |
| rw [hAc] | |
| exact hh | |
| end Falconer | |
| end OAI | |