leanprover / leanprover/lean4

RFC: Lean4 currently doesn't allow the use of Chinese identifiers for naming variables, theorems, etc.

Open
#9,418 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P-high RFC RFC accepted
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

Lean4 currently does not support Chinese identifiers for naming variables, theorems, etc. Adding this support will improve the user experience for Chinese-speaking users, making the code more readable and intuitive.
Beneficiaries

  • Chinese-speaking users: Easier to learn and use Lean4.
  • Brief and gentle: Sometime Chinese identifiers would be shorter than English.
  • Educational projects: Facilitates teaching and learning in Chinese-speaking regions.

Contributor guide

Open the contributing guide

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

No files, tests, or entry points are identified in the issue. Start by locating Lean4's identifier lexing and parsing rules, then determine the Unicode support needed for Chinese names and the affected tests. Done means variables, theorems, and similar declarations can use Chinese identifiers without breaking existing syntax or behavior.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.