Documentation

BSeries.Numerics.FastWeight

A memoised elementary-weight evaluator #

The recursive elementary weight RungeKutta.weight recomputes stage weights of shared subtrees once per surrounding stage index, which is exponentially slow for native_decide sweeps over expensive coefficient fields (rational functions of a generic parameter). This file provides RungeKutta.fastWeight, which annotates each subtree once with its full stage-weight vector, together with the correctness theorem fastWeight_eq identifying it with weight.

Composed tableaux are sum-indexed; combine with weight_reindex and finSumFinEquiv to evaluate them through a Fin-indexed scheme.

@[irreducible]

The stage-weight vector of a tree, computed bottom-up: each subtree is annotated exactly once.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    The memoised elementary weight.

    Equations
    Instances For

      Materialise a Fin-indexed tableau: all entries are computed once and stored as lists, so that repeated access during a weight sweep does not re-evaluate expensive coefficient expressions.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        The memoised evaluator computes the elementary weight.