Proofs by Exhaustive Tests in Small Precision
Vincent LEFÈVRE
Arénaire, INRIA Grenoble – Rhône-Alpes / LIP, ENS-Lyon
GdT Arénaire, 2009-11-19
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Proofs by Exhaustive Tests in Small Precision Vincent LEFVRE - - PowerPoint PPT Presentation
Proofs by Exhaustive Tests in Small Precision Vincent LEFVRE Arnaire, INRIA Grenoble Rhne-Alpes / LIP, ENS-Lyon GdT Arnaire, 2009-11-19 [gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille] Outline Optimality of Algorithm 2Sum
Arénaire, INRIA Grenoble – Rhône-Alpes / LIP, ENS-Lyon
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 2 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 3 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
◮ minNum and maxNum: minimum and maximum of 2 numbers; ◮ minNumMag (resp. maxNumMag): the number with the smaller (resp. larger)
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 4 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 5 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 6 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 7 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 8 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 9 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 10 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 11 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
◮ addition: (ui + viεp) + (uj + vjεp) = (ui + uj) + (vi + vj)εp = uk + ˜
◮ subtraction: (ui + viεp) − (uj + vjεp) = (ui − uj) + (vi − vj)εp = uk + ˜
◮ minNum and maxNum: (u1, v1) < (u2, v2) ⇔ u1 + v1εp < u2 + v2εp; ◮ minNumMag and maxNumMag. . .
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 12 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 13 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
◮
◮
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 14 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
p = u′ + v ′εp be the obtained result by running A.
p = tp, so that (u′, v ′) = (u, v). And since in a precision q ≥ 12,
q = u′ + v ′εq = u + vεq = tq.
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 15 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 16 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 17 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
◮ exceptions are ignored and unsupported inputs are not detected; ◮ restriction: the precision must be small enough to have a simple and fast
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 18 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 19 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 20 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 21 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 22 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 23 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 24 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 25 / 26
[gdt200911.tex 33250 2009-11-19 01:57:37Z vinc17/prunille]
Vincent LEFÈVRE (INRIA / LIP, ENS-Lyon) Proofs by Exhaustive Tests in Small Precision GdT Arénaire, 2009-11-19 26 / 26