Documentation

CslibFrontier.Algorithms.ExactTriangle.ParameterChoice.CostGeometry

Finite cost geometry of the integer box parameters #

The nineteen-factor reservation gives the common n^3/g scale for actual preparation, products, query/root control and scans. Group rounding supplies raw saving 2/1197; logarithmic factors remain to be absorbed by the complete native caller.

Preparation's extra window and two group factors fit within nineteen reserved factors.

The group-square bound for query control does not assume an exact square-root power.

Two group factors fit in the actual finite box product's fractional window saving.

The rounded group count gains an inverse input power with only a factor16 loss.

theorem Cslib.Algorithms.ExactTriangle.ParameterChoice.window_rpow_le_rpow {n : ℕ} (hn : 0 < n) {r : ℝ} (hr : 0 ≤ r) :
↑(window n) ^ r ≤ ↑n ^ (r / 19)

The original nineteen-factor reserve controls every nonnegative real window power.

theorem Cslib.Algorithms.ExactTriangle.ParameterChoice.cubic_div_groups_le {n : ℕ} (hn : 0 < n) :
↑n ^ 3 / ↑(groups n) ≤ 16 * ↑n ^ (3 - 2 / 1197)

Explicit raw saving before logarithmic factors are absorbed.

theorem Cslib.Algorithms.ExactTriangle.ParameterChoice.preparation_le {n : ℕ} (hn : 0 < n) :
↑n ^ 2 * ↑(window n) * ↑(groups n) ≤ ↑n ^ 3 / ↑(groups n)

The one-time preparation term gains one inverse group factor.

theorem Cslib.Algorithms.ExactTriangle.ParameterChoice.group_work_le {n : ℕ} (hn : 0 < n) :
↑n * ↑(groups n) ≤ ↑n ^ 3 / ↑(groups n)

Constant work per group fits the same common cost scale.

theorem Cslib.Algorithms.ExactTriangle.ParameterChoice.root_work_le {n : ℕ} (hn : 0 < n) :
↑n * ↑(groups n) * ↑(window n).sqrt ≤ ↑n ^ 3 / ↑(groups n)

Root setup per group also fits the common scale.

theorem Cslib.Algorithms.ExactTriangle.ParameterChoice.query_work_le {n : ℕ} (hn : 0 < n) :
↑n * ↑(groups n) * ↑(queryCap n (window n)) ≤ ↑n ^ 3 / ↑(groups n)

The actual integer query capacity yields the same saving, without dropping rounding.

theorem Cslib.Algorithms.ExactTriangle.ParameterChoice.product_work_le {n : ℕ} (hn : 0 < n) :
↑n ^ 3 * ↑(groups n) * ↑(window n) ^ (-(8 / 125)) ≤ ↑n ^ 3 / ↑(groups n)

Product saving converts the additional group multiplier into one inverse group factor.