Ives–Stilwell experiment: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Michael Hardy
en>Tom.Reding
m Gen fixes (page/s, endash, &nbsp, et al., unicodify, and/or concising wikilinks, etc.), & ref cleanup using AWB
 
Line 1: Line 1:
In [[mathematics]] and [[computer science]], a '''primality certificate''' or '''primality proof''' is a succinct, formal proof that a number is prime. Primality certificates allow the primality of a number to be rapidly checked without having to run an expensive or unreliable [[primality test]]. By "succinct", we usually mean that we wish for the proof to be at most polynomially larger than the number of digits in the number itself (for example, if the number has ''b'' bits, the proof might contain roughly ''b''<sup>2</sup> bits).
Hello, my title is Andrew and my spouse doesn't like it at all. To climb is some thing she would never give up. My day occupation is an info officer but I've currently applied for another 1. Ohio is where his house is and his family members loves it.<br><br>Feel free to visit my blog: best psychic readings ([http://myfusionprofits.com/groups/find-out-about-self-improvement-tips-here/ myfusionprofits.com])
 
Primality certificates lead directly to proofs that problems such as [[primality testing]] and the [[complement (complexity)|complement]] of [[integer factorization]] lie in [[NP (complexity)|NP]], the class of problems verifiable in polynomial time given a solution. These problems already trivially lie in [[co-NP]]. This was the first strong evidence that these problems are not [[NP-complete]], since if they were it would imply NP = co-NP, a result widely believed to be false; in fact, this was the first demonstration of a problem in NP intersect co-NP not known (at the time) to be in P.
 
Producing certificates for the complement problem, to establish that a number is composite, is straightforward; it suffices to give a nontrivial divisor. Standard probabilistic primality tests such as the [[Baillie-PSW primality test]], the [[Fermat primality test]], and the [[Miller-Rabin primality test]] also produce compositeness certificates in the event where the input is composite, but do not produce certificates for prime inputs.
 
== Pratt certificates ==
 
The concept of primality certificates was historically introduced by the '''Pratt certificate''', conceived in 1975 by [[Vaughan Pratt]],<ref>Vaughan Pratt. Every prime has a succinct certificate. ''SIAM Journal on Computing'', vol.4, pp.214&ndash;220. 1975. [http://citeseer.ist.psu.edu/context/39245/0 Citations], [http://boole.stanford.edu/pub/SucCert.pdf Full-text]</ref> who described its structure and proved it to have polynomial size and to be verifiable in polynomial time. It is based on the [[Lucas primality test]], which is essentially the [[Conversion (logic)|converse]] of [[Fermat's little theorem]] with an added condition to make it true:
 
:Suppose we have an integer ''a'' such that:
:* ''a'' is [[coprime]] to ''n'';
:* ''a''<sup>''n'' &minus;1</sup> &equiv; 1 (mod ''n'')
:* For every prime factor ''q'' of ''n'' &minus;1, it is not the case that ''a''<sup>(''n'' &minus;1)/''q''</sup> &equiv; 1 (mod ''n'').
:Then, ''n'' is prime.
 
Given such an ''a'' (called a ''witness'') and the prime factorization of ''n''&minus;1, it's simple to verify the above conditions quickly: we only need to do a linear number of modular exponentiations, since every integer has fewer prime factors than bits, and each of these can be done by [[exponentiation by squaring]] in O(log ''n'') multiplications (see [[big-O notation]]). Even with grade-school integer multiplication, this is only O((log ''n'')<sup>4</sup>) time; using the [[multiplication algorithm]] with best-known asymptotic running time, the [[Schönhage–Strassen algorithm]], we can lower this to O((log ''n'')<sup>3</sup>(log log ''n'')(log log log ''n'')) time, or using soft-O notation Õ((log ''n'')<sup>3</sup>).
 
However, it is possible to trick a verifier into accepting a composite number by giving it a "prime factorization" of ''n''&minus;1 that includes composite numbers. For example, suppose we claim that ''n''=85 is prime, supplying ''a''=4 and ''n''&minus;1=6&times;14 as the "prime factorization". Then (using ''q''=6 and ''q''=14):
 
* 4 is coprime to 85
* 4<sup>85&minus;1</sup> &equiv; 1 (mod 85)
* 4<sup>(85&minus;1)/6</sup> &equiv; 16 (mod 85), 4<sup>(85&minus;1)/14</sup> &equiv; 16 (mod 85)
 
We would falsely conclude that 85 is prime. We don't want to just force the verifier to factor the number so a better way to avoid this issue is to give primality certificates for each of the prime factors of ''n''&minus;1 as well, which are just smaller instances of the original problem. We continue recursively in this manner until we reach a number known to be prime, such as 2. We end up with a tree of prime numbers, each associated with a witness ''a''. For example, here is a complete Pratt certificate for the number 229:
 
* 229 (''a''=6, 229&minus;1 = 2<sup>2</sup>&times;3&times;19)
** 2 (known prime)
** 3 (''a''=2, 3&minus;1 = 2)
*** 2 (known prime)
** 19 (''a''=2, 19&minus;1 = 2&times;3<sup>2</sup>)
*** 2 (known prime)
*** 3 (''a''=2, 3&minus;1 = 2)
**** 2 (known prime)
 
This proof tree can be shown to contain at most <math>4\log_2 n - 4</math> values other than 2 by a simple inductive proof (based on Theorem 2 of Pratt). The result holds for 3; in general, take ''p'' > 3 and let its children in the tree be ''p''<sub>1</sub>,...,''p''<sub>''k''</sub>. By the inductive hypothesis the tree rooted at ''p''<sub>''i''</sub> contains at most <math>4\log_2 p_i - 4</math> values, so the entire tree contains at most:
 
:<math>1 + \sum_{i=1}^k (4\log_2 p_i - 4) = -4k + 4\log_2 p_1\cdots p_k \leq 4\log_2 p - 4,</math>
 
since ''k'' &ge; 2 and ''p''<sub>1</sub>...''p''<sub>''k''</sub> = ''p''&minus;1. Since each value has at most log ''n'' bits, this also demonstrates that the certificate has a size of O((log ''n'')<sup>2</sup>) bits.
 
Since there are O(log ''n'') values other than 2 and each requires at most one exponentiation to verify (and exponentiations dominate the running time), the total time is O((log ''n'')<sup>3</sup>(log log ''n'')(log log log ''n'')) or Õ((log ''n'')<sup>3</sup>), which is quite feasible for numbers in the range that computational number theorists usually work with.
 
However, while useful in theory and easy to verify, actually generating a Pratt certificate for ''n'' requires factoring ''n''&minus;1 and other potentially large numbers. This is simple for some special numbers such as [[Fermat primes]], but currently much more difficult than simple primality testing for large primes of general form.
 
== Atkin–Goldwasser–Kilian–Morain certificates ==
To address the problem of efficient certificate generation for larger numbers, in 1986 [[Shafi Goldwasser]] and [[Joe Kilian]] described a new type of certificate based on the theory of [[elliptic curve]]s.<ref>Goldwasser, S. and Kilian, J. "Almost All Primes Can Be Quickly Certified." Proc. 18th STOC. pp. 316-329, 1986. [http://groups.csail.mit.edu/cis/pubs/shafi/1986-stoc-gk.pdf Full text]</ref> This was in turn used by [[A. O. L. Atkin]] and [[François Morain]] as the basis for Atkin-Goldwasser-Kilian-Morain certificates, which are the type of certificates generated and verified by [[elliptic curve primality proving]] systems.<ref>Atkin, A. O. L. and Morain, F. "Elliptic Curves and Primality Proving." Math. Comput. 61, 29-68, 1993. [http://citeseer.ist.psu.edu/atkin93elliptic.html At Citeseer]</ref> Just as Pratt certificates are based on Lehmer's theorem, Atkin-Goldwasser-Kilian-Morain certificates are based on the following theorem of Goldwasser and Kilian (Lemma 2 of "Almost All Primes Can Be Quickly Certified"):
 
:'''Theorem''': Suppose we are given:
:* a positive integer ''n'' not divisible by 2 or 3;
:* M<sub>''x''</sub>,M<sub>''y''</sub>,A,B in <math>\mathbb{Z}_n</math> (the integers mod ''n'') satisfying M<sub>''y''</sub><sup>2</sup> = M<sub>''x''</sub><sup>3</sup> + AM<sub>''x''</sub> + B and with 4A<sup>3</sup> + 27B<sup>2</sup> coprime to ''n'';
:* a prime <math>q > n^{1/2} + 1 +2n^{1/4}</math>.
:Then M=(M<sub>''x''</sub>,M<sub>''y''</sub>) is a non-identity point on the elliptic curve ''y''<sup>2</sup> = ''x''<sup>3</sup> + Ax + B. Let kM be M added to itself k times using standard elliptic curve addition. Then, if ''q''M is the identity element I, then ''n'' is prime.
 
Technically, an elliptic curve can only be constructed over a field, and <math>\mathbb{Z}_n</math> is only a field if ''n'' is prime, so we seem to be assuming the result we're trying to prove. The difficulty arises in the elliptic curve addition algorithm, which takes inverses in the field that may not exist in <math>\mathbb{Z}_n</math>. However, it can be shown (Lemma 1 of "Almost All Primes Can Be Quickly Certified") that if we merely perform computations as though the curve were well-defined and do not at any point attempt to invert an element with no inverse, the result is still valid; if we do encounter an element with no inverse, this establishes that ''n'' is composite.
 
To derive a certificate from this theorem, we first encode M<sub>''x''</sub>, M<sub>''y''</sub>, A, B, and ''q'', then recursively encode the proof of primality for ''q'' < ''n'', continuing until we reach a known prime. This certificate has size O((log ''n'')<sup>2</sup>) and can be verified in O((log ''n'')<sup>4</sup>) time. Moreover, the algorithm that generates these certificates can be shown to be expected polynomial time for all but a small fraction of primes, and this fraction exponentially decreases with the size of the primes. Consequently, it's well-suited to generating certified large random primes, an application that is important in [[cryptography]] applications such as generating provably valid [[RSA (algorithm)|RSA]] keys.
 
== Impact of PRIMES in P ==
 
Because primality testing can now be done deterministically in polynomial time using the [[AKS primality test]], a prime number could itself be considered a certificate of its own primality. This test runs in Õ((log ''n'')<sup>6</sup>) time. In practice this method of verification is more expensive than the verification of Pratt certificates, but does not require any computation to determine the certificate itself.
 
== References ==
<references />
 
== External links ==
 
* [http://mathworld.wolfram.com/PrimalityCertificate.html Mathworld: Primality Certificate]
* [http://mathworld.wolfram.com/PrattCertificate.html Mathworld: Pratt Certificate]
* [http://mathworld.wolfram.com/Atkin-Goldwasser-Kilian-MorainCertificate.html Mathworld: Atkin-Goldwasser-Kilian-Morain Certificate]
* [[Vašek Chvátal]]. [http://www.cs.rutgers.edu/~chvatal/notes/ppp/ppp.html Lecture notes on Pratt's Primality Proofs]. Department of Computer Science. Rutgers University. [http://www.cs.concordia.ca/~chvatal/notes/ppp.pdf PDF version at Concordia University].
* Wim van Dam. [http://www.cs.ucsb.edu/~vandam/teaching/CS172/pratt.pdf Proof of Pratt's Theorem]. (Lecture notes, PDF)
 
[[Category:Primality tests]]

Latest revision as of 20:11, 5 January 2015

Hello, my title is Andrew and my spouse doesn't like it at all. To climb is some thing she would never give up. My day occupation is an info officer but I've currently applied for another 1. Ohio is where his house is and his family members loves it.

Feel free to visit my blog: best psychic readings (myfusionprofits.com)