5.6 States and Reset

5.6.1 Reset ident.

This command removes all the objects in the environment since ident was introduced, including ident. ident may be the name of a defined or declared object as well as the name of a section. One cannot reset over the name of a module or of an object inside a module.


Error messages:
  1. ident: no such entry

5.6.2 Back.

This commands undoes all the effects of the last vernacular command. This does not include commands that only access to the environment like those described in the previous sections of this chapter (for instance Require and Load can be undone, but not Check and Locate). Commands read from a vernacular file are considered as a single command.


Variants:
  1. Back n
    Undoes n vernacular commands.

Error messages:
  1. Reached begin of command history
    Happens when there is vernacular command to undo.

5.6.3 Restore State ident.

Restores the state contained in the file string.


Variants:
  1. Restore State ident
    Equivalent to Restore State "ident.coq"..
  2. Reset Initial.
    Goes back to the initial state (like after the command coqtop).

5.6.4 Write State string.

Writes the current state into a file string for use in a further session. This file can be given as the inputstate argument of the commands coqtop and coqc.


Variants:
  1. Write State ident
    Equivalent to Write State "ident.coq".. The state is saved in the current directory (see ??).