Subject: Ssreflect Users Discussion List
List archive
- From: Benjamin Werner <>
- To: Keiko Nakata <>
- Cc:
- Subject: Re: subgoal generating rewrite tactics
- Date: Sun, 30 Nov 2008 10:24:03 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=Dg8ETvnL36rO2k0dZ4+kElb0ZrjIrAK2gV5pMgZJsGXD4bLW7UcntH3xFstQ5afjy+ mZq3l7YYv2ER7XkPoGl6Lw4LQ83zyDyCmyxfNa3vB8x59Q6s3ZeC14i5khXjeeYPg5hG bPPWBbBinPGuT/vyLiL2s2RBY6WNL6bCXDCz8=
Hello,
I do not know all the tricks of reflect, but I think in this case you do not
need the anonymous selection thing.
Just
rewrite f_flat.
should work. If you want to be sure it rewrites precisely
the (f a) (and not some (f b) ) you can do
rewrite (f_flat a) ( or rewrite (@f_flat a) if you have
implicit arguments on).
From my understanding, the notation (_ : ee) is for when ee
is the equality statement and not its proof.
You seem to think of some notation (pr : ee) which, I think, is not
provided.
Best wishes,
Benjamin
Le 30 nov. 08 à 09:50, <> a écrit :
Hello.
I have a question about subgoal generating rewrite tactics.
Is there a better way of do a similar thing to below?
Require Import ssreflect.
Variable f: nat -> nat.
Axiom f_flat: forall a, a = 0 -> f a = 0.
Goal forall a, a*a = 0 -> f a + 1 = 1 .
move => a ha.
rewrite (_ : f_flat a _).
The last line does not work.
What I want is to rewrite the goal to "0 + 1 = 1"
and generate subgoal "a = 0",
although I somehow feel I am messing up something.
By the way, the link to this mailing list from
http://www.msr-inria.inria.fr/Projects/math-components
seems broken; it refers to http instead of https.
With best regards,
Keiko
- subgoal generating rewrite tactics, keiko, 11/30/2008
- Re: subgoal generating rewrite tactics, Benjamin Werner, 11/30/2008
Archive powered by MHonArc 2.6.18.