mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-09-19 18:08:37 +03:00
570f0be2ea
`fin bits` and `bits >= width val` together imply `fin val`.
33 lines
919 B
Plaintext
33 lines
919 B
Plaintext
Loading module Cryptol
|
|
Loading module Cryptol
|
|
Loading module test03
|
|
module test03
|
|
import Cryptol
|
|
/* Not recursive */
|
|
test03::test : {a} (fin a, a >= width a) => [a]
|
|
test03::test = \{a} (fin a, a >= width a) ->
|
|
test03::foo a <> <>
|
|
where
|
|
/* Not recursive */
|
|
test03::foo : {b} (b >= width a, fin b) => [b]
|
|
test03::foo = \{b} (b >= width a, fin b) ->
|
|
Cryptol::demote a b <> <>
|
|
|
|
|
|
|
|
Loading module Cryptol
|
|
Loading module test03
|
|
module test03
|
|
import Cryptol
|
|
/* Not recursive */
|
|
test03::test : {a} (fin a, a >= width a) => [a]
|
|
test03::test = \{a} (fin a, a >= width a) ->
|
|
test03::foo
|
|
where
|
|
/* Not recursive */
|
|
test03::foo : [a]
|
|
test03::foo = Cryptol::demote a a <> <>
|
|
|
|
|
|
|