Skip to content

[Merged by Bors] - feat(MeasureTheory): add MeasurableEmbedding.natCast#34521

Closed
huaizhangchu wants to merge 5 commits intoleanprover-community:masterfrom
huaizhangchu:measurableEmbedding-natCast
Closed

[Merged by Bors] - feat(MeasureTheory): add MeasurableEmbedding.natCast#34521
huaizhangchu wants to merge 5 commits intoleanprover-community:masterfrom
huaizhangchu:measurableEmbedding-natCast

Conversation

@huaizhangchu
Copy link
Contributor

@huaizhangchu huaizhangchu commented Jan 28, 2026

This PR adds a lemma stating that the coercion from is a measurable embedding.

This is useful for proving properties about discrete probability distributions on by lifting them to and will be used in #34435.

@github-actions github-actions bot added new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! large-import Automatically added label for PRs with a significant increase in transitive imports labels Jan 28, 2026
@github-actions
Copy link

github-actions bot commented Jan 28, 2026

PR summary e8ea1afc32

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ natCast

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions bot added the t-measure-probability Measure theory / Probability theory label Jan 28, 2026
@huaizhangchu huaizhangchu force-pushed the measurableEmbedding-natCast branch from 911520e to 435873c Compare January 28, 2026 12:56
@github-actions github-actions bot removed the large-import Automatically added label for PRs with a significant increase in transitive imports label Jan 28, 2026
@RemyDegenne RemyDegenne added the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 2, 2026
@huaizhangchu
Copy link
Contributor Author

-awaiting-author

@github-actions github-actions bot removed the awaiting-author A reviewer has asked the author a question or requested changes. label Mar 3, 2026
@RemyDegenne RemyDegenne changed the title feat(MeasureTheory): add measurableEmbedding_natCast feat(MeasureTheory): add MeasurableEmbedding.natCast Mar 4, 2026
@RemyDegenne
Copy link
Contributor

Thanks!
bors r+

@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Mar 4, 2026
mathlib-bors bot pushed a commit that referenced this pull request Mar 4, 2026
This PR adds a lemma stating that the coercion from `ℕ` is a measurable embedding.

This is useful for proving properties about discrete probability distributions on `ℕ` by lifting them to `ℝ` and will be used in #34435.

Co-authored-by: Hanzhang Cheng <viannacheng@163.com>
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Mar 4, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(MeasureTheory): add MeasurableEmbedding.natCast [Merged by Bors] - feat(MeasureTheory): add MeasurableEmbedding.natCast Mar 4, 2026
@mathlib-bors mathlib-bors bot closed this Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! ready-to-merge This PR has been sent to bors. t-measure-probability Measure theory / Probability theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants