Download data/lean/OAI/Geometry/CylinderCovering/Rational/Integrals.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.69 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Rational/Integrals.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CylinderCovering/Rational/Integrals.lean
-
curl -L -o Integrals.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CylinderCovering/Rational/Integrals.lean
5.69 kB
| import Mathlib | |
| namespace OAI | |
| open intervalIntegral Filter | |
| open scoped Topology | |
| noncomputable section | |
| namespace CylinderCovering.RationalIntegrals | |
| theorem ceiling_integral (Ξ± cβ cβ : β) : | |
| (β« y in (-1 / 4 : β)..(1 / 4 : β), Ξ± * (cβ + cβ * y ^ 2) * y ^ 2) = | |
| Ξ± * (cβ / 96 + cβ / 2560) := by | |
| have hf : (fun y : β => Ξ± * (cβ + cβ * y ^ 2) * y ^ 2) = | |
| (fun y : β => (Ξ± * cβ) * y ^ 2 + (Ξ± * cβ) * y ^ 4) := by | |
| funext y | |
| ring | |
| rw [hf, integral_add] | |
| Β· simp only [integral_const_mul, integral_pow] | |
| norm_num | |
| ring | |
| Β· exact (continuous_const.mul (continuous_id.pow 2)).intervalIntegrable _ _ | |
| Β· exact (continuous_const.mul (continuous_id.pow 4)).intervalIntegrable _ _ | |
| theorem limiting_ceiling_integral : | |
| (β« y in (-1 / 4 : β)..(1 / 4 : β), ((1 / 16 : β) + y ^ 2) * y ^ 2) = | |
| (1 / 960 : β) := by | |
| have h := ceiling_integral 1 (1 / 16) 1 | |
| norm_num at h β’ | |
| exact h | |
| theorem limiting_energy_angular_integral : | |
| (β« z in (-1 / 2 : β)..(1 / 2 : β), | |
| ((1 / 16 : β) + z ^ 2 / 4) ^ 2 + (1 / 2 : β) * (z / 2) ^ 2) = | |
| (17 / 960 : β) := by | |
| have hf : (fun z : β => ((1 / 16 : β) + z ^ 2 / 4) ^ 2 + | |
| (1 / 2 : β) * (z / 2) ^ 2) = | |
| (fun z : β => (1 / 256 : β) + (5 / 32 : β) * z ^ 2 + | |
| (1 / 16 : β) * z ^ 4) := by | |
| funext z | |
| ring | |
| rw [hf, integral_add, integral_add] | |
| Β· simp only [integral_const, integral_const_mul, integral_pow] | |
| norm_num | |
| Β· exact continuous_const.intervalIntegrable _ _ | |
| Β· exact (continuous_const.mul (continuous_id.pow 2)).intervalIntegrable _ _ | |
| Β· exact (continuous_const.add (continuous_const.mul (continuous_id.pow 2))).intervalIntegrable _ _ | |
| Β· exact (continuous_const.mul (continuous_id.pow 4)).intervalIntegrable _ _ | |
| theorem limiting_energy_integral : | |
| (1 / 2 : β) * (β« r in (0 : β)..(1 / 2 : β), r) * | |
| (β« z in (-1 / 2 : β)..(1 / 2 : β), | |
| ((1 / 16 : β) + z ^ 2 / 4) ^ 2 + (1 / 2 : β) * (z / 2) ^ 2) = | |
| (17 / 15360 : β) := by | |
| rw [limiting_energy_angular_integral, integral_id] | |
| norm_num | |
| theorem limiting_coefficient_gap : | |
| (17 / 15360 : β) - (1 / 960 : β) = (1 / 15360 : β) β§ | |
| 0 < (17 / 15360 : β) - (1 / 960 : β) := by | |
| norm_num | |
| theorem rational_ceiling_coefficient_formula (d : β) : | |
| (1 / (1 + 2 * d)) * | |
| (((1 / 2 : β) * (1 / 2 + 2 * d) / (16 * (1 / 2 + d) ^ 2)) / 96 + | |
| (1 / (4 * (1 / 2 + d) ^ 2)) / 2560) = | |
| (2 + 5 * d) / (1920 * (1 + 2 * d) ^ 3) := by | |
| by_cases hd : 1 + 2 * d = 0 | |
| Β· have he : d = -(1 / 2 : β) := by linarith | |
| subst d | |
| norm_num | |
| Β· have h : (1 / 2 : β) + d β 0 := by intro he; apply hd; linarith | |
| field_simp | |
| ring | |
| theorem rational_ceiling_integral_tendsto : | |
| Tendsto (fun d : β => | |
| β« y in (-1 / 4 : β)..(1 / 4 : β), | |
| (1 / (1 + 2 * d)) * | |
| (((1 / 2 : β) * (1 / 2 + 2 * d) / (16 * (1 / 2 + d) ^ 2)) + | |
| (1 / (4 * (1 / 2 + d) ^ 2)) * y ^ 2) * y ^ 2) | |
| (π 0) (π (1 / 960 : β)) := by | |
| simp_rw [ceiling_integral, rational_ceiling_coefficient_formula] | |
| have h : ContinuousAt (fun d : β => | |
| (2 + 5 * d) / (1920 * (1 + 2 * d) ^ 3)) 0 := by | |
| fun_prop (disch := norm_num) | |
| convert h.tendsto using 1 | |
| norm_num | |
| theorem rational_ceiling_integral_tendsto_right : | |
| Tendsto (fun d : β => | |
| β« y in (-1 / 4 : β)..(1 / 4 : β), | |
| (1 / (1 + 2 * d)) * | |
| (((1 / 2 : β) * (1 / 2 + 2 * d) / (16 * (1 / 2 + d) ^ 2)) + | |
| (1 / (4 * (1 / 2 + d) ^ 2)) * y ^ 2) * y ^ 2) | |
| (π[Set.Ioi 0] 0) (π (1 / 960 : β)) := | |
| rational_ceiling_integral_tendsto.mono_left nhdsWithin_le_nhds | |
| theorem uncentered_ceiling_integral (c : β) : | |
| (β« u in (-c)..c, (c ^ 2 * u ^ 2 / 2 + u ^ 4 / 2)) = (8 / 15 : β) * c ^ 5 := by | |
| have he : (fun u : β => c ^ 2 * u ^ 2 / 2 + u ^ 4 / 2) = | |
| (fun u : β => (c ^ 2 / 2) * u ^ 2 + (1 / 2 : β) * u ^ 4) := by | |
| funext u | |
| ring | |
| rw [he, intervalIntegral.integral_add] | |
| Β· rw [intervalIntegral.integral_const_mul, intervalIntegral.integral_const_mul, | |
| integral_pow, integral_pow] | |
| norm_num | |
| ring | |
| Β· exact (continuous_const.mul (continuous_id.pow 2)).intervalIntegrable _ _ | |
| Β· exact (continuous_const.mul (continuous_id.pow 4)).intervalIntegrable _ _ | |
| theorem uncentered_energy_integral (c : β) : | |
| (1 / 4 : β) * (β« b in (-c)..c, ((c ^ 2 + b ^ 2) ^ 2 / 4 + b ^ 2)) = | |
| c ^ 3 / 6 + 7 * c ^ 5 / 30 := by | |
| have he : (fun b : β => (c ^ 2 + b ^ 2) ^ 2 / 4 + b ^ 2) = | |
| (fun b : β => c ^ 4 / 4 + (c ^ 2 / 2 + 1) * b ^ 2 + (1 / 4 : β) * b ^ 4) := by | |
| funext b | |
| ring | |
| rw [he, intervalIntegral.integral_add, intervalIntegral.integral_add] | |
| Β· rw [intervalIntegral.integral_const_mul, intervalIntegral.integral_const_mul, | |
| integral_pow, integral_pow, intervalIntegral.integral_const] | |
| norm_num | |
| ring | |
| Β· exact continuous_const.intervalIntegrable _ _ | |
| Β· exact (continuous_const.mul (continuous_id.pow 2)).intervalIntegrable _ _ | |
| Β· exact (continuous_const.add (continuous_const.mul (continuous_id.pow 2))).intervalIntegrable _ _ | |
| Β· exact (continuous_const.mul (continuous_id.pow 4)).intervalIntegrable _ _ | |
| theorem uncentered_limiting_gap {c : β} (hc : c ^ 2 = (1 / 2 : β)) : | |
| (1 / 4 : β) * (β« b in (-c)..c, ((c ^ 2 + b ^ 2) ^ 2 / 4 + b ^ 2)) - | |
| (β« u in (-c)..c, (c ^ 2 * u ^ 2 / 2 + u ^ 4 / 2)) = c ^ 3 / 60 := by | |
| rw [uncentered_energy_integral, uncentered_ceiling_integral] | |
| have h5 : c ^ 5 = c ^ 3 / 2 := by | |
| calc c ^ 5 = c ^ 3 * c ^ 2 := by ring | |
| _ = c ^ 3 / 2 := by rw [hc]; ring | |
| rw [h5] | |
| ring | |
| end CylinderCovering.RationalIntegrals | |
| end | |
| end OAI | |