Skip to content

Conversation

@IshiguroYoshihiro
Copy link
Contributor

Motivation for this change

This lemma is a property of expR, which is generalized from a local lemma
0 <= x -> 1 + x <= expR x.

Checklist
  • added corresponding entries in CHANGELOG_UNRELEASED.md
  • added corresponding documentation in the headers

Reference: How to document

Merge policy

As a rule of thumb:

  • PRs with several commits that make sense individually and that
    all compile are preferentially merged into master.
  • PRs with disorganized commits are very likely to be squash-rebased.
Reminder to reviewers

theories/exp.v Outdated
have -> : 1 + x = limn (series (f x)).
by apply/esym/lim_near_cst => //; near=> n; apply: F; near: n.
apply: ler_lim; first by apply: is_cvg_near_cst; near=> n; apply: F; near: n.
pose f n (x : R) i := ((i == 0%nat)%:R + x ^+ n / n`!%:R *+ (i == n)).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pose f n (x : R) i := ((i == 0%nat)%:R + x ^+ n / n`!%:R *+ (i == n)).
pose f n (x : R) i := ((i == 0%N)%:R + x ^+ n / n`!%:R *+ (i == n)).

theories/exp.v Outdated
by apply/esym/lim_near_cst => //; near=> n; apply: F; near: n.
apply: ler_lim; first by apply: is_cvg_near_cst; near=> n; apply: F; near: n.
pose f n (x : R) i := ((i == 0%nat)%:R + x ^+ n / n`!%:R *+ (i == n)).
have F m : (n.+1 < m)%nat ->
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
have F m : (n.+1 < m)%nat ->
have F m : (n.+1 < m)%N ->

@affeldt-aist affeldt-aist added this to the 1.12.0 milestone Jun 5, 2025
@affeldt-aist affeldt-aist added the enhancement ✨ This issue/PR is about adding new features enhancing the library label Jun 5, 2025
@affeldt-aist affeldt-aist requested a review from t6s June 5, 2025 08:10
theories/exp.v Outdated

Local Lemma expR_ge1Dx_subproof x : 0 <= x -> 1 + x <= expR x.
Lemma expR_ge1Dxn x n : 0 <= x ->
1 + x ^+ n.+1 / n.+1`!%:R <= expR x.
Copy link
Member

Choose a reason for hiding this comment

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

can be on the previous line without exceeding 80 cols?

@t6s
Copy link
Member

t6s commented Jun 5, 2025

Looks good. Any awaiting application?

@IshiguroYoshihiro
Copy link
Contributor Author

Looks good. Any awaiting application?

I used this lemma to prove a property of the gamma function, which I'll include in an upcoming PR:

Lemma Gamma_add1 a : 1 <= a -> (Gamma (a + 1) = a%:E * Gamma a)%E.

@t6s
Copy link
Member

t6s commented Jun 13, 2025

I did not at first sight judge whether this rather special form of statement could be useful, but with the application given, I approve this PR. (However I cannot find the approval button now..)

@affeldt-aist affeldt-aist force-pushed the expR_ge1Dxn_20250605 branch from bd58acf to 4538449 Compare June 14, 2025 08:31
@affeldt-aist affeldt-aist self-requested a review June 14, 2025 08:55
@affeldt-aist affeldt-aist merged commit e61a644 into math-comp:master Jun 14, 2025
34 checks passed
IshiguroYoshihiro added a commit to IshiguroYoshihiro/analysis that referenced this pull request Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ✨ This issue/PR is about adding new features enhancing the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants