Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore: remove superfluous parentheses in calls to ext #5258

Closed
wants to merge 68 commits into from

Conversation

semorrison
Copy link
Contributor

@semorrison semorrison commented Jun 19, 2023

@semorrison semorrison added awaiting-review The author would like community review of the PR awaiting-CI blocked-by-other-PR This PR depends on another PR which is still in the queue. and removed blocked-by-other-PR This PR depends on another PR which is still in the queue. labels Jun 19, 2023
@semorrison
Copy link
Contributor Author

This PR/issue depends on:

Parcly-Taxel and others added 16 commits June 20, 2023 06:50
Introduced while making it multiplicative in leanprover-community/mathlib#13359
…es` can't be used for global variables (#5207)

```lean
variable (d : ℕ)

example (h : d ≤ 0) : d = 0 := by
  interval_cases d
  rfl
```
This fails.
This PR fixes this bug.
Co-authored-by: Komyyy <pol_tta@outlook.jp>
Co-authored-by: Jason Yuen <jason_yuen2007@hotmail.com>
…t}): restore a more faithful mathported proof, using the "newer" `push_neg` (#5132)

These are just three cases where a mathported proof had to be changed, due to unwanted behaviour with `push_neg/contradiction`.  Since #5082 is supposed to fix some issues with these tactics, some of these workarounds can be removed.

Note: this was not in any way systematic, I simply `grep`ped the line after a `contra`, then `grep`ped for a `not` and then selected 3 likely candidates.  There are potentially more situations like these.
My current method for accessing the mathlib4 docs is:
  1. google for "mathlib docs"
  2. insert a "4" into the url
  
The [mathlib3 readme](https://github.com/leanprover-community/mathlib/blob/893964fc28cefbcffc7cb784ed00a2895b4e65cf/README.md) has a prominent link to the mathlib3 docs. We should have something similar for mathlib4.

Hopefully this will help google find the mathlib4 docs, too.
Adds tail recursive definition of maximal `k` such that `p^k | n` for `p, n : Nat` and `csimp` theorem relating it to `Nat.padicValNat`
Co-authored-by: Moritz Firsching <firsching@google.com>
I forgot that we already had the fact that sheaves valued in an abelian category form an abelian category, so this PR removes some of the duplication.

Note: The existing file that had this is in `Topology/Category/Sheaves`, and not in `CategoryTheory/Sites`. 
This should be moved at some point.
Add the instance
```lean
instance instDecidableLE (α : Type u) (β : Type v) [LE α] [LE β] (x y : α × β) [Decidable (x.1 ≤ y.1)] [Decidable (x.2 ≤ y.2)] :
    Decidable (x ≤ y)
```
semorrison and others added 10 commits June 20, 2023 06:50
Some such lemmas are already labelled `@[simp]`, and this PR adds `@[simp]` to the remaining ones.

It's useful for some automation I'm writing to have these all in `simp`.



Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
While experimenting with making `ext` more powerful a proof was failing here. Rather than fix it, it seemed easier to just remove it.



Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Heavily based on the code from the sphere eversion project.

Co-authored-by: @fpvandoorn
@semorrison semorrison added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Jun 20, 2023
@semorrison semorrison removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Jun 20, 2023
@sgouezel
Copy link
Contributor

bors r+
Thanks!

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Jun 20, 2023
@fpvandoorn
Copy link
Member

the git history got messed up

bors bot pushed a commit that referenced this pull request Jun 20, 2023
Co-authored-by: Xavier Roblot <46200072+xroblot@users.noreply.github.com>
Co-authored-by: Joël Riou <joel.riou@universite-paris-saclay.fr>
Co-authored-by: Riccardo Brasca <riccardo.brasca@gmail.com>
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Co-authored-by: Pol'tta / Miyahara Kō <pol_tta@outlook.jp>
Co-authored-by: Jason Yuen <jason_yuen2007@hotmail.com>
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: Heather Macbeth <25316162+hrmacbeth@users.noreply.github.com>
Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
@bors
Copy link

bors bot commented Jun 20, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title chore: remove superfluous parentheses in calls to ext [Merged by Bors] - chore: remove superfluous parentheses in calls to ext Jun 20, 2023
@bors bors bot closed this Jun 20, 2023
@bors bors bot deleted the ext_followup branch June 20, 2023 13:55
alexjbest pushed a commit that referenced this pull request Jun 20, 2023
Co-authored-by: Xavier Roblot <46200072+xroblot@users.noreply.github.com>
Co-authored-by: Joël Riou <joel.riou@universite-paris-saclay.fr>
Co-authored-by: Riccardo Brasca <riccardo.brasca@gmail.com>
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Co-authored-by: Pol'tta / Miyahara Kō <pol_tta@outlook.jp>
Co-authored-by: Jason Yuen <jason_yuen2007@hotmail.com>
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: Heather Macbeth <25316162+hrmacbeth@users.noreply.github.com>
Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
alexkeizer pushed a commit that referenced this pull request Jun 22, 2023
Co-authored-by: Xavier Roblot <46200072+xroblot@users.noreply.github.com>
Co-authored-by: Joël Riou <joel.riou@universite-paris-saclay.fr>
Co-authored-by: Riccardo Brasca <riccardo.brasca@gmail.com>
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Co-authored-by: Pol'tta / Miyahara Kō <pol_tta@outlook.jp>
Co-authored-by: Jason Yuen <jason_yuen2007@hotmail.com>
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: Heather Macbeth <25316162+hrmacbeth@users.noreply.github.com>
Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
semorrison added a commit that referenced this pull request Jun 23, 2023
Co-authored-by: Xavier Roblot <46200072+xroblot@users.noreply.github.com>
Co-authored-by: Joël Riou <joel.riou@universite-paris-saclay.fr>
Co-authored-by: Riccardo Brasca <riccardo.brasca@gmail.com>
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Co-authored-by: Pol'tta / Miyahara Kō <pol_tta@outlook.jp>
Co-authored-by: Jason Yuen <jason_yuen2007@hotmail.com>
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: Heather Macbeth <25316162+hrmacbeth@users.noreply.github.com>
Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
semorrison added a commit that referenced this pull request Jun 23, 2023
Co-authored-by: Xavier Roblot <46200072+xroblot@users.noreply.github.com>
Co-authored-by: Joël Riou <joel.riou@universite-paris-saclay.fr>
Co-authored-by: Riccardo Brasca <riccardo.brasca@gmail.com>
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Co-authored-by: Pol'tta / Miyahara Kō <pol_tta@outlook.jp>
Co-authored-by: Jason Yuen <jason_yuen2007@hotmail.com>
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: Heather Macbeth <25316162+hrmacbeth@users.noreply.github.com>
Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
semorrison added a commit that referenced this pull request Jun 25, 2023
Co-authored-by: Xavier Roblot <46200072+xroblot@users.noreply.github.com>
Co-authored-by: Joël Riou <joel.riou@universite-paris-saclay.fr>
Co-authored-by: Riccardo Brasca <riccardo.brasca@gmail.com>
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
Co-authored-by: Scott Morrison <scott.morrison@anu.edu.au>
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Co-authored-by: Pol'tta / Miyahara Kō <pol_tta@outlook.jp>
Co-authored-by: Jason Yuen <jason_yuen2007@hotmail.com>
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Co-authored-by: Kyle Miller <kmill31415@gmail.com>
Co-authored-by: Heather Macbeth <25316162+hrmacbeth@users.noreply.github.com>
Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet