Buckets:
| import OAI.Combinatorics.DiscreteConvexity.Basic | |
| import Mathlib.Algebra.Order.Field.Basic | |
| import Mathlib.Algebra.Order.Monoid.Unbundled.Pow | |
| import Mathlib.Tactic.FieldSimp | |
| import Mathlib.Tactic.Linarith | |
| import Mathlib.Tactic.NormNum | |
| import Mathlib.Tactic.Ring | |
| namespace OAI | |
| /-! | |
| # Symbolic constants for the original-density argument | |
| Only the small factor `32 = 2^5` is evaluated. The number of rows and the | |
| final tuple length remain symbolic powers throughout the construction. | |
| -/ | |
| namespace TalagrandDiscreteConvexity | |
| theorem density_rows_gt_one : 1 < (2 : ℕ) ^ 70 := | |
| one_lt_pow' (by decide : (1 : ℕ) < 2) (by decide : (70 : ℕ) ≠ 0) | |
| theorem density_rows_pos : 0 < (2 : ℕ) ^ 70 := | |
| lt_trans Nat.zero_lt_one density_rows_gt_one | |
| theorem density_tuple_count : 32 * (2 : ℕ) ^ 70 = 2 ^ 75 := by | |
| rw [show (32 : ℕ) = 2 ^ 5 by decide, ← pow_add] | |
| theorem density_tuple_count_real : (2 : ℝ) ^ 75 = 32 * (2 : ℝ) ^ 70 := by | |
| calc | |
| (2 : ℝ) ^ 75 = 2 ^ 5 * 2 ^ 70 := by rw [← pow_add] | |
| _ = 32 * 2 ^ 70 := by rw [show (2 : ℝ) ^ 5 = 32 by norm_num] | |
| /-- A density loss of at most `1 / (32 L)` spends at most `1 / 32` across rows. -/ | |
| theorem density_failure_budget {L a : ℝ} (hL : 0 < L) | |
| (ha : 1 - 1 / (32 * L) ≤ a) : L * (1 - a) ≤ 1 / 32 := by | |
| have hbound : 1 - a ≤ 1 / (32 * L) := by linarith | |
| calc | |
| L * (1 - a) ≤ L * (1 / (32 * L)) := | |
| mul_le_mul_of_nonneg_left hbound hL.le | |
| _ = 1 / 32 := by field_simp [ne_of_gt hL] | |
| end TalagrandDiscreteConvexity | |
| end OAI | |
Xet Storage Details
- Size:
- 1.52 kB
- Xet hash:
- bfac8ea4d180689f0b6b386f5cc965ed378039f69d0c249e1cf0e53142b1b1a4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.