Skip to content

chore: fix focusing dots and semicolons#5699

Closed
Parcly-Taxel wants to merge 4 commits intomasterfrom
fixdots
Closed

chore: fix focusing dots and semicolons#5699
Parcly-Taxel wants to merge 4 commits intomasterfrom
fixdots

Conversation

@Parcly-Taxel
Copy link
Copy Markdown
Collaborator

@Parcly-Taxel Parcly-Taxel commented Jul 4, 2023

This PR adds linter checks to ensure that

  • focusing dots are centred (·) and not isolated (mathport may sometimes produce examples of the second kind)
  • there are no instances of a space before a semicolon, the space being unnecessary here.

It also removes some redundant semicolons.


Open in Gitpod

This commit adds a linter check to ensure that focusing dots are centred
(·) and not isolated (mathport may sometimes produce examples of the
second kind).
@Parcly-Taxel Parcly-Taxel changed the title chore: fix focusing dots chore: fix focusing dots and semicolons Jul 4, 2023
@Parcly-Taxel Parcly-Taxel added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Jul 4, 2023
Comment on lines +496 to +501
hb (hx.symm ▸ ⟨y, mul_right_cancel₀ hp.1 <| by
rw [tsub_add_cancel_of_le (succ_le_of_lt hm0)] at hy
simp [hy, pow_add, mul_comm, mul_assoc, mul_left_comm]⟩)
finite_mul_aux hp ha hpx ⟨s, mul_right_cancel₀ hp.1 (by
rw [add_assoc, tsub_add_cancel_of_le (succ_le_of_lt hm0)]
simp_all [mul_comm, mul_assoc, mul_left_comm, pow_add])⟩
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idem dito for this kind of reformatting and reflowing of proofs.

Ideally a diff that touches > 30 files will be completely automatically generated by a script that fixes the syntax. Then we can have high confidence that the diff does one and does it well.

@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 4, 2023
@kim-em kim-em added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 4, 2023
@Parcly-Taxel Parcly-Taxel deleted the fixdots branch July 4, 2023 14:14
bors bot pushed a commit that referenced this pull request Jul 4, 2023
This is the second half of the changes originally in #5699, removing all occurrences of `;` _after_ a space and implementing a linter rule to enforce it.

In most cases this 2-character substring has a space after it, so the following command was run first:
```
find . -type f -name "*.lean" -exec sed -i -E 's/ ; /; /g' {} \;
```
The remaining cases were few enough in number that they were done manually.
kbuzzard pushed a commit that referenced this pull request Jul 6, 2023
This is the second half of the changes originally in #5699, removing all occurrences of `;` _after_ a space and implementing a linter rule to enforce it.

In most cases this 2-character substring has a space after it, so the following command was run first:
```
find . -type f -name "*.lean" -exec sed -i -E 's/ ; /; /g' {} \;
```
The remaining cases were few enough in number that they were done manually.
kim-em pushed a commit that referenced this pull request Aug 14, 2023
This is the second half of the changes originally in #5699, removing all occurrences of `;` _after_ a space and implementing a linter rule to enforce it.

In most cases this 2-character substring has a space after it, so the following command was run first:
```
find . -type f -name "*.lean" -exec sed -i -E 's/ ; /; /g' {} \;
```
The remaining cases were few enough in number that they were done manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants