-
Couldn't load subscription status.
- Fork 1
fill sorries in 1) Prod and in 2) measurable_of_measurable_coe' adding IsPiSystem t #13
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
base: main
Are you sure you want to change the base?
Conversation
- add additional hypothesis in toReal_ae_eq_indicator_condExp_iff_forall_meas_inter_eq that `g < ⊤` a.e
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.
Thanks for the PR! In the future, it's always good to discuss your plans on Zulip first, but here you got lucky and nobody was working on that. I personally find the possibility of GibbsMeasure being used in PhysLean very exciting!
Here are a few initial comments. Your PR is coming at a very busy time for me, so I will likely not be able to comment further before another month. However, more or less all of your code could go straight into mathlib, so I would encourage you to PR it there, where there will be reviewers available for you. No need to close this PR, at least for now.
GibbsMeasure/Mathlib/MeasureTheory/Function/ConditionalExpectation/Basic.lean
Outdated
Show resolved
Hide resolved
| lemma measure_univ_of_marg_snd_dirac | ||
| (μ : Measure (X × Y)) (y : Y) | ||
| (marg_Y : Measure.map Prod.snd μ = Measure.dirac y) : | ||
| μ univ = 1 := by |
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.
Is this really a theorem about product and Dirac measures? It seems to me like you can state everything in the generality of HasLaw
|
Thank you very much for your review. I'm going to have another take on them soon and will try to PR them to mathlib. Next time will use the GibbsMeasure zulip channel :) |
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.
Let's make the review process kind of like mathlib's.
|
oh sorry, I have just seen your comments :), will try to address them now. Thanks |
|
-awaiting-author |
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.
This PR is too big for me to review properly. Do you think you could find constituent parts that each make sense on their own? I expect there could be two to three parts here.
| @@ -1,17 +1,349 @@ | |||
| import Mathlib.MeasureTheory.Measure.Prod | |||
| import Mathlib.Probability.HasLaw | |||
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.
Mathlib.Probability.HasLaw imports Mathlib.MeasureTheory.Measure.Prod, not the other way around. Therefore all your material that depends on HasLaw should go to GibbsMeasure.Mathlib.Probability.HasLaw instead of GibbsMeasure.Mathlib.MeasureTheory.Measure.Prod
| [SigmaFinite (μ.trim hm)] {g : α → ℝ≥0∞} {s : Set α} | ||
| (hs_meas : MeasurableSet s) (hs_finite : μ s ≠ ⊤) | ||
| (hgm : AEStronglyMeasurable[m] g μ) | ||
| (hg_fin : ∀ᵐ a ∂ μ, g a ≠ ⊤) : | ||
| (fun a ↦ (g a).toReal) =ᵐ[μ] μ[s.indicator 1| m] ↔ | ||
| ∀ t, MeasurableSet[m] t → μ (s ∩ t) = ∫⁻ a in t, g a ∂μ := by |
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.
Statement is indented by four spaces
| [SigmaFinite (μ.trim hm)] {g : α → ℝ≥0∞} {s : Set α} | |
| (hs_meas : MeasurableSet s) (hs_finite : μ s ≠ ⊤) | |
| (hgm : AEStronglyMeasurable[m] g μ) | |
| (hg_fin : ∀ᵐ a ∂ μ, g a ≠ ⊤) : | |
| (fun a ↦ (g a).toReal) =ᵐ[μ] μ[s.indicator 1| m] ↔ | |
| ∀ t, MeasurableSet[m] t → μ (s ∩ t) = ∫⁻ a in t, g a ∂μ := by | |
| [SigmaFinite (μ.trim hm)] {g : α → ℝ≥0∞} {s : Set α} | |
| (hs_meas : MeasurableSet s) (hs_finite : μ s ≠ ⊤) | |
| (hgm : AEStronglyMeasurable[m] g μ) | |
| (hg_fin : ∀ᵐ a ∂ μ, g a ≠ ⊤) : | |
| (fun a ↦ (g a).toReal) =ᵐ[μ] μ[s.indicator 1| m] ↔ | |
| ∀ t, MeasurableSet[m] t → μ (s ∩ t) = ∫⁻ a in t, g a ∂μ := by |
Same everywhere else
| MeasureTheory.Measure.eq_mapMk_of_marg_fst_dirac (μ := μ) (x := x) (marg_X := margX) | ||
| simpa [μ, margY', hY.map_eq] using hμ | ||
| end | ||
| section |
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.
| section | |
| section |
hope it is not impolite to work on this; apologies but I'd like to use GibbsMeasure in a few applications in PhysLean :)