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(topology/algebra/infinite_sum): small todo #7994

Closed
wants to merge 3 commits into from

Conversation

hrmacbeth
Copy link
Member

@hrmacbeth hrmacbeth commented Jun 19, 2021

Generalize a lemma from f : ℕ → ℝ to f : β → α, with

[add_comm_group α] [topological_space α] [topological_add_group α] [t2_space α] [decidable_eq β] 

This was marked as TODO after #6017/#6096.


Open in Gitpod

@adomani, I assume this lemma is from the LTE. I hope the application there will work without change after this generalization, can you check?

@hrmacbeth hrmacbeth changed the title chore(topology/algebra/infinite_sum): small todo from #6017/#6096 chore(topology/algebra/infinite_sum): small todo Jun 19, 2021
@hrmacbeth hrmacbeth added the awaiting-review The author would like community review of the PR label Jun 19, 2021
@adomani
Copy link
Collaborator

adomani commented Jun 19, 2021

Heather, actually, this lemma was useful for the proof of the existence of Liouville numbers, but I have not worked on finishing those PRs in a while: go ahead with the change and I will get back to Liouville once I get a chance!

Copy link
Collaborator

@adomani adomani left a comment

Choose a reason for hiding this comment

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

I am not sure that you prefer the exact terms, instead of the automated tactics, so feel free to disregard my suggestions!

Otherwise, this looks good to me!

(I am going to click on "Approve", just to see what it does, since I cannot really approve the changes anyway! (-: )

src/topology/algebra/infinite_sum.lean Outdated Show resolved Hide resolved
src/topology/algebra/infinite_sum.lean Outdated Show resolved Hide resolved
lemma has_sum_ite_eq_extract [decidable_eq β] (hf : has_sum f a) (b : β) :
has_sum (λ n, ite (n = b) 0 (f n)) (a - f b) :=
begin
convert has_sum_subtype_iff_indicator.mp (({b} : finset β).has_sum_iff_compl.mp hf),
Copy link
Member

Choose a reason for hiding this comment

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

In the original #6017 PR I suggested a proof that notes that has_sum (function.update f b 0) is has_sum (λ n, ite (n = b) 0 (f n)), and uses has_sum.update. Does that proof work here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably (it'd be the same typeclass assumptions), but it doesn't seem like an obvious improvement?

Co-authored-by: damiano <adomani@gmail.com>
@hrmacbeth
Copy link
Member Author

Thanks @adomani!

(I am going to click on "Approve", just to see what it does, since I cannot really approve the changes anyway! (-: )

I think clicking "Approve" is about the same as saying "LGTM", both are useful flags for the maintainers!

@bors
Copy link

bors bot commented Jun 20, 2021

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

Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

bors d+

@github-actions github-actions bot added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Jun 20, 2021
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@hrmacbeth
Copy link
Member Author

bors r+

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Jun 20, 2021
bors bot pushed a commit that referenced this pull request Jun 20, 2021
Generalize a lemma from `f : ℕ → ℝ` to `f : β → α`, with 
```lean
[add_comm_group α] [topological_space α] [topological_add_group α] [t2_space α] [decidable_eq β] 
```
This was marked as TODO after #6017/#6096.
@bors
Copy link

bors bot commented Jun 20, 2021

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request Jun 21, 2021
Generalize a lemma from `f : ℕ → ℝ` to `f : β → α`, with 
```lean
[add_comm_group α] [topological_space α] [topological_add_group α] [t2_space α] [decidable_eq β] 
```
This was marked as TODO after #6017/#6096.
@bors
Copy link

bors bot commented Jun 21, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(topology/algebra/infinite_sum): small todo [Merged by Bors] - chore(topology/algebra/infinite_sum): small todo Jun 21, 2021
@bors bors bot closed this Jun 21, 2021
@bors bors bot deleted the tsum_ite_eq_extract branch June 21, 2021 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. 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.

None yet

3 participants