mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-18 13:31:50 +03:00
41ca73ffaa
The changes didn't alter the behavior of the typechecker, only the warning/error output, and the order of some variables when generalizing.
34 lines
854 B
Plaintext
34 lines
854 B
Plaintext
Loading module Cryptol
|
|
Loading module Cryptol
|
|
Loading module test01
|
|
module test01
|
|
import Cryptol
|
|
/* Not recursive */
|
|
test01::a : {a, b} (fin a) => [a]b -> [2 * a]b
|
|
test01::a = \{a, b} (fin a) ->
|
|
(\ (x : [a]b) ->
|
|
f a x
|
|
where
|
|
/* Not recursive */
|
|
f : {c} [c]b -> [a + c]b
|
|
f = \{c} (y : [c]b) -> (#) a c b <> x y
|
|
|
|
) : [a]b -> [2 * a]b
|
|
|
|
Loading module Cryptol
|
|
Loading module test01
|
|
module test01
|
|
import Cryptol
|
|
/* Not recursive */
|
|
test01::a : {a, b} (fin a) => [a]b -> [2 * a]b
|
|
test01::a = \{a, b} (fin a) ->
|
|
(\ (x : [a]b) ->
|
|
f x
|
|
where
|
|
/* Not recursive */
|
|
f : [a]b -> [a + a]b
|
|
f = \ (y : [a]b) -> (#) a a b <> x y
|
|
|
|
) : [a]b -> [2 * a]b
|
|
|