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

feat(InformationTheory): define the Kullback-Leibler divergence between two finite measures #21053

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

RemyDegenne
Copy link
Contributor

@RemyDegenne RemyDegenne commented Jan 25, 2025

@RemyDegenne RemyDegenne added WIP Work in progress t-measure-probability Measure theory / Probability theory labels Jan 25, 2025
Copy link

github-actions bot commented Jan 25, 2025

PR summary 57df557ba9

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.InformationTheory.KullbackLeibler.KLFun (new file) 2037
Mathlib.InformationTheory.KullbackLeibler.Basic (new file) 2042

Declarations diff

+ ConcaveOn.antitoneOn_slope_gt
+ ConcaveOn.antitoneOn_slope_lt
+ ConvexOn.monotoneOn_slope_gt
+ ConvexOn.monotoneOn_slope_lt
+ bddAbove_slope_Iio_of_mem_interior
+ bddBelow_slope_Ioi_of_mem_interior
+ continuous_klFun
+ convexOn_Ioi_klFun
+ convexOn_klFun
+ deriv_klFun
+ differentiableWithinAt_Iio_of_mem_interior
+ differentiableWithinAt_Ioi_of_mem_interior
+ ge_of_leftDeriv_eq_zero
+ ge_of_leftDeriv_nonpos_of_rightDeriv_nonneg
+ ge_of_rightDeriv_eq_zero
+ hasDerivAt_klFun
+ hasDerivWithinAt_leftDeriv_of_mem_interior
+ hasDerivWithinAt_rightDeriv_of_mem_interior
+ hasDerivWithinAt_sInf_slope_of_mem_interior
+ hasDerivWithinAt_sSup_slope_of_mem_interior
+ integrable_klFun_rnDeriv_iff
+ integrable_rnDeriv_mul_log_iff
+ integral_klFun_rnDeriv
+ integral_llr_add_mul_log_nonneg
+ integral_llr_add_sub_measure_univ_nonneg
+ integral_rnDeriv_mul_log
+ kl
+ klFun
+ klFun_eq_zero_iff
+ klFun_nonneg
+ klFun_one
+ klFun_zero
+ kl_eq_integral_klFun
+ kl_eq_lintegral_klFun
+ kl_eq_top_iff
+ kl_eq_zero_iff
+ kl_ne_top_iff
+ kl_of_ac_of_integrable
+ kl_of_not_ac
+ kl_of_not_integrable
+ kl_self
+ kl_zero_left
+ kl_zero_right
+ leftDeriv_eq_sSup_slope_of_mem_interior
+ leftDeriv_klFun
+ leftDeriv_klFun_one
+ leftDeriv_le_rightDeriv_of_mem_interior
+ leftDeriv_mul_log
+ llr_self
+ measurable_klFun
+ monotoneOn_leftDeriv
+ monotoneOn_rightDeriv
+ mul_log_le_kl
+ mul_log_le_toReal_kl
+ rightDeriv_eq_sInf_slope_of_mem_interior
+ rightDeriv_klFun
+ rightDeriv_klFun_eventually_eq
+ rightDeriv_klFun_one
+ rightDeriv_le_slope_of_mem_interior
+ rightDeriv_mul_log
+ slope_le_leftDeriv_of_mem_interior
+ strictConvexOn_klFun
+ stronglyMeasurable_klFun
+ tendsto_deriv_mul_log_atTop
+ tendsto_klFun_atTop
+ tendsto_rightDeriv_klFun_atTop
+ tendsto_rightDeriv_mul_log_atTop
+ toReal_kl
+ toReal_kl_of_ac

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>

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


No changes to technical debt.

You can run this locally as

./scripts/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).

@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR to Mathlib (this label is automatically managed by a bot) label Jan 25, 2025
@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 26, 2025
@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked-by-other-PR This PR depends on another PR to Mathlib (this label is automatically managed by a bot) t-measure-probability Measure theory / Probability theory WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants