diff options
| author | aspiwack | 2012-07-04 11:36:47 +0000 |
|---|---|---|
| committer | aspiwack | 2012-07-04 11:36:47 +0000 |
| commit | 57d6f9018835ad73323fe0e33efec2bcc716db4c (patch) | |
| tree | 7c10ab40dc5ef3d16dea61ab5ee0631d16d55559 /proofs/proofview.mli | |
| parent | d153f3da0dc05d829fb3e0c234b555e170d0c074 (diff) | |
Change how the number of open goals is printed.
If you are focused on 3 subgoals, and unfocusing would reveal 2 extra
subgoals, and unfocusing again would reveal 4 extra subgoals, then coqtop
will tell you:
3 focused subgoals (unfocused: 2-4)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15508 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs/proofview.mli')
| -rw-r--r-- | proofs/proofview.mli | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/proofs/proofview.mli b/proofs/proofview.mli index 1ae5c4fd2d..d29ab4f090 100644 --- a/proofs/proofview.mli +++ b/proofs/proofview.mli @@ -24,6 +24,16 @@ open Term type proofview + +(* Returns a stylised view of a proofview for use by, for instance, + ide-s. *) +(* spiwack: the type of [proofview] will change as we push more + refined functions to ide-s. This would be better than spawning a + new nearly identical function everytime. Hence the generic name. *) +(* In this version: returns the list of focused goals together with + the [evar_map] context. *) +val proofview : proofview -> Goal.goal list * Evd.evar_map + (* Initialises a proofview, the argument is a list of environement, conclusion types, creating that many initial goals. *) val init : (Environ.env * Term.types) list -> proofview @@ -46,6 +56,14 @@ exception IndexOutOfRange (* Type of the object which allow to unfocus a view.*) type focus_context +(* Returns a stylised view of a focus_context for use by, for + instance, ide-s. *) +(* spiwack: the type of [focus_context] will change as we push more + refined functions to ide-s. This would be better than spawning a + new nearly identical function everytime. Hence the generic name. *) +(* In this version: returns the number of goals that are held *) +val focus_context : focus_context -> int + (* [focus i j] focuses a proofview on the goals from index [i] to index [j] (inclusive). (i.e. goals number [i] to [j] become the only goals of the returned proofview). |
