-
Notifications
You must be signed in to change notification settings - Fork 298
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] - feat(topology, analysis) : add lemmas about has_neg.neg
(preliminaries for L'Hopital's rule)
#3392
Conversation
I golfed some proofs and removed |
Out of curiosity, is there a way to make an alias for this ? It would be easier to guess the name |
@PatrickMassot @sgouezel What do you think about this? Should we have |
For coherence and least surprise for newcomers, I think |
Should we rename the |
Since you added |
I don't mind having a couple more aliases. |
Hmm unless I missed something, I think I added the requested changes 🤔 Do I misunderstand the way we use labels @semorrison ? |
@semorrison might have added the label since there are unresolved comments above – if those are all resolved, please click the "resolve" button beneath them to make it easier for reviewers to see what remains to be done. |
Thanks a lot, I didn't knew that @bryangingechen ! i'm not used to GitHub yes, so I'll keep that in mind |
I did a few other silly mistakes in my last commit, I'm correcting them right now |
src/analysis/normed_space/basic.lean
Outdated
@@ -619,7 +619,7 @@ begin | |||
rwa [dist_comm, dist_eq_norm, add_sub_cancel'], | |||
end | |||
|
|||
lemma tendsto_inv [normed_field α] {r : α} (r0 : r ≠ 0) : tendsto (λq, q⁻¹) (𝓝 r) (𝓝 r⁻¹) := | |||
lemma tendsto_inv' [normed_field α] {r : α} (r0 : r ≠ 0) : tendsto (λq, q⁻¹) (𝓝 r) (𝓝 r⁻¹) := |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to add a ' on this lemma and the next one, they are in the normed_field
namespace so they wouldn't clash with anything else
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, and I guess it's the same for continuous_on_inv
?
src/topology/algebra/ordered.lean
Outdated
@@ -1944,3 +1944,23 @@ lemma tendsto_of_monotone {ι α : Type*} [preorder ι] [topological_space α] | |||
tendsto f at_top at_top ∨ (∃ l, tendsto f at_top (𝓝 l)) := | |||
if H : bdd_above (range f) then or.inr ⟨_, tendsto_at_top_csupr h_mono H⟩ | |||
else or.inl $ tendsto_at_top_at_top_of_monotone' h_mono H | |||
|
|||
lemma tendsto_neg_nhds_within_Ioi {α : Type*} [ordered_add_comm_group α] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jcommelin Should we have a multiplicative version of this? I don't know if we're going to have any topological ordered_comm_group
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If yes, then @[to_additive]
should be able to transfer this lemma from multiplicative to additive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't cost anything, so I made it anyway
Feel free to merge either as is, or with |
✌️ ADedecker can now approve this pull request. To approve and merge a pull request, simply reply with |
bors merge |
…ies for L'Hopital's rule) (#3392) This PR contains a few lemmas about the `has_neg.neg` function, such as : - its limit along `at_top` and `at_bot` - its limit along `nhds a`, `nhds_within a (Ioi a)` and similar filters - its differentiability and derivative Co-authored-by: Yury G. Kudryashov <urkud@urkud.name> Co-authored-by: Anatole Dedecker <48656793+ADedecker@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded: |
has_neg.neg
(preliminaries for L'Hopital's rule)has_neg.neg
(preliminaries for L'Hopital's rule)
This PR contains a few lemmas about the
has_neg.neg
function, such as :at_top
andat_bot
nhds a
,nhds_within a (Ioi a)
and similar filtersThis is a small part of the preliminaries for proving L'Hopital's rule. I am still working on it, but I thought I'd start PR-ing small parts already. The whole discussion is at https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/L'Hopital's.20rule/near/203526328
A small comment about naming : in most of the library,
concept.neg
describes how negating a function acts on its interaction with the concept, whereasconcept_neg
describes the way thehas_neg.neg
function interacts with the concept (this is the same forinv
btw).But that isn't the case for
deriv
andderiv_within
so I ended up creatingderiv_neg2
andderiv_within_neg2
(yes that's awful). What do you think about that ?