{
  "id": "6668",
  "ident": "NS.06668",
  "slug": "oeis-60957",
  "title": "Number of different products of subsets of $\\{1, 2, \\dots, n\\}$",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "An explicit counterexample from [Li26]: both endpoint products occur, but the intermediate\nproduct with exponent $5$ does not. The definitions above specify every parameter, including\n`Counterexample.circuitM` as a finite product.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA60957.counterexample",
  "statement_lean": "theorem counterexample :\n    Counterexample.circuitPrime.Prime ∧ Counterexample.circuitPrime ≤ Counterexample.circuitN ∧\n    Counterexample.circuitM ∈ productsOfSubsets Counterexample.circuitN ∧\n    Counterexample.circuitPrime ^ 6 * Counterexample.circuitM ∈\n      productsOfSubsets Counterexample.circuitN ∧\n    0 < (5 : ℕ) ∧ 5 < (6 : ℕ) ∧\n    Counterexample.circuitPrime ^ 5 * Counterexample.circuitM ∉\n      productsOfSubsets Counterexample.circuitN",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Number of different products of subsets of $\\{1, 2, \\dots, n\\}$\n\nThe number of distinct products (including the empty product 1) of any subset\nof $\\{1, 2, \\dots, n\\}$.\n\n*References:*\n- [A060957](https://oeis.org/A060957)\n- [Li26] Wentao Li, [A counterexample to the A060957 interpolation conjecture](https://github.com/VictorLiwentao/lean-oeis-proofs/blob/3be119e75ba5b31f034dc0c0b249975d17def711/proofs/new-proofs/A060957/PROOF.md), 2026.\n-/\n\n@[expose] public section\n\nnamespace OeisA60957\n\n/-- Number of different products of any subset of $\\{1, 2, \\dots, n\\}$. -/\ndef a (n : ℕ) : ℕ :=\n  ((Finset.Icc 1 n).powerset.image (·.prod id)).card\n\n@[category test, AMS 5 11]\ntheorem a_0 : a 0 = 1 := by\n  decide\n\n@[category test, AMS 5 11]\ntheorem a_1 : a 1 = 1 := by\n  decide\n\n@[category test, AMS 5 11]\ntheorem a_2 : a 2 = 2 := by\n  decide\n\n@[category test, AMS 5 11]\ntheorem a_3 : a 3 = 4 := by\n  decide\n\n@[category test, AMS 5 11]\ntheorem a_4 : a 4 = 8 := by\n  decide\n\n@[category test, AMS 5 11]\ntheorem a_5 : a 5 = 16 := by\n  decide\n\n/-- The set of products of subsets of $\\{1, \\dots, n\\}$. -/\ndef productsOfSubsets (n : ℕ) : Set ℕ :=\n  {m : ℕ | ∃ s ⊆ Finset.Icc 1 n, m = s.prod id}\n\nnamespace Counterexample\n\n/-- The distinguished prime in the explicit circuit candidate. -/\ndef circuitPrime : ℕ := 9304595970494411110326649421962412033\n\n/-- Auxiliary diagonal primes, arranged in six rows and twelve columns. -/\ndef circuitDiag : Fin 6 → Fin 12 → ℕ := ![\n  ![199, 13381, 10369, 8761, 6991, 6427, 5623, 5323, 4861, 4327, 4177, 3821],\n  ![4099, 65537, 65539, 65543, 65551, 65557, 65563, 65579, 65581, 65587, 65599, 65609],\n  ![4111, 65617, 65629, 65633, 65647, 65651, 65657, 65677, 65687, 65699, 65701, 65707],\n  ![4127, 65713, 65717, 65719, 65729, 65731, 65761, 65777, 65789, 65809, 65827, 65831],\n  ![4129, 65837, 65839, 65843, 65851, 65867, 65881, 65899, 65921, 65927, 65929, 65951],\n  ![4133, 65957, 65963, 65981, 65983, 65993, 66029, 66037, 66041, 66047, 66067, 66071]]\n\n/-- Auxiliary primes for the eleven cross coordinates. -/\ndef circuitCross : Fin 11 → ℕ := ![3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]\n\n/-- The coordinates of the circuit cone. -/\nabbrev CircuitCoord := (Fin 6 × Fin 12) ⊕ Fin 11\n\n/-- The auxiliary prime belonging to a coordinate. -/\ndef circuitAux : CircuitCoord → ℕ\n  | .inl ij => circuitDiag ij.1 ij.2\n  | .inr j => circuitCross j\n\n/-- All primes used in the construction, with the distinguished prime at none. -/\ndef circuitBasis : Option CircuitCoord → ℕ\n  | none => circuitPrime\n  | some q => circuitAux q\n\n/-- A monomial in an indexed family of primes. -/\ndef primeMonomial {ι : Type*} [Fintype ι] (q : ι → ℕ) (e : ι → ℕ) : ℕ :=\n  ∏ i, q i ^ e i\n\n/-- The original-domain initial-segment endpoint. -/\nirreducible_def circuitN : ℕ := circuitPrime * 2 ^ 189\n\n/-- All auxiliary coordinates have multiplicity two in the target core. -/\ndef circuitCoreExp : Option CircuitCoord → ℕ\n  | none => 0\n  | some _ => 2\n\n/-- The common p-free core of the two circuit profiles. -/\nirreducible_def circuitCore : ℕ := primeMonomial circuitBasis circuitCoreExp\n\n/-- Balanced-base combination of finitely many additive weights. -/\ndef combinedWeight (B : ℤ) : List (ℕ → ℤ) → ℕ → ℤ\n  | [], _ => 0\n  | w :: ws, x => w x + B * combinedWeight B ws x\n\n/-- The rectangle constraints defining the circuit subspace. -/\ndef circuitRectWeight (i : Fin 5) (j : Fin 11) (x : ℕ) : ℤ :=\n    (x.factorization (circuitDiag i.succ j.succ) : ℤ) -\n    x.factorization (circuitDiag i.succ 0) - x.factorization (circuitDiag 0 j.succ) +\n    x.factorization (circuitDiag 0 0)\n\n/-- The parity constraints make the circuit normal form integral. -/\ndef circuitCrossWeight (j : Fin 11) (x : ℕ) : ℤ :=\n    2 * (x.factorization (circuitCross j) : ℤ) -\n    x.factorization (circuitDiag 0 0) - x.factorization (circuitDiag 0 j.succ)\n\n/-- All sixty-six defining constraints, in a fixed order. -/\ndef circuitWeights : List (ℕ → ℤ) :=\n    ((List.finRange 5).flatMap fun i => (List.finRange 11).map (circuitRectWeight i)) ++\n    (List.finRange 11).map circuitCrossWeight\n\n/-- A sufficiently large base prevents cancellation between constraint digits. -/\ndef circuitWeightBase : ℤ := 4 * (circuitN : ℤ) + 1\n\n/-- The additive weight exposing the circuit face of the original domain. -/\ndef circuitWeight : ℕ → ℤ := combinedWeight circuitWeightBase circuitWeights\n\n/-- The positive-weight factors are forced in every endpoint representation. -/\nirreducible_def circuitPositive : Finset ℕ :=\n  (Finset.Icc 1 circuitN).filter (fun x => 0 < circuitWeight x)\n\n/-- The explicit common multiplier obtained from the supporting face. -/\n@[irreducible] def circuitMultiplier : ℕ := circuitPositive.prod id\n\n/-- The lower endpoint parameter in the exact counterexample. -/\n@[irreducible] def circuitM : ℕ := circuitMultiplier * circuitCore\n\nend Counterexample\n\nset_option linter.style.formal_proof_palomar false in\n/--\nAn explicit counterexample from [Li26]: both endpoint products occur, but the intermediate\nproduct with exponent $5$ does not. The definitions above specify every parameter, including\n`Counterexample.circuitM` as a finite product.\n-/\n@[category research solved, AMS 5 11,\n  formal_proof using lean4 at \"https://github.com/VictorLiwentao/lean-oeis-proofs/blob/3be119e75ba5b31f034dc0c0b249975d17def711/LeanOeisProofs/NewProofs/A060957.lean#L1479\"]\ntheorem counterexample :\n    Counterexample.circuitPrime.Prime ∧ Counterexample.circuitPrime ≤ Counterexample.circuitN ∧\n    Counterexample.circuitM ∈ productsOfSubsets Counterexample.circuitN ∧\n    Counterexample.circuitPrime ^ 6 * Counterexample.circuitM ∈\n      productsOfSubsets Counterexample.circuitN ∧\n    0 < (5 : ℕ) ∧ 5 < (6 : ℕ) ∧\n    Counterexample.circuitPrime ^ 5 * Counterexample.circuitM ∉\n      productsOfSubsets Counterexample.circuitN := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nConjecture: let $p \\le n$ be prime. If $m$ and $p^a m$ are two such products, then so is $p^k m$\nfor all $0 < k < a$.\n- Yan Sheng Ang, Feb 13 2020\n\nThis interpolation conjecture is false. Disproved by Wentao Li (2026), with AI assistance;\nsee [Li26]. The counterexample has\n$p = 7 \\cdot 2^{120} + 1$, $n = p \\cdot 2^{189}$, $a = 6$, and $k = 5$.\n-/\n@[category research solved, AMS 5 11,\n  formal_proof using lean4 at \"https://github.com/VictorLiwentao/lean-oeis-proofs/blob/3be119e75ba5b31f034dc0c0b249975d17def711/LeanOeisProofs/NewProofs/A060957.lean#L1499\"]\ntheorem conjecture :\n    ¬ ∀ (n p : ℕ), p.Prime → p ≤ n →\n      ∀ (m a_exp : ℕ), m ∈ productsOfSubsets n → p ^ a_exp * m ∈ productsOfSubsets n →\n        ∀ k : ℕ, 0 < k → k < a_exp → p ^ k * m ∈ productsOfSubsets n := by\n  sorry\n\nend OeisA60957\n",
  "statement_hash": "579626263454443bf76dfc2d5ed3a157ca814a9517fb31283f6f336176dae233",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}