Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to "flip" an equality proposition in Coq?

Tags:

coq

If I'm in Coq and I find myself in a situation with a goal like so:

==================
  x = y -> y = x

Is there a tactic that can can take care of this in one swoop? As it is, I'm writing

intros H. rewrite -> H. reflexivity.

But it's a bit clunky.

like image 285
limp_chimp Avatar asked Nov 12 '14 07:11

limp_chimp


1 Answers

To "flip" an equality H: x = y you can use symmetry in H. If you want to flip the goal, simply use symmetry.

like image 64
Vinz Avatar answered Sep 22 '22 19:09

Vinz