Skip to Content.
Sympa Menu

coq-club - [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

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


Chronological Thread 
  • From: Clément Pit--Claudel <clement.pit AT gmail.com>
  • To: coq-club AT inria.fr, "Benjamin C. Pierce" <bcpierce AT cis.upenn.edu>, michael.soegtrop AT intel.com
  • Subject: [Coq-Club] Tricks to make Unicode input easier and proof scripts more readable (was Re: Lean Theorem Prover)
  • Date: Tue, 1 Mar 2016 00:41:00 -0700
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=clement.pit AT gmail.com; spf=SoftFail smtp.mailfrom=clement.pit AT gmail.com; spf=None smtp.helo=postmaster AT mout.kundenserver.de
  • Ironport-phdr: 9a23:whx7dhQZqiLSL9Mo3Lj4KqGJS9psv+yvbD5Q0YIujvd0So/mwa65YBCN2/xhgRfzUJnB7Loc0qyN4/+mBz1LuM/Y+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8KVPVQD3WPkKZpJbzyI7izp/vEMhoVjLqtjgjDomVBvP9ps+GVzOFiIlAz97MrjtLRq8iBXpu5zv5UYCfayV+0CQLdZFDUrNXwurI2u7EGbDFjH2nxJWWIP1xFMHgLt7RfgX563vDG+/qBX1S+YNMj3S/gfH3ya7qpxQxKiwHMNPCY4/Xvch+R7jbkdvQqsoRo5zoLJNsXdMft1fqrQeZUBQmdOQtxWTwRABJ+xa80ECO9SE/xfqtzWo9oLoB2iMjGtGKaq4TtBm3P72eVu2OAsFAzAwEo4Hs4mv3HdrdGzP6AXB7PmhJLUxCnOOqsFkQz275LFJ1V4+amB

Hi Benjamin and Michael,

On 02/26/2016 09:34 AM, Benjamin C. Pierce wrote:
> 1. I wonder whether beginning users will find the available input methods
> confusing or off-putting

On 02/26/2016 12:32 PM, Soegtrop, Michael wrote:
> 1.) Using Unicode notations in the HTML version but ASCII in the IDE is as
> confusing as finding the shortcuts for the right symbols [...]
> 3.) The shortcuts for the Unicode symbols can be mentioned in IDE menus at
> a prominent place

As an experiment, I've added input and prettification hints to company-coq.
When the point is on a prettified symbol (such as ‘fun’ being displayed as
‘λ’, or ‘nat’ being displayed as ‘ℕ’), company-coq now shows a message
similar to these:

‘λ’ is a prettified version of ‘fun’.
‘ℕ’ is a prettified version of ‘nat’.

On the other hand, when the point is on a Unicode symbol, such as ‘∪’ or ‘⊕’,
company-coq now shows a message similar to these:

To input ‘∪’, type ‘\cup RET’.
To input ‘⊕’, type ‘\oplus RET’.

There are screenshots at
https://github.com/cpitclaudel/company-coq/#misc-extensions-of-proof-general

As always, comments and suggestions are very welcome! Let me know what you
think.

Cheers,
Clément.

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.18.

Top of Page