Skip to main content
All packages

teorth/PFR

PFR

Repository for formalization of the Polynomial Freiman Ruzsa conjecture (and related results)

Therefore indexed 350 complete source declarations from the exact package revision. Individual authorship and independent verification remain unset.

Research project222 GitHub starsApache-2.023 indexed versionsRepositoryFull history on Reservoir
mathadditive-combinatoricsinformation-theory

Head version

v4.33.0-rc1

a177b2e4abe4b31c8024b9afebe646bf6bb8f91b

Toolchain
leanprover/lean4:v4.33.0-rc1
Revision date
16 Jul 2026
Dependencies
11
Versions
23

External build observation

Exact head commit and toolchain

Reservoir recorded build status passed and test status not observed for commit a177b2e4abe4 with leanprover/lean4:v4.33.0-rc1 on 20 Jul 2026. Therefore did not run this build.

Pin this source in lakefile.lean

require PFR from git "https://github.com/teorth/pfr.git" @ "a177b2e4abe4b31c8024b9afebe646bf6bb8f91b"

Source declarations

350 indexed proofs

Package history

Showing 181 to 200 of 350 declarations.

lemma

ProbabilityTheory.IndepFun.map_add_eq_sum

The distribution of X + Z is the convolution of the distributions of Z and X when these random variables are independent. Probably already available somewhere in some form, but I couldn't locate it.

PFR.Kullback · PFR/Kullback.lean:201

lemma

KLDiv_add_le_KLDiv_of_indep

If X,Y,ZX, Y, Z are independent GG-valued random variables, then DKL(X+ZY+Z)DKL(XY).D_{KL}(X+Z\Vert Y+Z) \leq D_{KL}(X\Vert Y).

PFR.Kullback · PFR/Kullback.lean:288

lemma

condKLDiv_eq

If X,YX, Y are GG-valued random variables, and ZZ is another random variable defined on the same sample space as XX, then DKL((XZ)Y)=DKL(XY)+\bbH[X]\bbH[XZ].D_{KL}((X|Z)\Vert Y) = D_{KL}(X\Vert Y) + \bbH[X] - \bbH[X|Z].

PFR.Kullback · PFR/Kullback.lean:353

lemma

tendsto_KLDiv_id_right

Open the record for the exact Lean statement and complete source.

PFR.Kullback · PFR/Kullback.lean:417

lemma

tendsto_KLDiv_id_left

Open the record for the exact Lean statement and complete source.

PFR.Kullback · PFR/Kullback.lean:443

theorem

PFR_conjecture

The polynomial Freiman-Ruzsa (PFR) conjecture: if A is a subset of an elementary abelian 2-group of doubling constant at most K, then A can be covered by at most 2 * K ^ 12 cosets of a subgroup of cardinality at most |A|.

PFR.Main · PFR/Main.lean:253

theorem

PFR_conjecture'

Corollary of PFR_conjecture in which the ambient group is not required to be finite (but) then H and c are finite.

PFR.Main · PFR/Main.lean:313

lemma

Real.sum_mul_log_div_leq

If SS is a finite set, and asa_s, bsb_s are non-negative for sSs\in S, then

\left(\sum_{s\in S}a_s\right)\log\frac{\sum_{s\in S} a_s}{\sum_{s\in S} b_s}$$. We require additionally that, if $b_s=0$, then $s_s=0$ as otherwise the right hand side should morally be infinite, which it can't be in the formalization using real numbers.

PFR.Mathlib.Analysis.SpecialFunctions.NegMulLog · PFR/Mathlib/Analysis/SpecialFunctions/NegMulLog.lean:32

lemma

Real.sum_mul_log_div_eq_iff

If equality holds in the previous bound, then as=rbsa_s=r\cdot b_s for every sSs\in S, for some constant rRr\in \mathbb{R}.

PFR.Mathlib.Analysis.SpecialFunctions.NegMulLog · PFR/Mathlib/Analysis/SpecialFunctions/NegMulLog.lean:99

theorem

Submodule.exists_equiv_fst_sndModFst

Given a submodule EE of B×FB \times F, there is an equivalence f:EB×Ff : E \to B' \times F' given by the projections EBE \to B and EFE \to F "modulo" some φ:BFφ : B \to F.

PFR.Mathlib.LinearAlgebra.Basis.VectorSpace · PFR/Mathlib/LinearAlgebra/Basis/VectorSpace.lean:16

lemma

ProbabilityMeasure.tendsto_iff_forall_apply_tendsto

Probability measures on a finite space tend to a limit if and only if the probability masses of all points tend to the corresponding limits. Version in ℝ≥0.

PFR.Mathlib.MeasureTheory.Measure.ProbabilityMeasure · PFR/Mathlib/MeasureTheory/Measure/ProbabilityMeasure.lean:64

lemma

MeasureTheory.Measure.map_prod_comap_swap

The law of (X,Z)(X, Z) is the image of the law of (Z,X)(Z,X).

PFR.Mathlib.MeasureTheory.Measure.Prod · PFR/Mathlib/MeasureTheory/Measure/Prod.lean:15

theorem

ProbabilityTheory.IdentDistrib.iprodMk

Open the record for the exact Lean statement and complete source.

PFR.Mathlib.Probability.IdentDistrib · PFR/Mathlib/Probability/IdentDistrib.lean:142

lemma

ProbabilityTheory.independent_copies

For X, Y random variables, one can find independent copies X', Y' of X, Y.

PFR.Mathlib.Probability.IdentDistrib · PFR/Mathlib/Probability/IdentDistrib.lean:233

lemma

ProbabilityTheory.independent_copies_two

For X, Y random variables, one can find independent copies X', Y' of X, Y. Version formulated in spaces with a canonical measures.

PFR.Mathlib.Probability.IdentDistrib · PFR/Mathlib/Probability/IdentDistrib.lean:246

Static source extraction only. Package code was not executed. Every result keeps its complete declaration, exact file and line range, commit, toolchain, license file, and content hash.