File size: 1,283 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | import Mathlib
import OAI.MeasureTheory.FalconerCompletion.Sphere.SphereMeasure
namespace OAI
/-! Quantitative estimates for the distance-set construction. -/
section
section
namespace CurrentFalconer.TreeND
abbrev CellPath (d : β) := List (Fin d β Bool)
variable {d : β}
def dyadicPaths {d : β} : β β Finset (CellPath d)
| 0 => {[]}
| n+1 => Finset.univ.biUnion fun a : Fin d β Bool =>
(dyadicPaths n).image (List.cons a)
@[simp] theorem mem_dyadicPaths (n : β) (p : CellPath d) :
p β dyadicPaths n β p.length = n := by
induction n generalizing p with
| zero => simp [dyadicPaths]
| succ n ih =>
cases p with
| nil => simp [dyadicPaths]
| cons a p => simp [dyadicPaths, ih]
lemma dyadicPaths_card_le (N : β) : (dyadicPaths (d := d) N).card β€ (2^d)^N := by
classical
induction N with
| zero => simp [dyadicPaths]
| succ N ih =>
calc
_ β€ β a β (Finset.univ : Finset (Fin d β Bool)),
((dyadicPaths N).image (List.cons a)).card := Finset.card_biUnion_le
_ β€ β _a β (Finset.univ : Finset (Fin d β Bool)), (2^d)^N :=
Finset.sum_le_sum (fun _ _ => Finset.card_image_le.trans ih)
_ = _ := by simp [pow_succ,Nat.mul_comm]
end CurrentFalconer.TreeND
end
end
end OAI
|