cfahlgren1's picture
download
raw
6.64 kB
import OAI.Analysis.LipschitzHilbert.Estimates.TopWeight
import Mathlib.Algebra.Order.Floor.Ring
import Mathlib.Tactic
namespace OAI
/-! Translated nested angular grids and their actual eligible-top masses. -/
noncomputable section
open scoped BigOperators
namespace LipschitzHilbert
/-- A single common translation is used at every angular level. -/
structure AngularGrid where
branching : ℕ
branching_ge_two : 2 ≤ branching
origin : ℝ
rootWidth : ℝ
rootWidth_pos : 0 < rootWidth
namespace AngularGrid
def index (g : AngularGrid) (level : ℕ) (slope : ℝ) : ℤ :=
⌊((slope - g.origin) / g.rootWidth) * (g.branching : ℝ) ^ level⌋
def eligible (g : AngularGrid) (cutoff precision : ℝ) (level : ℕ) : Prop :=
precision * (g.branching : ℝ) ^ level ≤ cutoff
theorem index_parent (g : AngularGrid) (level : ℕ) (slope : ℝ) :
g.index (level + 1) slope / (g.branching : ℤ) = g.index level slope := by
have hG : g.branching ≠ 0 := by have h := g.branching_ge_two; omega
simpa only [index, pow_succ, mul_assoc] using
(Int.mul_natCast_floor_div_cancel hG
(((slope - g.origin) / g.rootWidth) * (g.branching : ℝ) ^ level))
theorem eligible_parent (g : AngularGrid) {cutoff precision : ℝ} (hp : 0 ≤ precision)
(level : ℕ) (h : g.eligible cutoff precision (level + 1)) :
g.eligible cutoff precision level := by
have hG : (1 : ℝ) ≤ g.branching := by
exact_mod_cast (show 1 ≤ g.branching by have h := g.branching_ge_two; omega)
unfold eligible at h ⊢
calc
precision * (g.branching : ℝ) ^ level ≤
(precision * (g.branching : ℝ) ^ level) * g.branching :=
le_mul_of_one_le_right (by positivity) hG
_ = precision * (g.branching : ℝ) ^ (level + 1) := by rw [pow_succ]; ring
_ ≤ cutoff := h
variable {ι X : Type*}
/-- The tops in an actual translated angular cell, with the scale cutoff
included in membership rather than imposed after assigning the cell. -/
def cellTops (g : AngularGrid) (tops : Finset ι) (slope precision : ι → ℝ)
(cutoff : ℝ) (level : ℕ) (cell : ℤ) : Finset ι := by
classical
exact tops.filter fun i => g.index level (slope i) = cell ∧ g.eligible cutoff (precision i) level
@[simp] theorem mem_cellTops (g : AngularGrid) (tops : Finset ι) (slope precision : ι → ℝ)
(cutoff : ℝ) (level : ℕ) (cell : ℤ) (i : ι) :
i ∈ g.cellTops tops slope precision cutoff level cell ↔
i ∈ tops ∧ g.index level (slope i) = cell ∧ g.eligible cutoff (precision i) level := by
classical
simp [cellTops]
theorem cellTops_subset_parent (g : AngularGrid) (tops : Finset ι)
(slope precision : ι → ℝ) (cutoff : ℝ) (hp : ∀ i ∈ tops, 0 ≤ precision i)
(level : ℕ) (child : ℤ) :
g.cellTops tops slope precision cutoff (level + 1) child ⊆
g.cellTops tops slope precision cutoff level (child / (g.branching : ℤ)) := by
intro i hi
obtain ⟨hit, hindex, heligible⟩ := (g.mem_cellTops _ _ _ _ _ _ _).1 hi
apply (g.mem_cellTops _ _ _ _ _ _ _).2
refine ⟨hit, ?_, g.eligible_parent (hp i hit) level heligible⟩
rw [← g.index_parent level (slope i), hindex]
def mass (g : AngularGrid) (tops : Finset ι) (slope precision : ι → ℝ)
(cutoff : ℝ) (weight : ι → X → ℝ) (level : ℕ) (cell : ℤ) (x : X) : ℝ :=
∑ i ∈ g.cellTops tops slope precision cutoff level cell, weight i x
theorem mass_nonnegative (g : AngularGrid) (tops : Finset ι) (slope precision : ι → ℝ)
(cutoff : ℝ) (weight : ι → X → ℝ) (hw : ∀ i x, 0 ≤ weight i x)
(level : ℕ) (cell : ℤ) (x : X) :
0 ≤ g.mass tops slope precision cutoff weight level cell x :=
Finset.sum_nonneg fun i _ => hw i x
theorem mass_pos_of_member (g : AngularGrid) (tops : Finset ι) (slope precision : ι → ℝ)
(cutoff : ℝ) (weight : ι → X → ℝ) (hw : ∀ i x, 0 < weight i x)
(level : ℕ) (cell : ℤ) (x : X) {i : ι}
(hi : i ∈ g.cellTops tops slope precision cutoff level cell) :
0 < g.mass tops slope precision cutoff weight level cell x := by
classical
exact (hw i x).trans_le (Finset.single_le_sum (fun j _ => (hw j x).le) hi)
/-- An eligible top supplies a strictly positive summand on its own path. -/
theorem path_mass_pos (g : AngularGrid) (tops : Finset ι) (slope precision : ι → ℝ)
(cutoff : ℝ) (weight : ι → X → ℝ) (hw : ∀ i x, 0 < weight i x)
(level : ℕ) (top : ι) (htop : top ∈ tops) (heligible : g.eligible cutoff (precision top) level)
(x : X) : 0 < g.mass tops slope precision cutoff weight level (g.index level (slope top)) x :=
g.mass_pos_of_member tops slope precision cutoff weight hw level _ x
((g.mem_cellTops _ _ _ _ _ _ _).2 ⟨htop, rfl, heligible⟩)
/-- Every angular mass is a submass of the fixed total top weight. -/
theorem mass_le_total (g : AngularGrid) (tops : Finset ι) (slope precision : ι → ℝ)
(cutoff : ℝ) (weight : ι → X → ℝ) (hw : ∀ i x, 0 ≤ weight i x)
(level : ℕ) (cell : ℤ) (x : X) :
g.mass tops slope precision cutoff weight level cell x ≤ ∑ i ∈ tops, weight i x := by
classical
apply Finset.sum_le_sum_of_subset_of_nonneg
· exact Finset.filter_subset _ _
· intro i _ _
exact hw i x
/-- Child mass is at most parent mass, with the eligibility restriction
already built into both finite sums. -/
theorem mass_le_parent (g : AngularGrid) (tops : Finset ι) (slope precision : ι → ℝ)
(cutoff : ℝ) (weight : ι → X → ℝ) (hp : ∀ i ∈ tops, 0 ≤ precision i)
(hw : ∀ i x, 0 ≤ weight i x) (level : ℕ) (child : ℤ) (x : X) :
g.mass tops slope precision cutoff weight (level + 1) child x ≤
g.mass tops slope precision cutoff weight level (child / (g.branching : ℤ)) x := by
classical
exact Finset.sum_le_sum_of_subset_of_nonneg
(g.cellTops_subset_parent tops slope precision cutoff hp level child) (fun i _ _ => hw i x)
/-- Along any fixed top's angular path the actual mass is antitone. -/
theorem path_mass_antitone (g : AngularGrid) (tops : Finset ι) (slope precision : ι → ℝ)
(cutoff : ℝ) (weight : ι → X → ℝ) (hp : ∀ i ∈ tops, 0 ≤ precision i)
(hw : ∀ i x, 0 ≤ weight i x) (top : ι) (x : X) :
Antitone fun level => g.mass tops slope precision cutoff weight level (g.index level (slope top)) x := by
apply antitone_nat_of_succ_le
intro level
simpa only [g.index_parent] using
g.mass_le_parent tops slope precision cutoff weight hp hw level (g.index (level + 1) (slope top)) x
end AngularGrid
end LipschitzHilbert
end
end OAI

Xet Storage Details

Size:
6.64 kB
·
Xet hash:
aee54d485a6b304925bf404b3d8dd9d665597156140e6ed8bea81709931abf94

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