-
Notifications
You must be signed in to change notification settings - Fork 297
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
refactor(calculus): simplify derivative extension #1826
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4fc62ce
refactor(calculus): simplify derivative extension
PatrickMassot f031929
generalize continuous_within_at.closure_le
PatrickMassot 757021f
Simplify proof following Sébastien
PatrickMassot 189d7de
Update src/analysis/calculus/extend_deriv.lean
sgouezel b609b82
Merge branch 'master' into extend-deriv
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,6 +127,11 @@ theorem nhds_within_inter' (a : α) (s t : set α) : | |
nhds_within a (s ∩ t) = (nhds_within a s) ⊓ principal t := | ||
by { unfold nhds_within, rw [←inf_principal, lattice.inf_assoc] } | ||
|
||
lemma nhds_within_prod_eq {α : Type*} [topological_space α] {β : Type*} [topological_space β] | ||
(a : α) (b : β) (s : set α) (t : set β) : | ||
nhds_within (a, b) (s.prod t) = (nhds_within a s).prod (nhds_within b t) := | ||
by { unfold nhds_within, rw [nhds_prod_eq, ←filter.prod_inf_prod, filter.prod_principal_principal] } | ||
|
||
theorem tendsto_if_nhds_within {f g : α → β} {p : α → Prop} [decidable_pred p] | ||
{a : α} {s : set α} {l : filter β} | ||
(h₀ : tendsto f (nhds_within a (s ∩ p)) l) | ||
|
@@ -320,6 +325,18 @@ lemma continuous_within_at.mem_closure_image {f : α → β} {s : set α} {x : | |
mem_closure_of_tendsto (mem_closure_iff_nhds_within_ne_bot.1 hx) h $ | ||
mem_sets_of_superset self_mem_nhds_within (subset_preimage_image f s) | ||
|
||
lemma continuous_within_at.mem_closure {f : α → β} {s : set α} {x : α} {A : set β} | ||
(h : continuous_within_at f s x) (hx : x ∈ closure s) (hA : s ⊆ f⁻¹' A) : f x ∈ closure A := | ||
closure_mono (image_subset_iff.2 hA) (h.mem_closure_image hx) | ||
|
||
lemma continuous_within_at.image_closure {f : α → β} {s : set α} | ||
(hf : ∀ x ∈ closure s, continuous_within_at f s x) : | ||
f '' (closure s) ⊆ closure (f '' s) := | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so. |
||
begin | ||
rintros _ ⟨x, hx, rfl⟩, | ||
exact (hf x hx).mem_closure_image hx | ||
end | ||
|
||
lemma continuous_on.congr_mono {f g : α → β} {s s₁ : set α} (h : continuous_on f s) | ||
(h' : ∀x ∈ s₁, g x = f x) (h₁ : s₁ ⊆ s) : continuous_on g s₁ := | ||
begin | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
To obtain
f x ≤ g x
at a givenx
in the closure ofs
, you only need the continuity off
andg
at this specificx
. So, I think a statement involving one fixedx
and assumptionscontinuous_within_at f s x
,continuous_within_at g s x
andx ∈ closure s
would be more natural.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.
Good point. I fixed that. But maybe I'm having too much fun with filters in the new proof...