Skip to content
This repository was archived by the owner on Nov 6, 2026. It is now read-only.

[Merged by Bors] - chore (data/finset/sym): remove unnecessary alias - #18603

Closed
xroblot wants to merge 2 commits into
masterfrom
xfr-remove_alias
Closed

xroblot wants to merge 2 commits into
masterfrom
xfr-remove_alias

Conversation

@xroblot

@xroblot xroblot commented Mar 17, 2023 •

Copy link
Copy Markdown
Collaborator

See the discussion in this PR


Open in Gitpod

@xroblot xroblot added easy < 20s of review time. See the lifecycle page for guidelines. awaiting-review The author would like community review of the PR labels Mar 17, 2023
@xroblot
xroblot requested a review from YaelDillies March 17, 2023 12:33
@xroblot
xroblot marked this pull request as ready for review March 17, 2023 12:33
@YaelDillies

Copy link
Copy Markdown
Collaborator

I think this alias is incorrect since it tries to overwrite a lemma that already exists and indeed it fails silently with Lean 3 (there is a similar one also a few lines below), but it blocks the port of this file to Lean 4 since #align fails because of it.

I don't understand what you mean: finset.nonempty.sym2 doesn't exist before
https://github.com/leanprover-community/mathlib/blob/6516bcc54f718ddebd84af1882107268d237797a/src/data/finset/sym.lean#L63

You're effectively deleting two lemmas here.

@xroblot

xroblot commented Mar 17, 2023

Copy link
Copy Markdown
Collaborator Author

Sorry, I got confused. It is the second alias on line 144 that is causing problem. It used to be also
alias sym2_nonempty ↔ _ nonempty.sym2
so we thought it was a typo and changed it (#18426) to
alias sym_nonempty ↔ _ nonempty.sym
but that is incorrect too since the lemma finset.nonempty.sym exists already on line 119.

PS. I am putting back the first alias

@YaelDillies YaelDillies left a comment

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.

Okay that makes sense.

maintainer merge

@github-actions

Copy link
Copy Markdown

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

@fpvandoorn

Copy link
Copy Markdown
Member

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 Mar 17, 2023
bors Bot pushed a commit that referenced this pull request Mar 17, 2023
@bors

bors Bot commented Mar 17, 2023

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title chore (data/finset/sym): remove unnecessary alias [Merged by Bors] - chore (data/finset/sym): remove unnecessary alias Mar 17, 2023
@bors bors Bot closed this Mar 17, 2023
@bors
bors Bot deleted the xfr-remove_alias branch March 17, 2023 17:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

easy < 20s of review time. See the lifecycle page for guidelines. 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