Documentation

LeanPool.AsymptoticTrianglePacking.Internal.AX1.BlockEstimates

Shared estimates for the two block-allocation reductions #

The local and coupled constructions use the same scale, density and exceptional-budget bounds. Keeping the arithmetic here avoids repeating their proofs in the two reductions.

theorem Nibble.AX1.BlockEstimates.exists_small_density {ε : ℝ} (hε : 0 < ε) :
∃ (δ : ℝ), 0 < δ ∧ δ ≤ 1 / 2 ∧ δ ≤ ε / 2 ∧ δ / 2 ≤ (ε / 2) ^ 2

A positive density small enough for both the linear and quadratic accuracy windows.

theorem Nibble.AX1.BlockEstimates.block_size_bounds {τ δ s dens : ℝ} (hτ : 0 < τ) (hτδ : 8 ≤ τ * δ) (h1 : δ ≤ dens) (h2 : dens ≤ 1) (habs : |s - τ * dens| ≤ 1) :
3 / 4 * (τ * δ) ≤ s ∧ s ≤ 5 / 4 * τ

The blocks have size between ¾·τδ and ⁵⁄₄·τ.

theorem Nibble.AX1.BlockEstimates.area_bounds {τ δ a b c : ℝ} (hτ : 0 < τ) (hτδ : 8 ≤ τ * δ) (ha : 3 / 4 * (τ * δ) ≤ a) (ha' : a ≤ 5 / 4 * τ) (hb : 3 / 4 * (τ * δ) ≤ b) (hb' : b ≤ 5 / 4 * τ) (hc : 3 / 4 * (τ * δ) ≤ c) (hc' : c ≤ 5 / 4 * τ) :
0 ≤ a ∧ 0 ≤ b ∧ 0 ≤ c ∧ a * b + a * c + b * c ≤ 5 * τ ^ 2 ∧ 0 ≤ a * b + a * c + b * c ∧ a + b + c ≤ 4 * τ ∧ 0 ≤ a + b + c

The area and the support of a sub-triple, in terms of the scale.

theorem Nibble.AX1.BlockEstimates.edge_count_lower_bound {τ δ ε₁ a b c dAB dAC dBC : ℝ} (hτ : 0 < τ) (hδ : 0 < δ) (hε₁b : ε₁ ≤ δ / 2) (hx : δ - ε₁ / 8 ≤ dAB) (hAC0 : 0 ≤ dAC) (hBC0 : 0 ≤ dBC) (ha : 3 / 4 * (τ * δ) ≤ a) (hb : 3 / 4 * (τ * δ) ≤ b) (hc0 : 0 ≤ c) (ha0 : 0 ≤ a) (hb0 : 0 ≤ b) :
1 / 4 * (τ ^ 2 * δ ^ 3) ≤ dAB * a * b + dAC * a * c + dBC * b * c

The Elo of a sub-triple is at least a quarter of τ²δ³.

theorem Nibble.AX1.BlockEstimates.density_product_lower_bound {δ x y z : ℝ} (hδ : 0 < δ) (hx : δ ≤ x) (hy : δ ≤ y) (hz : δ ≤ z) :
δ ^ 3 ≤ x * y * z

The product of three densities at least δ is at least δ³.

theorem Nibble.AX1.BlockEstimates.degree_scale_lower_bound {τ δ d₀ x y z : ℝ} (hτ : 0 < τ) (hδ : 0 < δ) (hx : δ ≤ x) (hy : δ ≤ y) (hz : δ ≤ z) (hd₀ : d₀ ≤ τ * δ ^ 3) :
d₀ ≤ τ * (x * y * z)

The triangle-degree scale of a sub-triple is above the floor d₀.

theorem Nibble.AX1.BlockEstimates.degree_scale_nonnegative {τ δ x y z : ℝ} (hτ : 0 < τ) (hδ : 0 < δ) (hx : δ ≤ x) (hy : δ ≤ y) (hz : δ ≤ z) :
0 ≤ τ * (x * y * z)

The triangle-degree scale of a sub-triple is nonnegative.

theorem Nibble.AX1.BlockEstimates.slack_bound {μ μ₂ τ δ x y z : ℝ} (hτ : 0 < τ) (hδ : 0 < δ) (hx : δ ≤ x) (hy : δ ≤ y) (hz : δ ≤ z) (hμ₂ : 2 * μ₂ ≤ μ) (hμ₂'₀ : 0 < μ₂) :
2 * ((μ - μ₂) * τ * δ ^ 3 / 2) ≤ (μ - μ₂) * (τ * (x * y * z))

The pruning slack t is at most half of (μ - μ₂) times the triangle-degree scale.

theorem Nibble.AX1.BlockEstimates.pruning_slack_pos {μ μ₂ τ δ : ℝ} (hτ : 0 < τ) (hδ3 : 0 < δ ^ 3) (hμ₂ : 0 < μ₂) (h : 2 * μ₂ ≤ μ) :
0 < (μ - μ₂) * τ * δ ^ 3 / 2

The pruning slack t = (μ - μ₂)τδ³/2 is positive.

theorem Nibble.AX1.BlockEstimates.pruning_slack_lower_bound {μ μ₂ τ δ : ℝ} (hτ : 0 < τ) (hδ3 : 0 < δ ^ 3) (h : 2 * μ₂ ≤ μ) :
μ₂ * τ * δ ^ 3 / 2 ≤ (μ - μ₂) * τ * δ ^ 3 / 2

The pruning slack t = (μ - μ₂)τδ³/2 is at least μ₂τδ³/2.

theorem Nibble.AX1.BlockEstimates.cover_step {ε₁ ε₂ dAB dAC dBC eAB eAC eBC a b c : ℝ} (h1 : |eAB - dAB| ≤ ε₁ / 8) (h2 : |eAC - dAC| ≤ ε₁ / 8) (h3 : |eBC - dBC| ≤ ε₁ / 8) (ha0 : 0 ≤ a) (hb0 : 0 ≤ b) (hc0 : 0 ≤ c) :
(dAB * a * b + dAC * a * c + dBC * b * c) / 3 - (ε₁ / 8 + 4 * ε₂) / 3 * (a * b + a * c + b * c) ≤ (eAB * a * b + eAC * a * c + eBC * b * c - 4 * ε₂ * (a * b + a * c + b * c)) / 3

One term of the covering estimate: replacing the cluster densities by the block densities and subtracting the exceptional budget costs at most 17ε₁/24 times the area.

theorem Nibble.AX1.BlockEstimates.cover_tail {ε K N : ℝ} (h : K ≤ ε) (hN : 0 ≤ N) :
K * (N / 2) ≤ ε / 2 * N

The accumulated covering loss is absorbed by half of the accuracy.

theorem Nibble.AX1.BlockEstimates.uniformity_bound {x δ B : ℝ} (hδ : 0 < δ) (h : x ≤ B * δ) :
x / (4 * δ) ≤ B / 4

The block uniformity scale ε₂ = (ε₁/8)/α at α = δ/2, bounded from a bound on ε₁.

theorem Nibble.AX1.BlockEstimates.mul_density_le {B δ : ℝ} (hB : 0 ≤ B) (hδ1 : δ ≤ 1) :
B * δ ≤ B

Multiplying a nonnegative quantity by δ ≤ 1 only decreases it.

theorem Nibble.AX1.BlockEstimates.scale_density_cube_lower_bound {τ δ μ₂ : ℝ} (hτ : 0 < τ) (hδ3 : 0 < δ ^ 3) (hμ₂1 : μ₂ ≤ 1) (h : 2 ≤ τ * (μ₂ * δ ^ 3)) :
2 ≤ τ * δ ^ 3

The block scale is large: 2 ≤ τ·μ₂δ³ and μ₂ ≤ 1 give 2 ≤ τδ³.

theorem Nibble.AX1.BlockEstimates.scale_density_lower_bound {τ δ : ℝ} (hτ : 0 < τ) (hδ : 0 < δ) (hδhalf : δ ≤ 1 / 2) (h : 2 ≤ τ * δ ^ 3) :
8 ≤ τ * δ

The block scale is large: 2 ≤ τδ³ and δ ≤ 1/2 give 8 ≤ τδ.

theorem Nibble.AX1.BlockEstimates.exceptional_budget_bound {ε₂ δ μ₂ η τ t S sup Elo : ℝ} (hτ : 0 < τ) (hδ : 0 < δ) (hμ₂0 : 0 < μ₂) (hη : 0 < η) (hε₂0 : 0 < ε₂) (hε₂c : ε₂ ≤ η * μ₂ * δ ^ 6 / 2560) (hε₂d : ε₂ ≤ δ ^ 3 / 160) (hS : S ≤ 5 * τ ^ 2) (hsup : sup ≤ 4 * τ) (hsup0 : 0 ≤ sup) (hElo : 1 / 4 * (τ ^ 2 * δ ^ 3) ≤ Elo) (ht : μ₂ * τ * δ ^ 3 / 2 ≤ t) (ht0 : 0 < t) :
2 * (4 * ε₂ * S) / t * sup ≤ η * (Elo - 4 * ε₂ * S)

The exceptional-edge clause of the design, as an inequality between real numbers.