Source/Packages

Component.Pointwise

packages/components/src/Component/Pointwise.alpha

408 lines49 declarations15.8 KiBSHA-256 b4c565ce95d3

def · lines 179–210

pointwiseProgramReadsInitial

Full file
179def pointwiseProgramReadsInitial =
180  (lambda erased word : Type 0 .
181    erased inputs : Nat .
182    unrestricted program : (family StdList (family PointwiseAssignment word inputs)) .
183    unrestricted index : Nat .
184    eliminate
185      StdList
186      (lambda unrestricted current : (family StdList (family PointwiseAssignment word inputs)) .
187        Nat)
188      program
189      (branch StdListEmpty . 0)
190      (branch
191        StdListCons
192        head
193        tail
194        rest
195        .
196        eliminate
197          PointwiseAssignment
198          (lambda unrestricted current : (family PointwiseAssignment word inputs) . Nat)
199          head
200          (branch
201            PointwiseAssign
202            destination
203            expression
204            .
205            naturalOr
206              (pointwiseExpressionReads word inputs expression index)
207              (pipe index
208                (naturalEqual (stdFinToNatural inputs destination))
209                naturalIsZero
210                (naturalAnd 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.