leanprover / leanprover/lean4

RFC: redundant parentheses

Open
#14,491 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Can the prettyprinter please stop writing redundant parentheses?

example : ∀ c : Char, c = c := by
  sorry

Placing the cursor after by displays:

⊢ ∀ (c : Char), c = c

It would be better to display:

⊢ ∀ c : Char, c = c

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

Reproduce the example in the issue and inspect the prettyprinter output when the cursor is placed after by. Compare the current output with the requested form and define completion as displaying ∀ c : Char without redundant parentheses.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.