math / data /lean /OAI /MeasureTheory /Falconer /Geometry /CommonUnbalancedProjections.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
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