Skip to Content.
Sympa Menu

coq-club - [Coq-Club] use inversion? Consider simple inversion instead to speed up Qed.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] use inversion? Consider simple inversion instead to speed up Qed.


Chronological Thread 
  • From: Jonathan Leivent <jonikelee AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] use inversion? Consider simple inversion instead to speed up Qed.
  • Date: Mon, 7 Mar 2016 19:04:53 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qg0-f42.google.com
  • Ironport-phdr: 9a23:J66vWh8rnqhUtv9uRHKM819IXTAuvvDOBiVQ1KB91OgcTK2v8tzYMVDF4r011RmSDdqdu6gP0reempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lRciC1Y/uiqibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwuwwZgf8q9tZBXKPmZOx4COUAVHV1e1wysebsrFHoSRaFri8XVXxTmR5VCSDE6gv7V9H/qH2pmPB63Xy4Osv/UbA9X3yG4qZ1RRn0wHMFMDg482zTh8FYg6dSoRbnrBt6ld2HKLqJPeZzK/uONegRQnBMC4MID3RM

I just ran some performance tests where proofs that started with the tactic sequence "simple inversion H; intros; subst" instead use the tactic sequence "inversion H; subst". Nothing else about these proofs was altered - just this first line. Still, the impact on just the Qed times at the end of the proofs was very large:


simple inversion vs. inversion (all times in seconds)
3.234 120.656
0.846 28.994
0.908 30.288
117.987 1061


Obviously, inversion does more than simple inversion - but in those cases where its attempts to do more don't pan out, there is still considerable impact on the resulting proof term, and one pays for that at Qed time. In the proofs I tested, the subgoals resulting from "inversion H;subst" vs. "simple inversion H;intros;subst" were identical up to the order of hypothesis, hence no simplifications that inversion attempted impacted the proof, even though the impact on the proof term was dramatic.

-- Jonathan



  • [Coq-Club] use inversion? Consider simple inversion instead to speed up Qed., Jonathan Leivent, 03/08/2016

Archive powered by MHonArc 2.6.18.

Top of Page