Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - chore(data/multiset/pi): correct names and reorder#19050

Closed
eric-wieser wants to merge 1 commit intomasterfrom
eric-wieser/pi.cons_injective
Closed

[Merged by Bors] - chore(data/multiset/pi): correct names and reorder#19050
eric-wieser wants to merge 1 commit intomasterfrom
eric-wieser/pi.cons_injective

Conversation

@eric-wieser
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser commented May 19, 2023

  • multiset.pi_cons_injective is about multiset.pi.cons so should have a . in its name.
  • multiset.pi.cons_ext is not an ext lemma, but more closely resembles eta-reduction.

This also groups together the lemmas about pi.cons.


Open in Gitpod

The purpose of this PR is to split #18417 in half so that it's easier to cut out the style noise from that PR (which is an impediment to forward-porting)

@eric-wieser eric-wieser added awaiting-review The author would like community review of the PR modifies-synchronized-file This PR touches a files that has already been ported to mathlib4, and may need a synchronization PR. labels May 19, 2023
`multiset.pi_cons_injective` is about `multiset.pi.cons` so should have a `.` in its name.

This also groups together the lemmas about `pi.cons`.
end

lemma pi.cons_injective {a : α} {b : δ a} {s : multiset α} (hs : a ∉ s) :
function.injective (pi.cons s a b) :=
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
function.injective (pi.cons s a b) :=
injective (pi.cons s a b) :=

function is already open, I believe.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Given I just moved these lines and I've already done the forward-port, I'm inclined to leave it as is

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fine, I guess that doesn't matter much.

maintainer merge

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@riccardobrasca
Copy link
Copy Markdown
Member

Thanks!

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels May 21, 2023
bors bot pushed a commit that referenced this pull request May 21, 2023
* `multiset.pi_cons_injective` is about `multiset.pi.cons` so should have a `.` in its name.
* `multiset.pi.cons_ext` is not an ext lemma, but more closely resembles eta-reduction.

This also groups together the lemmas about `pi.cons`.
@bors
Copy link
Copy Markdown

bors bot commented May 21, 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(data/multiset/pi): correct names and reorder [Merged by Bors] - chore(data/multiset/pi): correct names and reorder May 21, 2023
@bors bors bot closed this May 21, 2023
@bors bors bot deleted the eric-wieser/pi.cons_injective branch May 21, 2023 22:57
bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request May 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

modifies-synchronized-file This PR touches a files that has already been ported to mathlib4, and may need a synchronization PR. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants