-
Notifications
You must be signed in to change notification settings - Fork 75
new series convergence criteria #2035
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
Open
nmolinamounier
wants to merge
2
commits into
math-comp:master
Choose a base branch
from
nmolinamounier:series_cvg_crit
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -558,7 +558,7 @@ Proof. by rewrite telescopeK/= addrC addrNK. Qed. | |
|
|
||
| Section series_patched. | ||
| Context (N : nat) {K : numFieldType} {V : normedModType K}. | ||
| Implicit Types (f : nat -> V) (u : V ^nat) (l : set_system V). | ||
| Implicit Types (f : nat -> V) (u : V ^nat) (l : set_system V). | ||
|
|
||
| Lemma is_cvg_series_restrict u_ : | ||
| cvgn [sequence \sum_(N <= k < n) u_ k]_n = cvgn (series u_). | ||
|
|
@@ -571,6 +571,20 @@ rewrite funeqE => n; case: leqP => // ltNn; apply: (canRL (addrK _)). | |
| by rewrite seriesEnat addrC -big_cat_nat// ltnW. | ||
| Qed. | ||
|
|
||
| Lemma is_cvg_series_shiftn u_ : cvgn (series u_) <-> cvgn [series u_ (n + N)]_n. | ||
| Proof. | ||
| split. | ||
| - rewrite -is_cvg_series_restrict => /cvg_ex[/= l +]. | ||
| rewrite -(cvg_shiftn N)/= => Nnul; apply: cvgP; apply: cvg_trans Nnul. | ||
| apply: near_eq_cvg; near=> n. | ||
| rewrite /series/=. | ||
| by rewrite -{1}(add0n N) big_addn addnK. | ||
| - move=> cvgu; rewrite -is_cvg_series_restrict. | ||
| apply: cvgP; rewrite -(cvg_shiftn N)/=; apply: cvg_trans cvgu. | ||
| apply: near_eq_cvg; near=> n => /=. | ||
| by rewrite -{2}(add0n N) big_addn addnK. | ||
| Unshelve. all: by end_near. Qed. | ||
|
|
||
| End series_patched. | ||
|
|
||
| Section sequences_R_lemmas. | ||
|
|
@@ -972,17 +986,36 @@ have := su_cv; rewrite near_swap => su_cvC; near=> m => /=; rewrite sub_series. | |
| by have [|/ltnW]:= leqP m.2 m.1 => m12; rewrite ?normrN; near: m. | ||
| Unshelve. all: by end_near. Qed. | ||
|
|
||
| Lemma series_le_cvg (R : realType) (u_ v_ : R ^nat) : | ||
| (forall n, 0 <= u_ n) -> (forall n, 0 <= v_ n) -> | ||
| (forall n, u_ n <= v_ n) -> | ||
| Lemma series_le_cvg {R : realType} (u_ v_ : R ^nat) : | ||
| (forall n, 0 <= u_ n) -> (forall n, 0 <= v_ n) -> | ||
| (forall n, u_ n <= v_ n) -> | ||
| cvgn (series v_) -> cvgn (series u_). | ||
| Proof. | ||
| move=> u_ge0 v_ge0 le_uv /cvg_seq_bounded/bounded_fun_has_ubound[M v_M]. | ||
| apply: nondecreasing_is_cvgn; first exact: nondecreasing_series. | ||
| exists M => _ [n _ <-]. | ||
| by apply: le_trans (v_M (series v_ n) _); [apply: ler_sum | exists n]. | ||
| by apply: le_trans (v_M (series v_ n) _); [exact: ler_sum | exists n]. | ||
| Qed. | ||
|
|
||
| Lemma series_near_le_cvg {R : realType} (u_ v_ : R^nat) : | ||
|
Member
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. Maybe |
||
| (\forall n \near \oo, 0 <= u_ n) -> (\forall n \near \oo, 0 <= v_ n) -> | ||
| (\forall n \near \oo, u_ n <= v_ n) -> | ||
| cvgn (series v_) -> cvgn (series u_). | ||
| Proof. | ||
| move=> u0 v0 uv cvg_v. | ||
| near \oo => N; apply/(is_cvg_series_shiftn N). | ||
| move: cvg_v => /(is_cvg_series_shiftn N); apply: series_le_cvg => /= n. | ||
| - have : forall n, (n >= N)%N -> 0 <= u_ n. | ||
| by near: N; exact: (iffLR (near_infty_leq _)). | ||
| by apply; exact: leq_addl. | ||
| - have : forall n, (n >= N)%N -> 0 <= v_ n. | ||
| by near: N; exact: (iffLR (near_infty_leq _)). | ||
| by apply; exact: leq_addl. | ||
| - have : forall n, (n >= N)%N -> u_ n <= v_ n. | ||
| by near: N; exact: (iffLR (near_infty_leq _)). | ||
| by apply; exact: leq_addl. | ||
| Unshelve. all: by end_near. Qed. | ||
|
|
||
| Lemma normed_cvg {R : realType} (V : completeNormedModType R) (u_ : V ^nat) : | ||
| cvgn [normed series u_] -> cvgn (series u_). | ||
| Proof. | ||
|
|
||
Oops, something went wrong.
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.
Rename to
series_squeeze_is_cvgn?