PG icon indicating copy to clipboard operation
PG copied to clipboard

Feature request: use goal count information printed at top of goals buffer in modeline

Open cpitclaudel opened this issue 4 years ago • 4 comments

I won't have time to implement this, but it should be easy and it should provide a nice quality of life improvement.

Each goal buffer stars with a header line, like this:

1 focused subgoal
(shelved: 1) (ID 339)
  
  width : Z
  BW : Bitwidth width
  …

It would be nice to move that info to the modeline, next to the buffer name (*goals*). We can change the "lighter" of the response mode to be a variable for that, and then update the variable when we update the response buffer.

This would save a bit of space, which is always nice with large Coq goals.

cpitclaudel avatar Oct 06 '21 23:10 cpitclaudel

Related: https://github.com/coq/coq/pull/14999

cpitclaudel avatar Oct 07 '21 20:10 cpitclaudel

PG already shows the number of goals in the scripting buffer modeline. People hardly notice it I suppose. What exact display do you have in mind?

Matafou avatar Oct 08 '21 12:10 Matafou

As you suggest we could show it in the goals buffer modeline of course. I suppose it is more intuitive.

Matafou avatar Oct 08 '21 12:10 Matafou

Actually I have been thinking of enhancing further the coq/PG UI wrt to number of subgoals and also script parenthesizing ({ }) and bullets. Ideally I would like coq to print all subgoals together with the corresponding bullet imbrication :

n subgoals.

current goal:
- + * {

n,m:nat
H: ...
H0: ....
======
...
}
      forall n m: Z, ...
- + * forall n:nat, ...
- + forall x:bool, ....
- + forall n:Z, ...
- forall n:nat, ...

I think this information could be of some help when dealing with large proofs. I am not sure how PG could relay it in a nice way though...

Matafou avatar Oct 13 '21 20:10 Matafou