tchajed / coq-tricks

Tricks you wish the Coq manual told you

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trick suggestion: apply tactic to all subgoals

ComFreek opened this issue · comments

Here's one trick (credits to @Blaisorblade):

  • If you have a tactic s that introduces multiple subgoals and a tactic t, then s; t will apply t to every subgoal individually. Sometimes, this will even cause s to backtrack:

    E.g. "constructor; solve [eauto]" has been useful:
    it picks not a random constructor, but one that allows solving all goals!

Hi @ComFreek! I have a private collection of SSReflect tricks. Since there is interest in this topic, maybe it's time to brush them up and make available publicly...

@anton-trunov that would be great, I'd be happy to add them here if you make them public!