Source/Packages

Component.Pointwise

packages/components/src/Component/Pointwise.alpha

408 lines49 declarations15.8 KiBSHA-256 b4c565ce95d3

def · lines 335–358

pointwiseProgramTemporaryValues

Full file
335def pointwiseProgramTemporaryValues =
336  (lambda erased word : Type 0 .
337    erased inputs : Nat .
338    unrestricted program : (family StdList (family PointwiseAssignment word inputs)) .
339    stdListFold
340      (family PointwiseAssignment word inputs)
341      Nat
342      (lambda unrestricted assignment : (family PointwiseAssignment word inputs) .
343        unrestricted rest : Nat .
344        eliminate
345          PointwiseAssignment
346          (lambda unrestricted current : (family PointwiseAssignment word inputs) . Nat)
347          assignment
348          (branch
349            PointwiseAssign
350            destination
351            expression
352            .
353            let unrestricted count =
354              (pointwiseTemporaryValues word inputs expression)
355              in
356              naturalSelect (naturalLess count rest) rest count))
357      0
358      program)

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.