TorchLean API

FloatLib.Numerics.Automation.Interval.Aggregates

Finite aggregates for interval reification #

Concrete finite sums and norms are expanded into scalar arithmetic with equality certificates. Splitting Fin and range sums in halves keeps the resulting additions balanced.

theorem FloatLib.Numerics.Interval.Tactic.sup_univ_fin_add {a b : ℕ} (f : Fin (a + b) → NNReal) :
Finset.univ.sup f = max (Finset.univ.sup fun (i : Fin a) => f (Fin.castAdd b i)) (Finset.univ.sup fun (i : Fin b) => f (Fin.natAdd a i))

Split a finite supremum along the two consecutive blocks of a Fin index.

Turn an equality into a simplifier result without normalizing either side.

Instances For

    Expand one finite real sum, using balanced partitions for numerical dimensions.

    Instances For

      Expand a nonnegative finite supremum; coercions then expose real maxima.

      Instances For

        Reduce closed natural coefficients, including projections of generated Fin indices.

        Instances For

          The aggregate expansion is local to the interval tactic.

          Instances For

            Keep unsupported real functions intact instead of simplifying inside their arguments.

            Instances For

              Prove a closed guard only after its decision procedure reduces to true.

              Instances For

                Scalar coercions preserve arithmetic; truncated subtraction becomes a maximum.

                Instances For

                  Expose numerical coefficients without expanding aggregates or evaluating real arithmetic.

                  Instances For

                    Normalize concrete finite sums, dot products, matrix entries, and l1/infinity norms.

                    The result contains the scalar expression and a proof of equality to the input. A caller proving reification correctness can compose this proof with a structural proof for the normalized scalar expression, without running arithmetic simplification on the expanded aggregate.

                    Instances For