-
Notifications
You must be signed in to change notification settings - Fork 123
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
Brian Huffman
committed
May 15, 2020
1 parent
df4af1a
commit 700b318
Showing
3 changed files
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
f : {n} (fin n) => [n] -> [n] | ||
f x = g x | ||
where | ||
m1 = zero # x | ||
|
||
g : {k} (fin k) => [k] -> [k] | ||
g m0 = m0 ^ m1 |
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 @@ | ||
:l issue723.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,20 @@ | ||
Loading module Cryptol | ||
Loading module Cryptol | ||
Loading module Main | ||
[warning] at issue723.cry:4:10--4:18: | ||
Defaulting type argument 'front' of '(#)' to 0 | ||
|
||
[error] at issue723.cry:7:5--7:19: | ||
Failed to validate user-specified signature. | ||
in the definition of 'Main::g', at issue723.cry:7:5--7:6, | ||
we need to show that | ||
for any type k | ||
assuming | ||
• fin k | ||
the following constraints hold: | ||
• k >= n`908 | ||
arising from | ||
matching types | ||
at issue723.cry:7:17--7:19 | ||
where | ||
n`908 is signature variable 'n' at issue723.cry:1:6--1:7 |