Skip to content
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

[Merged by Bors] - feat(probability/stopping): generalize mem_ℒp_stopped_value #16369

Closed
wants to merge 16 commits into from

Conversation

RemyDegenne
Copy link
Collaborator

Also rename many lemmas which had names *_of_encodable but took countable arguments since a recent PR which replaced all encodable by countable but did not touch the names.


Open in Gitpod

@RemyDegenne RemyDegenne added the awaiting-review The author would like community review of the PR label Sep 4, 2022
Comment on lines 578 to 579
(integrable.integrable_on (@integrable_stopped_value Ω ℕ _ _ _ _ _ _ _ _ _
(hitting_is_stopping_time hsub.adapted measurable_set_Ici) hsub.integrable _ hitting_le)),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I need to add the @ because somehow none of the arguments can precisely indicate what the index type is and Lean guesses incorrectly Ω → ℕ instead of .

Copy link
Collaborator

@sgouezel sgouezel left a comment

Choose a reason for hiding this comment

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

bors d+
Thanks!

@@ -575,28 +575,28 @@ begin
have h := set_integral_ge_of_const_le (measurable_set_le measurable_const
(finset.measurable_range_sup'' (λ n _, (hsub.strongly_measurable n).measurable.le (𝒢.le n))))
(measure_ne_top _ _) this
(integrable.integrable_on (integrable_stopped_value (hitting_is_stopping_time
hsub.adapted measurable_set_Ici) hsub.integrable hitting_le)),
(integrable.integrable_on (@integrable_stopped_value Ω ℕ _ _ _ _ _ _ _ _ _
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you make the argument of integrable_stopped_value explicit, since it seems Lean has difficulties inferring it, to avoid using the @ version here and below?

@bors
Copy link

bors bot commented Sep 7, 2022

✌️ RemyDegenne can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@leanprover-community-bot-assistant leanprover-community-bot-assistant added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Sep 7, 2022
src/probability/stopping.lean Outdated Show resolved Hide resolved
src/probability/martingale/basic.lean Outdated Show resolved Hide resolved
src/probability/martingale/basic.lean Outdated Show resolved Hide resolved
src/probability/martingale/basic.lean Outdated Show resolved Hide resolved
src/probability/martingale/basic.lean Outdated Show resolved Hide resolved
src/probability/martingale/basic.lean Outdated Show resolved Hide resolved
src/probability/martingale/basic.lean Outdated Show resolved Hide resolved
@RemyDegenne
Copy link
Collaborator Author

bors r+

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Sep 9, 2022
bors bot pushed a commit that referenced this pull request Sep 9, 2022
Also rename many lemmas which had names `*_of_encodable` but took `countable` arguments since a recent PR which replaced all `encodable` by `countable` but did not touch the names.



Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
@bors
Copy link

bors bot commented Sep 9, 2022

Build failed:

@RemyDegenne
Copy link
Collaborator Author

bors r-

@RemyDegenne RemyDegenne removed the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Sep 9, 2022
@RemyDegenne
Copy link
Collaborator Author

bors r+

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Sep 10, 2022
bors bot pushed a commit that referenced this pull request Sep 10, 2022
Also rename many lemmas which had names `*_of_encodable` but took `countable` arguments since a recent PR which replaced all `encodable` by `countable` but did not touch the names.



Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
Co-authored-by: RemyDegenne <remydegenne@gmail.com>
@bors
Copy link

bors bot commented Sep 10, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(probability/stopping): generalize mem_ℒp_stopped_value [Merged by Bors] - feat(probability/stopping): generalize mem_ℒp_stopped_value Sep 10, 2022
@bors bors bot closed this Sep 10, 2022
@bors bors bot deleted the RD_stopped branch September 10, 2022 10:55
bottine pushed a commit that referenced this pull request Sep 13, 2022
Also rename many lemmas which had names `*_of_encodable` but took `countable` arguments since a recent PR which replaced all `encodable` by `countable` but did not touch the names.



Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
Co-authored-by: RemyDegenne <remydegenne@gmail.com>
b-mehta pushed a commit that referenced this pull request Sep 21, 2022
Also rename many lemmas which had names `*_of_encodable` but took `countable` arguments since a recent PR which replaced all `encodable` by `countable` but did not touch the names.



Co-authored-by: Rémy Degenne <remydegenne@gmail.com>
Co-authored-by: RemyDegenne <remydegenne@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants