--- license: apache-2.0 viewer: false tags: - lean4 - formal-mathematics pretty_name: "Polynomial Freiman-Ruzsa (PFR)" --- Mirror of https://github.com/teorth/pfr at commit 1899ce8ed95fc310cce53d4c7ecfa2beb20ebec4, for testing Lean support on the Hub. # The Polynomial Freiman-Ruzsa Conjecture [![GitHub CI](https://github.com/teorth/pfr/actions/workflows/push.yml/badge.svg)](https://github.com/teorth/pfr/actions/workflows/push.yml) [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/teorth/pfr) The original purpose of this repository is to hold a Lean4 formalization of [the proof of the Polynomial Freiman-Ruzsa (PFR) conjecture](https://arxiv.org/abs/2311.05762) of Katalin Marton (see also [this blog post](https://terrytao.wordpress.com/2023/11/13/on-a-conjecture-of-marton)). The statement is as follows: if $A$ is a non-empty subset of ${\bf F}_2^n$ such that $\lvert A+A\rvert \leq K\lvert A\rvert$, then $A$ can be covered by at most $2K^{12}$ cosets of a subspace $H$ of ${\bf F}_2^n$ of cardinality at most $\lvert A\rvert$. The proof relies on the theory of Shannon entropy, so in particular development of the Shannon entropy inequalities was needed. After the primary purpose of the project was completed, a second stage of the project developed several consequences of PFR, as well as an argument of Jyun-Jie Liao that reduced the exponent $12$ to $11$. This second stage has also been completed. Currently, the project is obtaining an extension of PFR to other bounded torsion groups, as well as formalizing a further refinement of Jyun-Jie Liao that improves the exponent further to $9$. * [Discussion of the project on Zulip](https://leanprover.zulipchat.com/#narrow/stream/412902-Polynomial-Freiman-Ruzsa-conjecture) * [Blueprint of the proof](https://teorth.github.io/pfr/blueprint) * [Documentation of the methods](https://teorth.github.io/pfr/docs) * [A quick "tour" of the project](https://terrytao.wordpress.com/2023/11/18/formalizing-the-proof-of-pfr-in-lean4-using-blueprint-a-short-tour) * [Some example Lean code to illustrate the results in the project](https://github.com/teorth/pfr/blob/master/PFR/Examples.lean) ## Build the Lean files To build the Lean files of this project, you need to have a working version of Lean. See [the installation instructions](https://leanprover-community.github.io/get_started.html) (under Regular install). To build the project, run `lake exe cache get` and then `lake build`. ## Build the blueprint See instructions at . ## Moving material to mathlib As the first two phases of the project are completed, we are currently working towards stabilising the new results and contributing them to mathlib. ## Palomar registration [`PFRPalomar/Challenge.lean`](PFRPalomar/Challenge.lean) states, in Lean-core-and-Mathlib terms only, the six headline theorems of the three source papers, and [`PFRPalomar/Solution.lean`](PFRPalomar/Solution.lean) proves each of them from the corresponding result in `PFR/`. The pair is the [Palomar](https://palomar-registry.org) Challenge/Solution record for this project; [`comparator.json`](comparator.json) names the six compared declarations and [`formalization.yaml`](formalization.yaml) carries the structured provenance, the correspondence with the papers, and the limitations. The six are: Marton's conjecture in characteristic 2 with exponent 12 (`[GGMT]`, Theorem 1.2) and with exponent 9 (`[L]`), Marton's conjecture in abelian groups of bounded torsion (`[GGMT2]`, Theorem 1.1), weak PFR over the integers (`[GGMT]`, Theorem 1.3), and the homomorphism and approximate homomorphism forms (`[GGMT]`, Corollaries 1.4 and 1.5). The entropy forms of the conjecture are proved here too but are not among the compared declarations, because a Palomar Challenge module may not import anything outside Lean core and Mathlib, and Mathlib has no Shannon entropy or entropic Ruzsa distance. `PFRPalomar/Challenge.lean` contains six deliberate `sorry`s, one per compared theorem; that is the Comparator convention, and it is the only place in the repository where `sorry` occurs. ## Source reference `[GGMT]`: `[L]` : `[GGMT2]`: