Skip to Content.
Sympa Menu

coq-club - RE: [Coq-Club] Question on Coq-Interval: i_bisect_diff x vs. i_bisect taylor x 1

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

RE: [Coq-Club] Question on Coq-Interval: i_bisect_diff x vs. i_bisect taylor x 1


Chronological Thread 
  • From: "Soegtrop, Michael" <michael.soegtrop AT intel.com>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: RE: [Coq-Club] Question on Coq-Interval: i_bisect_diff x vs. i_bisect taylor x 1
  • Date: Thu, 17 Jan 2019 17:42:47 +0000
  • Accept-language: de-DE, en-US
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=michael.soegtrop AT intel.com; spf=Pass smtp.mailfrom=michael.soegtrop AT intel.com; spf=None smtp.helo=postmaster AT mga06.intel.com
  • Dlp-product: dlpe-windows
  • Dlp-reaction: no-action
  • Dlp-version: 11.0.400.15
  • Ironport-phdr: 9a23:iDnU8BR2ZPU/nZQiWmJy8qZs1dpsv+yvbD5Q0YIujvd0So/mwa6yYRSN2/xhgRfzUJnB7Loc0qyK6/CmATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbB/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/mHJhMJtkKJVrhGvpxJ9zI7VfI6aO/Vwc7jBfdwBQWdNQtpdWzBDD466coABD/ABPeFdr4TlqVcAsBy+ChejBOPz0D9IgWf20bUn2OomEAHJwAwgEMgQv3TQotn+KaAfUeW0zKbUzTXMde1Z2TPn5IjTdRAuv/6MXa5qccrW0UkiDALFjlOMqYP7OzOZzPgCs2+e7+d5U++klmApqwZ0oje1x8csjJHEhoMTylDY6yp5xJw5KsCmR0N9fNWqE4NQujmHO4Z4Tc4uWXxktSg1x7EcpJK2cikHxI4pyhLCc/CLbomF7xz5WOufLzp0nmxpdby7ihqo7EStyfDwWtGp3FtLqidJiMfAu3AC2hDJ9MSLUPpw80en1D2SzQ7c8PtELloxlafDK54u3Lowlp0LvETGES/5gln6ga6MekUl/Oio9/roYrH8qpCAMI90jxnyMqUomsOhHeQ1KhUCUmaU9OimybHu80L0TK9XgvA4k6TVqp7XKdkDqq68GQBV04Ij6xilDzeh1dQVhXwHLFNZdxKHlYfmJVXOLOrjDfe4nVusnytrx+rBPr35GZjNL37DkKv/crZ58UJT1A0zzdVH65JOFr4BOO7zWlP2tNHAEhA5NBW0z//7B9V5y4MRQnmCArSZMaPXqV+H/PgjI+iKZI8PuTbyMeIp5/D0jSxxpVhIN6KuxN4cbG2yNvVgOUSQJ3T2yJ9VGmAT+wE6UebCiVuYUDcVaWzkDIwm4TRuQrmhAIjfXIe1xPSk3Sy7F5BSLCgSD1GHEX7lc8OfXPoDdDiVOudglCAJUf6qTIp3hkLmjxPz17cydrmcwSYfr5+2jIEktd2Wrgk78HlPN+rY1miMS29umWZRHm032rxypQp2zVLRiPEk0cwdLsRa4rZyail/LYTVlrUoCtbuVwaHddCMGg7/H4eWRAopR9d0+OcgJkZwH9L70ULG0CPyXfkUkaCGANo/9aeOh3U=

Dear Guillaume,

> Actually, the best option is to use "i_bisect_taylor x 3" (or more) since
> you have

yes, I usually keep depth=5 and increase the taylor degree until it works.
This usually results in proof times around 0.5s on a laptop for my
(substantially more complicated) use cases. I found that if I make the depth
smaller than 5 I sometimes have to increase the taylor degree to a level
where I need to increase the precision to beyond 60 bits. I can get proof
times down to 0.1 or 0.2 s by tweaking the depth and taylor degree in some
cases, but I found it not terribly worthwhile to do this, so keeping depth=5
and increasing taylor until it works seems to be a good strategy for my cases.

All in all, with a little experience, it is very efficient to use your
tactic, both in terms of time it takes to parameterize it as well as in terms
of final proof times.

> Thus, except for minuscule ranges of x, the tactic will never be able to
> use the first derivative.

I tried a small range for x where I looked up in a plot of f-g that the sign
of f-g does not change (9/1000 .. 11/1000 where the closest zeros of f-g are
around 0 and 0.02). See example below.

Anyway - taylor works splendid!

Best regards,

Michael


Goal forall x, 9/1000 <= x <= 11/1000 -> True.
Proof.
intros.
pose (f(x)-fp3(x)) as t.
unfold f,fp3,s1,s3 in t.

Time interval_intro (Rabs (sin x - (4294967285 / 2 ^ 32 * x + -715784163 /
2 ^ 32 * x ^ 3)))
upper with (i_prec 60, i_depth 5, i_bisect_diff x, i_delay) as Hbd.

Time interval_intro (Rabs (sin x - (4294967285 / 2 ^ 32 * x + -715784163 /
2 ^ 32 * x ^ 3)))
upper with (i_prec 60, i_depth 5, i_bisect x, i_delay) as Hb.
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928



Archive powered by MHonArc 2.6.18.

Top of Page