{
  "agent": "CD03",
  "group": "counterexample discovery",
  "gap": "L-gct-238",
  "strategy": "Exact rank of Taylor jets of three cubes from centered antisymmetric four-term supports. Enumerate integer offsets with rational arithmetic, then eliminate the same rank conditions symbolically.",
  "status": "partial",
  "summary": "The maximum in the bounded sweep was order 17. A witness has offsets (15,10), (17,6), and (18,1). Exact symbolic elimination rules out order 22 or higher throughout this common-center family with integer offsets and real cube weights. The order-17 companion elaborated in Lean. The published statement remains unresolved. No upstream submission.",
  "desk": {
    "state": "open",
    "time": "2026-11-26T06:27:41Z",
    "timeBasis": "First UTC sample after the sole read-only GET",
    "reason": "resting_after_expiry",
    "source": "https://pequalnp.com/desk/step?gap=L-gct-238"
  },
  "statementSha256": "39d5f18318d286090f0d247e8e7faccc72df87247b4b90bff0f0c7bf2c660dee",
  "publishedStatement": "∀ (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ), (∀ i, s i = 1 ∨ s i = -1) → (∀ i, (g i).support.card ≤ 4) → ((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≠ 0 → ∀ x : ℝ, 0 < x → Polynomial.rootMultiplicity x ((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≤ 21",
  "publishedStatementElaborationExitCode": 0,
  "publishedStatementVerdict": "unresolved",
  "upstream": {
    "mainObserved": "33f667422a2deebb87e9826f0bc326286b03df5f",
    "mainRechecked": "b5fd6c1acd25b0a56762a1c4cf63fa67d0b4a722",
    "settled": false,
    "basis": "Complete tree and content searches at both observed main commits had no matching proof path or gap identifier. The public record reports conjecture.",
    "pinnedCheckout": "8dec1cacf8aab169f12858fff3a2e945fea7a880",
    "publicRecord": "https://data.pequalnp.com/data/lemma/L-gct-238.bdb59d3044eb.json"
  },
  "environment": {
    "lean": "4.36.0 (611c117bfaf7b7ae1cfcf246ce6fba31e8f509e9, Release)",
    "mathlib": "fc4f59e577feb1a4956671bc04ac18aaaf8cd842",
    "sourceCheck": "Lean and Mathlib package archive SHA-256 values matched the published bundle manifest. All nine package source trees matched their pinned Git revisions.",
    "defsBuildExitCode": 0
  },
  "claims": [
    {
      "statement": "∃ (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ),\n      (∀ i, s i = 1 ∨ s i = -1) ∧\n      (∀ i, (g i).support.card ≤ 4) ∧\n      (((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≠ 0) ∧\n      Polynomial.rootMultiplicity (1 : ℝ) ((Finset.univ : Finset (Fin 3)).sum fun i =>\n        Polynomial.C (s i) * g i ^ 3) = 17",
      "kind": "companion",
      "path": "lean/PEqualNP/Outside/L_gct_238.lean",
      "sha256": "2af18cb49ab9de117cd9b61bcf7b4052ff4a6bab5f766e9246de7bb5471c3d3d",
      "elaboration": "pass",
      "elaborationExitCode": 0,
      "guard": "pass",
      "guardExitCode": 0,
      "guardMode": "imports",
      "check-lean": {
        "mode": "check",
        "exitCode": null,
        "wrapperExitCode": 124,
        "statementPath": "research/order17.statement.txt",
        "statementSha256": "887a0f8e11763f937837c5da8886e8adc5f3666a8680687bd918393318392a03",
        "note": "The 900-second wrapper timed out during verification (exit 124). The checker logged CHECKER FAULT: the verifier ended without a verdict (exit null). The pinned definitions and companion built, and direct Lean reported only propext, Classical.choice, and Quot.sound."
      },
      "axioms": "pass",
      "axiomNames": [
        "propext",
        "Classical.choice",
        "Quot.sound"
      ]
    },
    {
      "statement": "∀ (v w : ℚ), -2781751458 + 6297584713 * v + 19384890245 * w = 0 → 1638362975674990 - 10003668078156697 * v + 160764211561779 * w + 15215934540741340 * v ^ 2 = 0 → False",
      "kind": "helper",
      "path": "research/EliminationCertificate.lean",
      "sha256": "98d4a1954002f6d51a0015cd885f15461586a21d4c323acd500ed2cfb92f2c11",
      "elaboration": "pass",
      "elaborationExitCode": 0,
      "guard": "not-run",
      "check-lean": {
        "mode": null,
        "exitCode": null
      },
      "axioms": "pass",
      "axiomNames": [
        "propext",
        "Classical.choice",
        "Quot.sound"
      ],
      "scope": "Kernel certificate for the final pair of rational jet equations. The reduction from four-term supports to those equations is given in the mathematical derivation and exact arithmetic program."
    },
    {
      "statement": "For 1 ≤ b < a ≤ 72 and a common center, the maximum order of a nonzero sum of up to three scaled cubes of the specified four-term form is 17.",
      "kind": "evidence",
      "path": "research/search.py",
      "sha256": "c1e85a5d46d31e2798f96ed2909ce6873261baa6803402824c87c5b43b73966b",
      "elaboration": "not-run",
      "guard": "not-run",
      "check-lean": {
        "mode": null,
        "exitCode": null
      },
      "axioms": "not-run"
    },
    {
      "statement": "With a common center and unrestricted positive integer offsets 1 ≤ b < a, every nonzero real linear combination of at most three cubes of the specified form has order at most 21 at X = 1.",
      "kind": "evidence",
      "path": "research/eliminate.py",
      "sha256": "3dc2d5f7f0b5bec4135305928aa215cf4c0f49ccd39e73c2f85a7c7f8ee771b9",
      "elaboration": "not-run",
      "guard": "not-run",
      "check-lean": {
        "mode": null,
        "exitCode": null
      },
      "axioms": "not-run"
    }
  ],
  "artifacts": [
    {
      "path": "lean/PEqualNP/Outside/L_gct_238.lean",
      "sha256": "2af18cb49ab9de117cd9b61bcf7b4052ff4a6bab5f766e9246de7bb5471c3d3d",
      "content": "import Mathlib.Algebra.Polynomial.Roots\nimport Mathlib.Analysis.SpecialFunctions.Pow.Real\nimport Mathlib.Algebra.BigOperators.Fin\nimport Mathlib.Tactic.FinCases\nimport Mathlib.Tactic.NormNum\nimport Mathlib.Tactic.Ring\n\nopen Polynomial\n\nnamespace PEqualNP.Outside.L_gct_238\n\nprivate noncomputable def quad (a b c d : ℕ) (w x y z : ℝ) : Polynomial ℝ :=\n  C w * X ^ a + C x * X ^ b + C y * X ^ c + C z * X ^ d\n\nprivate theorem support_quad (r w x y z : ℝ) (a b c d : ℕ) :\n    (C r * quad a b c d w x y z).support.card ≤ 4 := by\n  refine (Finset.card_le_card (t := {a,b,c,d}) ?_).trans Finset.card_le_four\n  intro n hn\n  by_contra h\n  simp only [Finset.mem_insert, Finset.mem_singleton, not_or] at h\n  exact (mem_support_iff.mp hn) (by\n    simp [quad, coeff_C_mul, h.1, h.2.1, h.2.2.1, h.2.2.2])\n\nprivate noncomputable def b0 : Polynomial ℝ := quad 3 8 28 33 (-10) 15 (-15) 10\nprivate noncomputable def b1 : Polynomial ℝ := quad 1 12 24 35 (-6) 17 (-17) 6\nprivate noncomputable def b2 : Polynomial ℝ := quad 0 17 19 36 (-1) 18 (-18) 1\n\nset_option maxHeartbeats 3000000 in\nprivate noncomputable def quotient : Polynomial ℝ :=\n  0\n  - 17971276855468750 * X ^ 0\n  - 305511706542968750 * X ^ 1\n  - 2749605358886718750 * X ^ 2\n  - 17332783630371093750 * X ^ 3\n  - 85687314440917968750 * X ^ 4\n  - 353245815417480468750 * X ^ 5\n  - 1262030130358886718750 * X ^ 6\n  - 4011480571765136718750 * X ^ 7\n  - 11561277217346191406250 * X ^ 8\n  - 30643038107540716327250 * X ^ 9\n  - 75514481060516396313250 * X ^ 10\n  - 174520625772381941819250 * X ^ 11\n  - 380885690339229511730250 * X ^ 12\n  - 789476142256450293026250 * X ^ 13\n  - 1561444225381005907628250 * X ^ 14\n  - 2958549929985512926460250 * X ^ 15\n  - 5388429892985157055738500 * X ^ 16\n  - 9461023019380203465708000 * X ^ 17\n  - 16054728620115955069560000 * X ^ 18\n  - 26388717689835821887721250 * X ^ 19\n  - 42095318568264088897151250 * X ^ 20\n  - 65283856159262273284331250 * X ^ 21\n  - 98585140895330877865811250 * X ^ 22\n  - 145164431767411237505816250 * X ^ 23\n  - 208690569842225234175237375 * X ^ 24\n  - 293250430342189406874731625 * X ^ 25\n  - 403201037427012102465442125 * X ^ 26\n  - 542956565312702800994292625 * X ^ 27\n  - 716713700687825578268823125 * X ^ 28\n  - 928125916101837399626902125 * X ^ 29\n  - 1179944371624966581449491125 * X ^ 30\n  - 1473649600359525228598360125 * X ^ 31\n  - 1809103038547659078865249125 * X ^ 32\n  - 2184250150441895820176578125 * X ^ 33\n  - 2594906883106781084963273625 * X ^ 34\n  - 3034658215605231754502745375 * X ^ 35\n  - 3494891648160767744947161500 * X ^ 36\n  - 3964979878709475518465377000 * X ^ 37\n  - 4432616154313496994194010000 * X ^ 38\n  - 4884293605938453658679863500 * X ^ 39\n  - 5305907212818322439683978875 * X ^ 40\n  - 5683444984029537295900898625 * X ^ 41\n  - 6003724671574635198266317125 * X ^ 42\n  - 6255125034340098137099608125 * X ^ 43\n  - 6428257440232967605885905000 * X ^ 44\n  - 6516525240868326828796080000 * X ^ 45\n  - 6516525240868326828796080000 * X ^ 46\n  - 6428257440232967605885905000 * X ^ 47\n  - 6255125034340098137099608125 * X ^ 48\n  - 6003724671574635198266317125 * X ^ 49\n  - 5683444984029537295900898625 * X ^ 50\n  - 5305907212818322439683978875 * X ^ 51\n  - 4884293605938453658679863500 * X ^ 52\n  - 4432616154313496994194010000 * X ^ 53\n  - 3964979878709475518465377000 * X ^ 54\n  - 3494891648160767744947161500 * X ^ 55\n  - 3034658215605231754502745375 * X ^ 56\n  - 2594906883106781084963273625 * X ^ 57\n  - 2184250150441895820176578125 * X ^ 58\n  - 1809103038547659078865249125 * X ^ 59\n  - 1473649600359525228598360125 * X ^ 60\n  - 1179944371624966581449491125 * X ^ 61\n  - 928125916101837399626902125 * X ^ 62\n  - 716713700687825578268823125 * X ^ 63\n  - 542956565312702800994292625 * X ^ 64\n  - 403201037427012102465442125 * X ^ 65\n  - 293250430342189406874731625 * X ^ 66\n  - 208690569842225234175237375 * X ^ 67\n  - 145164431767411237505816250 * X ^ 68\n  - 98585140895330877865811250 * X ^ 69\n  - 65283856159262273284331250 * X ^ 70\n  - 42095318568264088897151250 * X ^ 71\n  - 26388717689835821887721250 * X ^ 72\n  - 16054728620115955069560000 * X ^ 73\n  - 9461023019380203465708000 * X ^ 74\n  - 5388429892985157055738500 * X ^ 75\n  - 2958549929985512926460250 * X ^ 76\n  - 1561444225381005907628250 * X ^ 77\n  - 789476142256450293026250 * X ^ 78\n  - 380885690339229511730250 * X ^ 79\n  - 174520625772381941819250 * X ^ 80\n  - 75514481060516396313250 * X ^ 81\n  - 30643038107540716327250 * X ^ 82\n  - 11561277217346191406250 * X ^ 83\n  - 4011480571765136718750 * X ^ 84\n  - 1262030130358886718750 * X ^ 85\n  - 353245815417480468750 * X ^ 86\n  - 85687314440917968750 * X ^ 87\n  - 17332783630371093750 * X ^ 88\n  - 2749605358886718750 * X ^ 89\n  - 305511706542968750 * X ^ 90\n  - 17971276855468750 * X ^ 91\n\nset_option maxRecDepth 4096 in\nset_option maxHeartbeats 8000000 in\nprivate theorem factor :\n    -(446497421087421 : Polynomial ℝ) * b0 ^ 3 +\n      376776123046875 * b1 ^ 3 -\n      17971276855468750 * b2 ^ 3 = (X - C 1) ^ 17 * quotient := by\n  apply Polynomial.funext\n  intro x\n  simp only [b0, b1, b2, quad, quotient, eval_add, eval_sub, eval_neg, eval_mul,\n    eval_pow, eval_X, eval_C, eval_ofNat, eval_zero]\n  ring\n\nset_option maxRecDepth 4096 in\nset_option maxHeartbeats 3000000 in\nprivate theorem quotient_not_root : ¬ IsRoot quotient (1 : ℝ) := by\n  norm_num [IsRoot, quotient, ← C_ofNat]\n\nprivate theorem has_cube_root (u : ℝ) (hu : 0 ≤ u) : ∃ r : ℝ, r ^ (3 : ℕ) = u := by\n  refine ⟨u ^ (1 / 3 : ℝ), ?_⟩\n  rw [← Real.rpow_mul_natCast hu, show (1 / 3 : ℝ) * (3 : ℕ) = 1 by norm_num, Real.rpow_one]\n\nend PEqualNP.Outside.L_gct_238\n\ntheorem PEqualNP.Outside.L_gct_238 :\n    ∃ (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ),\n      (∀ i, s i = 1 ∨ s i = -1) ∧\n      (∀ i, (g i).support.card ≤ 4) ∧\n      (((Finset.univ : Finset (Fin 3)).sum fun i => C (s i) * g i ^ 3) ≠ 0) ∧\n      rootMultiplicity (1 : ℝ) ((Finset.univ : Finset (Fin 3)).sum fun i =>\n        C (s i) * g i ^ 3) = 17 := by\n  obtain ⟨r0, hr0⟩ := L_gct_238.has_cube_root 446497421087421 (by norm_num)\n  obtain ⟨r1, hr1⟩ := L_gct_238.has_cube_root 376776123046875 (by norm_num)\n  obtain ⟨r2, hr2⟩ := L_gct_238.has_cube_root 17971276855468750 (by norm_num)\n  let s : Fin 3 → ℝ := ![-1, 1, -1]\n  let g : Fin 3 → Polynomial ℝ :=\n    ![C r0 * L_gct_238.b0, C r1 * L_gct_238.b1, C r2 * L_gct_238.b2]\n  have hF : ((Finset.univ : Finset (Fin 3)).sum fun i => C (s i) * g i ^ 3) =\n      (X - C 1) ^ 17 * L_gct_238.quotient := by\n    simpa [s, g, Fin.sum_univ_three, mul_pow, ← C.map_pow, hr0, hr1, hr2, C_ofNat,\n      neg_mul, sub_eq_add_neg, mul_assoc] using L_gct_238.factor\n  have hq : L_gct_238.quotient ≠ 0 := by\n    intro h\n    apply L_gct_238.quotient_not_root\n    simp [h]\n  refine ⟨s, g, ?_, ?_, ?_, ?_⟩\n  · intro i\n    fin_cases i <;> simp [s]\n  · intro i\n    fin_cases i <;>\n      exact L_gct_238.support_quad _ _ _ _ _ _ _ _ _\n  · rw [hF]\n    exact mul_ne_zero (pow_ne_zero _ (X_sub_C_ne_zero _)) hq\n  · rw [hF, mul_comm, rootMultiplicity_mul_X_sub_C_pow hq,\n      rootMultiplicity_eq_zero L_gct_238.quotient_not_root, zero_add]\n"
    },
    {
      "path": "research/search.py",
      "sha256": "c1e85a5d46d31e2798f96ed2909ce6873261baa6803402824c87c5b43b73966b",
      "content": "\"\"\"Exact jet search for three centered antisymmetric four-term polynomials.\n\nRun with Python 3 and no third-party dependencies.\n\"\"\"\nimport argparse\nfrom collections import defaultdict\nfrom fractions import Fraction\nfrom functools import reduce\nfrom itertools import combinations\nfrom math import comb, factorial, gcd, lcm\n\nORDERS = tuple(range(11, 24, 2))\n\n\ndef base(a, b):\n    # Represents Laurent exponents. The coefficient of t^3 after X = exp(t) is 1.\n    scale = Fraction(3, a * b * (a * a - b * b))\n    return {-a: -b * scale, -b: a * scale, b: -a * scale, a: b * scale}\n\n\ndef cube(p):\n    result = defaultdict(Fraction)\n    for a, u in p.items():\n        for b, v in p.items():\n            for c, w in p.items():\n                result[a + b + c] += u * v * w\n    return {k: v for k, v in result.items() if v}\n\n\ndef directions(vector):\n    for length in range(1, len(vector) + 1):\n        prefix = vector[:length]\n        divisor = reduce(gcd, prefix, 0)\n        first = next((v for v in prefix if v), 0)\n        yield tuple(v // (divisor if first > 0 else -divisor) for v in prefix) if first else prefix\n\n\ndef combine(cubes, indices, weights, center):\n    result = defaultdict(Fraction)\n    for i, w in zip(indices, weights):\n        for n, v in cubes[i].items():\n            result[n + 3 * center] += w * v\n    return {k: v for k, v in result.items() if v}\n\n\ndef jet(p, n):\n    return sum(v * comb(k, n) for k, v in p.items() if k >= n)\n\n\ndef search(bound):\n    supports = [(a, b) for a in range(2, bound + 1) for b in range(1, a)]\n    cubes = [cube(base(*ab)) for ab in supports]\n    moments = [tuple(sum(v * k**n for k, v in p.items()) for n in ORDERS) for p in cubes]\n    assert all(sum(v * k**9 for k, v in p.items()) == factorial(9) for p in cubes)\n    scales = [lcm(*(row[j].denominator for row in moments)) for j in range(len(ORDERS))]\n    rows = [tuple(int(val * scale) for val, scale in zip(row, scales)) for row in moments]\n    assert len({row[:2] for row in rows}) == len(rows)\n\n    # Every triple has a unique smallest index. For it, two difference rows\n    # are proportional precisely when their primitive directions agree.\n    counts = [comb(len(rows), 3)] + [0] * (len(ORDERS) - 1)\n    # The first test always has rank at most two (only two rows). For later\n    # tests the uniqueness assertion above rules out zero directions.\n    best = (0, None)\n    for i, row in enumerate(rows):\n        groups = [defaultdict(list) for _ in ORDERS[1:]]\n        for j in range(i + 1, len(rows)):\n            vector = tuple(y - x for x, y in zip(row, rows[j]))\n            keys = directions(vector)\n            next(keys)\n            for group, key in zip(groups, keys):\n                group[key].append(j)\n        for level, group in enumerate(groups, 1):\n            for key, js in group.items():\n                assert any(key), (i, level, js)\n                counts[level] += len(js) * (len(js) - 1) // 2\n                if ORDERS[level] + 2 <= best[0]:\n                    continue\n                for j, k in combinations(js, 2):\n                    col = next(n for n, val in enumerate(key) if val)\n                    u, v = rows[j][col] - row[col], rows[k][col] - row[col]\n                    weights = (u - v, v, -u)\n                    divisor = reduce(gcd, weights)\n                    weights = tuple(w // divisor for w in weights)\n                    indices = (i, j, k)\n                    p = combine(cubes, indices, weights, bound)\n                    if p:\n                        order = next(n for n in range(max(p) + 1) if jet(p, n))\n                        if order > best[0]:\n                            best = (order, ([supports[m] for m in indices], weights, str(jet(p, order))))\n                    if best[0] >= ORDERS[level] + 2:\n                        break\n    # No equal first two jets means two-column combinations have order <= 13.\n    print(\"supports\", len(supports), \"triples\", comb(len(supports), 3))\n    print(\"prefix lengths\", ORDERS, \"rank-deficient triple counts\", counts)\n    print(\"best\", best, \"center\", bound)\n\n\ndef verify_witness():\n    supports = [(15, 10), (17, 6), (18, 1)]\n    weights = [-446497421087421, 376776123046875, -17971276855468750]\n    cubes = [cube({-a: -b, -b: a, b: -a, a: b}) for a, b in supports]\n    p = combine(cubes, range(3), weights, 18)\n    assert p and all(v.denominator == 1 for v in p.values())\n    # Synthetic division by X - 1, independent of the search's Taylor jets.\n    for _ in range(17):\n        q = {}\n        running = 0\n        for k in range(max(p), 0, -1):\n            running += p.get(k, 0)\n            if running:\n                q[k - 1] = running\n        assert running + p.get(0, 0) == 0\n        p = q\n    assert sum(p.values()) == -137507252650516686093750000000\n    print(\"integer witness\", supports, weights, \"center\", 18,\n          \"quotient at 1\", sum(p.values()))\n\n\nif __name__ == \"__main__\":\n    parser = argparse.ArgumentParser(description=__doc__)\n    parser.add_argument(\"bound\", type=int, nargs=\"?\", default=72, choices=range(18, 73),\n                        metavar=\"BOUND\")\n    args = parser.parse_args()\n    verify_witness()\n    search(args.bound)\n"
    },
    {
      "path": "research/eliminate.py",
      "sha256": "3dc2d5f7f0b5bec4135305928aa215cf4c0f49ccd39e73c2f85a7c7f8ee771b9",
      "content": "\"\"\"Unbounded exact rank elimination for the centered antisymmetric family.\n\nSparse polynomials in (s, v, w) have rational coefficients. After setting\ns_i = S_i / sum(S_j), v and w denote elementary symmetric polynomials\nof degrees two and three in the s_i. The variable s is a single s_i.\n\"\"\"\nfrom collections import defaultdict\nfrom fractions import Fraction as Q\nfrom math import factorial, gcd, isqrt, lcm\n\n\ndef add(*polys):\n    out = defaultdict(Q)\n    for p in polys:\n        for monomial, coeff in p.items():\n            out[monomial] += coeff\n    return {k: c for k, c in out.items() if c}\n\n\ndef scale(c, p):\n    return {k: c * a for k, a in p.items() if c * a}\n\n\ndef mul(p, q):\n    out = defaultdict(Q)\n    for (i, j, k), a in p.items():\n        for (l, m, n), b in q.items():\n            out[i + l, j + m, k + n] += a * b\n    return {k: c for k, c in out.items() if c}\n\n\ndef power(p, n):\n    result = ONE\n    for _ in range(n):\n        result = mul(result, p)\n    return result\n\n\ndef rem_s2(p):\n    out = {}\n    for (i, j, k), c in p.items():\n        assert i < len(remainders)\n        for (ell, m, n), a in remainders[i].items():\n            if ell == 2:\n                out = add(out, {(0, j + m, k + n): c * a})\n    return out\n\n\nONE = {(0, 0, 0): Q(1)}\nS = {(1, 0, 0): Q(1)}\nV = {(0, 1, 0): Q(1)}\nW = {(0, 0, 1): Q(1)}\n\n# Monic cubic relation s^3 = s^2 - v*s + w at all three normalized nodes.\nremainders = [ONE, S, power(S, 2)]\nfor _ in range(3, 7):\n    remainders.append(add(remainders[-1], scale(-1, mul(V, remainders[-2])),\n                          mul(W, remainders[-3])))\n\n\ndef jets(product):\n    # Complete homogeneous symmetric polynomials in the two normalized squares.\n    h = [ONE, S]\n    for i in range(2, 7):\n        h.append(add(mul(S, h[i-1]), scale(-1, mul(product, h[i-2]))))\n    jet = [scale(Q(6, factorial(2*i+3)), hi) for i, hi in enumerate(h)]\n    return [add(*(mul(mul(jet[i], jet[j]), jet[n-i-j])\n                  for i in range(n+1) for j in range(n-i+1))) for n in range(7)]\n\n\ndef solve_linear(p, variable):\n    coeff = p.pop(variable)\n    assert coeff\n    return scale(-1/coeff, p)\n\n\ndef primitive(p):\n    denominator = lcm(*(c.denominator for c in p.values()))\n    ints = {k: int(c * denominator) for k, c in p.items()}\n    common = gcd(*ints.values())\n    return {k: c // common for k, c in ints.items()}\n\n\ndef main():\n    # The second jet condition forces p = (31/10)*s^2 + f*s + g.\n    # The t^15 condition then fixes f, and the t^17 condition fixes g.\n    r = Q(31, 10)\n    f = -Q(89, 46)\n    g = add(scale(Q(1739173, 92575), ONE), scale(-Q(5589, 100), V))\n    p = add(scale(r, power(S, 2)), scale(f, S), g)\n    moments = jets(p)\n    assert all(not rem_s2(jet) for jet in moments[:5])\n    # Independently check that each coefficient removed by solving for f/g is nonzero\n    # and constant, and that the prescribed leading coefficient cancels the t^13 jet.\n    assert rem_s2(jets(add(p, S))[3]) == scale(-Q(23, 50400), ONE)\n    assert rem_s2(jets(add(p, ONE))[4]) == scale(Q(1, 2217600), ONE)\n    assert rem_s2(jets(add(p, power(S, 2)))[2]) == scale(-Q(1, 280), ONE)\n\n    at_19 = rem_s2(moments[5])\n    print(\"t^19 remainder s^2 coefficient\", at_19)\n    print(\"t^19 primitive integer equation\", primitive(at_19))\n    w = solve_linear(at_19.copy(), (0, 0, 1))\n    assert all(k == 0 and i == 0 and j <= 1 for i, j, k in w)\n    at_21 = rem_s2(moments[6])\n    print(\"t^21 primitive integer equation\", primitive(at_21))\n    reduced = add(*(scale(c, mul(power(V, j), power(w, k)))\n                    for (_, j, k), c in at_21.items()))\n    assert set(reduced) == {(0, j, 0) for j in range(3)}\n    quadratic = primitive(reduced)\n    a, b, c = [quadratic[0, j, 0] for j in (2, 1, 0)]\n    discriminant = b*b - 4*a*c\n    assert discriminant < 0 or isqrt(discriminant)**2 != discriminant\n    print(\"primitive quadratic in v\", (a, b, c))\n    print(\"discriminant\", discriminant)\n\n\nif __name__ == \"__main__\":\n    main()\n"
    },
    {
      "path": "research/order17.statement.txt",
      "sha256": "887a0f8e11763f937837c5da8886e8adc5f3666a8680687bd918393318392a03",
      "content": "∃ (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ),\n      (∀ i, s i = 1 ∨ s i = -1) ∧\n      (∀ i, (g i).support.card ≤ 4) ∧\n      (((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≠ 0) ∧\n      Polynomial.rootMultiplicity (1 : ℝ) ((Finset.univ : Finset (Fin 3)).sum fun i =>\n        Polynomial.C (s i) * g i ^ 3) = 17"
    },
    {
      "path": "research/L-gct-238.statement.txt",
      "sha256": "39d5f18318d286090f0d247e8e7faccc72df87247b4b90bff0f0c7bf2c660dee",
      "content": "∀ (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ), (∀ i, s i = 1 ∨ s i = -1) → (∀ i, (g i).support.card ≤ 4) → ((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≠ 0 → ∀ x : ℝ, 0 < x → Polynomial.rootMultiplicity x ((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≤ 21"
    },
    {
      "path": "research/ExactElab.lean",
      "sha256": "5b62946d1b256227cf83f133bf26509ae1dd6941e1368a78f48e5b3faa5a8c27",
      "content": "import Mathlib.Algebra.Polynomial.Roots\nimport Mathlib.Analysis.SpecialFunctions.Pow.Real\nimport Mathlib.Algebra.BigOperators.Fin\nimport Mathlib.Tactic.FinCases\nimport Mathlib.Tactic.NormNum\nimport Mathlib.Tactic.Ring\n#check (∀ (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ), (∀ i, s i = 1 ∨ s i = -1) → (∀ i, (g i).support.card ≤ 4) → ((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≠ 0 → ∀ x : ℝ, 0 < x → Polynomial.rootMultiplicity x ((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≤ 21 : Prop)\n"
    },
    {
      "path": "research/EliminationCertificate.lean",
      "sha256": "98d4a1954002f6d51a0015cd885f15461586a21d4c323acd500ed2cfb92f2c11",
      "content": "import Mathlib.Tactic.LinearCombination\nimport Mathlib.Tactic.NormNum.IsSquare\n\nnamespace PEqualNP.Outside.L_gct_238\n\ntheorem rational_jets_incompatible (v w : ℚ)\n    (h19 : -2781751458 + 6297584713 * v + 19384890245 * w = 0)\n    (h21 : 1638362975674990 - 10003668078156697 * v\n      + 160764211561779 * w + 15215934540741340 * v ^ 2 = 0) : False := by\n  have hquad : 17669503985435881075 * v ^ 2 - 11677408853106621058 * v\n      + 1929338843037258043 = 0 := by\n    linear_combination (19384890245 / 16693124 : ℚ) * h21\n      - (160764211561779 / 16693124 : ℚ) * h19\n  have hs : IsSquare (36017400559849405670374668094464 : ℚ) := by\n    refine ⟨2 * 17669503985435881075 * v - 11677408853106621058, ?_⟩\n    linear_combination (-4 * 17669503985435881075 : ℚ) * hquad\n  have hn : ¬ IsSquare (36017400559849405670374668094464 : ℚ) := by norm_num\n  exact hn hs\n\nend PEqualNP.Outside.L_gct_238\n"
    },
    {
      "path": "research/checks/WitnessAxioms.lean",
      "sha256": "2802300f1ee3baa828de1fea99dbfd5afd2530475e4fa1cbf8fd1682f7a963fe",
      "content": "import Mathlib.Algebra.Polynomial.Roots\nimport Mathlib.Analysis.SpecialFunctions.Pow.Real\nimport Mathlib.Algebra.BigOperators.Fin\nimport Mathlib.Tactic.FinCases\nimport Mathlib.Tactic.NormNum\nimport Mathlib.Tactic.Ring\n\nopen Polynomial\n\nnamespace PEqualNP.Outside.L_gct_238\n\nprivate noncomputable def quad (a b c d : ℕ) (w x y z : ℝ) : Polynomial ℝ :=\n  C w * X ^ a + C x * X ^ b + C y * X ^ c + C z * X ^ d\n\nprivate theorem support_quad (r w x y z : ℝ) (a b c d : ℕ) :\n    (C r * quad a b c d w x y z).support.card ≤ 4 := by\n  refine (Finset.card_le_card (t := {a,b,c,d}) ?_).trans Finset.card_le_four\n  intro n hn\n  by_contra h\n  simp only [Finset.mem_insert, Finset.mem_singleton, not_or] at h\n  exact (mem_support_iff.mp hn) (by\n    simp [quad, coeff_C_mul, h.1, h.2.1, h.2.2.1, h.2.2.2])\n\nprivate noncomputable def b0 : Polynomial ℝ := quad 3 8 28 33 (-10) 15 (-15) 10\nprivate noncomputable def b1 : Polynomial ℝ := quad 1 12 24 35 (-6) 17 (-17) 6\nprivate noncomputable def b2 : Polynomial ℝ := quad 0 17 19 36 (-1) 18 (-18) 1\n\nset_option maxHeartbeats 3000000 in\nprivate noncomputable def quotient : Polynomial ℝ :=\n  0\n  - 17971276855468750 * X ^ 0\n  - 305511706542968750 * X ^ 1\n  - 2749605358886718750 * X ^ 2\n  - 17332783630371093750 * X ^ 3\n  - 85687314440917968750 * X ^ 4\n  - 353245815417480468750 * X ^ 5\n  - 1262030130358886718750 * X ^ 6\n  - 4011480571765136718750 * X ^ 7\n  - 11561277217346191406250 * X ^ 8\n  - 30643038107540716327250 * X ^ 9\n  - 75514481060516396313250 * X ^ 10\n  - 174520625772381941819250 * X ^ 11\n  - 380885690339229511730250 * X ^ 12\n  - 789476142256450293026250 * X ^ 13\n  - 1561444225381005907628250 * X ^ 14\n  - 2958549929985512926460250 * X ^ 15\n  - 5388429892985157055738500 * X ^ 16\n  - 9461023019380203465708000 * X ^ 17\n  - 16054728620115955069560000 * X ^ 18\n  - 26388717689835821887721250 * X ^ 19\n  - 42095318568264088897151250 * X ^ 20\n  - 65283856159262273284331250 * X ^ 21\n  - 98585140895330877865811250 * X ^ 22\n  - 145164431767411237505816250 * X ^ 23\n  - 208690569842225234175237375 * X ^ 24\n  - 293250430342189406874731625 * X ^ 25\n  - 403201037427012102465442125 * X ^ 26\n  - 542956565312702800994292625 * X ^ 27\n  - 716713700687825578268823125 * X ^ 28\n  - 928125916101837399626902125 * X ^ 29\n  - 1179944371624966581449491125 * X ^ 30\n  - 1473649600359525228598360125 * X ^ 31\n  - 1809103038547659078865249125 * X ^ 32\n  - 2184250150441895820176578125 * X ^ 33\n  - 2594906883106781084963273625 * X ^ 34\n  - 3034658215605231754502745375 * X ^ 35\n  - 3494891648160767744947161500 * X ^ 36\n  - 3964979878709475518465377000 * X ^ 37\n  - 4432616154313496994194010000 * X ^ 38\n  - 4884293605938453658679863500 * X ^ 39\n  - 5305907212818322439683978875 * X ^ 40\n  - 5683444984029537295900898625 * X ^ 41\n  - 6003724671574635198266317125 * X ^ 42\n  - 6255125034340098137099608125 * X ^ 43\n  - 6428257440232967605885905000 * X ^ 44\n  - 6516525240868326828796080000 * X ^ 45\n  - 6516525240868326828796080000 * X ^ 46\n  - 6428257440232967605885905000 * X ^ 47\n  - 6255125034340098137099608125 * X ^ 48\n  - 6003724671574635198266317125 * X ^ 49\n  - 5683444984029537295900898625 * X ^ 50\n  - 5305907212818322439683978875 * X ^ 51\n  - 4884293605938453658679863500 * X ^ 52\n  - 4432616154313496994194010000 * X ^ 53\n  - 3964979878709475518465377000 * X ^ 54\n  - 3494891648160767744947161500 * X ^ 55\n  - 3034658215605231754502745375 * X ^ 56\n  - 2594906883106781084963273625 * X ^ 57\n  - 2184250150441895820176578125 * X ^ 58\n  - 1809103038547659078865249125 * X ^ 59\n  - 1473649600359525228598360125 * X ^ 60\n  - 1179944371624966581449491125 * X ^ 61\n  - 928125916101837399626902125 * X ^ 62\n  - 716713700687825578268823125 * X ^ 63\n  - 542956565312702800994292625 * X ^ 64\n  - 403201037427012102465442125 * X ^ 65\n  - 293250430342189406874731625 * X ^ 66\n  - 208690569842225234175237375 * X ^ 67\n  - 145164431767411237505816250 * X ^ 68\n  - 98585140895330877865811250 * X ^ 69\n  - 65283856159262273284331250 * X ^ 70\n  - 42095318568264088897151250 * X ^ 71\n  - 26388717689835821887721250 * X ^ 72\n  - 16054728620115955069560000 * X ^ 73\n  - 9461023019380203465708000 * X ^ 74\n  - 5388429892985157055738500 * X ^ 75\n  - 2958549929985512926460250 * X ^ 76\n  - 1561444225381005907628250 * X ^ 77\n  - 789476142256450293026250 * X ^ 78\n  - 380885690339229511730250 * X ^ 79\n  - 174520625772381941819250 * X ^ 80\n  - 75514481060516396313250 * X ^ 81\n  - 30643038107540716327250 * X ^ 82\n  - 11561277217346191406250 * X ^ 83\n  - 4011480571765136718750 * X ^ 84\n  - 1262030130358886718750 * X ^ 85\n  - 353245815417480468750 * X ^ 86\n  - 85687314440917968750 * X ^ 87\n  - 17332783630371093750 * X ^ 88\n  - 2749605358886718750 * X ^ 89\n  - 305511706542968750 * X ^ 90\n  - 17971276855468750 * X ^ 91\n\nset_option maxRecDepth 4096 in\nset_option maxHeartbeats 8000000 in\nprivate theorem factor :\n    -(446497421087421 : Polynomial ℝ) * b0 ^ 3 +\n      376776123046875 * b1 ^ 3 -\n      17971276855468750 * b2 ^ 3 = (X - C 1) ^ 17 * quotient := by\n  apply Polynomial.funext\n  intro x\n  simp only [b0, b1, b2, quad, quotient, eval_add, eval_sub, eval_neg, eval_mul,\n    eval_pow, eval_X, eval_C, eval_ofNat, eval_zero]\n  ring\n\nset_option maxRecDepth 4096 in\nset_option maxHeartbeats 3000000 in\nprivate theorem quotient_not_root : ¬ IsRoot quotient (1 : ℝ) := by\n  norm_num [IsRoot, quotient, ← C_ofNat]\n\nprivate theorem has_cube_root (u : ℝ) (hu : 0 ≤ u) : ∃ r : ℝ, r ^ (3 : ℕ) = u := by\n  refine ⟨u ^ (1 / 3 : ℝ), ?_⟩\n  rw [← Real.rpow_mul_natCast hu, show (1 / 3 : ℝ) * (3 : ℕ) = 1 by norm_num, Real.rpow_one]\n\nend PEqualNP.Outside.L_gct_238\n\ntheorem PEqualNP.Outside.L_gct_238 :\n    ∃ (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ),\n      (∀ i, s i = 1 ∨ s i = -1) ∧\n      (∀ i, (g i).support.card ≤ 4) ∧\n      (((Finset.univ : Finset (Fin 3)).sum fun i => C (s i) * g i ^ 3) ≠ 0) ∧\n      rootMultiplicity (1 : ℝ) ((Finset.univ : Finset (Fin 3)).sum fun i =>\n        C (s i) * g i ^ 3) = 17 := by\n  obtain ⟨r0, hr0⟩ := L_gct_238.has_cube_root 446497421087421 (by norm_num)\n  obtain ⟨r1, hr1⟩ := L_gct_238.has_cube_root 376776123046875 (by norm_num)\n  obtain ⟨r2, hr2⟩ := L_gct_238.has_cube_root 17971276855468750 (by norm_num)\n  let s : Fin 3 → ℝ := ![-1, 1, -1]\n  let g : Fin 3 → Polynomial ℝ :=\n    ![C r0 * L_gct_238.b0, C r1 * L_gct_238.b1, C r2 * L_gct_238.b2]\n  have hF : ((Finset.univ : Finset (Fin 3)).sum fun i => C (s i) * g i ^ 3) =\n      (X - C 1) ^ 17 * L_gct_238.quotient := by\n    simpa [s, g, Fin.sum_univ_three, mul_pow, ← C.map_pow, hr0, hr1, hr2, C_ofNat,\n      neg_mul, sub_eq_add_neg, mul_assoc] using L_gct_238.factor\n  have hq : L_gct_238.quotient ≠ 0 := by\n    intro h\n    apply L_gct_238.quotient_not_root\n    simp [h]\n  refine ⟨s, g, ?_, ?_, ?_, ?_⟩\n  · intro i\n    fin_cases i <;> simp [s]\n  · intro i\n    fin_cases i <;>\n      exact L_gct_238.support_quad _ _ _ _ _ _ _ _ _\n  · rw [hF]\n    exact mul_ne_zero (pow_ne_zero _ (X_sub_C_ne_zero _)) hq\n  · rw [hF, mul_comm, rootMultiplicity_mul_X_sub_C_pow hq,\n      rootMultiplicity_eq_zero L_gct_238.quotient_not_root, zero_add]\n\n#print axioms PEqualNP.Outside.L_gct_238\n"
    },
    {
      "path": "research/checks/EliminationAxioms.lean",
      "sha256": "6249fe422ebefdda5a09adae473f22ecd22c38bd8d3af576cee182d51295f87f",
      "content": "import Mathlib.Tactic.LinearCombination\nimport Mathlib.Tactic.NormNum.IsSquare\n\nnamespace PEqualNP.Outside.L_gct_238\n\ntheorem rational_jets_incompatible (v w : ℚ)\n    (h19 : -2781751458 + 6297584713 * v + 19384890245 * w = 0)\n    (h21 : 1638362975674990 - 10003668078156697 * v\n      + 160764211561779 * w + 15215934540741340 * v ^ 2 = 0) : False := by\n  have hquad : 17669503985435881075 * v ^ 2 - 11677408853106621058 * v\n      + 1929338843037258043 = 0 := by\n    linear_combination (19384890245 / 16693124 : ℚ) * h21\n      - (160764211561779 / 16693124 : ℚ) * h19\n  have hs : IsSquare (36017400559849405670374668094464 : ℚ) := by\n    refine ⟨2 * 17669503985435881075 * v - 11677408853106621058, ?_⟩\n    linear_combination (-4 * 17669503985435881075 : ℚ) * hquad\n  have hn : ¬ IsSquare (36017400559849405670374668094464 : ℚ) := by norm_num\n  exact hn hs\n\nend PEqualNP.Outside.L_gct_238\n\n#print axioms PEqualNP.Outside.L_gct_238.rational_jets_incompatible\n"
    }
  ],
  "experiments": [
    {
      "range": "1 ≤ b < a ≤ 36. All 630 supports, 41,476,260 triples, and real cube weights by rational rank.",
      "outcome": "Rank-deficient triple counts through orders 11, 13, 15, 17, 19, 21, 23 were 41476260, 202, 14, 0, 0, 0, 0. Maximum order 17.",
      "command": "python3 search.py 36"
    },
    {
      "range": "1 ≤ b < a ≤ 72. All 2,556 supports, 2,779,850,220 triples, and real cube weights by rational rank.",
      "outcome": "Rank-deficient triple counts through orders 11, 13, 15, 17, 19, 21, 23 were 2779850220, 1904, 159, 0, 0, 0, 0. Maximum order 17.",
      "command": "python3 search.py 72"
    },
    {
      "range": "Embedded program replay with 1 ≤ b < a ≤ 18.",
      "outcome": "585276 triples, with one triple canceling through t^15 and none through t^17. The center-18 replay reproduced the reported order-17 witness.",
      "command": "python3 search.py 18"
    },
    {
      "range": "All integer offsets in the same common-center family.",
      "outcome": "For three distinct S values, order ≥22 requires the rational symmetric invariant v to satisfy a quadratic with positive nonsquare discriminant. Repeated S values are ruled out separately. The resulting upper bound for this family is 21.",
      "command": "python3 eliminate.py"
    }
  ],
  "witness": {
    "order": 17,
    "root": 1,
    "center": 18,
    "offsets": [
      [
        15,
        10
      ],
      [
        17,
        6
      ],
      [
        18,
        1
      ]
    ],
    "shapes": [
      "-10*X^3 + 15*X^8 - 15*X^28 + 10*X^33",
      "-6*X + 17*X^12 - 17*X^24 + 6*X^35",
      "-1 + 18*X^17 - 18*X^19 + X^36"
    ],
    "signedIntegerCubeWeights": [
      "-446497421087421",
      "376776123046875",
      "-17971276855468750"
    ],
    "interpretation": "Take the sign of each weight as s_i and multiply the corresponding shape by the positive real cube root of the absolute weight to obtain g_i. Each scale is algebraic.",
    "independentArithmeticCheck": "Synthetic division of the integer weighted sum has zero remainder on each of the first seventeen divisions by X−1. The quotient after the seventeenth division evaluates to -137507252650516686093750000000 at X=1."
  },
  "derivation": [
    "Let B(a,b,c) = X^c * 3/[a*b*(a^2-b^2)] * (b*(X^a-X^(-a)) - a*(X^b-X^(-b))), with c ≥ a > b ≥ 1. Clearing the common X^(3c) factor and substituting X = exp(t) preserves vanishing order at 1. The unshifted normalized base becomes odd in t, with coefficient 1 at t^3. This family includes X^k*(X^d−1)^3 with even d, after normalization and taking a=3d/2, b=d/2, c=k+3d/2. Odd d gives the same order after substituting X^2.",
    "[t^(2j+3)] of the unshifted base is 6*h_j/(2j+3)!, where h_0=1, h_1=S, h_j=S*h_(j−1)−P*h_(j−2), S=a²+b² and P=a²b². Therefore the unshifted cube has leading coefficient 1 at order 9 and only odd powers. A combination of order ≥22 requires cancellation of all jets at 9, 11, 13, 15, 17, 19, and 21.",
    "For the bounded search, use rational moments sum(c_k*k^n) of each unshifted Laurent cube. These are n! times the corresponding jet. Rescale each column to integers. With the leading t^9 row of ones, a three-support combination cancels a prefix exactly when its two difference vectors from the first support have rank at most one. Among distinct supports the t^11 and t^13 jets together distinguish the pair (S,P), so neither of these two-coordinate difference vectors is zero. Normalize differences by their gcd and canonical sign and group equal directions. Identical supports can be merged, and two distinct supports cannot cancel through t^13.",
    "For the unbounded calculation, the first three nonconstant jet coordinates at 11, 13, and 15 are 3S/20, (31/2800)S²−P/280, and (67/126000)S³−(23/50400)SP. If exactly two S values agree for distinct supports, their P values differ. Collinearity of the first two coordinates would then force the third S to agree as well.",
    "When all three S values agree, the t^13 coordinate is affine with nonzero slope in P. The t^17 coordinate is quadratic with leading coefficient 73/15523200 in P. The row at t^9 and these two rows have rank three by Vandermonde, since the P values are distinct. Hence the order is at most 17 in this case.",
    "For three distinct S values, put T=S_0+S_1+S_2, s_i=S_i/T, p_i=P_i/T². Homogeneity permits this scaling of the jet columns. Collinearity means each jet coordinate is affine as a function on the three s_i. Thus its remainder modulo z³−z²+v*z−w has zero z² coefficient, where v=s_0*s_1+s_0*s_2+s_1*s_2 and w=s_0*s_1*s_2.",
    "The t^13 condition gives p_i=(31/10)s_i²+f*s_i+g. At t^15 the remainder condition is affine in f with slope −23/50400, and forces f=−89/46 independently of g. At t^17 the remainder condition is affine in g with slope 1/2217600, and forces g=1739173/92575−(5589/100)v. Terms depending quadratically on g are constant in z and terms in f*g*z are linear, so these terms do not affect that slope.",
    "The t^19 remainder condition is −463625243/1909693385600000 + (242953/442041600000)v + (929/549120000)w = 0. Eliminate w and impose the t^21 condition. The primitive quadratic in v has coefficients (17669503985435881075, −11677408853106621058, 1929338843037258043), with discriminant 36017400559849405670374668094464 strictly between the squares of 6001449871476842 and 6001449871476843. This contradicts v rational, as S_i are integers."
  ],
  "deadEnds": [
    "Searching the antisymmetric family did not reach order 22. Its common-center parity and pairwise moment constraints do not cover nonsymmetric supports or differing centers.",
    "The exact elimination applies only to the stated family. The bounded computation supplies a maximum only in its scanned range."
  ],
  "forNext": "Keep the exact elimination as an exclusion for the common-center antisymmetric subfamily. In the next rank search, vary the centers c_i and include both even and odd jets by multiplying each unshifted cube jet by exp(3*(c_i-c_0)*t). The unrestricted gap also requires general four-term supports and coefficients.",
  "contribution": "CD03 performed the exact rank search, recovered and independently checked the witness, derived the unrestricted-offset exclusion for the chosen family, and encoded the witness and final arithmetic contradiction in Lean.",
  "submission": {
    "status": "not-submitted",
    "lease": "none",
    "deskWrites": 0,
    "pullRequest": null
  }
}
