quadratic_mod19_residue_certificate
Modulo 19, the listed residue set avoids x − 2y + z = 2 and hits every monic quadratic sequence within its first 16 terms.
Statement
theorem quadratic_mod19_residue_certificate : (∀ x y z : ZMod 19, x ∈ ({0, 3, 7, 11} : Finset (ZMod 19)) → y ∈ ({0, 3, 7, 11} : Finset (ZMod 19)) → z ∈ ({0, 3, 7, 11} : Finset (ZMod 19)) → x - 2 * y + z ≠ 2) ∧ (∀ a b : ZMod 19, ∃ k : Fin 16, (k.val : ZMod 19) ^ 2 + a * k.val + b ∈ ({0, 3, 7, 11} : Finset (ZMod 19)))- Source
- Exact finite modular computation for the rational quadratic approach to OP-1482.
- Verified
- 17 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The theorem establishes two finite properties of the residue set {0, 3, 7, 11} in ℤ/19ℤ: that it avoids the pattern x − 2y + z = 2, and that every monic quadratic sequence intersects this set within its first 16 terms. Both assertions involve finite quantification over finite domains (64 triples for the first, and 361 quadratic polynomials over 16 values for the second) and are verified by exhaustive computation via `decide`.
The conjunction holds: no triple in {0, 3, 7, 11} satisfies x − 2y + z ≡ 2 (mod 19), and every monic quadratic polynomial over ℤ/19ℤ attains a value in {0, 3, 7, 11} at some k ∈ {0, …, 15}. automation
The proof splits the conjunction into two subgoals using `constructor` and proves each by finite computational exhaustion (`decide`). The first goal checks the 4³ = 64 possible triples (x, y, z) in {0, 3, 7, 11}³ to ensure none satisfy x − 2y + z ≡ 2 mod 19. The second goal checks all 19² = 361 pairs of coefficients (a, b) in (ℤ/19ℤ)², finding for each an index k ∈ {0, …, 15} where k² + ak + b mod 19 lies in {0, 3, 7, 11}. Both checks are finite and decidable, successfully carried out by Lean's kernel evaluator under increased recursion depth and heartbeat limits.
set_option maxRecDepth 32768 in set_option maxHeartbeats 3000000 in constructor <;> decide
- The proof relies entirely on exhaustive finite verification via Lean's `decide` tactic, facilitated by increasing the maximum recursion depth and heartbeat limit.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem quadratic_mod19_residue_certificate : (∀ x y z : ZMod 19, x ∈ ({0, 3, 7, 11} : Finset (ZMod 19)) → y ∈ ({0, 3, 7, 11} : Finset (ZMod 19)) → z ∈ ({0, 3, 7, 11} : Finset (ZMod 19)) → x - 2 * y + z ≠ 2) ∧ (∀ a b : ZMod 19, ∃ k : Fin 16, (k.val : ZMod 19) ^ 2 + a * k.val + b ∈ ({0, 3, 7, 11} : Finset (ZMod 19))) := by set_option maxRecDepth 32768 in set_option maxHeartbeats 3000000 in constructor <;> decide