def
definition
fourPiInterval
show as:
view math explainer →
open explainer
Read the cached plain-language explainer.
open lean source
IndisputableMonolith.Numerics.Interval.PiBounds on GitHub at line 88.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
used by
formal source
85 linarith
86
87/-- Interval containing 4π -/
88def fourPiInterval : Interval where
89 lo := 1256 / 100 -- 12.56
90 hi := 126 / 10 -- 12.6
91 valid := by norm_num
92
93/-- 4π is contained in fourPiInterval - PROVEN -/
94theorem four_pi_in_interval : fourPiInterval.contains (4 * pi) := by
95 simp only [contains, fourPiInterval]
96 constructor
97 · have h := four_pi_gt
98 exact le_of_lt (by calc ((1256 / 100 : ℚ) : ℝ) = (12.56 : ℝ) := by norm_num
99 _ < 4 * pi := h)
100 · have h := four_pi_lt
101 exact le_of_lt (by calc 4 * pi < (12.6 : ℝ) := h
102 _ = ((126 / 10 : ℚ) : ℝ) := by norm_num)
103
104/-! ## Bounds on π² -/
105
106/-- π² > 9.8596 (using 3.14² = 9.8596) -/
107theorem pi_sq_gt : (9.8596 : ℝ) < pi ^ 2 := by
108 have h := Real.pi_gt_d2 -- 3.14 < π
109 have hpos : 0 < pi := Real.pi_pos
110 have h1 : (3.14 : ℝ) ^ 2 < pi ^ 2 := sq_lt_sq' (by linarith) h
111 calc (9.8596 : ℝ) = (3.14 : ℝ) ^ 2 := by norm_num
112 _ < pi ^ 2 := h1
113
114/-- π² < 9.9225 (using 3.15² = 9.9225) -/
115theorem pi_sq_lt : pi ^ 2 < (9.9225 : ℝ) := by
116 have h := Real.pi_lt_d2 -- π < 3.15
117 have hpos : 0 < pi := Real.pi_pos
118 have h1 : pi ^ 2 < (3.15 : ℝ) ^ 2 := sq_lt_sq' (by linarith) h