cfahlgren1/math / lean /OAI /Combinatorics /Sensitivity /LabelingBounds.lean
cfahlgren1's picture
download
raw
704 Bytes
import Mathlib.Analysis.Real.Sqrt
import Mathlib.Algebra.Order.Floor.Ring
import Mathlib.Tactic.Linarith
namespace OAI
/-! Symbolic estimates for the sixteen-vertex labeling union bound. -/
namespace Paper320
theorem le_ceil_sqrt_sq (M : ℕ) : M ≤ (Nat.ceil (Real.sqrt M))^2 := by
have hs := Nat.le_ceil (Real.sqrt (M : ℝ))
have hr := Real.sqrt_nonneg (M : ℝ)
have he := Real.sq_sqrt (Nat.cast_nonneg M : (0 : ℝ) ≤ M)
have hh : (M : ℝ) ≤ (Nat.ceil (Real.sqrt M) : ℝ)^2 := by nlinarith
exact_mod_cast hh
theorem labeling_space_large {M : ℕ} (hM : 3 ≤ M) :
120 ≤ (2*M^2+1)*(2*M^2+1) := by
have : 19 ≤ 2*M^2+1 := by nlinarith
nlinarith
end Paper320
end OAI

Xet Storage Details

Size:
704 Bytes
·
Xet hash:
660cba353de0ea34fe79d6fbbed2212398345b945f47ba06fd35f8cf1399fd4b

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