Skip to Content.
Sympa Menu

coq-club - RE: [Coq-Club] f_equals for <= and +

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

RE: [Coq-Club] f_equals for <= and +


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] f_equals for <= and +
  • Date: Thu, 27 Oct 2016 12:29:49 +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 mga01.intel.com
  • Ironport-phdr: 9a23:rwh+fxSTRsr68sWp7JzCmo5p9Npsv+yvbD5Q0YIujvd0So/mwa64YhGN2/xhgRfzUJnB7Loc0qyN4vqmBjVLvcjJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/mjabtotaPPU1hv3mUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD86Fpy8kVG679ZuEzSaFSJDUgKWE8osPx/1GXRgyWo3AYT28+kxxSAgGD4gusDbnrtS6v/NF61SaGJ8ruCfgRWD+i5qpvAle8jSYMNzc09CfMjcF/kLhcuDqgoQByx8jfZ4TDZ6k2Rb/UYd5PHTkJZc1WTSEUWo4=

Dear Klaus,

if a<=d, b<=e and c<=f are already there (as hypothesis), omega can solve
this (for suitable sets).

Otherwise I don't think there is a generic tactic, since in general it is not
very likely that you can prove a + b +c <= d + e + f by proving that <= holds
for each pair. What I do in such situations is to "autoforward" certain
easily provable results as hypothesis and then apply omega. So in your case,
I would create one or more tactics which look if the preconditions for
proving a<=d, b<=e or c<=f are there, and if so automatically create a
hypothesis with this result. Then you can apply omega.

There are lemmas which have a fairly trivial conclusion but rather complex
hypothesis and there are lemmas which have rather complex conclusions and
rather simple hypothesis (and others of cause). The first ones are better
used forward (working from hypothesis towards the goal) while the latter are
better used backward (working from the goal towards the hypothesis), because
otherwise the search branching factors are large. Coq doesn't have good built
in support for forwarding things automatically, but one can for sure write
tactics which do this.

Of cause you can also write a simple tactic that takes a goal a + term1 <= b
+ term2 and converts this into two goals a<=b and term1<=term2. If you need
help with automating forwarding (which can get quite involved) or writing
such a simple tactic, please let me now.

Best regards,

Michael
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, Christian Lamprechter
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