-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
f : {m,n} (m >= n) => [m] -> [n] | ||
f = take`{n} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:load issue_1696.cry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Loading module Cryptol | ||
Loading module Cryptol | ||
Loading module Main | ||
|
||
[error] at issue_1696.cry:3:1--3:13: | ||
Failed to infer the following types: | ||
• ?m, type argument 'back' of 'take' at issue_1696.cry:3:5--3:9 | ||
while validating user-specified signature | ||
in the definition of 'Main::f', at issue_1696.cry:3:1--3:2, | ||
we need to show that | ||
for any type m, n | ||
assuming | ||
• m >= n | ||
the following constraints hold: | ||
• m == ?m + n | ||
arising from | ||
matching types | ||
at issue_1696.cry:3:5--3:9 |