Structured proof · Unit 152
lemma exists_three_term_free
hL : 0 < L and h : (L\cdot M)^n \le orderOf(\varphi (g)): there is a finite set T \subseteq G such that (1) every \sigma \in T equals c\cdot g^e for some natural number e; (2) M^n/(n\cdot M^{2}) \le \#T (a real quotient with Lean's division, x/0 = 0: for n\cdot M = 0 the bound is 0 \le \#T); and (3) for all natural numbers i, j with 0 < i < j \le L and all \sigma , \tau , \rho \in T, \varphi (\tau /\sigma )^j = \varphi (\rho /\sigma )^i implies \varphi (\tau /\sigma ) = 1.By Behrend's count (
exists_large_sphere) there is k such that the sphere S = \{x \in \{0, \ldots , M-1\}^n : \sum _l x_l^{2} = k\} has at least M^n/(n\cdot M^{2}) points; fix such k.Uses
Behrend.exists_large_sphere The map x \mapsto \varphi (g)^{\langle x\rangle }, where \langle x\rangle = \sum _l x_l\cdot (LM)^l (
Behrend.), is injective on the vectors with all coordinates < LM: x \mapsto \langle x\rangle is injective there (map (L·M) Behrend.) with values < (map_injOn LM)^n \leorderOf(\varphi (g)) (h, viafinFunctionFinEquiv), and a \mapsto \varphi (g)^a is injective on [0,orderOf(\varphi (g))).Uses
pow_injOn_Iio_orderOf,Behrend.,map_injOn finFunctionFinEquivTake T = \{c\cdot g^{\langle x\rangle } : x \in S\}, the image of S under x \mapsto c\cdot g^{\langle x\rangle }.
Properties (1) and (2) hold and (3) is reduced to points of S: every element of T is c\cdot g^e; \#T = \#S \ge M^n/(n\cdot M^{2}) because x \mapsto c\cdot g^{\langle x\rangle } is injective on S (equal values give \varphi (g)^{\langle x\rangle } = \varphi (g)^{\langle y\rangle }, hence x = y by 1.1, provided the coordinates of points of S are < LM).
Usesstep 1.1,
Finset.card_image_iff For a point v of S the coordinate bound is to be shown coordinate by coordinate: for every index i, v_i < L\cdot M (left open here).
Lean states
∀ i, _Rewriting \#T = \#S (
card_image_iff) and simplifying with the definitions of the sphere and the box turns (1)–(3) into statements about points of S; the coordinate bounds v_i < L\cdot M follow from v_i < M and L \ge 1 (nlinarith).Uses
Finset.card_image_iff
Let 0 < i < j \le L, and \sigma = c\cdot g^{\langle u\rangle }, \tau = c\cdot g^{\langle v\rangle }, \rho = c\cdot g^{\langle w\rangle } with u, v, w \in S, and H : \varphi (\tau /\sigma )^j = \varphi (\rho /\sigma )^i; it is to be shown that \varphi (\tau /\sigma ) = 1.
Write j = i + a with a > 0.
Uses
lt_iff_exists_adde: (i + a)\cdot v = i\cdot w + a\cdot u as vectors. Both sides have coordinates < L\cdot M ((i + a)\cdot v_l \le L\cdot (M - 1) and i\cdot w_l + a\cdot u_l \le (i + a)(M - 1)), and their images under x \mapsto \varphi (g)^{\langle x\rangle } agree: \langle \cdot \rangle is additive, \varphi (\tau /\sigma ) = \varphi (g)^{\langle v\rangle - \langle u\rangle } and \varphi (\rho /\sigma ) = \varphi (g)^{\langle w\rangle - \langle u\rangle }, so H says \varphi (g)^{(i+a)\langle v\rangle } = \varphi (g)^{i\langle w\rangle + a\langle u\rangle }; injectivity (1.1) gives the identity.
\sum _l (i + a)\cdot (a\cdot (u_l - v_l)^{2} + i\cdot v_l^{2}) = \sum _l i\cdot (i\cdot w_l^{2} + a\cdot u_l^{2}), termwise: from (i + a)v_l = i\cdot w_l + a\cdot u_l (e), i^{2}w_l^{2} = ((i + a)v_l - a\cdot u_l)^{2}, so i(i\cdot w_l^{2} + a\cdot u_l^{2}) = (i + a)((i + a)v_l^{2} - 2a\cdot u_l\cdot v_l + a\cdot u_l^{2}) = (i + a)(a(u_l - v_l)^{2} + i\cdot v_l^{2}) (integers, grind).
Usesstep 1.6