math / data /lean /OAI /Geometry /Cannon /Modulus /ModulusSerialBound.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.76 kB
import Mathlib
import OAI.Geometry.Cannon.Modulus.ModulusEnergy
namespace OAI
section
section
section
section
noncomputable section
open scoped InnerProductSpace
open Set
namespace CannonCells
open Set CannonDuality
variable {X ΞΉ J : Type*} [Fintype ΞΉ] [Fintype J]
theorem modulus_serial_bound [Nonempty J]
(C : ΞΉ β†’ Set X) (F : Set (Set X)) (H : J β†’ Set (Set X))
(w : J β†’ Weights ΞΉ) (hw : βˆ€ j, Admissible (familyVectors C (H j) : Set (Weights ΞΉ)) (w j))
(horth : βˆ€ i j k, j β‰  k β†’ w j i*w k i=0)
(hcross : βˆ€ A ∈ F, βˆ€ j, βˆƒ B ∈ H j, B βŠ† A) :
modulus C F ≀ (βˆ‘ j, β€–w jβ€–^2)/(Fintype.card J : ℝ)^2 := by
classical
have hcard : 0 < (Fintype.card J : ℝ) := by exact_mod_cast Fintype.card_pos
let W : Weights ΞΉ := (Fintype.card J : ℝ)⁻¹ β€’ βˆ‘ j, w j
have hw' (j : J) := (admissible_iff C (H j) (w j)).mp (hw j)
have hpoint (i : ΞΉ) : W i=(Fintype.card J : ℝ)⁻¹ * βˆ‘ j, w j i := by simp [W]
have hW : Admissible (familyVectors C F : Set (Weights ΞΉ)) W := by
rw [admissible_iff]
refine ⟨?_,?_⟩
Β· intro i
rw [hpoint]
exact mul_nonneg (inv_nonneg.mpr hcard.le) (Finset.sum_nonneg (fun j _ => (hw' j).1 i))
Β· intro A hA
have hsum (j : J) : 1 ≀ βˆ‘ i ∈ indices C A, w j i := by
obtain ⟨B,hB,hBA⟩ := hcross A hA j
exact ((hw' j).2 B hB).trans (Finset.sum_le_sum_of_subset_of_nonneg
(indices_mono C hBA) (fun i _ _ => (hw' j).1 i))
have hh := Finset.sum_le_sum (s:=Finset.univ) (fun j _ => hsum j)
simp only [Finset.sum_const,Finset.card_univ,nsmul_eq_mul,mul_one] at hh
calc
1 = (Fintype.card J : ℝ)⁻¹ * Fintype.card J := (inv_mul_cancelβ‚€ (ne_of_gt hcard)).symm
_ ≀ (Fintype.card J : ℝ)⁻¹ * βˆ‘ j, βˆ‘ i ∈ indices C A, w j i :=
mul_le_mul_of_nonneg_left hh (inv_nonneg.mpr hcard.le)
_ = βˆ‘ i ∈ indices C A, W i := by
simp only [hpoint,Finset.mul_sum]
rw [Finset.sum_comm]
have hsquare (i : ΞΉ) : (βˆ‘ j, w j i)^2=βˆ‘ j, (w j i)^2 := by
rw [pow_two,Finset.sum_mul_sum]
apply Finset.sum_congr rfl
intro j hj
rw [Finset.sum_eq_single j]
Β· rw [pow_two]
Β· intro k hk hkj
exact horth i j k hkj.symm
Β· simp
have henergy : β€–Wβ€–^2=(βˆ‘ j, β€–w jβ€–^2)/(Fintype.card J : ℝ)^2 := by
rw [EuclideanSpace.real_norm_sq_eq]
simp only [hpoint,mul_pow,hsquare]
rw [← Finset.mul_sum]
simp only [EuclideanSpace.real_norm_sq_eq]
rw [Finset.sum_comm]
simp only [div_eq_mul_inv,inv_pow,mul_comm]
exact (modulus_le_energy C F W hW).trans henergy.le
theorem modulus_serial_uniform [Nonempty J]
(C : ΞΉ β†’ Set X) (F : Set (Set X)) (H : J β†’ Set (Set X))
(w : J β†’ Weights ΞΉ) (hw : βˆ€ j, Admissible (familyVectors C (H j) : Set (Weights ΞΉ)) (w j))
(horth : βˆ€ i j k, j β‰  k β†’ w j i*w k i=0)
(hcross : βˆ€ A ∈ F, βˆ€ j, βˆƒ B ∈ H j, B βŠ† A)
{B : ℝ} (henergy : βˆ€ j, β€–w jβ€–^2 ≀ B) :
modulus C F ≀ B/(Fintype.card J : ℝ) := by
have hcard : 0 < (Fintype.card J : ℝ) := by exact_mod_cast Fintype.card_pos
calc
_ ≀ (βˆ‘ j, β€–w jβ€–^2)/(Fintype.card J : ℝ)^2 :=
modulus_serial_bound C F H w hw horth hcross
_ ≀ ((Fintype.card J : ℝ)*B)/(Fintype.card J : ℝ)^2 := by
apply div_le_div_of_nonneg_right _ (sq_nonneg _)
simpa only [Finset.sum_const,Finset.card_univ,nsmul_eq_mul] using
Finset.sum_le_sum (s:=Finset.univ) (fun j _ => henergy j)
_ = _ := by field_simp
end CannonCells
end
end
section
noncomputable section
namespace CannonCapacity
open Set Metric Finset
attribute [local instance] Classical.propDecidable
end CannonCapacity
end
end
end
end
end
end OAI