RFC: Lean4 currently doesn't allow the use of Chinese identifiers for naming variables, theorems, etc.
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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