next node: ArrayConv,
prev node: ArrayMap,
up to node: Subsystem Arrays


ArrayReduce

Signature of ArrayReduce

List of Import References :
See Array
See BOOL
See DENOTATION
See Nat

SIGNATURE ArrayReduce [from,to]

$Date: 2010-09-30 18:24:17 +0200 (Do, 30. Sep 2010) $ ($Revision: 616 $)

-- reductions of arrays

SORT from to

IMPORT Array[from] ONLY array
       Nat         ONLY nat 

FUN / \ : (from**to->to)**to**array[from]->to           
        -- left and right reduction
        -- informally:
        -- (o,e) / ([a,b,...,y,z]) == a o (b o (...(y o (z o e))...))
        -- (o,e) \ ([a,b,...,y,z]) == z o (y o (...(b o (a o e))...))

FUN / \ : (nat**from**to->to)**to**array[from]->to
        -- left and right reduction on index and elements
        -- informally: 
        -- (o,e) / ([a0,a1,...,an]) ==
        --			(0, a0) o ((1, a1) o (...((n, an) o e)...))
        -- (o,e) \ ([a0,a1,...,an]) == 
        --			(n, an) o (...((1, a1) o ((0, a0) o e))...)

-- old fashioned style

FUN / \ : (from**to->to)**to->array[from]->to           
FUN / \ : (nat**from**to->to)**to->array[from]->to


next node: ArrayConv,
prev node: ArrayMap,
up to node: Subsystem Arrays