2014-12-16 04:48:25 +03:00
|
|
|
Loading module Cryptol
|
|
|
|
Loading module Cryptol
|
|
|
|
Loading module test02
|
|
|
|
module test02
|
|
|
|
import Cryptol
|
|
|
|
/* Not recursive */
|
|
|
|
test02::test : {a, b} a -> b
|
|
|
|
test02::test = \{a, b} (a : a) ->
|
|
|
|
f b a
|
|
|
|
where
|
|
|
|
/* Recursive */
|
|
|
|
f : {c} a -> c
|
|
|
|
f = \{c} (x : a) -> g c a
|
|
|
|
g : {c} a -> c
|
|
|
|
g = \{c} (x : a) -> f c x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Loading module Cryptol
|
|
|
|
Loading module test02
|
|
|
|
module test02
|
|
|
|
import Cryptol
|
|
|
|
/* Not recursive */
|
2014-12-30 21:43:38 +03:00
|
|
|
test02::test : {a, b} b -> a
|
|
|
|
test02::test = \{a, b} (a : b) ->
|
2014-12-16 04:48:25 +03:00
|
|
|
f a
|
|
|
|
where
|
|
|
|
/* Recursive */
|
2014-12-30 21:43:38 +03:00
|
|
|
f : b -> a
|
|
|
|
f = \ (x : b) -> g a
|
|
|
|
g : b -> a
|
|
|
|
g = \ (x : b) -> f x
|
2014-12-16 04:48:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
|