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

    Build the shared simplifier for compact row-major index programs.

    Callers may provide operation-specific definitions such as the compact reduction index. Coordinate semantics and proof fields remain opaque.

    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