Documentation

CslibFrontier.Algorithms.ExactTriangle.ParameterChoice

Integer-block parameters for the native box endpoint #

The parameters are chosen to put the different native costs on the common scale n³/g. Here n is the Exact Triangle dimension, D the prime-window parameter and g the group count. Before choosing integer values, the relevant inequalities are:

ParameterChoice.CostGeometry proves the last three inequalities and their cost consequences. The chosen family reserves the stronger D^19 ≤ n and uses g=4^(2b), D=4^(63b). The product balance becomes 4*125 ≤ 63*8, or 500 ≤ 504; 63b is also a multiple of nine as required by the box tradeoff. Reserving nineteen powers of D then requires 2*63*19*b = 2394*b ≤ log₂ n, explaining b = floor(log₂(n)/2394). The existing box construction uses tensor depth L=21m at m=63b.

This integer rounding gives n^(2/1197) < 16*g and hence the raw cost scale n³/g ≤ 16*n^(3-2/1197). It does not remove logarithmic factors: the native finite ledger retains (21m+1)²*(m+1) and the selected-prime scan term. Their degree-three logarithmic coefficient is absorbed later in WordRAM.ExactTriangle.DyadicCost.Asymptotics.

blocks_pos_iff identifies the exact fast-branch cutoff n ≥ 2^2394. Below it the automatic solver uses its exhaustive branch. This is a proved feasible family, not an optimal parameter choice or a practical crossover estimate. The arithmetic tuning is original; the source's fractional-root parameter computation is not implemented by these definitions.

Number of complete blocks of 2394 binary input-size bits.

The thin-product matrix parameter is a multiple of 63.

Prime-window and thin-product dimension parameter.

The group count balancing the two existing native solver terms.

Tensor depth for the existing thin-product implementation.

Block rounding never exceeds the available binary logarithm.

The scale exponent is bounded by the original binary logarithm.

The matrix exponent also fits below the original binary logarithm.

The group parameter is always positive, including on empty input.

Exact dyadic form of the geometry reservation.

Every positive input admits the exact thin-product size condition. At zero the chosen window is one and the fast branch is disabled instead.

The box backend requires only eighteen of the nineteen reserved window factors.

The reserved window never exceeds a positive original dimension.

The group count is no larger than the chosen window.

Both powers are bounded by the original dimension plus one, including empty input.

The large-geometry branch is exactly the explicit constant input threshold.

A positive block count supplies the solver's nontrivial window hypothesis.

Squaring permits an exact integer exponent for the rounded group count.

A positive block count excludes empty input.

The group parameter is at least one, including small input.

The window parameter is positive at every input.

The group count cannot consume more than the original positive dimension.