Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Tricks to make Unicode input easier and proof scripts more readable (was Re: Lean Theorem Prover)

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Tricks to make Unicode input easier and proof scripts more readable (was Re: Lean Theorem Prover)


Chronological Thread 
  • From: Jonathan Leivent <jonikelee AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Tricks to make Unicode input easier and proof scripts more readable (was Re: Lean Theorem Prover)
  • Date: Fri, 11 Mar 2016 10:42:08 -0500
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qk0-f182.google.com
  • Ironport-phdr: 9a23:QoE8DBAYxxZW1dpB7cUgUyQJP3N1i/DPJgcQr6AfoPdwSP74rsbcNUDSrc9gkEXOFd2CrakU1KyG4uu/BCQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTokbDjsMKOKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvDxeL19RrhFBhwnNXo07Yvlr0rtVwyKs1kbVGwKkhNOSyzI7Q/3WIu55in9sOt+1S2XMOX5SLk1XXKp6KI9G0ygszsOKzNsqDKfscd3lq8O+B8=



On 03/11/2016 10:22 AM, Pierre Courtieu wrote:
Hi,

Concerning prettification there is one problem that is difficult to solve:
indentation. Look for example at the following code that is indented for
non-prettified display:

forall x y, x +
y.

This will not look good if prettified:

∀ x y, x +
y.

And conversely a good indentation in prettified mode would not look good in
non prettified.

In pg+company-coq indentation is done according to the current mode
(prettified or not), but user opening the file with the other mode will
have ugly indentation.

P.


A similar issue occurs with splitting lines to prevent wrapping. A line with many prettified (hence shortened) symbols can be split much later when prettified than it would need to when not to keep from wrapping.

Consider also prettification vs. Set Printing Width. Currently, Company-Coq has an automatic Set Printing Width mode (the default, I believe) that tracks the buffer width. However, it can't accommodate its own prettifications - unless it somehow takes over the line splitting chore from Coq.

I only noticed this when using Company-Coq to fold true and false to script/bold t and f, hence having many prettifications in the same term. This enhances readability of terms where the bool constants occur often. But when printed, the often severe shortening of the resulting lines makes for uneven output due to the splits occurring too soon.

-- Jonathan




Archive powered by MHonArc 2.6.18.

Top of Page