cfahlgren1's picture
download
raw
3.49 kB
import Mathlib
import OAI.Combinatorics.RamseyFive.Geometry.ProjectiveEquiv
namespace OAI
open MeasureTheory ProbabilityTheory
open scoped BigOperators NNReal
namespace SharpRamseyFive.PencilRegularity
open Module SharpRamseyFive.ProjectiveIncidence
open scoped BigOperators LinearAlgebra.Projectivization Classical
lemma large_value_count {I : Type*} [Fintype I] (f : I → ℝ) (μ h : ℝ)
(hh : 0 ≤ h) (hμ : μ ≤ h/2) :
((Finset.univ.filter fun i => h ≤ f i).card:ℝ) * h^2 ≤
4*∑ i,(f i-μ)^2 := by
let E := Finset.univ.filter fun i => h ≤ f i
have hb (i : I) (hi : i ∈ E) : h^2 ≤ 4*(f i-μ)^2 := by
have hf := (Finset.mem_filter.mp hi).2
have hs : h/2 ≤ f i-μ := by linarith
nlinarith [sq_nonneg (f i-μ-h/2)]
have hs := Finset.sum_le_sum (s:=E) hb
simp only [Finset.sum_const,nsmul_eq_mul,← Finset.mul_sum] at hs
apply hs.trans
apply mul_le_mul_of_nonneg_left _ (by norm_num)
exact Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ E)
(fun i _ _ => sq_nonneg _)
variable {K V : Type*} [Field K] [AddCommGroup V] [Module K V]
[Finite K] [FiniteDimensional K V]
[Fintype (ℙ K V)] [Fintype (ℙ K (Module.Dual K V))]
theorem clipped_pencil_count {d : ℕ} (hdim : finrank K V = d+1) (hd : 1 ≤ d)
(w : ℙ K (Module.Dual K V) → ℝ) (hw0 : ∀ b,0 ≤ w b) (hw1 : ∀ b,w b ≤ 1)
(h : ℝ) (hh : 0 ≤ h)
(hmean : ((Q (Nat.card K) (d-1):ℝ)/Q (Nat.card K) d)*(∑ b,w b) ≤ h/2) :
((Finset.univ.filter fun a => h ≤ weightOnPencil w a).card:ℝ)*h^2 ≤
4*(Nat.card K:ℝ)^(d-1)*(∑ b,w b) := by
have hc := large_value_count (weightOnPencil w) _ h hh hmean
have hv := pencil_variance hdim hd w
have hn : (∑ b,w b^2) ≤ ∑ b,w b := Finset.sum_le_sum fun b _ => by
nlinarith [mul_nonneg (hw0 b) (sub_nonneg.mpr (hw1 b))]
calc
_ ≤ 4*∑ a,(weightOnPencil w a -
((Q (Nat.card K) (d-1):ℝ)/Q (Nat.card K) d)*(∑ b,w b))^2 := hc
_ ≤ 4*((Nat.card K:ℝ)^(d-1)*∑ b,w b^2) := mul_le_mul_of_nonneg_left hv (by norm_num)
_ ≤ 4*((Nat.card K:ℝ)^(d-1)*∑ b,w b) :=
mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hn (by positivity)) (by norm_num)
_ = _ := by ring
theorem family_irregular_count {d : ℕ} (hdim : finrank K V = d+1) (hd : 1 ≤ d)
{J : Type*} [Fintype J] (w : J → ℙ K (Module.Dual K V) → ℝ)
(hw0 : ∀ j b,0 ≤ w j b) (hw1 : ∀ j b,w j b ≤ 1) (h : ℝ) (hh : 0 ≤ h)
(hmean : ∀ j, ((Q (Nat.card K) (d-1):ℝ)/Q (Nat.card K) d)*(∑ b,w j b) ≤ h/2) :
((Finset.univ.filter fun a => ∃ j,h ≤ weightOnPencil (w j) a).card:ℝ)*h^2 ≤
4*(Nat.card K:ℝ)^(d-1)*(∑ j,∑ b,w j b) := by
let E : J → Finset (ℙ K V) := fun j => Finset.univ.filter fun a => h ≤ weightOnPencil (w j) a
have heq : (Finset.univ.filter fun a => ∃ j,h ≤ weightOnPencil (w j) a) =
Finset.univ.biUnion E := by ext a; simp [E]
rw [heq]
have hc : ((Finset.univ.biUnion E).card:ℝ) ≤ ∑ j,((E j).card:ℝ) := by
exact_mod_cast Finset.card_biUnion_le (s:=Finset.univ) (t:=E)
calc
_ ≤ (∑ j,((E j).card:ℝ))*h^2 := mul_le_mul_of_nonneg_right hc (sq_nonneg h)
_ = ∑ j,((E j).card:ℝ)*h^2 := Finset.sum_mul ..
_ ≤ ∑ j,4*(Nat.card K:ℝ)^(d-1)*(∑ b,w j b) := Finset.sum_le_sum fun j _ =>
clipped_pencil_count hdim hd (w j) (hw0 j) (hw1 j) h hh (hmean j)
_ = _ := (Finset.mul_sum ..).symm
end SharpRamseyFive.PencilRegularity
end OAI

Xet Storage Details

Size:
3.49 kB
·
Xet hash:
1fa38b62b6a273b3bd756b22cde68073838a02dc16e6df380ad816ed60066c1c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.