Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Navigation commands forbidden in files

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Navigation commands forbidden in files


Chronological Thread 
  • From: Thomas Braibant <thomas.braibant AT gmail.com>
  • To: Bruno Barras <bruno.barras AT inria.fr>
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Navigation commands forbidden in files
  • Date: Wed, 13 Jun 2012 11:40:57 -0400

> You could use modules:
>
> Module Attempt1.
>  ...
> End Attempt1.
> Module Attempt2.
>  ...
> End Attempt2.
> ... (* now the preferred style *)
>
> That should provide more or less the same semantics as Reset, but in a more
> structured way. Moreover, that lets you refer to older attempts from the
> preferred style.

It does not provide exactly the same semantics as Reset, if one is
inside a section right ?

Section t.
Variable toto : tutu.
Definition tata : ...
Reset tata.
Definition tata : ...
End t.

has to be translated in

Module Attempt1.
Section t.
Variable toto : tutu.
Definition tata : ...
End t.
End Attempt1.

Module Attempt2.
Section t.
Variable toto : tutu.
Definition tata : ...
End t.
End Attempt2.

which may require to copy paste a lot of context.



Archive powered by MHonArc 2.6.18.

Top of Page