<div dir="ltr"><div>Hi Larry,</div><div><br></div><div>in consultation with Fabian and Florian, I made a few changes that hopefully improve this further:</div><div><br><div>* Replaced `sketch` by `nxsketch` (and named it `sketch`)</div><div>* Reduced printing of superfluous type constraints</div><div>*
Added configuration option `atp_proof_cartouches`, which allows to
switch between cartouches and quotes for printing in sketch, explore,
and Isar proofs generated by sledgehammer.</div><div>* Preserve
indentation of generated proofs. However, keywords `sketch` and `explore` do
not disappear anymore when the sketch is clicked on. The technical
reason is that now `Active.sendback_markup_command` is used instead of `Active.sendback_markup_properties` .</div><div><br></div><div></div><div></div><div>Simon<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 23. Okt. 2023 um 17:24 Uhr schrieb Lawrence Paulson <<a href="mailto:lp15@cam.ac.uk">lp15@cam.ac.uk</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Some of you will be aware of this theory, which provides commands “sketch” and “explore” to create Isar skeletons derived from the current set of subgoals. It can save a lot of time, a lot of typing, a lot of copying and pasting from the displayed proof state.<br>
<br>
One thing I disliked was that it always introduced variables via “for” and local assumptions the “if”, even when there was only a single subgoal, increasing the nesting depth for no reason. So I have added a new command, currently called “nxsketch”, which fills in the context using “fix” and “assume”. I have also modified the sketch command to do the same thing if there is only one subgoal.<br>
<br>
Perhaps people could try this out and see what they think. The name nxsketch could certainly be improved.<br>
<br>
Larry<br>
<br>
_______________________________________________<br>
isabelle-dev mailing list<br>
<a href="mailto:isabelle-dev@in.tum.de" target="_blank">isabelle-dev@in.tum.de</a><br>
<a href="https://mailman46.in.tum.de/mailman/listinfo/isabelle-dev" rel="noreferrer" target="_blank">https://mailman46.in.tum.de/mailman/listinfo/isabelle-dev</a><br>
</blockquote></div>