Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Matching equalities without inequalities

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Matching equalities without inequalities


chronological Thread 
  • From: Marko Malikovi� <marko AT ffri.hr>
  • To: gil AT mpi-sws.org
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Matching equalities without inequalities
  • Date: Sat, 24 Dec 2011 22:51:20 +0100 (CET)
  • Importance: Normal

Dear Gil,

Yes, it works! Well done!

Thanx and greetings from Croatia,

Marko Malikovic

> The following solution seems to work.
> ==========================
> Definition mynot {A} (a b:A) := a <> b.
> Lemma ...
> repeat (match goal with [H: context[?a <> ?b] |- _] => fold (mynot a
> b) in H end).match goal with [H: context [?a = ?b] |- _] => ...
> end.unfold mynot in *.
> ==========================
> Best,Gil




Archive powered by MhonArc 2.6.16.

Top of Page