Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Rewritinig *one* occurrence using setoid rewriting

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Rewritinig *one* occurrence using setoid rewriting


chronological Thread 
  • From: Edsko de Vries <devriese AT cs.tcd.ie>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] Rewritinig *one* occurrence using setoid rewriting
  • Date: Thu, 7 Feb 2008 13:08:23 +0000
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi,

Suppose I have something like

  Lemma foo : equiv a'' (or a'' a')

Say I want to rewrite the first occurrence of a'' with (or a'' false).
When I do

  rewrite <- (or_id a'').

both occurrences of a'' are replaced (following Adam's suggestion I've
setup the setoid stuff for my boolean expressions). If I do

  pattern a'' at 1 ; rewrite <- (or_id a'')

it complains about the argument being in a covariant position.

  replace a'' at 1 with (or a'' false)

gives me a subgoal

  a'' = or a'' false

which is too strong (they are merely equivalent, not equal), and 
setoid_replace does not seem to have an 'at 1' option. 

Is there a way to apply the setoid rewriting to a particular occurrence
only?

Thanks,

Edsko





Archive powered by MhonArc 2.6.16.

Top of Page