[Merged by Bors] - feat: Binary entropy#9734
Conversation
|
Shouldn't binary entropy be put under InformationTheory? Why not use capital H_2 for the function's name? |
|
@kspalaiologos Thanks for the comment! I moved it to |
594c71d to
1d22a13
Compare
1d22a13 to
f209f6e
Compare
|
@b-mehta and I have material about the binary entropy function. We needed it a year ago in the context of the progress on the Frankl set family conjecture. I suggest we wait for Bhavik to provide the code to compare. |
|
Yes, I developed that further since this function is fundamental to my Ramsey proof. I will make a detailed comparison in the next day or two. |
|
There were still too many small things to fix for the review to converge quickly, so I took the freedom to clean things up myself. Your PR now depends on two small prerequisite PRs. |
This comment was marked as outdated.
This comment was marked as outdated.
YaelDillies
left a comment
There was a problem hiding this comment.
Now looks good enough to me
maintainer merge
This comment was marked as outdated.
This comment was marked as outdated.
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
PR summary 1c7ad929c6Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
Co-authored-by: Johan Commelin <johan@commelin.net>
PR summary a50c9f14e1Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
PR summary ef058a9609Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
Alright, let's get this merged! :-) bors r+ |
Define the (Shannon) binary and q-ary entropy functions. The binary entropy function is used in information theory; for example, in Shannon's theorems. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
|
Pull request successfully merged into master. Build succeeded: |
Define the (Shannon) binary and q-ary entropy functions. The binary entropy function is used in information theory; for example, in Shannon's theorems. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Define the (Shannon) binary and q-ary entropy functions. The binary entropy function is used in information theory; for example, in Shannon's theorems. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Define the (Shannon) binary and q-ary entropy functions. The binary entropy function is used in information theory; for example, in Shannon's theorems. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Define the (Shannon) binary and q-ary entropy functions.
The binary entropy function is used in information theory; for example, in Shannon's theorems.
fun x ↦ f (a - x)#15828eq_iff_not_lt_of_le#15829The lemmas are mostly "trivial", especially using
Mathlib.Analysis.SpecialFunctions.Log.NegMulLog.This is the kind of application that
NegMulLogwas made for.If Mathlib is to include Shannon's theorems in the future (already formalized in Coq), this might hopefully save someone a few minutes.