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(Data/Finsupp/Fin): add Finsupp.cons_support #10192

Closed
wants to merge 1 commit into from

Conversation

jcommelin
Copy link
Member


Open in Gitpod

@jcommelin jcommelin added awaiting-review The author would like community review of the PR easy < 20s of review time. See the lifecycle page for guidelines. labels Feb 2, 2024
@@ -92,4 +92,11 @@ theorem cons_ne_zero_iff : cons y s ≠ 0 ↔ y ≠ 0 ∨ s ≠ 0 := by
rw [h', c, Finsupp.cons_zero_zero]
#align finsupp.cons_ne_zero_iff Finsupp.cons_ne_zero_iff

lemma cons_support : (s.cons y).support ⊆ insert 0 (s.support.map (Fin.succEmb n).toEmbedding) := by
Copy link
Member

Choose a reason for hiding this comment

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

Do we have a similar lemma about Fin.cons? IMHO, lemmas about Finsupp.cons should be mod_cast (lemma about Fin.cons), if possible.

Copy link
Member Author

Choose a reason for hiding this comment

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

What would the lemma about Fin.cons be? The ingredients in the statement seem quite Finsupp-specific.

@urkud urkud added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Feb 3, 2024
@jcommelin jcommelin added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Feb 3, 2024
@ocfnash
Copy link
Contributor

ocfnash commented Feb 4, 2024

Thanks!

bors merge

@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 Feb 4, 2024
@mathlib-bors
Copy link

mathlib-bors bot commented Feb 4, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Data/Finsupp/Fin): add Finsupp.cons_support [Merged by Bors] - chore(Data/Finsupp/Fin): add Finsupp.cons_support Feb 4, 2024
@mathlib-bors mathlib-bors bot closed this Feb 4, 2024
@mathlib-bors mathlib-bors bot deleted the finsupp-cons-support branch February 4, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy < 20s of review time. See the lifecycle page for guidelines. 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

3 participants