A focused vision for Project Pterodactyl › Stepping through proofs is important [01H8]

It is important to be able to see what the goal was at a given point in a proof that has already been completed. If we return to our example of right-handed procedural reasoning:

\begin {aligned} &\mathsf {example} : \mathsf {isProp}~\textstyle \sum _{x:\mathbf {1}}x=() \\ &\mathsf {example} \Rightarrow \mathsf {sumIsProp} \\ &\mathsf {example}.\mathsf {baseIsProp}\Rightarrow \mathsf {unitIsProp} \\ &\mathsf {example}.\mathsf {famIsProp}~x\Rightarrow \mathsf {propsAreSets}\\ &\mathsf {example}.\mathsf {famIsProp}~x\Rightarrow \mathsf {unitIsProp} \end {aligned}

We could instrument the language server to emit either tooltips or expandable inlays on each \Rightarrow or \Leftarrow that will display the goal that is being refined. For example, I plan to make it so that if you select the second \Rightarrow in the above, the editor would display something like \mathsf {isProp}~\mathbf {1} and if you select the third \Rightarrow , the editor would display something like x:\mathbf {1}\vdash \mathsf {isProp}~(x=())\text {.}

Ideally, selecting the occurrences of the backchained lemmas on the right-hand side would lead to a display that reveals exactly how they have been specialised for the goal. For example, if you select the occurrence of \mathsf {propsAreSets} the editor might display something like the following:

x:\mathbf {1}, \square :\mathsf {isProp}~\mathbf {1}\vdash \mathsf {propsAreSets}~\mathbf {1}~\square ~x~() : \mathsf {isProp}~(x=())