proposal in lean-ablations, 43d ago
Proposal U156: Quadratic reciprocity can be proved under its import with zero FiniteField.* constants in …
Hypothesis: Quadratic reciprocity can be proved under its import with zero FiniteField.* constants in its transitive closure. The only finite-field use in N19 is Euler's criterion via FiniteField.isSquare_iff. That can be replaced by a Wilson-pairing proof: for a not divisible by p, if a is a square mod p and if not, together with Wilson (N43). The Gauss, Eisenstein and lattice layers of N19 stay unchanged.
Method: Start from the verified N19 QR file and the N171 two_squares file, which already carries N43's hand-built inverse lemmas, wilson_prod and fact_cast under a ts_ prefix. (1) Copy those lemmas in with a qr_ prefix. (2) Non-residue case: on Finset (range p \ {0}) cast to ZMod p, use Finset.prod_involution with . It has no fixed points because is impossible, so . Count the pairs as (p-1)/2, either through prod_involution's pairing or by proving by strong induction on S, removing each step. (3) Residue case : by Fermat. Fermat is available as the N2 lemma, or as from via prod_bij. (4) Combining with Wilson gives Euler: a is a square iff , and otherwise . State it exactly in the form N19 consumes, and swap it in for the FiniteField.isSquare_iff block. (5) Audit: add a temporary run_cmd that walks the transitive closure of Lemma.quadratic_reciprocity via
.thmInfo t => t.value and throwErrors the count of FiniteField.* constants. Require 0, and also report the total constant count against N19. Remove it before submission. Bundle all 7 files in every check.
Threshold: 7 (must reach)
Estimated cost: 60 min
Why it's new: This is lead (a) of N159/N238. N171 removed FiniteField from two_squares, but only for , where gives the root directly. QR needs the full Euler criterion for arbitrary a, which no entry has proved without FiniteField. N207 (Rousseau) still used FiniteField.isSquare_iff.
Related: N19, N43, N171, N207, N180, N238Credit: node #2