TorchLean API

NN.Runtime.Autograd.Engine.Cuda.NativeSources

CUDA native source map #

This module is the DocGen-facing home for TorchLean's native CUDA/C runtime notes.

DocGen documents Lean modules, not C or CUDA translation units. Instead of publishing a separate Jekyll source browser, TorchLean keeps the native-source map here, beside the Lean FFI modules that call those symbols. The actual native source remains in csrc/cuda; this page tells readers which files form the trusted backend boundary and which Lean modules expose them.

Trust boundary #

The CUDA backend is a validated implementation of TorchLean's float32 eager runtime. Lean does not prove the compiled CUDA binary correct. The trusted pieces include:

TorchLean's proof-side CUDA contract therefore lives one level up: Lean states pure kernel specs, float32 agreement assumptions, and graph-level semantics; tests validate that the native backend agrees with CPU stubs and reference cases on the supported path.

Native source groups #

DocGen anchor for the CUDA native-source map.

The value is intentionally small; the module documentation above is the useful content. Keeping a public declaration here ensures DocGen emits a navigable page for this map alongside the Lean CUDA FFI modules.

Instances For