Certified native reduction loops #
Concrete reductions use one native output loop and one native fiber loop. The pointwise reader certificate connects direct source-buffer reads to the existing row-major reduction semantics, so scalar operation order is unchanged.
Reduce every fiber with native output and fiber counters.
The executable callback receives both counters as USize. Its pointwise
certificate is erased and proves agreement with the existing flat-reader
reduction at the corresponding bounded indices.
Instances For
The native ordered reduction is exactly the existing flat-reader reduction.
Name one generated native reduction callback for compact elaboration.
Instances For
Compile an ordered flat-reader reduction to nested native loops.
The source map may be the identity map of an ordinary tensor or a certified map recovered from a preceding shape-only transform.