Skip to content

fix: spacing and indentation fixes#2240

Merged
leodemoura merged 1 commit intoleanprover:masterfrom
digama0:spacing
May 29, 2023
Merged

fix: spacing and indentation fixes#2240
leodemoura merged 1 commit intoleanprover:masterfrom
digama0:spacing

Conversation

@digama0
Copy link
Copy Markdown
Collaborator

@digama0 digama0 commented May 28, 2023

This fixes a number of spacing and indentation issues across the lean grammar. These were mainly noticed by mathport, although a lot of them can be derived just by looking at the code.

One common mistake that I fell prey to in earlier reviews of this code is that it is not safe to assume that ident and term lists are always automatically space separated. This is because if you print an inaccessible name it is shown as x✝, where the is not an identifier character and hence counts as an identifier separator. In the term category there are more examples, like ·.

@digama0 digama0 added the Mathlib4 high prio Mathlib4 high priority issue label May 28, 2023
@digama0 digama0 force-pushed the spacing branch 2 times, most recently from 151830d to 88b403c Compare May 28, 2023 17:31
@leodemoura leodemoura merged commit 5661b15 into leanprover:master May 29, 2023
bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jun 2, 2023
This fixes a bunch of spacing bugs in tactics. Mathlib counterpart of:

* Lean: leanprover/lean4#2240
* Std: leanprover-community/batteries#149
* Aesop: leanprover-community/aesop#56
bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Jun 2, 2023
This fixes a bunch of spacing bugs in tactics. Mathlib counterpart of:

* Lean: leanprover/lean4#2240
* Std: leanprover-community/batteries#149
* Aesop: leanprover-community/aesop#56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mathlib4 high prio Mathlib4 high priority issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants