definition module Control.GenHylo

import StdGeneric, Control.GenMap

:: Fix f = In (f .(Fix f))
Out :: !u:(Fix v:a) -> v:(a w:(Fix v:a)), [u <= w]

hylo :: ((.f .b) -> .b) (.a -> (.f .a)) -> (.a -> .b) | gMap{|*->*|} (f a) (f b)
cata :: (u:(f .a) -> .a) -> (Fix u:f) -> .a | gMap{|*->*|} (f (Fix f)) (f a)
ana :: (.a -> u:(f .a)) -> .a -> (Fix u:f) | gMap{|*->*|} (f a) (f (Fix f))
