Zulip Chat Archive
Stream: Polynomial Freiman-Ruzsa conjecture
Topic: Upstream to Mathlib
Pietro Monticone (Oct 22 2024 at 13:47):
Opened #18034.
Daniel Weber (Nov 19 2024 at 04:36):
I want to use entropy in Mathlib, how can I help with upstreaming the relevant parts from PFR?
Yaël Dillies (Nov 19 2024 at 16:04):
The answer is to not upstream from PFR, but rather from TestingLowerBounds
Yaël Dillies (Nov 19 2024 at 16:05):
Because @Rémy Degenne and @Lorenzo Luccioli are also upstreaming at the same time, I am currently working on improvements to my upstreaming dashboard so that it automatically tells me all PRs to mathlib that touch a file I could upstream
Rémy Degenne (Nov 19 2024 at 16:12):
Our project contains a definition and properties of the Kullback-Leibler divergence, from which you can get entropy, but it is also in the middle of a complete overhaul that changes most definitions including KL. It changes more than 10000 lines and has many sorry
left so don't count on us upstreaming soon.
Also Mathlib might want an entropy definition with a tsum
anyway, tailored to the discrete case. So we could PR from PFR without waiting for the TestingLowerBounds project.
Rémy Degenne (Jan 26 2025 at 15:39):
I have opened a PR for the Kullback-Leibler divergence: #21053 .
I still think that we also want a more direct definition for the discrete entropy (and we'll link the two definitions afterwards), so upstreaming from PFR is still a good idea.
Yaël Dillies (Jan 26 2025 at 16:39):
Interesting. What makes you think we want the direct definition? And do we want the direct definition from PFR before or after the introduction of FiniteRange
?
Rémy Degenne (Mar 03 2025 at 12:27):
The KL definition is now merged to Mathlib.
I forgot to answer the last question from Yaël Dillies: after thinking about it more, I'm not really sure about it. I supposed that for probability over finite types (I wrote discrete above but I was really thinking finite) we could avoid questions of integrability, for example. But we can also define the entropy from the Kullback-Leibler divergence and write a specialized definition for the finite case that never asks about integrability if needed.
Last updated: May 02 2025 at 03:31 UTC