cfahlgren1's picture
download
raw
4.82 kB
import OAI.MeasureTheory.Falconer.Recursion.PrefixCounting
namespace OAI
namespace PlanarFalconer
open Set MeasureTheory
open scoped ENNReal
theorem DyadicSquare.descendant_append (Q : DyadicSquare) (p q : CellPath) :
Q.descendant (p++q) = (Q.descendant p).descendant q := by
induction p generalizing Q with
| nil => rfl
| cons a p ih => exact ih (Q.child a.1 a.2)
theorem DyadicSquare.descendant_subset_take (Q : DyadicSquare) (hQ : 0 < Q.side)
(p : CellPath) (a : ℕ) : (Q.descendant p).carrier ⊆ (Q.descendant (p.take a)).carrier := by
have he := Q.descendant_append (p.take a) (p.drop a)
rw [List.take_append_drop] at he
rw [he]
exact (Q.descendant (p.take a)).descendant_subset (Q.descendant_side_pos hQ _) _
theorem leafUnion_inter_prefix (Q : DyadicSquare) (hQ : 0 < Q.side)
{N a : ℕ} (ha : a ≤ N) {C : Finset CellPath} (hC : C ⊆ dyadicPaths N)
{P : CellPath} (hP : P.length = a) :
(Q.descendant P).carrier ∩ leafUnion Q C = leafUnion Q (prefixFiber C a P) := by
classical
ext z
constructor
· rintro ⟨hzP,hzC⟩
obtain ⟨q,hq,hzq⟩ := mem_iUnion₂.mp hzC
have hqN := (mem_dyadicPaths _ _).mp (hC hq)
have hlen : (q.take a).length = P.length := by simp [List.length_take,hqN,ha,hP]
have he : q.take a = P := by
by_contra hne
exact Set.disjoint_left.mp (Q.descendants_disjoint hQ hlen hne)
(Q.descendant_subset_take hQ q a hzq) hzP
exact mem_iUnion₂.mpr ⟨q,by simp [prefixFiber,hq,he],hzq⟩
· intro hz
obtain ⟨q,hq,hzq⟩ := mem_iUnion₂.mp hz
obtain ⟨hq,he⟩ := Finset.mem_filter.mp hq
refine ⟨?_,mem_iUnion₂.mpr ⟨q,hq,hzq⟩⟩
rw [← he]
exact Q.descendant_subset_take hQ q a hzq
theorem restriction_prefix_mass (Q : DyadicSquare) (hQ : 0 < Q.side) (μ : Measure Plane)
{N a : ℕ} (ha : a ≤ N) {C : Finset CellPath} (hC : C ⊆ dyadicPaths N)
{P : CellPath} (hP : P.length = a) :
(μ.restrict (leafUnion Q C)) (Q.descendant P).carrier =
∑ q ∈ prefixFiber C a P, μ (Q.descendant q).carrier := by
rw [Measure.restrict_apply (Q.descendant P).measurable,
leafUnion_inter_prefix Q hQ ha hC hP]
exact measure_leafUnion Q hQ μ (fun q hq => hC (Finset.mem_filter.mp hq).1)
theorem restriction_prefix_mass_real (Q : DyadicSquare) (hQ : 0 < Q.side)
(μ : Measure Plane) [IsFiniteMeasure μ]
{N a : ℕ} (ha : a ≤ N) {C : Finset CellPath} (hC : C ⊆ dyadicPaths N)
{P : CellPath} (hP : P.length = a) :
((μ.restrict (leafUnion Q C)) (Q.descendant P).carrier).toReal =
∑ q ∈ prefixFiber C a P, (μ (Q.descendant q).carrier).toReal := by
rw [restriction_prefix_mass Q hQ μ ha hC hP, ENNReal.toReal_sum]
intro q _
exact measure_ne_top _ _
theorem restriction_prefix_mass_bounds (Q : DyadicSquare) (hQ : 0 < Q.side)
(μ : Measure Plane) [IsFiniteMeasure μ]
{N a : ℕ} (ha : a ≤ N) {C : Finset CellPath} (hC : C ⊆ dyadicPaths N)
{P : CellPath} (hP : P.length = a) {s : ℝ}
(hm : ∀ q ∈ C, s ≤ (μ (Q.descendant q).carrier).toReal ∧
(μ (Q.descendant q).carrier).toReal ≤ 2*s) :
(prefixFiber C a P).card * s ≤
((μ.restrict (leafUnion Q C)) (Q.descendant P).carrier).toReal ∧
((μ.restrict (leafUnion Q C)) (Q.descendant P).carrier).toReal ≤
(prefixFiber C a P).card * (2*s) := by
rw [restriction_prefix_mass_real Q hQ μ ha hC hP]
constructor
· calc
_ = ∑ _q ∈ prefixFiber C a P, s := by simp
_ ≤ _ := Finset.sum_le_sum fun q hq => (hm q (Finset.mem_filter.mp hq).1).1
· calc
_ ≤ ∑ _q ∈ prefixFiber C a P, 2*s :=
Finset.sum_le_sum fun q hq => (hm q (Finset.mem_filter.mp hq).1).2
_ = _ := by simp
theorem restriction_total_mass_real (Q : DyadicSquare) (hQ : 0 < Q.side)
(μ : Measure Plane) [IsFiniteMeasure μ]
{N : ℕ} {C : Finset CellPath} (hC : C ⊆ dyadicPaths N) :
(μ (leafUnion Q C)).toReal = ∑ q ∈ C, (μ (Q.descendant q).carrier).toReal := by
rw [measure_leafUnion Q hQ μ hC, ENNReal.toReal_sum]
intro q _; exact measure_ne_top _ _
theorem restriction_total_mass_bounds (Q : DyadicSquare) (hQ : 0 < Q.side)
(μ : Measure Plane) [IsFiniteMeasure μ]
{N : ℕ} {C : Finset CellPath} (hC : C ⊆ dyadicPaths N) {s : ℝ}
(hm : ∀ q ∈ C, s ≤ (μ (Q.descendant q).carrier).toReal ∧
(μ (Q.descendant q).carrier).toReal ≤ 2*s) :
C.card*s ≤ (μ (leafUnion Q C)).toReal ∧
(μ (leafUnion Q C)).toReal ≤ C.card*(2*s) := by
rw [restriction_total_mass_real Q hQ μ hC]
constructor
· calc
_ = ∑ _q ∈ C, s := by simp
_ ≤ _ := Finset.sum_le_sum fun q hq => (hm q hq).1
· calc
_ ≤ ∑ _q ∈ C, 2*s := Finset.sum_le_sum fun q hq => (hm q hq).2
_ = _ := by simp
end PlanarFalconer
end OAI

Xet Storage Details

Size:
4.82 kB
·
Xet hash:
ade63f12b8b62d3f2353d13c9271a79c96a627f55e764f31a3667c06edf692ce

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