A266948: Least prime p such that p-2 and 6n-p are also prime, or 0 if no such prime exists.
Statement
Goldbach conjecture related: Group the consecutive even numbers in groups of three, (6n-2, 6n, 6n+2). The existence of a(n) corresponds to a Goldbach decomposition 6n = p + (6n-p) using the upper of a twin prime pair. Then 6n-2 = (p-2) + 6n-p is automatically a valid Goldbach decomposition of 6n-2, and 6n+2 = p + 6n+2-p is such a decomposition for 6n+2 if 6n+2-p (or 6n+4-p) is prime. · Zwillinger conjectured already in 1978 that for all n > 701 there is a p such that all these conditions are satisfied (not necessarily p = a(n)). See also A266952 - A266953. · This conjecture implies that a(n) > 0 for all n > 1.
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/oeis-a266948.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Text: OEIS Foundation, CC BY-SA 4.0. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/oeis-a266948.lean
import Mathlib /-! # A266948: Least prime p such that p-2 and 6n-p are also prime, or 0 if no such prime exists. Source: https://oeis.org/A266948 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_oeis_a266948 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a266948