From: Christoph Fuerst Date: Sat, 8 Apr 2017 17:39:03 +0000 (+0200) Subject: b is actually a prime X-Git-Url: http://git.risc.jku.at/gitweb/?a=commitdiff_plain;h=96f921b40ded4defb9a93b26e29c058b1fcb4b43;p=cfuerst%2Fformal-numbers.git b is actually a prime --- diff --git a/discrete_log.txt b/discrete_log.txt index 08e5964..30b5143 100644 --- a/discrete_log.txt +++ b/discrete_log.txt @@ -52,7 +52,7 @@ proc IntegerRoot(a:nat): nat proc DiscreteLog(p:prime,g:nat,a:nat): res requires 1 < p ∧ isPrime(p) ∧ // p is a prime greater than 1 1 < g ∧ g < p ∧ - ∀b:nat. (0 < b ∧ b < p-1) ⇒ (g^b % p ≠ 1) ∧ g^(p-1)%p = 1 ∧ // g has order p-1 + ∀b:prime. (0 < b ∧ b < p-1) ⇒ (g^b % p ≠ 1) ∧ g^(p-1)%p = 1 ∧ // g has order p-1 0 < a ∧ a < p; // a is in ℤ/pℤ - {0} ensures (g^result)%p = a; {