Dyadic grids of a closed real interval #
The dyadic grid of level n of [a, b] consists of the points a + k * ((b - a) / 2 ^ n) for
k ≤ 2 ^ n. The grids are nested, and their points of all levels are dense in [a, b].
Main results #
TauCeti.dyadicPoint: the finite-indexed dyadic grid as points of the closed interval.TauCeti.exists_dyadicPoint_eq_of_le: the finite-indexed dyadic grids are nested.TauCeti.dense_iUnion_range_dyadicPoint: the union of the finite-indexed grids is dense fora ≤ b, including the singleton intervala = b.TauCeti.exists_eq_add_mul_div_two_pow_of_le: a point of the dyadic grid of levelmlies on the dyadic grids of all levelsn ≥ m.TauCeti.dense_setOfPred_eq_add_mul_div_two_pow: the points of the dyadic grids of[a, b], of all levels, are dense in[a, b].
theorem
TauCeti.exists_dyadicPoint_eq_of_le
{a b : ℝ}
(hab : a ≤ b)
{m n : ℕ}
(k : Fin (2 ^ m + 1))
(hmn : m ≤ n)
:
∃ (j : Fin (2 ^ n + 1)), dyadicPoint hab m k = dyadicPoint hab n j
A finite-indexed dyadic grid point also belongs to every finer grid.
theorem
TauCeti.dense_iUnion_range_dyadicPoint
{a b : ℝ}
(hab : a ≤ b)
:
Dense (⋃ (n : ℕ), Set.range (dyadicPoint hab n))
The union of the finite-indexed dyadic grids is dense, including for a singleton interval.