[Merged by Bors] - feat(Analysis/MeanInequalities): HM-GM inequality#13721
Closed
luigi-massacci wants to merge 4 commits intomasterfrom
Closed
[Merged by Bors] - feat(Analysis/MeanInequalities): HM-GM inequality#13721luigi-massacci wants to merge 4 commits intomasterfrom
luigi-massacci wants to merge 4 commits intomasterfrom
Conversation
PR summary 48b77b8d2fImport changesNo significant changes to the import graph Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>
## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit> |
pitmonticone
previously requested changes
Jun 20, 2024
sgouezel
reviewed
Jun 20, 2024
Contributor
sgouezel
left a comment
There was a problem hiding this comment.
This looks very good, thanks!
| theorem harm_mean_le_geom_mean {ι : Type*} (s : Finset ι) (hs : Finset.Nonempty s) (w : ι → ℝ) | ||
| (z : ι → ℝ) (hw : ∀ i ∈ s, 0 < w i) (hw' : 0 < ∑ i in s, w i) (hz : ∀ i ∈ s, 0 < z i) : | ||
| (∑ i in s, w i)/(∑ i in s, w i / z i) ≤ (∏ i in s, z i ^ w i) ^ (∑ i in s, w i)⁻¹ := by | ||
| have := harm_mean_le_geom_mean_weighted s (fun i => (w i) / ∑ i in s, w i) z hs ?_ ?_ hz |
Contributor
There was a problem hiding this comment.
The style with have := with metavariables on the right hand side (creating new goals) is not always the most readable. Often, it's more readable to use suffices. Although here the thing you would have to write is quite long, so it's not clear. Do as you prefer! (but keeping readability in mind :-)
All other theorems in the file require the arguments explicitly
Contributor
|
bors r+ |
mathlib-bors bot
pushed a commit
that referenced
this pull request
Jun 23, 2024
We derive the inequality between the harmonic and geometric mean as a consequence of AM-GM for positive real valued functions from a `Finset`. We state a weighted as well as the classical version.
Contributor
|
Pull request successfully merged into master. Build succeeded: |
kbuzzard
pushed a commit
that referenced
this pull request
Jun 26, 2024
We derive the inequality between the harmonic and geometric mean as a consequence of AM-GM for positive real valued functions from a `Finset`. We state a weighted as well as the classical version.
dagurtomas
pushed a commit
that referenced
this pull request
Jul 2, 2024
We derive the inequality between the harmonic and geometric mean as a consequence of AM-GM for positive real valued functions from a `Finset`. We state a weighted as well as the classical version.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
We derive the inequality between the harmonic and geometric mean as a consequence of AM-GM for positive real valued functions from a
Finset. We state a weighted as well as the classical version.