Download PFR/EntropyPFR.lean from cfahlgren1/lean-pfr: direct link, hf CLI and curl.
- Browser
- Download file 3.84 kB
-
https://huggingface.co/datasets/cfahlgren1/lean-pfr/resolve/main/PFR/EntropyPFR.lean
- Command line
-
hf download hf://datasets/cfahlgren1/lean-pfr/PFR/EntropyPFR.lean
-
curl -L -o EntropyPFR.lean https://huggingface.co/datasets/cfahlgren1/lean-pfr/resolve/main/PFR/EntropyPFR.lean
3.84 kB
| module | |
| public import Mathlib.Algebra.Module.ZMod | |
| public import PFR.TauFunctional | |
| public import PFR.HundredPercent | |
| public import PFR.Endgame | |
| /-! | |
| # Entropic version of polynomial Freiman-Ruzsa conjecture | |
| Here we prove the entropic version of the polynomial Freiman-Ruzsa conjecture. | |
| ## Main results | |
| * `entropic_PFR_conjecture`: For two $G$-valued random variables $X_1^0, X_2^0$, there is some | |
| subgroup $H \leq G$ such that $d[X_1^0;U_H] + d[X_2^0;U_H] \le 11 d[X_1^0;X_2^0]$, | |
| and both $d[X_1^0;U_H]$ and $d[X_2^0;U_H]$ are at most $6 d[X_1^0;X_2^0]$. | |
| -/ | |
| public section | |
| open MeasureTheory ProbabilityTheory | |
| universe uG | |
| variable {Ω₀₁ Ω₀₂ : Type*} [MeasureSpace Ω₀₁] [MeasureSpace Ω₀₂] | |
| variable {Ω Ω' : Type*} [mΩ : MeasureSpace Ω] [IsProbabilityMeasure (ℙ : Measure Ω)] | |
| [IsProbabilityMeasure (ℙ : Measure Ω₀₁)] [IsProbabilityMeasure (ℙ : Measure Ω₀₂)] | |
| variable {G : Type uG} [AddCommGroup G] [Module (ZMod 2) G] [Finite G] [MeasurableSpace G] | |
| [MeasurableSingletonClass G] | |
| variable (p : refPackage Ω₀₁ Ω₀₂ G) {X₁ : Ω → G} {X₂ : Ω → G} (hX₁ : Measurable X₁) | |
| (hX₂ : Measurable X₂) | |
| include hX₁ hX₂ in | |
| /-- If $d[X_1;X_2] > 0$ then there are $G$-valued random variables $X'_1, X'_2$ such that | |
| $\tau[X'_1;X'_2] < \tau[X_1;X_2]$. Phrased in the contrapositive form for convenience of proof. -/ | |
| theorem tau_strictly_decreases (h_min : TauMinimizes p X₁ X₂) (hpη : p.η = 1 / 9) : | |
| d[X₁ # X₂] = 0 := by | |
| cases nonempty_fintype G | |
| let ⟨A, mA, μ, Y₁, Y₂, Y₁', Y₂', hμ, h_indep, hY₁, hY₂, hY₁', hY₂', h_id1, h_id2, h_id1', h_id2'⟩ | |
| := independent_copies4_nondep hX₁ hX₂ hX₁ hX₂ ℙ ℙ ℙ ℙ | |
| rw [← h_id1.rdist_congr h_id2] | |
| let : MeasureSpace A := ⟨μ⟩ | |
| have : IsProbabilityMeasure (ℙ : Measure A) := hμ | |
| rw [← h_id1.tauMinimizes p h_id2] at h_min | |
| apply tau_strictly_decreases_aux p Y₁ Y₂ Y₁' Y₂' hY₁ hY₂ hY₁' hY₂' (h_id1.trans h_id1'.symm) | |
| (h_id2.trans h_id2'.symm) h_indep h_min hpη | |
| /-- `entropic_PFR_conjecture`: For two $G$-valued random variables $X_1^0, X_2^0$, there is some | |
| subgroup $H \leq G$ such that $d[X_1^0;U_H] + d[X_2^0;U_H] \le 11 d[X_1^0;X_2^0]$, and | |
| both $d[X_1^0; U_H]$ and $d[X_2^0; U_H]$ are at most $6 d[X_1^0;X_2^0]$. -/ | |
| theorem entropic_PFR_conjecture (hpη : p.η = 1 / 9) : | |
| ∃ H : Submodule (ZMod 2) G, ∃ Ω : Type uG, ∃ mΩ : MeasureSpace Ω, ∃ U : Ω → G, | |
| IsProbabilityMeasure (ℙ : Measure Ω) ∧ Measurable U ∧ | |
| IsUniform H U ∧ d[p.X₀₁ # U] + d[p.X₀₂ # U] ≤ 11 * d[p.X₀₁ # p.X₀₂] ∧ | |
| d[p.X₀₁ # U] ≤ 6 * d[p.X₀₁ # p.X₀₂] ∧ | |
| d[p.X₀₂ # U] ≤ 6 * d[p.X₀₁ # p.X₀₂] := by | |
| cases nonempty_fintype G | |
| obtain ⟨Ω', mΩ', X₁, X₂, hX₁, hX₂, _, htau_min⟩ := tau_minimizer_exists p | |
| have hdist : d[X₁ # X₂] = 0 := tau_strictly_decreases p hX₁ hX₂ htau_min hpη | |
| obtain ⟨H, U, hU, hH_unif, hdistX₁, hdistX₂⟩ := exists_isUniform_of_rdist_eq_zero hX₁ hX₂ hdist | |
| have : d[p.X₀₁ # p.X₀₂] = d[p.X₀₂ # p.X₀₁] := rdist_symm | |
| have h : τ[X₁ # X₂ | p] ≤ τ[p.X₀₂ # p.X₀₁ | p] := is_tau_min p htau_min p.hmeas2 p.hmeas1 | |
| rw [tau, tau, hpη] at h | |
| norm_num at h | |
| have : d[p.X₀₁ # U] ≤ d[p.X₀₁ # X₁] + d[X₁ # U] := rdist_triangle p.hmeas1 hX₁ hU | |
| have : d[p.X₀₂ # U] ≤ d[p.X₀₂ # X₂] + d[X₂ # U] := rdist_triangle p.hmeas2 hX₂ hU | |
| have : d[p.X₀₁ # U] ≤ d[p.X₀₁ # p.X₀₂] + d[p.X₀₂ # U] := rdist_triangle p.hmeas1 p.hmeas2 hU | |
| have : d[p.X₀₂ # U] ≤ d[p.X₀₂ # p.X₀₁] + d[p.X₀₁ # U] := rdist_triangle p.hmeas2 p.hmeas1 hU | |
| exact ⟨H.toZModSubmodule _, Ω', inferInstance, U, inferInstance, hU, hH_unif, | |
| by linarith, by linarith, by linarith⟩ | |