Skip to Content.
Sympa Menu

coq-club - [Coq-Club] "fold P in P;unfold P in P" loop

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] "fold P in P;unfold P in P" loop


chronological Thread 
  • From: Cedric.Auger AT lri.fr
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] "fold P in P;unfold P in P" loop
  • Date: Wed, 30 Jul 2008 19:07:41 +0200 (CEST)
  • Importance: Normal
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

I got an unexpected feature:
we can "fold P in P", but I am not sure
it has any meaning...

Why isn't there any way to avoid such rewriting?
Maybe it is a stupid question, but the following can
occur, and we may "loop" unexpectedly:

Goal True /\ True.
set (P := False).
fold P in *.
(* shouldn't react as it does,
   since P is no more a definition...,
   but for bigger definitions, we
   may find handy, to keep a light
   hypothesis environnement *)
split.
 (* situation A:

  P := P : Prop
  ============================
   True

  it is a piece of cake to solve it
    *)
  split.
 (* situation A:

  P := P : Prop
  ============================
   True

  we are in the same situation,
  but we want to unfold P
    *)
  unfold P in *.





Archive powered by MhonArc 2.6.16.

Top of Page