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.ml | |
| 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.ml')
| -rw-r--r-- | proofs/proofview.ml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml index fc752cd336..d9c62600d4 100644 --- a/proofs/proofview.ml +++ b/proofs/proofview.ml @@ -27,6 +27,9 @@ type proofview = { comb : Goal.goal list } +let proofview p = + p.comb , p.solution + (* Initialises a proofview, the argument is a list of environement, conclusion types, and optional names, creating that many initial goals. *) let init = @@ -94,6 +97,8 @@ let list_goto = order) *) type focus_context = Goal.goal list * Goal.goal list +let focus_context (l,r) = List.length l + List.length r + (* This (internal) function extracts a sublist between two indices, and returns this sublist together with its context: if it returns [(a,(b,c))] then [a] is the sublist and (rev b)@a@c is the |
