Floors and decompositions into intervals #
A point of [0, n) in an ordered ring with a floor operation is the sum of an index in
Fin n and a remainder in [0, 1). This describes, for example, time along one of the
finitely many edges in a polygonal boundary parametrization. In the same way, a 1-periodic
function is determined by its values on [0, 1): it takes the same value at t and at the
fractional part of t.
For a step δ > 0 in a linearly ordered field with an integer floor, the multiples of δ cut
the line into the closed intervals [δ m, δ (m + 1)] with m ∈ ℤ. Every point x lies in the
interval indexed by ⌊x / δ⌋, and an interval meeting [-R, R] has its index between
⌈-R / δ⌉ - 1 and ⌊R / δ⌋.
Main results #
TauCeti.exists_eq_natCast_add_of_mem_Ico: a point of[0, n)is an index inFin nplus a remainder in[0, 1).Function.Periodic.apply_fract: a1-periodic function takes the same value attand at its fractional partInt.fract t.TauCeti.mem_Icc_mul_floor_div:x ∈ [δ ⌊x / δ⌋, δ (⌊x / δ⌋ + 1)].TauCeti.mem_Icc_ceil_floor_of_mem_Icc: ifx ∈ [δ m, δ (m + 1)]and|x| ≤ R, thenm ∈ [⌈-R / δ⌉ - 1, ⌊R / δ⌋].TauCeti.abs_sub_lt_one_div_of_natFloor_mul_eq: fort > 0, nonnegative elementsa,bwith⌊a * t⌋₊ = ⌊b * t⌋₊differ by less than1 / t.
A point of [0, n) is an index in Fin n plus a remainder in [0, 1).
A 1-periodic function takes the same value at t and at its fractional part.
For a step δ > 0, an interval [δ m, δ (m + 1)] that meets [-R, R] has its index m
in the finite range [⌈-R / δ⌉ - 1, ⌊R / δ⌋].
For t > 0, two nonnegative elements a, b of an ordered field with the same natural
floor of x * t differ by less than 1 / t: on the nonnegative half-line the cells of the grid of
scale t have side 1 / t.