Skip to Content.
Sympa Menu

ssreflect - [ssreflect] Rewriting with wildcards

Subject: Ssreflect Users Discussion List

List archive

[ssreflect] Rewriting with wildcards


Chronological Thread 
  • From: Guillaume Melquiond <>
  • To:
  • Subject: [ssreflect] Rewriting with wildcards
  • Date: Mon, 22 Feb 2016 12:47:39 +0100

Hi,

Enrico feels the following should be made known to more people, so here
it is.

Have you ever wanted to rewrite using wildcards not only on the
left-hand side but also on the right-hand side of an equality? Are you
using Coq 8.5? Then the following trick might be of help to you:

Lemma foo x y : x + 3 + y = 3 + x + y.
rewrite (_ : ?[n] + 3 = 3 + ?n).

Best regards,

Guillaume



Archive powered by MHonArc 2.6.18.

Top of Page