Skip to content

Commit 07fd848

Browse files
committed
Fix broken reference to Lean declarations in the blueprint
1 parent 2fb1cac commit 07fd848

8 files changed

Lines changed: 103 additions & 52 deletions

File tree

blueprint/src/chapter/approx_hom_pfr.tex

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,52 @@
11
\chapter{Approximate homomorphism version of PFR}
22

3-
\begin{definition}[Additive energy]\label{energy-def}\lean{Finset.additiveEnergy}\leanok If $G$ is a group, and $A$ is a finite subset of $G$, the \emph{additive energy} $E(A)$ of $A$ is the number of quadruples $(a_1,a_2,a_3,a_4) \in A^4$ such that $a_1+a_2 = a_3+a_4$.
3+
\begin{definition}[Additive energy]
4+
\label{energy-def}
5+
\lean{Finset.addEnergy}
6+
\leanok
7+
If $G$ is a group, and $A$ is a finite subset of $G$, the \emph{additive energy} $E(A)$ of $A$
8+
is the number of quadruples $(a_1,a_2,a_3,a_4) \in A^4$ such that $a_1+a_2 = a_3+a_4$.
49
\end{definition}
510

6-
\begin{lemma}[Cauchy--Schwarz bound]\label{cs-bound}\uses{energy-def}\lean{cauchy_schwarz}\leanok If $G$ is a group, $A,B$ are finite subsets of $G$, then
7-
$$ E(A) \geq \frac{|\{ (a,a') \in A \times A: a+a' \in B \}|^2}{|B|}.$$
8-
\end{lemma}
11+
\begin{lemma}[Cauchy--Schwarz bound]
12+
\label{cs-bound}
13+
\uses{energy-def}
14+
\lean{Finset.card_sq_le_card_mul_addEnergy}
15+
\leanok
916

10-
\begin{proof}\leanok If $B$ is empty then the claim is trivial (with the Lean convention $0/0$), so without loss of generality $B$ is non-empty. We can rewrite
11-
$$ |\{ (a,a') \in A \times A: a+a' \in B \}| = \sum_{b \in B} r(b)$$
12-
where $r: G \to \N$ is the counting function
13-
$$ r(b) := |\{ (a,a') \in A \times A: a+a' = b \}|.$$
14-
From double counting we have
15-
$$ \sum_{b \in G} r(b)^2 = E(A).$$
16-
The claim now follows from the Cauchy--Schwarz inequality
17-
$$ (\sum_{b \in B} r(b))^2 \leq |B| \sum_{b \in B} r(b)^2.$$
17+
If $G$ is a group, $A,B$ are finite subsets of $G$, then
18+
$$E(A) \geq \frac{|\{ (a,a') \in A \times A: a+a' \in B \}|^2}{|B|}.$$
19+
\end{lemma}
20+
\begin{proof}
21+
\leanok
22+
23+
If $B$ is empty then the claim is trivial (with the Lean convention $0/0$),
24+
so without loss of generality $B$ is non-empty. We can rewrite
25+
$$ |\{ (a,a') \in A \times A: a+a' \in B \}| = \sum_{b \in B} r(b)$$
26+
where $r: G \to \N$ is the counting function
27+
$$ r(b) := |\{ (a,a') \in A \times A: a+a' = b \}|.$$
28+
From double counting we have
29+
$$ \sum_{b \in G} r(b)^2 = E(A).$$
30+
The claim now follows from the Cauchy--Schwarz inequality
31+
$$ (\sum_{b \in B} r(b))^2 \leq |B| \sum_{b \in B} r(b)^2.$$
1832
\end{proof}
1933

20-
\begin{lemma}[Balog--Szemer\'edi--Gowers lemma]\label{bsg}\uses{energy-def}\lean{bsg}\leanok Let $G$ be an abelian group, and let $A$ be a finite non-empty set with $E(A) \geq |A|^3 / K$ for some $K \geq 1$. Then there is a subset $A'$ of $A$ with $|A'| \geq |A| / (C_1 K^{C_2})$ and $|A'-A'| \leq C_3 K^{C_4} |A|$, where (provisionally)
21-
$$ C_1 = 2^4, C_2 = 1, C_3 = 2^{10}, C_4 = 5.$$
34+
\begin{lemma}[Balog--Szemer\'edi--Gowers lemma]
35+
\label{bsg}
36+
\lean{BSG}
37+
\uses{energy-def}
38+
\leanok
39+
40+
Let $G$ be an abelian group, and let $A$ be a finite non-empty set
41+
with $E(A) \geq |A|^3 / K$ for some $K \geq 1$.
42+
Then there is a subset $A'$ of $A$ with $|A'| \geq |A| / (C_1 K^{C_2})$ and
43+
$|A'-A'| \leq C_3 K^{C_4} |A|$, where (provisionally)
44+
$$C_1 = 2^4, C_2 = 1, C_3 = 2^{10}, C_4 = 5.$$
2245
\end{lemma}
46+
\begin{proof}
47+
\leanok
2348

24-
\begin{proof}\leanok See \url{https://terrytao.files.wordpress.com/2024/01/simplebsg.pdf}
49+
See \url{https://terrytao.files.wordpress.com/2024/01/simplebsg.pdf}.
2550
\end{proof}
2651

2752
\begin{theorem}[Approximate homomorphism form of PFR]\label{approx-hom-pfr}\lean{approx_hom_pfr}\leanok Let $G,G'$ be finite abelian $2$-groups.

blueprint/src/chapter/distance.tex

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,19 @@ \chapter{Entropic Ruzsa calculus}
4646
\begin{proof} \uses{sumset-lower-gen}\leanok This follows from \Cref{sumset-lower-gen} by conditioning to $Z = z$ and summing over $z$ (weighted by $ \bbP[Z=z]$).
4747
\end{proof}
4848

49-
\begin{corollary}[Independent lower bound on sumset]\label{sumset-lower}
50-
\lean{max_entropy_le_entropy_add,max_entropy_le_entropy_sub}\leanok
49+
\begin{corollary}[Independent lower bound on sumset]
50+
\label{sumset-lower}
51+
\lean{ProbabilityTheory.max_entropy_le_entropy_add, ProbabilityTheory.max_entropy_le_entropy_sub}
52+
\leanok
53+
5154
If $X,Y$ are independent $G$-valued random variables, then
52-
$$\max(\bbH[X], \bbH[Y]) \leq \bbH[X\pm Y].
53-
$$
55+
$$\max(\bbH[X], \bbH[Y]) \leq \bbH[X\pm Y]. $$
5456
\end{corollary}
57+
\begin{proof}
58+
\uses{sumset-lower-gen, vanish-entropy}
59+
\leanok
5560

56-
\begin{proof} \uses{sumset-lower-gen, vanish-entropy}\leanok Combine \Cref{sumset-lower-gen} with \Cref{vanish-entropy}.
61+
Combine \Cref{sumset-lower-gen} with \Cref{vanish-entropy}.
5762
\end{proof}
5863

5964
One random variable is said to be a copy of another if they have the same distribution.

blueprint/src/chapter/entropy.tex

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ \chapter{Shannon entropy inequalities}
2828
If $X$ is an $S$-valued random variable, then $\bbH[X] \leq \log |S|$.
2929
\end{lemma}
3030

31-
\begin{proof}\uses{jensen}\leanok
32-
This is a direct consequence of \Cref{jensen}.
31+
\begin{proof}
32+
\uses{concave}
33+
\leanok
34+
35+
This is a direct consequence of \Cref{concave} and Jensen's inequality.
3336
\end{proof}
3437

3538
\begin{definition}[Uniform distribution]\label{uniform-def}\leanok
@@ -52,7 +55,12 @@ \chapter{Shannon entropy inequalities}
5255
If $X$ is $S$-valued random variable, then $\bbH[X] = \log |S|$ if and only if $X$ is uniformly distributed on $S$.
5356
\end{lemma}
5457

55-
\begin{proof} \uses{converse-jensen}\leanok Direct computation in one direction. Converse direction needs \Cref{converse-jensen}.
58+
\begin{proof}
59+
\uses{concave}
60+
\leanok
61+
62+
Direct computation in one direction.
63+
Converse direction needs the strict Jensen inequality and \Cref{concave}.
5664
\end{proof}
5765

5866
\begin{lemma}[Entropy of uniform random variable, II]\label{uniform-entropy-II}
@@ -181,7 +189,11 @@ \chapter{Shannon entropy inequalities}
181189
We have $\bbI[X:Y] \geq 0$.
182190
\end{lemma}
183191

184-
\begin{proof} \uses{jensen, alternative-mutual}\leanok An application of \Cref{jensen} and \Cref{alternative-mutual}.
192+
\begin{proof}
193+
\uses{concave, alternative-mutual}
194+
\leanok
195+
196+
An application of jensen's inequality and \Cref{concave, alternative-mutual}.
185197
\end{proof}
186198

187199
\begin{corollary}[Subadditivity]
@@ -241,8 +253,11 @@ \chapter{Shannon entropy inequalities}
241253
If $X,Y$ are random variables, then $\bbI[X:Y] = 0$ if and only if $X,Y$ are independent.
242254
\end{lemma}
243255

244-
\begin{proof} \uses{converse-jensen}\leanok
245-
An application of the equality case of Jensen's inequality, \Cref{converse-jensen}.
256+
\begin{proof}
257+
\uses{concave}
258+
\leanok
259+
260+
An application of the equality case of Jensen's inequality and \Cref{concave}.
246261
\end{proof}
247262

248263
\begin{corollary}[Additivity of entropy]\label{add-entropy}

blueprint/src/chapter/further_improvement.tex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ \section{Kullback--Leibler divergence}
88
$$ D_{KL}(X\Vert Y) := \sum_x \mathbf{P}(X=x) \log \frac{\mathbf{P}(X=x)}{\mathbf{P}(Y=x)}.$$
99
\end{definition}
1010

11-
\begin{lemma}[Kullback--Leibler divergence of copy]\label{kl-div-copy}\lean{KLDiv_eq_of_equiv}\leanok If $X'$ is a copy of $X$, and $Y'$ is a copy of $Y$, then $D_{KL}(X'\Vert Y') = D_{KL}(X\Vert Y)$.
11+
\begin{lemma}[Kullback--Leibler divergence of copy]
12+
\label{kl-div-copy}
13+
\lean{ProbabilityTheory.IdentDistrib.KLDiv_eq}
14+
\leanok
15+
16+
If $X'$ is a copy of $X$, and $Y'$ is a copy of $Y$, then $D_{KL}(X'\Vert Y') = D_{KL}(X\Vert Y)$.
1217
\end{lemma}
1318

1419
\begin{proof}\uses{kl-div}\leanok Clear from definition.

blueprint/src/chapter/jensen.tex

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,6 @@ \chapter{Applications of Jensen's inequality}
1111
\end{proof}
1212

1313

14-
\begin{lemma}[Jensen]\label{jensen}
15-
\lean{Real.sum_negMulLog_le} \leanok
16-
If $S$ is a finite set, and $\sum_{s \in S} w_s = 1$ for some non-negative $w_s$, and $p_s \in [0,1]$ for all $s \in S$, then
17-
$$ \sum_{s \in S} w_s h(p_s) \leq h(\sum_{s \in S} w_s p_s).$$
18-
\end{lemma}
19-
20-
\begin{proof} \uses{concave}\leanok Apply Jensen and \Cref{concave}.
21-
\end{proof}
22-
23-
\begin{lemma}[Converse Jensen]\label{converse-jensen}
24-
\lean{Real.sum_negMulLog_eq_iff}\leanok
25-
If equality holds in the above lemma, then $p_s = \sum_{s \in S} w_s h(p_s)$ whenever $w_s \neq 0$.
26-
\end{lemma}
27-
28-
\begin{proof} \uses{concave}\leanok Need some converse form of Jensen, not sure if it is already in Mathlib. May also wish to state it as an if and only if.
29-
\end{proof}
30-
3114
\begin{lemma}[log sum inequality]
3215
\label{log-sum}\lean{Real.sum_mul_log_div_leq}\leanok
3316
If $S$ is a finite set, and $a_s,b_s$ are non-negative for $s\in S$, then

blueprint/src/chapter/pfr.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ \chapter{Proof of PFR}
22

33
\begin{lemma}[Ruzsa covering lemma]
44
\label{ruz-cov}
5-
\lean{Finset.exists_subset_mul_div}
5+
\lean{Finset.ruzsa_covering_mul}
66
\leanok
77
If $A,B$ are finite non-empty subsets of a group $G$, then $A$ can be covered by at most $|A+B|/|B|$ translates of $B-B$.
88
\end{lemma}

blueprint/src/chapter/torsion.tex

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,14 @@ \section{The tau functional}
278278
$$ \tau[ (X_i)_{1 \leq i \leq m}] := D[(X_i)_{1 \leq i \leq m}] + \eta \sum_{i=1}^m d[X_i; X^0].$$
279279
\end{definition}
280280

281-
\begin{definition}[$\tau$-minimizer]\label{tau-min-multi}\uses{tau-def-multi}\lean{multiTau_minimizes}\leanok A $\tau$-minimizer is a tuple $(X_i)_{1 \leq i \leq m}$ that minimizes the $\tau$-functional among all tuples of $G$-valued random variables.
281+
\begin{definition}[$\tau$-minimizer]
282+
\label{tau-min-multi}
283+
\uses{tau-def-multi}
284+
\lean{multiTauMinimizes}
285+
\leanok
286+
287+
A $\tau$-minimizer is a tuple $(X_i)_{1 \leq i \leq m}$ that minimizes the $\tau$-functional
288+
among all tuples of $G$-valued random variables.
282289
\end{definition}
283290

284291
\begin{proposition}[Existence of $\tau$-minimizer]\label{tau-min-exist-multi}\lean{multiTau_continuous, multiTau_min_exists}\leanok If $G$ is finite, then a $\tau$-minimizer exists.

blueprint/src/chapter/weak_pfr.tex

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,14 @@ \chapter{Weak PFR over the integers}
162162
\end{proof}
163163

164164

165-
\begin{definition}\label{dimension-def}\lean{dimension}\leanok
166-
If $A\subseteq \mathbb{Z}^{d}$ then by $\dim(A)$ we mean the dimension of the span of $A-A$ over the reals -- equivalently, the smallest $d'$ such that $A$ lies in a coset of a subgroup isomorphic to $\mathbb{Z}^{d'}$.
165+
\begin{definition}
166+
\label{dimension-def}
167+
\lean{AffineSpace.finrank}
168+
\leanok
169+
170+
If $A\subseteq \mathbb{Z}^{d}$ then by $\dim(A)$ we mean the dimension of the span of $A-A$
171+
over the reals -- equivalently, the smallest $d'$ such that $A$ lies in a coset of a subgroup
172+
isomorphic to $\mathbb{Z}^{d'}$.
167173
\end{definition}
168174

169175

@@ -200,10 +206,15 @@ \chapter{Weak PFR over the integers}
200206
as required.
201207
\end{proof}
202208

203-
\begin{theorem}\label{weak-pfr-symm}\lean{weak_PFR_symm}\leanok
204-
If $A\subseteq \mathbb{Z}^d$ is a finite non-empty set with $d[U_A;U_A]\leq \log K$ then there exists a non-empty $A'\subseteq A$ such that
205-
\[\lvert A'\rvert\geq K^{-17}\lvert A\rvert\]
206-
and $\dim A'\leq \frac{40}{\log 2} \log K$.
209+
\begin{theorem}
210+
\label{weak-pfr-symm}
211+
\lean{weak_PFR}
212+
\leanok
213+
214+
If $A\subseteq \mathbb{Z}^d$ is a finite non-empty set with $d[U_A;U_A]\leq \log K$
215+
then there exists a non-empty $A'\subseteq A$ such that
216+
\[\lvert A'\rvert\geq K^{-17}\lvert A\rvert\]
217+
and $\dim A'\leq \frac{40}{\log 2} \log K$.
207218
\end{theorem}
208219
\begin{proof}
209220
\uses{weak-pfr-asymm,dimension-def}\leanok

0 commit comments

Comments
 (0)