Source/Packages

Realization.Nvidia.SM86.LinearStepSM86

packages/realizations/cooperative/nvidia-sm86/src/Realization/Nvidia/SM86/LinearStepSM86.alpha

354 lines84 declarations21.5 KiBSHA-256 a13116730702

def · lines 158–167

lsFor

Full file
an unrolled loop: body 0 (body 1 (... body (count-1) tail))
158def lsFor =
159  (lambda unrestricted count : Nat .
160    (lambda unrestricted body : (pi unrestricted index : Nat . (pi unrestricted rest : (family SM86Program) . (family SM86Program))) .
161      (lambda unrestricted tail : (family SM86Program) .
162        (nat-eliminate
163          (lambda unrestricted current : Nat . (family SM86Program))
164          tail
165          (lambda unrestricted predecessor : Nat . (lambda unrestricted induction : (family SM86Program) .
166            (body (naturalSaturatingSubtract (naturalSaturatingSubtract count 1) predecessor) induction)))
167          count))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.