TTI.lean
Lean 4 source, lean/DataMiningAsObservation/TTI.lean at commit bccca4f. Appendix C, Machine-checked statements, says what each file proves. All Lean files.
/-
TTI.lean. Chapter 0 section 0.13 and chapter 13 section 13.4, the transmission time
interval.
A transmission time interval is the one-millisecond slot in which a 5G tower schedules a
transmission, and the sealed refresh floors of chapter 13 are counted in it. The file states
the slot arithmetic those floors rest on, that a duration of `m` milliseconds spans `m`
slots, that slots add, and that a longer duration spans more of them.
-/
import Mathlib
namespace DMO.TTI
/-- The transmission time interval in seconds. -/
noncomputable def tti : ℝ := 1 / 1000
/-- The number of slots in a duration of `T` seconds. -/
noncomputable def slots (T : ℝ) : ℝ := T / tti
/-- **A duration of `m` milliseconds spans `m` slots.** -/
theorem slots_of_ms (m : ℝ) : slots (m / 1000) = m := by
unfold slots tti
field_simp
/-- **Slots add over consecutive durations.** -/
theorem slots_add (a b : ℝ) : slots (a + b) = slots a + slots b := by
unfold slots
rw [add_div]
/-- **A longer duration spans at least as many slots.** -/
theorem slots_mono {a b : ℝ} (h : a ≤ b) : slots a ≤ slots b := by
unfold slots tti
gcongr
/-- **A twenty-millisecond coherence time spans twenty slots.** -/
theorem slots_coherence : slots (20 / 1000) = 20 :=
slots_of_ms 20
end DMO.TTI