The Paley tournament #
This file formalizes Section 2 (THE PALEY TOURNAMENT) of bs_lambda.txt. The abstract
interface BSLambda.IsDRTournamentWith lives in BSLambda/Defs/Tournament.lean; here we build
the concrete example.
BSLambda.paleyArcorients the pair{i, j}of elements ofZMod kbyi → jiffj - iis a nonzero quadratic residue.BSLambda.paleyArc_isDRTournamentWithshows that for a primek ≡ 3 mod 4this is a doubly regular tournament with2 * d + 1 = kand4 * t + 3 = k;BSLambda.paley_isDRis the casek = 14011,d = 7005,t = 3502used by the construction.
The mathematical content is the character-sum calculation at the end of Section 2: the
Jacobsthal-type identity ∑ z, χ ((z - a) * (z - b)) = -1 for a ≠ b
(sum_quadraticChar_mul_sub), together with the two counting corollaries
two_mul_card_quadraticChar_eq_one and four_mul_card_quadraticChar_sub_eq_one. Those
lemmas mention nothing from this development, so they live in the root namespace alongside
Mathlib's quadraticChar API rather than in BSLambda.
Adapted for Lean Pool from Timeroot/BS_Lam at commit
7bd39a8d41ee7910d3296d0477ad18f8fff9d870; ported to Lean Pool with proof and dependency cleanup.
The quadratic character sums to zero over any translate of F.
(Section 2 of bs_lambda.txt.)
The Jacobsthal-type identity ∑ z, χ ((z - a) * (z - b)) = -1 for a ≠ b.
This is the key identity of the character-sum calculation in Section 2 of bs_lambda.txt.
Exactly half of the nonzero elements of F are quadratic residues; this gives the out-degree
(k - 1) / 2 of the Paley tournament. (Section 2 of bs_lambda.txt.)
When -1 is a nonresidue, swapping the two arguments of a difference negates the quadratic
character. (Section 2 of bs_lambda.txt.)
For a ≠ b, exactly (#F - 3) / 4 elements z satisfy χ (z - a) = χ (z - b) = 1.
This is the common-out-neighbour count of the Paley tournament.
(Section 2 of bs_lambda.txt.)
The Paley tournament on F_k for a prime k ≡ 3 mod 4: i → j iff j - i is a nonzero
quadratic residue. (Section 2 of bs_lambda.txt.)
Equations
- BSLambda.paleyArc k i j = decide ((quadraticChar (ZMod k)) (j - i) = 1)
Instances For
k = 14011 is prime. (Section 2 of bs_lambda.txt.)
The characteristic of F_14011 is not 2. (Section 2 of bs_lambda.txt.)
Since 14011 ≡ 3 mod 4, the element -1 is a nonresidue in F_14011; this is what makes
the Paley orientation a tournament. (Section 2 of bs_lambda.txt.)
The Paley tournament is doubly regular. If F_k has odd characteristic and -1 is a
nonresidue in it — equivalently, k ≡ 3 mod 4 — then the Paley orientation of F_k is a
doubly regular tournament with out-degree d = (k - 1) / 2 and t = (k - 3) / 4 common
neighbours. (Section 2 of bs_lambda.txt.)
The Paley tournament on F_14011 is doubly regular with d = 7005 and t = 3502.
(Section 2 of bs_lambda.txt.)