Skip to content

[Merged by Bors] - refactor(Probability): Make kernels a type#15021

Closed
YaelDillies wants to merge 7 commits intomasterfrom
probability_kernel_type
Closed

[Merged by Bors] - refactor(Probability): Make kernels a type#15021
YaelDillies wants to merge 7 commits intomasterfrom
probability_kernel_type

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies commented Jul 22, 2024

Turn kernel : AddSubmonoid (α → MeasureTheory.Measure β) into Kernel : Type _. This is similar to #12386 but here to gain access to dot notation rather than for performance reasons.


A later PR will rename the predicates like IsMarkovKernel, IsFiniteKernel... to use dot notation.

Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 22, 2024

PR summary 55463f2bba

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ Kernel
+ Kernel.apply_eq_measure_condKernel_of_compProd_eq
+ Kernel.condKernel_apply_eq_condKernel
+ Kernel.continuous_integral_integral
+ Kernel.indep_biSup_compl
+ Kernel.indep_biSup_limsup
+ Kernel.indep_iSup_directed_limsup
+ Kernel.indep_iSup_limsup
+ Kernel.indep_limsup_atBot_self
+ Kernel.indep_limsup_atTop_self
+ Kernel.indep_limsup_self
+ Kernel.integral_fn_integral_add
+ Kernel.integral_fn_integral_sub
+ Kernel.integral_integral_add
+ Kernel.integral_integral_add'
+ Kernel.integral_integral_sub
+ Kernel.integral_integral_sub'
+ Kernel.lintegral_fn_integral_sub
+ Kernel.measurable_lintegral_indicator_const
+ Kernel.measure_eq_zero_or_one_of_indepSet_self
+ Kernel.measure_eq_zero_or_one_or_top_of_indepSet_self
+ Kernel.measure_le_bound
+ Kernel.measure_zero_or_one_of_measurableSet_limsup
+ Kernel.measure_zero_or_one_of_measurableSet_limsup_atBot
+ Kernel.measure_zero_or_one_of_measurableSet_limsup_atTop
+ add_apply
+ coe_add
+ coe_nsmul
+ coe_zero
+ instAdd
+ instAddCommMonoid
+ instCovariantAddLE
+ instFunLike
+ instOrderBot
+ instPartialOrder
+ instSMulNat
+ instZero
+ instance (priority := 100) isFiniteKernel_of_isFiniteKernel_fst {κ : Kernel α (β × γ)}
+ instance (priority := 100) isFiniteKernel_of_isFiniteKernel_snd {κ : Kernel α (β × γ)}
+ instance (κ : Kernel α β) [IsSFiniteKernel κ] (f : α → β → ℝ≥0) :
+ nsmul_apply
++-- compProd_add_right
++-- compProd_zero_left
+-+- compProd
+-+- compProd_add_left
+-+- compProd_zero_right
- coeFn_add
- coeFn_zero
- instance (priority := 100) isFiniteKernel_of_isFiniteKernel_fst {κ : kernel α (β × γ)}
- instance (priority := 100) isFiniteKernel_of_isFiniteKernel_snd {κ : kernel α (β × γ)}
- instance (κ : kernel α β) [IsSFiniteKernel κ] (f : α → β → ℝ≥0) :
- instance {α β : Type*} [MeasurableSpace α] [MeasurableSpace β] :
- kernel.apply_eq_measure_condKernel_of_compProd_eq
- kernel.condKernel_apply_eq_condKernel
- kernel.continuous_integral_integral
- kernel.indep_biSup_compl
- kernel.indep_biSup_limsup
- kernel.indep_iSup_directed_limsup
- kernel.indep_iSup_limsup
- kernel.indep_limsup_atBot_self
- kernel.indep_limsup_atTop_self
- kernel.indep_limsup_self
- kernel.instCovariantAddLE
- kernel.instOrderBot
- kernel.integral_fn_integral_add
- kernel.integral_fn_integral_sub
- kernel.integral_integral_add
- kernel.integral_integral_add'
- kernel.integral_integral_sub
- kernel.integral_integral_sub'
- kernel.lintegral_fn_integral_sub
- kernel.measurable_lintegral_indicator_const
- kernel.measure_eq_zero_or_one_of_indepSet_self
- kernel.measure_eq_zero_or_one_or_top_of_indepSet_self
- kernel.measure_le_bound
- kernel.measure_zero_or_one_of_measurableSet_limsup
- kernel.measure_zero_or_one_of_measurableSet_limsup_atBot
- kernel.measure_zero_or_one_of_measurableSet_limsup_atTop

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

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

@YaelDillies YaelDillies added the t-measure-probability Measure theory / Probability theory label Jul 22, 2024
@YaelDillies YaelDillies requested a review from RemyDegenne July 22, 2024 16:09
Copy link
Copy Markdown
Contributor

@RemyDegenne RemyDegenne left a comment

Choose a reason for hiding this comment

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

The important changes are only in Kernel.Basic, right?

Copy link
Copy Markdown
Contributor

@RemyDegenne RemyDegenne left a comment

Choose a reason for hiding this comment

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

Looks good!
bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 23, 2024

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

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jul 23, 2024
@YaelDillies
Copy link
Copy Markdown
Contributor Author

Thanks for the quick review!

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Jul 23, 2024
Turn `kernel : AddSubmonoid (α → MeasureTheory.Measure β)` into `Kernel : Type _`. This is similar to #12386 but here to gain access to dot notation rather than for performance reasons.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 23, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor(Probability): Make kernels a type [Merged by Bors] - refactor(Probability): Make kernels a type Jul 23, 2024
@mathlib-bors mathlib-bors bot closed this Jul 23, 2024
@mathlib-bors mathlib-bors bot deleted the probability_kernel_type branch July 23, 2024 08:07
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-measure-probability Measure theory / Probability theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants