TorchLean API

NN.Tensor.Internal.Elab.Native.Index

Certified row-major index specialization #

Checked operations express source indices through compact row-major programs. This module partially evaluates those programs while elaborating a concrete operation and returns an equality certificate for the specialized arithmetic.

Transport one loop-index bound from a checked shape to its concrete native counter bound before arithmetic certification.

Instances For

    Partially evaluate a compact row-major index.

    The returned proof is oriented from the specialized expression to the original program, ready to compose with its semantic correctness theorem.

    Instances For