leanprover / leanprover/vscode-lean4

Rendering of `\varphi` and `\phi` in Lean files

Open
#584 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
313
Forks
104
Avg merge
1h 56m
Merged PRs (30d)
1

Description

I raised a question to @kim-em today about why \varphi renders like ϕ and \phi renders like φ in Lean files opened in vscode, which was the opposite of what I was anticipating. After a web search, apparently this is or was valid Greek, but it is inconsistent with the way LaTeX renders $\varphi$ like φ and renders $\phi$ like ϕ. According to this StackOverflow answer, Knuth made that decision, so I guess it is a question of whether Lean should adhere to LaTeX conventions? It would change the way some existing Lean files look, so I would understand if there was reluctance to change it at this point. The symbols that vscode uses with Lean files are defined here .

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lean4-unicode-input/src/abbreviations.json and inspect the entries for \varphi and \phi. Review how the VS Code extension consumes these abbreviations and consider the compatibility impact described in the issue; done means an agreed mapping is reflected and its behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.