Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.Frontier

Finite frontier conservation for sparse native queries #

Pending prefixes carry possible-leaf counts, additive values and the previously proved finite depth potential. Expanding one prefix preserves counts and values and decreases that potential; completing a full leaf transfers exactly one term to the finished list. These are finite algebraic facts, not execution or cost contracts.

Number of possible full leaves represented by the pending task list.

Additive value of all full leaves represented by the pending task list.

@[simp]

The initial frontier contains exactly the original allowed full leaves.

@[simp]

The initial frontier's value is the original allowed-leaf sum.

@[simp]

Initial finite depth potential charges at most one full-depth path per allowed leaf.

Each pending leaf contributes at least one unit of finite depth potential.

Replacing a task with its real children preserves the represented leaf count.

Replacing a task with its real children preserves every additive semantic sum.

The actual ordered expansion strictly decreases the pending finite work potential.

Finishing a valid full leaf removes exactly one possible-leaf occurrence.

Finishing that leaf removes precisely its original additive value.

A completed leaf has exactly one unit of remaining depth potential.

Finite conservation data used to relate native accumulator contents to the root sum. There is no execution, charged-time, layout or intermediate-fitting field.

The actual initial empty prefix satisfies the finite conservation invariant.

Actual child expansion preserves conservation while advancing finite work.

Finishing one actual leaf transfers its occurrence and value to the completed prefix.

At the empty frontier the accumulated original leaf values equal the exact root sum.

The actual finished prefix cannot exceed the original number of allowed full leaves.

The pending native record count fits below the same original finite root potential.