Buckets:
| import Mathlib | |
| namespace OAI | |
| /-! The four raw recurrences imply the two normalized scalar recurrences. -/ | |
| noncomputable section | |
| namespace Paper320 | |
| def normalizedMax (M : ℝ) (n : ℕ) (s₀ s₁ : ℝ) : ℝ := | |
| max (s₀ / M ^ n) (s₁ / M ^ (n + 1)) | |
| theorem normalizedMax_nonneg {M s₀ s₁ : ℝ} {n : ℕ} | |
| (hM : 0 < M) (hs₀ : 0 ≤ s₀) : 0 ≤ normalizedMax M n s₀ s₁ := | |
| (div_nonneg hs₀ (pow_pos hM n).le).trans (le_max_left _ _) | |
| theorem le_normalizedMax_zero {M s₀ s₁ : ℝ} {n : ℕ} (hM : 0 < M) : | |
| s₀ ≤ normalizedMax M n s₀ s₁ * M ^ n := | |
| (div_le_iff₀ (pow_pos hM n)).mp (le_max_left _ _) | |
| theorem le_normalizedMax_one {M s₀ s₁ : ℝ} {n : ℕ} (hM : 0 < M) : | |
| s₁ ≤ normalizedMax M n s₀ s₁ * M ^ (n + 1) := | |
| (div_le_iff₀ (pow_pos hM (n + 1))).mp (le_max_right _ _) | |
| theorem normalizedMax_le {M s₀ s₁ u : ℝ} {n : ℕ} (hM : 0 < M) | |
| (h₀ : s₀ ≤ u * M ^ n) (h₁ : s₁ ≤ u * M ^ (n + 1)) : | |
| normalizedMax M n s₀ s₁ ≤ u := | |
| max_le ((div_le_iff₀ (pow_pos hM n)).mpr h₀) | |
| ((div_le_iff₀ (pow_pos hM (n + 1))).mpr h₁) | |
| theorem raw_profiles_step {M r ε u v p : ℝ} | |
| (hM : 0 < M) (hp : 0 ≤ p) (hu : 0 ≤ u) (hv : 0 ≤ v) | |
| (hr : 0 ≤ r) (hεr : r ≤ ε * M) (hεt : 16 ≤ ε * M) | |
| {s₀ s₁ j₀ j₁ s₀' s₁' j₀' j₁' : ℝ} | |
| (hs₀ : s₀ ≤ u * p) (hs₁ : s₁ ≤ u * (p * M)) | |
| (hj₀ : j₀ ≤ v * p) (hj₁ : j₁ ≤ v * (p * M)) | |
| (hS₀ : s₀' ≤ 16 * s₀ + s₁ + 3 * j₁) | |
| (hS₁ : s₁' ≤ M ^ 2 * s₀ + r * s₁) | |
| (hJ₀ : j₀' ≤ 16 * s₀ + 3 * j₁) | |
| (hJ₁ : j₁' ≤ M ^ 2 * j₀ + r * s₁) : | |
| s₀' ≤ ((1 + ε) * u + 3 * v) * (p * M) ∧ | |
| s₁' ≤ ((1 + ε) * u + 3 * v) * (p * M * M) ∧ | |
| j₀' ≤ (ε * u + 3 * v) * (p * M) ∧ | |
| j₁' ≤ (ε * u + 3 * v) * (p * M * M) := by | |
| have hup : 0 ≤ u * p := mul_nonneg hu hp | |
| have hupM : 0 ≤ u * (p * M) := mul_nonneg hu (mul_nonneg hp hM.le) | |
| have hvpMM : 0 ≤ v * (p * M * M) := by positivity | |
| have ht := mul_le_mul_of_nonneg_right hεt hup | |
| have hr' := mul_le_mul_of_nonneg_right hεr hupM | |
| have a₀ := mul_le_mul_of_nonneg_left hs₀ (show (0 : ℝ) ≤ 16 by norm_num) | |
| have a₁ := mul_le_mul_of_nonneg_left hs₀ (sq_nonneg M) | |
| have b₀ := mul_le_mul_of_nonneg_left hj₀ (sq_nonneg M) | |
| have b₁ := mul_le_mul_of_nonneg_left hj₁ (show (0 : ℝ) ≤ 3 by norm_num) | |
| have c₁ := mul_le_mul_of_nonneg_left hs₁ hr | |
| constructor | |
| · nlinarith | |
| constructor | |
| · nlinarith | |
| constructor <;> nlinarith | |
| theorem normalized_profiles_step {M r ε : ℝ} {n : ℕ} | |
| (hM : 0 < M) (hr : 0 ≤ r) (hεr : r / M ≤ ε) (hεt : 16 / M ≤ ε) | |
| {s₀ s₁ j₀ j₁ s₀' s₁' j₀' j₁' : ℝ} (hs₀ : 0 ≤ s₀) (hj₀ : 0 ≤ j₀) | |
| (hS₀ : s₀' ≤ 16 * s₀ + s₁ + 3 * j₁) | |
| (hS₁ : s₁' ≤ M ^ 2 * s₀ + r * s₁) | |
| (hJ₀ : j₀' ≤ 16 * s₀ + 3 * j₁) | |
| (hJ₁ : j₁' ≤ M ^ 2 * j₀ + r * s₁) : | |
| normalizedMax M (n + 1) s₀' s₁' ≤ | |
| (1 + ε) * normalizedMax M n s₀ s₁ + 3 * normalizedMax M n j₀ j₁ ∧ | |
| normalizedMax M (n + 1) j₀' j₁' ≤ | |
| ε * normalizedMax M n s₀ s₁ + 3 * normalizedMax M n j₀ j₁ := by | |
| have hs₁b := le_normalizedMax_one (s₀ := s₀) (s₁ := s₁) (n := n) hM | |
| have hj₁b := le_normalizedMax_one (s₀ := j₀) (s₁ := j₁) (n := n) hM | |
| rw [pow_succ] at hs₁b hj₁b | |
| obtain ⟨a, b, c, d⟩ := raw_profiles_step hM (pow_pos hM n).le | |
| (normalizedMax_nonneg hM hs₀) (normalizedMax_nonneg hM hj₀) hr | |
| ((div_le_iff₀ hM).mp hεr) ((div_le_iff₀ hM).mp hεt) | |
| (le_normalizedMax_zero hM) hs₁b (le_normalizedMax_zero hM) hj₁b | |
| hS₀ hS₁ hJ₀ hJ₁ | |
| constructor | |
| · apply normalizedMax_le hM <;> simpa only [pow_succ] using (by assumption) | |
| · apply normalizedMax_le hM <;> simpa only [pow_succ] using (by assumption) | |
| end Paper320 | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 3.93 kB
- Xet hash:
- bb11f21f612aa953b2929c2d001af252072e435f5955fef856263e760f5992a5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.