projects
/
cfuerst
/
formal-numbers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbcfdfa
)
Corrected datatype
author
Christoph Fuerst
<ch.fuerst@gmx.at>
Thu, 6 Apr 2017 19:57:14 +0000
(21:57 +0200)
committer
Christoph Fuerst
<ch.fuerst@gmx.at>
Thu, 6 Apr 2017 19:57:14 +0000
(21:57 +0200)
discrete_log.txt
patch
|
blob
|
history
diff --git
a/discrete_log.txt
b/discrete_log.txt
index
5ea4687
..
b4ce377
100644
(file)
--- a/
discrete_log.txt
+++ b/
discrete_log.txt
@@
-17,7
+17,7
@@
proc InvModP(a:ℕ[K^2],p:prime): prime
ensures (a*result) % p = 1;
{
var ainv:prime := 0;
- var i:
ℕ[K^2]
;
+ var i:
prime
;
// straight search
// algorithmic alternative: Euclidean algorithm