Skip to content

[Merged by Bors] - chore: uncdot various files#12422

Closed
adomani wants to merge 9 commits intomasterfrom
adomani/uncdot_mathlib
Closed

[Merged by Bors] - chore: uncdot various files#12422
adomani wants to merge 9 commits intomasterfrom
adomani/uncdot_mathlib

Conversation

@adomani
Copy link
Copy Markdown
Contributor

@adomani adomani commented Apr 25, 2024

These · are scoping when there is a single active goal.

These were found using a modification of the linter at #12339.


Open in Gitpod

Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

I reviewed everything up to and including CategoryTheory: you're only un-cdoting.
I trust your linter that these are not required.

PS. This PR is huge; I cannot review +-850 lines in one go. I wonder if splitting this is useful.

@grunweg
Copy link
Copy Markdown
Contributor

grunweg commented Apr 29, 2024

And I should also say: thank you for your continuous effort on developing linters. I would be really happy for the multi-goal linter to land. Just yesterday I was commenting on this with a new contributor's PR.

Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Now reviewed up to and including LinearAlgebra.

simp_rw [← div_pow]
rw [geom_sum_eq, div_le_iff_of_neg]
· trans (-1 : ℝ)
· linarith
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just highlighting: this is really just un-indenting; git's diff is confusing here.

Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Now reviewed up to and including Probability. That's it from me for today.
Most comments are flagging things for reviewers; two blocks I'd have to review more closely as github's diff is not so clear.

· rw [Pi.add_apply, Set.indicator_of_mem, Set.indicator_of_not_mem, add_zero] <;> simpa
· rw [Pi.add_apply, Set.indicator_of_not_mem, Set.indicator_of_mem, zero_add] <;>
simpa using hx
· split_ifs with h
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is adding two dots (which I don't object to; I trust your linter).

rw [Measure.restrict_apply] at hs
apply h𝓕.measure_zero_of_invariant _ _ hs
· intro γ
· apply h𝓕.measure_zero_of_invariant _ _ hs
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice find! (This is a mix of cdot-ing and un-cdot-ing, so arguably fits here.)

exact Continuous.continuousOn (Continuous.comp' (continuous_mul_left (-1)) this)
· simp only [neg_mul, one_mul]
exact fun _ _ ↦ HasDerivAt.hasDerivWithinAt hasDerivAt_neg_exp_mul_exp
· have : ∫ a in uIoc 0 x, r * rexp (-(r * a)) = ∫ a in (0)..x, r * rexp (-(r * a)) := by
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is mostly cdot-ing; arguably, this belongs into another PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To be more precise: this file is cdot-ing here and on line 148, but un-cdot-ing on line 150. IOW, this could be included here.

@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 29, 2024
@ghost ghost added merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels Apr 30, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 30, 2024
Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Now reviewed the remainder of this PR (and the merge commits): I think this is good to go.

cases' lt_or_le c (g y) with hc hc
· rcases em (a ∈ range f) with (⟨x, rfl⟩ | _)
· refine' ⟨x, xu, _, hyxu.le⟩
have hyb : (g - dg) y < b := by
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This block has to be manually checked.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did so: it's just github's diff being confused. Reviewing with whitespace hidden shows this is just un-cdoting.

@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 5, 2024
@ghost ghost added merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) labels May 7, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 9, 2024
mathlib-bors bot pushed a commit that referenced this pull request May 11, 2024
A portion of #12422 containing all the changes in `Mathlib/[A-C]` up to and including `CategoryTheory`.
@jcommelin
Copy link
Copy Markdown
Member

bors d+

I am not going to kick this on the queue yet, for fear of merge conflicts...

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 11, 2024

✌️ adomani can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels May 11, 2024
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 11, 2024
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 11, 2024
@adomani
Copy link
Copy Markdown
Contributor Author

adomani commented May 11, 2024

bors r+

mathlib-bors bot pushed a commit that referenced this pull request May 11, 2024
These `·` are scoping when there is a single active goal.

These were found using a modification of the linter at #12339.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented May 11, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: uncdot various files [Merged by Bors] - chore: uncdot various files May 11, 2024
@mathlib-bors mathlib-bors bot closed this May 11, 2024
@mathlib-bors mathlib-bors bot deleted the adomani/uncdot_mathlib branch May 11, 2024 14:26
apnelson1 pushed a commit that referenced this pull request May 12, 2024
A portion of #12422 containing all the changes in `Mathlib/[A-C]` up to and including `CategoryTheory`.
apnelson1 pushed a commit that referenced this pull request May 12, 2024
These `·` are scoping when there is a single active goal.

These were found using a modification of the linter at #12339.
callesonne pushed a commit that referenced this pull request May 16, 2024
A portion of #12422 containing all the changes in `Mathlib/[A-C]` up to and including `CategoryTheory`.
callesonne pushed a commit that referenced this pull request May 16, 2024
These `·` are scoping when there is a single active goal.

These were found using a modification of the linter at #12339.
grunweg pushed a commit that referenced this pull request May 17, 2024
A portion of #12422 containing all the changes in `Mathlib/[A-C]` up to and including `CategoryTheory`.
grunweg pushed a commit that referenced this pull request May 17, 2024
These `·` are scoping when there is a single active goal.

These were found using a modification of the linter at #12339.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants