Source/Packages

Component.Pointwise

packages/components/src/Component/Pointwise.alpha

408 lines49 declarations15.8 KiBSHA-256 b4c565ce95d3

def · lines 212–238

pointwiseProgramWrites

Full file
212def pointwiseProgramWrites =
213  (lambda erased word : Type 0 .
214    erased inputs : Nat .
215    unrestricted program : (family StdList (family PointwiseAssignment word inputs)) .
216    unrestricted index : Nat .
217    eliminate
218      StdList
219      (lambda unrestricted current : (family StdList (family PointwiseAssignment word inputs)) .
220        Nat)
221      program
222      (branch StdListEmpty . 0)
223      (branch
224        StdListCons
225        head
226        tail
227        rest
228        .
229        eliminate
230          PointwiseAssignment
231          (lambda unrestricted current : (family PointwiseAssignment word inputs) . Nat)
232          head
233          (branch
234            PointwiseAssign
235            destination
236            expression
237            .
238            naturalOr (naturalEqual index (stdFinToNatural inputs destination)) rest)))

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.