{
  "agent": "CT03",
  "group": "complexity theory",
  "gap": "L-gct-238",
  "strategy": "Sparsity accounting via Descartes’ rule, commutative triple supports and the quadratic factor for two active cubes.",
  "status": "companion-checked",
  "summary": "Lean proves the positive-root t−1 sparse bound, the three-cube companion 59, and the two-cube special case 13. The sparse argument uses the positive multiset root count, induction by deleting the leading monomial, and a finite count of nondecreasing index triples. For two cubes, order p,q so the order of p is no larger than that of q. After the common root factor of p is taken out of both, the residual quadratic u²−uv+v² is nonzero at x because u(x)≠0. Hence the quadratic contributes twice the smaller order (at most 6) and p+q contributes at most 7. The zero-polynomial cases are handled in Lean. An exact integer calculation supplies a three-cube multiplicity-13 example and a separate 60-term, 40-sign-change example that has no positive roots. I found no proof or counterexample for 21 in the sources examined. Koiran–Portier–Tavenas, arXiv:1205.1015, §5, explicitly excludes multiplicities in the relevant structured applications of Theorems 12–13. Koiran–Skomra, arXiv:1904.00702, Lemma 3.9 records the stronger complex nonzero-root version of the single-polynomial sparsity bound, and Conjecture 1.4 treats polynomially bounded multiplicity in the general sum-of-products model without fixing the constant 21. Hrubeš, Theory of Computing 9(10), treats distinct roots and the asymptotic multiplicity connection. Mousseau, arXiv:2610.35037v3, Theorem 13 concerns two bivariate curves in the torus and does not directly apply to three polynomial inputs to the cubic relation. The one desk read returned open/resting_after_expiry. Neither of the inspected complete main trees has a matching proof or reduction path (33f667422a2deebb87e9826f0bc326286b03df5f and 69f6cf0e8d7ae773ce0750233eddb185c22e58a6). No lease, renewal, release, account action or submission occurred. The embedded Lean file is a locally checked companion and must not be submitted as the 21 statement. Only this agent’s strategy was attempted; other target capsules informed setup.",
  "desk": {
    "state": "open",
    "time": "2026-11-26T06:27:35Z"
  },
  "statementSha256": "39d5f18318d286090f0d247e8e7faccc72df87247b4b90bff0f0c7bf2c660dee",
  "claims": [
    {
      "statement": "For every p : Polynomial ℝ, t : ℕ, and x > 0, if p.support.card ≤ t then p.rootMultiplicity x ≤ t - 1. In particular this holds when p ≠ 0.",
      "kind": "helper",
      "path": "lean/PEqualNP/Outside/L_gct_238.lean",
      "sha256": "4930e68d7e4b5f097cd668f797e5333bed8430cce34248469f5f10beb26c9864",
      "elaboration": "pass",
      "guard": "pass",
      "check-lean": {
        "mode": "not-run",
        "exitCode": null
      },
      "axioms": "pass"
    },
    {
      "statement": "A cube of a real polynomial with at most four terms has at most 20 terms. A scalar-weighted sum of three such cubes has at most 60 terms.",
      "kind": "helper",
      "path": "lean/PEqualNP/Outside/L_gct_238.lean",
      "sha256": "4930e68d7e4b5f097cd668f797e5333bed8430cce34248469f5f10beb26c9864",
      "elaboration": "pass",
      "guard": "pass",
      "check-lean": {
        "mode": "not-run",
        "exitCode": null
      },
      "axioms": "pass"
    },
    {
      "statement": "Under the hypotheses of L-gct-238, the positive-root multiplicity is at most 59. The proof also holds for arbitrary real scalar weights and allows the zero polynomial under Mathlib’s zero-multiplicity convention.",
      "kind": "companion",
      "path": "lean/PEqualNP/Outside/L_gct_238.lean",
      "sha256": "4930e68d7e4b5f097cd668f797e5333bed8430cce34248469f5f10beb26c9864",
      "elaboration": "pass",
      "guard": "pass",
      "check-lean": {
        "mode": "not-run",
        "exitCode": null
      },
      "axioms": "pass"
    },
    {
      "statement": "For two real polynomials with at most four terms each, the positive-root multiplicity of the sum of their cubes is at most 13. Signs can be absorbed into the two bases.",
      "kind": "companion",
      "path": "lean/PEqualNP/Outside/L_gct_238.lean",
      "sha256": "4930e68d7e4b5f097cd668f797e5333bed8430cce34248469f5f10beb26c9864",
      "elaboration": "pass",
      "guard": "pass",
      "check-lean": {
        "mode": "not-run",
        "exitCode": null
      },
      "axioms": "pass"
    },
    {
      "statement": "The signed sum H³ − (XH)³ + (X²H)³ for H = 1 + X⁹ + X³⁶ + X¹⁴⁴ has 60 terms and 40 sign changes, and is positive for x > 0.",
      "kind": "evidence",
      "path": "research/sparsity_checks.py",
      "sha256": "cd8ca86dc96f477e4cd64fcd6566a420b647f89f7d149c8bf37d4d1c6068e9a0",
      "elaboration": "not-run",
      "guard": "not-run",
      "check-lean": {
        "mode": "not-run",
        "exitCode": null
      },
      "axioms": "not-run"
    },
    {
      "statement": "An explicit three-cube sum in the target family has multiplicity exactly 13 at 1. For m = 1,2,3 set h_m = X^(3(3−m)) (X^(2m)−1)³ and w = (5,−8,3); the weights w_m (6/m)^9 are real cubes, so Σ_m w_m (6/m)^9 h_m³ has the required representation. Exact integer coefficients of (X−1)^0 through (X−1)^12 vanish and the coefficient of (X−1)^13 is 665611665408.",
      "kind": "evidence",
      "path": "research/sparsity_checks.py",
      "sha256": "cd8ca86dc96f477e4cd64fcd6566a420b647f89f7d149c8bf37d4d1c6068e9a0",
      "elaboration": "not-run",
      "guard": "not-run",
      "check-lean": {
        "mode": "not-run",
        "exitCode": null
      },
      "axioms": "not-run"
    }
  ],
  "artifacts": [
    {
      "path": "lean/PEqualNP/Outside/L_gct_238.lean",
      "sha256": "4930e68d7e4b5f097cd668f797e5333bed8430cce34248469f5f10beb26c9864",
      "content": "import Mathlib\n\nnamespace PEqualNP.Outside.L_gct_238\n\nopen Polynomial\n\ntheorem signVariations_le_terms (p : Polynomial ℝ) :\n    p.signVariations ≤ p.support.card - 1 := by\n  classical\n  generalize hn : p.support.card = n\n  induction n using Nat.strong_induction_on generalizing p with\n  | ind n ih =>\n    by_cases hp : p = 0\n    · simp [hp]\n    have hcard := card_support_eraseLead_add_one hp\n    by_cases he : p.eraseLead = 0\n    · have hm : monomial p.natDegree p.leadingCoeff = p := by\n        simpa [he] using eraseLead_add_monomial_natDegree_leadingCoeff p\n      rw [← hm, signVariations_monomial]\n      exact Nat.zero_le _\n    have hpos : 0 < p.eraseLead.support.card :=\n      Nat.pos_of_ne_zero (fun h => he (card_support_eq_zero.mp h))\n    have hlt : p.eraseLead.support.card < n := by omega\n    have hi := ih _ hlt p.eraseLead rfl\n    have hv := signVariations_le_eraseLead_succ p\n    omega\n\ntheorem sparseMultiplicity (p : Polynomial ℝ) (t : ℕ)\n    (ht : p.support.card ≤ t) (x : ℝ) (hx : 0 < x) :\n    rootMultiplicity x p ≤ t - 1 := by\n  classical\n  rw [← count_roots]\n  calc\n    p.roots.count x ≤ p.roots.countP (0 < ·) := by\n      unfold Multiset.count\n      rw [Multiset.countP_eq_card_filter, Multiset.countP_eq_card_filter]\n      apply Multiset.card_le_card\n      apply Multiset.monotone_filter_right\n      intro y hy\n      simpa [← hy] using hx\n    _ ≤ p.signVariations := roots_countP_pos_le_signVariations p\n    _ ≤ p.support.card - 1 := signVariations_le_terms p\n    _ ≤ t - 1 := by omega\n\n\nopen scoped Pointwise\n\nprivate theorem sortedTripleSum (f : Fin 4 → ℕ) (a b c : Fin 4) :\n    ∃ u v w : Fin 4, u ≤ v ∧ v ≤ w ∧ f u + f v + f w = f a + f b + f c := by\n  rcases le_total a b with hab | hba\n  · rcases le_total b c with hbc | hcb\n    · exact ⟨a, b, c, hab, hbc, rfl⟩\n    rcases le_total a c with hac | hca\n    · exact ⟨a, c, b, hac, hcb, by ac_rfl⟩\n    · exact ⟨c, a, b, hca, hab, by ac_rfl⟩\n  · rcases le_total a c with hac | hca\n    · exact ⟨b, a, c, hba, hac, by ac_rfl⟩\n    rcases le_total b c with hbc | hcb\n    · exact ⟨b, c, a, hbc, hca, by ac_rfl⟩\n    · exact ⟨c, b, a, hcb, hba, by ac_rfl⟩\n\ntheorem cubeSupport_le (p : Polynomial ℝ) (hp : p.support.card ≤ 4) :\n    (p ^ 3).support.card ≤ 20 := by\n  classical\n  let e : p.support → Fin 4 := fun i => Fin.castLE hp (p.support.equivFin i)\n  have he : Function.Injective e := (Fin.castLE_injective hp).comp p.support.equivFin.injective\n  let f : Fin 4 → ℕ := Function.extend e Subtype.val (fun _ => 0)\n  have hf (i : p.support) : f (e i) = i.val := he.extend_apply _ _ _\n  let triples : Finset (Fin 4 × Fin 4 × Fin 4) :=\n    Finset.univ.filter (fun i => i.1 ≤ i.2.1 ∧ i.2.1 ≤ i.2.2)\n  let exponents := triples.image (fun i => f i.1 + f i.2.1 + f i.2.2)\n  have htriples : triples.card = 20 := by\n    change (Finset.univ.filter\n      (fun i : Fin 4 × Fin 4 × Fin 4 => i.1 ≤ i.2.1 ∧ i.2.1 ≤ i.2.2)).card = 20\n    decide\n  have hmul (q r : Polynomial ℝ) : (q * r).support ⊆ q.support + r.support :=\n    AddMonoidAlgebra.support_coeff_mul_subset q r\n  have hsub : (p ^ 3).support ⊆ exponents := by\n    intro n hn\n    rw [pow_succ, pow_succ, pow_one] at hn\n    obtain ⟨ab, hab, c, hc, hsum⟩ := Finset.mem_add.mp (hmul _ _ hn)\n    obtain ⟨a, ha, b, hb, rfl⟩ := Finset.mem_add.mp (hmul _ _ hab)\n    obtain ⟨u, v, w, huv, hvw, heq⟩ :=\n      sortedTripleSum f (e ⟨a, ha⟩) (e ⟨b, hb⟩) (e ⟨c, hc⟩)\n    rw [hf, hf, hf] at heq\n    exact Finset.mem_image.mpr ⟨(u, v, w), by simp [triples, huv, hvw], heq.trans hsum⟩\n  exact (Finset.card_le_card hsub).trans (Finset.card_image_le.trans_eq htriples)\n\ntheorem signedCubeSumSupport_le (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ)\n    (hg : ∀ i, (g i).support.card ≤ 4) :\n    (∑ i, C (s i) * g i ^ 3).support.card ≤ 60 := by\n  classical\n  let f : Fin 3 → Finset ℕ := fun i => (g i ^ 3).support\n  have hsub : (∑ i, C (s i) * g i ^ 3).support ⊆ Finset.univ.biUnion f := by\n    intro n hn\n    by_contra hout\n    apply mem_support_iff.mp hn\n    rw [finsetSum_coeff]\n    apply Finset.sum_eq_zero\n    intro i hi\n    rw [coeff_C_mul]\n    have hnot : n ∉ (g i ^ 3).support :=\n      fun hm => hout (Finset.mem_biUnion.mpr ⟨i, hi, hm⟩)\n    rw [notMem_support_iff.mp hnot, mul_zero]\n  calc\n    _ ≤ (Finset.univ.biUnion f).card := Finset.card_le_card hsub\n    _ ≤ (Finset.univ : Finset (Fin 3)).card * 20 :=\n      Finset.card_biUnion_le_card_mul _ _ _ (fun i _ => cubeSupport_le (g i) (hg i))\n    _ = 60 := by decide\n\ntheorem companion59 (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ)\n    (hg : ∀ i, (g i).support.card ≤ 4) (x : ℝ) (hx : 0 < x) :\n    rootMultiplicity x (∑ i, C (s i) * g i ^ 3) ≤ 59 :=\n  sparseMultiplicity _ 60 (signedCubeSumSupport_le s g hg) x hx\n\nprivate theorem quadraticMultiplicity (p q : Polynomial ℝ) (x : ℝ)\n    (hp : p ≠ 0) (hord : p.rootMultiplicity x ≤ q.rootMultiplicity x) :\n    (p ^ 2 - p * q + q ^ 2).rootMultiplicity x = 2 * p.rootMultiplicity x := by\n  let n := p.rootMultiplicity x\n  let d : Polynomial ℝ := X - C x\n  obtain ⟨a, ha, hna⟩ := exists_eq_pow_rootMultiplicity_mul_and_not_dvd p hp x\n  obtain ⟨b, hb⟩ := (pow_dvd_pow d hord).trans (pow_rootMultiplicity_dvd q x)\n  change p = d ^ n * a at ha\n  change q = d ^ n * b at hb\n  have hax : a.eval x ≠ 0 := fun h => hna (dvd_iff_isRoot.mpr h)\n  let r := a ^ 2 - a * b + b ^ 2\n  have hrx : r.eval x ≠ 0 := by\n    dsimp [r]\n    rw [eval_add, eval_sub, eval_mul, eval_pow, eval_pow]\n    have hsq : 0 < (a.eval x) ^ 2 := sq_pos_of_ne_zero hax\n    nlinarith [sq_nonneg (a.eval x - 2 * b.eval x)]\n  have hr : r ≠ 0 := by\n    intro h\n    exact hrx (by simp [h])\n  have hfactor : p ^ 2 - p * q + q ^ 2 = r * d ^ (2 * n) := by\n    rw [ha, hb, mul_comm 2 n, pow_mul]\n    dsimp [r]\n    ring\n  rw [hfactor, rootMultiplicity_mul_X_sub_C_pow hr, rootMultiplicity_eq_zero hrx, zero_add]\n\ntheorem twoCubes13 (p q : Polynomial ℝ) (hp : p.support.card ≤ 4)\n    (hq : q.support.card ≤ 4) (x : ℝ) (hx : 0 < x) :\n    (p ^ 3 + q ^ 3).rootMultiplicity x ≤ 13 := by\n  wlog hord : p.rootMultiplicity x ≤ q.rootMultiplicity x generalizing p q\n  · simpa [add_comm] using this q p hq hp (by omega)\n  by_cases hpz : p = 0\n  · rw [hpz, zero_pow (by decide), zero_add]\n    by_cases hqz : q = 0\n    · simp [hqz]\n    rw [pow_succ, pow_succ, pow_one, rootMultiplicity_mul (mul_ne_zero (mul_ne_zero hqz hqz) hqz),\n      rootMultiplicity_mul (mul_ne_zero hqz hqz)]\n    have hh := sparseMultiplicity q 4 hq x hx\n    omega\n  by_cases hsum : p ^ 3 + q ^ 3 = 0\n  · simp [hsum]\n  have hfactor : p ^ 3 + q ^ 3 = (p + q) * (p ^ 2 - p * q + q ^ 2) := by ring\n  have hcard : (p + q).support.card ≤ 8 := by\n    have hs := (Finset.card_le_card (support_add (p := p) (q := q))).trans\n      (Finset.card_union_le p.support q.support)\n    omega\n  have hs := sparseMultiplicity (p + q) 8 hcard x hx\n  have hm := sparseMultiplicity p 4 hp x hx\n  rw [hfactor, rootMultiplicity_mul (hfactor ▸ hsum), quadraticMultiplicity p q x hpz hord]\n  omega\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 => Polynomial.C (s i) * g i ^ 3) ≠ 0 →\n      ∀ x : ℝ, 0 < x →\n        Polynomial.rootMultiplicity x\n          ((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≤ 59 := by\n  intro s g _ hg _ x hx\n  exact PEqualNP.Outside.L_gct_238.companion59 s g hg x hx\n"
    },
    {
      "path": "research/Audit.lean",
      "sha256": "d961979181abf0dadb223eabddc96e6659bf61626a795b13711627f62b4fa95e",
      "content": "import PEqualNP.Outside.L_gct_238\n\n#print axioms PEqualNP.Outside.L_gct_238.sparseMultiplicity\n#print axioms PEqualNP.Outside.L_gct_238.cubeSupport_le\n#print axioms PEqualNP.Outside.L_gct_238.twoCubes13\n#print axioms PEqualNP.Outside.L_gct_238\n\ndef target : Prop :=\n  ∀ (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\n"
    },
    {
      "path": "research/sparsity_checks.py",
      "sha256": "cd8ca86dc96f477e4cd64fcd6566a420b647f89f7d149c8bf37d4d1c6068e9a0",
      "content": "from collections import Counter\nfrom itertools import combinations_with_replacement, pairwise\nfrom math import comb\n\n\ndef multiply(left, right):\n    product = Counter()\n    for i, a in left.items():\n        for j, b in right.items():\n            product[i + j] += a * b\n    return {i: a for i, a in product.items() if a != 0}\n\n\ndef cube(poly):\n    return multiply(multiply(poly, poly), poly)\n\n\ndef add_scaled(total, poly, scalar):\n    for i, a in poly.items():\n        total[i] += scalar * a\n\n\ndef check_sign_variations():\n    # Cubes of shifts of H = 1 + X^9 + X^36 + X^144.\n    exponents = (0, 9, 36, 144)\n    triple_sums = {sum(group) for group in combinations_with_replacement(exponents, 3)}\n    total = Counter()\n    for shift, sign in enumerate((1, -1, 1)):\n        terms = {i + shift: 1 for i in exponents}\n        expanded = cube(terms)\n        assert len(expanded) == len(triple_sums) == 20\n        add_scaled(total, expanded, sign)\n    signs = [a > 0 for _, a in sorted(total.items()) if a != 0]\n    assert len(signs) == 60\n    assert sum(a != b for a, b in pairwise(signs)) == 40\n\n    print(\"60 terms and 40 sign changes in a signed sum with no positive root\")\n\n\ndef check_order_thirteen():\n    total = Counter()\n    for m, w in ((1, 5), (2, -8), (3, 3)):\n        # Four terms of h_m = X^(3*(3-m)) * (X^(2*m)-1)^3.\n        h = {3 * (3 - m) + 2 * m * j: (-1) ** (3 - j) * comb(3, j)\n             for j in range(4)}\n        assert len(h) == 4\n        # The real cube root of this weight can be absorbed in h_m.\n        add_scaled(total, cube(h), w * (6 // m) ** 9)\n    taylor = [\n        sum(a * comb(i, k) for i, a in total.items() if i >= k)\n        for k in range(14)\n    ]\n    assert taylor[:13] == [0] * 13\n    assert taylor[13] != 0\n    # Independent check by synthetic division in descending coefficient order.\n    coefficients = [total[i] for i in range(max(total), -1, -1)]\n    for _ in range(13):\n        quotient = [coefficients[0]]\n        for term in coefficients[1:]:\n            quotient.append(term + quotient[-1])\n        assert quotient.pop() == 0\n        coefficients = quotient\n    assert sum(coefficients) == taylor[13]\n    print(\"Taylor coefficient of order 13 at X=1:\", taylor[13])\n\n\nif __name__ == \"__main__\":\n    check_sign_variations()\n    check_order_thirteen()\n"
    },
    {
      "path": "research/runlean",
      "sha256": "7727b7bb39b63dac5b923b33c0ebf29e8cc4fb6ff7afddcae7828a86cb0b3c32",
      "content": "#!/bin/sh\nset -eu\nbase=$(CDPATH= cd -- \"$(dirname -- \"$0\")\" && pwd)\npaths=\"$base/repo/lean/.lake/build/lib/lean\"\nfor dir in \"$base\"/repo/lean/.lake/packages/*/.lake/build/lib/lean; do\n  paths=\"$paths:$dir\"\ndone\nexec env -i PATH=/usr/bin:/bin LEAN_PATH=\"$paths\" \"$base/lean-4.36.0-linux/bin/lean\" \"$@\"\n"
    },
    {
      "path": "research/Focused.lean",
      "sha256": "f6e35f7a22f2dc0561311cf1c2db5fb9fadb2225a73fe31a1d7d8a4d9da2164a",
      "content": "import Mathlib.Algebra.Polynomial.RuleOfSigns\nimport Mathlib.Basic.Real.Basic\nimport Mathlib.Data.Fintype.EquivFin\nimport Mathlib.Algebra.Order.BigOperators.Group.Finset\nimport Mathlib.Tactic.Ring\nimport Mathlib.Tactic.Linarith\n\nnamespace PEqualNP.Outside.L_gct_238\n\nopen Polynomial\n\ntheorem signVariations_le_terms (p : Polynomial ℝ) :\n    p.signVariations ≤ p.support.card - 1 := by\n  classical\n  generalize hn : p.support.card = n\n  induction n using Nat.strong_induction_on generalizing p with\n  | ind n ih =>\n    by_cases hp : p = 0\n    · simp [hp]\n    have hcard := card_support_eraseLead_add_one hp\n    by_cases he : p.eraseLead = 0\n    · have hm : monomial p.natDegree p.leadingCoeff = p := by\n        simpa [he] using eraseLead_add_monomial_natDegree_leadingCoeff p\n      rw [← hm, signVariations_monomial]\n      exact Nat.zero_le _\n    have hpos : 0 < p.eraseLead.support.card :=\n      Nat.pos_of_ne_zero (fun h => he (card_support_eq_zero.mp h))\n    have hlt : p.eraseLead.support.card < n := by omega\n    have hi := ih _ hlt p.eraseLead rfl\n    have hv := signVariations_le_eraseLead_succ p\n    omega\n\ntheorem sparseMultiplicity (p : Polynomial ℝ) (t : ℕ)\n    (ht : p.support.card ≤ t) (x : ℝ) (hx : 0 < x) :\n    rootMultiplicity x p ≤ t - 1 := by\n  classical\n  rw [← count_roots]\n  calc\n    p.roots.count x ≤ p.roots.countP (0 < ·) := by\n      unfold Multiset.count\n      rw [Multiset.countP_eq_card_filter, Multiset.countP_eq_card_filter]\n      apply Multiset.card_le_card\n      apply Multiset.monotone_filter_right\n      intro y hy\n      simpa [← hy] using hx\n    _ ≤ p.signVariations := roots_countP_pos_le_signVariations p\n    _ ≤ p.support.card - 1 := signVariations_le_terms p\n    _ ≤ t - 1 := by omega\n\n\nopen scoped Pointwise\n\nprivate theorem sortedTripleSum (f : Fin 4 → ℕ) (a b c : Fin 4) :\n    ∃ u v w : Fin 4, u ≤ v ∧ v ≤ w ∧ f u + f v + f w = f a + f b + f c := by\n  rcases le_total a b with hab | hba\n  · rcases le_total b c with hbc | hcb\n    · exact ⟨a, b, c, hab, hbc, rfl⟩\n    rcases le_total a c with hac | hca\n    · exact ⟨a, c, b, hac, hcb, by ac_rfl⟩\n    · exact ⟨c, a, b, hca, hab, by ac_rfl⟩\n  · rcases le_total a c with hac | hca\n    · exact ⟨b, a, c, hba, hac, by ac_rfl⟩\n    rcases le_total b c with hbc | hcb\n    · exact ⟨b, c, a, hbc, hca, by ac_rfl⟩\n    · exact ⟨c, b, a, hcb, hba, by ac_rfl⟩\n\ntheorem cubeSupport_le (p : Polynomial ℝ) (hp : p.support.card ≤ 4) :\n    (p ^ 3).support.card ≤ 20 := by\n  classical\n  let e : p.support → Fin 4 := fun i => Fin.castLE hp (p.support.equivFin i)\n  have he : Function.Injective e := (Fin.castLE_injective hp).comp p.support.equivFin.injective\n  let f : Fin 4 → ℕ := Function.extend e Subtype.val (fun _ => 0)\n  have hf (i : p.support) : f (e i) = i.val := he.extend_apply _ _ _\n  let triples : Finset (Fin 4 × Fin 4 × Fin 4) :=\n    Finset.univ.filter (fun i => i.1 ≤ i.2.1 ∧ i.2.1 ≤ i.2.2)\n  let exponents := triples.image (fun i => f i.1 + f i.2.1 + f i.2.2)\n  have htriples : triples.card = 20 := by\n    change (Finset.univ.filter\n      (fun i : Fin 4 × Fin 4 × Fin 4 => i.1 ≤ i.2.1 ∧ i.2.1 ≤ i.2.2)).card = 20\n    decide\n  have hmul (q r : Polynomial ℝ) : (q * r).support ⊆ q.support + r.support :=\n    AddMonoidAlgebra.support_coeff_mul_subset q r\n  have hsub : (p ^ 3).support ⊆ exponents := by\n    intro n hn\n    rw [pow_succ, pow_succ, pow_one] at hn\n    obtain ⟨ab, hab, c, hc, hsum⟩ := Finset.mem_add.mp (hmul _ _ hn)\n    obtain ⟨a, ha, b, hb, rfl⟩ := Finset.mem_add.mp (hmul _ _ hab)\n    obtain ⟨u, v, w, huv, hvw, heq⟩ :=\n      sortedTripleSum f (e ⟨a, ha⟩) (e ⟨b, hb⟩) (e ⟨c, hc⟩)\n    rw [hf, hf, hf] at heq\n    exact Finset.mem_image.mpr ⟨(u, v, w), by simp [triples, huv, hvw], heq.trans hsum⟩\n  exact (Finset.card_le_card hsub).trans (Finset.card_image_le.trans_eq htriples)\n\ntheorem signedCubeSumSupport_le (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ)\n    (hg : ∀ i, (g i).support.card ≤ 4) :\n    (∑ i, C (s i) * g i ^ 3).support.card ≤ 60 := by\n  classical\n  let f : Fin 3 → Finset ℕ := fun i => (g i ^ 3).support\n  have hsub : (∑ i, C (s i) * g i ^ 3).support ⊆ Finset.univ.biUnion f := by\n    intro n hn\n    by_contra hout\n    apply mem_support_iff.mp hn\n    rw [finsetSum_coeff]\n    apply Finset.sum_eq_zero\n    intro i hi\n    rw [coeff_C_mul]\n    have hnot : n ∉ (g i ^ 3).support :=\n      fun hm => hout (Finset.mem_biUnion.mpr ⟨i, hi, hm⟩)\n    rw [notMem_support_iff.mp hnot, mul_zero]\n  calc\n    _ ≤ (Finset.univ.biUnion f).card := Finset.card_le_card hsub\n    _ ≤ (Finset.univ : Finset (Fin 3)).card * 20 :=\n      Finset.card_biUnion_le_card_mul _ _ _ (fun i _ => cubeSupport_le (g i) (hg i))\n    _ = 60 := by decide\n\ntheorem companion59 (s : Fin 3 → ℝ) (g : Fin 3 → Polynomial ℝ)\n    (hg : ∀ i, (g i).support.card ≤ 4) (x : ℝ) (hx : 0 < x) :\n    rootMultiplicity x (∑ i, C (s i) * g i ^ 3) ≤ 59 :=\n  sparseMultiplicity _ 60 (signedCubeSumSupport_le s g hg) x hx\n\nprivate theorem quadraticMultiplicity (p q : Polynomial ℝ) (x : ℝ)\n    (hp : p ≠ 0) (hord : p.rootMultiplicity x ≤ q.rootMultiplicity x) :\n    (p ^ 2 - p * q + q ^ 2).rootMultiplicity x = 2 * p.rootMultiplicity x := by\n  let n := p.rootMultiplicity x\n  let d : Polynomial ℝ := X - C x\n  obtain ⟨a, ha, hna⟩ := exists_eq_pow_rootMultiplicity_mul_and_not_dvd p hp x\n  obtain ⟨b, hb⟩ := (pow_dvd_pow d hord).trans (pow_rootMultiplicity_dvd q x)\n  change p = d ^ n * a at ha\n  change q = d ^ n * b at hb\n  have hax : a.eval x ≠ 0 := fun h => hna (dvd_iff_isRoot.mpr h)\n  let r := a ^ 2 - a * b + b ^ 2\n  have hrx : r.eval x ≠ 0 := by\n    dsimp [r]\n    rw [eval_add, eval_sub, eval_mul, eval_pow, eval_pow]\n    have hsq : 0 < (a.eval x) ^ 2 := sq_pos_of_ne_zero hax\n    nlinarith [sq_nonneg (a.eval x - 2 * b.eval x)]\n  have hr : r ≠ 0 := by\n    intro h\n    exact hrx (by simp [h])\n  have hfactor : p ^ 2 - p * q + q ^ 2 = r * d ^ (2 * n) := by\n    rw [ha, hb, mul_comm 2 n, pow_mul]\n    dsimp [r]\n    ring\n  rw [hfactor, rootMultiplicity_mul_X_sub_C_pow hr, rootMultiplicity_eq_zero hrx, zero_add]\n\ntheorem twoCubes13 (p q : Polynomial ℝ) (hp : p.support.card ≤ 4)\n    (hq : q.support.card ≤ 4) (x : ℝ) (hx : 0 < x) :\n    (p ^ 3 + q ^ 3).rootMultiplicity x ≤ 13 := by\n  wlog hord : p.rootMultiplicity x ≤ q.rootMultiplicity x generalizing p q\n  · simpa [add_comm] using this q p hq hp (by omega)\n  by_cases hpz : p = 0\n  · rw [hpz, zero_pow (by decide), zero_add]\n    by_cases hqz : q = 0\n    · simp [hqz]\n    rw [pow_succ, pow_succ, pow_one, rootMultiplicity_mul (mul_ne_zero (mul_ne_zero hqz hqz) hqz),\n      rootMultiplicity_mul (mul_ne_zero hqz hqz)]\n    have hh := sparseMultiplicity q 4 hq x hx\n    omega\n  by_cases hsum : p ^ 3 + q ^ 3 = 0\n  · simp [hsum]\n  have hfactor : p ^ 3 + q ^ 3 = (p + q) * (p ^ 2 - p * q + q ^ 2) := by ring\n  have hcard : (p + q).support.card ≤ 8 := by\n    have hs := (Finset.card_le_card (support_add (p := p) (q := q))).trans\n      (Finset.card_union_le p.support q.support)\n    omega\n  have hs := sparseMultiplicity (p + q) 8 hcard x hx\n  have hm := sparseMultiplicity p 4 hp x hx\n  rw [hfactor, rootMultiplicity_mul (hfactor ▸ hsum), quadraticMultiplicity p q x hpz hord]\n  omega\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 => Polynomial.C (s i) * g i ^ 3) ≠ 0 →\n      ∀ x : ℝ, 0 < x →\n        Polynomial.rootMultiplicity x\n          ((Finset.univ : Finset (Fin 3)).sum fun i => Polynomial.C (s i) * g i ^ 3) ≤ 59 := by\n  intro s g _ hg _ x hx\n  exact PEqualNP.Outside.L_gct_238.companion59 s g hg x hx\n#print axioms PEqualNP.Outside.L_gct_238.sparseMultiplicity\n#print axioms PEqualNP.Outside.L_gct_238.cubeSupport_le\n#print axioms PEqualNP.Outside.L_gct_238.twoCubes13\n#print axioms PEqualNP.Outside.L_gct_238\n\ndef target : Prop :=\n  ∀ (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\n"
    },
    {
      "path": "research/runlake",
      "sha256": "b2c7548b3fd58c24161093284c737f27aecc17dd94661f27be04c24635957411",
      "content": "#!/bin/sh\nset -eu\nbase=$(CDPATH= cd -- \"$(dirname -- \"$0\")\" && pwd)\ntoolchain=\"$base/lean-4.36.0-linux/bin\"\ncd \"$base/repo/lean\"\nexec env -i PATH=\"$toolchain:/usr/bin:/bin\" GIT_CONFIG_NOSYSTEM=1 GIT_CONFIG_GLOBAL=/dev/null GIT_TERMINAL_PROMPT=0 LAKE_ARTIFACT_CACHE=false LEAN_NUM_THREADS=2 \"$toolchain/lake\" \"$@\"\n"
    },
    {
      "path": "research/restore-package-pins.sh",
      "sha256": "c5b42ed5ac01d2d2077e01039ddbcf420b2b6008a75bd5c212e4d4fb4f713c6e",
      "content": "#!/bin/sh\nset -eu\ngit_local() {\n  env -i PATH=/usr/bin:/bin GIT_CONFIG_NOSYSTEM=1 GIT_CONFIG_GLOBAL=/dev/null GIT_TERMINAL_PROMPT=0 HTTPS_PROXY=\"${HTTPS_PROXY-}\" HTTP_PROXY=\"${HTTP_PROXY-}\" ALL_PROXY=\"${ALL_PROXY-}\" git -c credential.helper= -c core.hooksPath=/dev/null \"$@\"\n}\nwhile IFS=\"$(printf '\\t')\" read -r name url revision; do\n  dir=\"repo/lean/.lake/packages/$name\"\n  git_local -C \"$dir\" init --quiet --template=\n  git_local -C \"$dir\" config remote.origin.url \"$url\"\n  git_local -C \"$dir\" fetch --quiet --depth=1 --no-tags origin \"$revision\"\n  git_local -C \"$dir\" reset --quiet FETCH_HEAD\n  test \"$(git_local -C \"$dir\" rev-parse HEAD)\" = \"$revision\"\n  printf '%s %s\\n' \"$name\" \"$revision\"\ndone\n"
    },
    {
      "path": "research/core-check.sh",
      "sha256": "750259773cd463ca4efa99458b829ac09996c68e1f6ce7e261d7eb8a79f8f67b",
      "content": "#!/bin/sh\nset -eu\nbase=$(CDPATH= cd -- \"$(dirname -- \"$0\")\" && pwd)\nmod=PEqualNP.Outside.L_gct_238\nfor input in companion-statement.txt statement.txt; do\n  exit_code=0\n  \"$base/runlake\" env \"$base/repo/lean/.lake/build/bin/checklemma\" \"$mod\" \"$base/$input\" check || exit_code=$?\n  printf '%s exit %s\\n' \"$input\" \"$exit_code\"\ndone\n"
    }
  ],
  "experiments": [
    {
      "range": "All 4³ ordered index triples of Fin 4; unordered count represented by the nondecreasing triples.",
      "outcome": "Kernel-reduced decide proves that the filtered finite set has cardinality 20. Every exponent in the cubed support is the image of such a triple, via the support of a product and commutativity of addition."
    },
    {
      "range": "The single explicit signed sum with cubic shifts 0, 3 and 6 and H-exponents 0, 9, 36, 144.",
      "outcome": "Exact Python coefficient multiplication passed. Base-4 digits for 9, 36 and 144 have no carries because each appears at most three times, and the number of zeros is determined by the other digits. Hence there are 20 cube exponents. The three shifts lie in different residues modulo 9. Every block has signs +,−,+ with no sign change across blocks, giving 40. Positivity follows from 1−x³+x⁶ = (x³−1/2)² + 3/4 and H(x)>0."
    },
    {
      "range": "One explicit integer-weighted cubic sum; Taylor coefficients at x=1 through order 13.",
      "outcome": "Exact Python evaluation by Σ_e a_e binom(e,k) passed; 13 zeros followed by 665611665408. A separate synthetic division calculation confirmed 13 exact divisions by X−1 and the same nonzero quotient value at 1. Since the computed coefficient is nonzero, the order is exactly 13 and the polynomial itself is nonzero. Each h_m has exactly four exponents and nonzero integer coefficients. The cube-root rescaling preserves all supports. As an analytic cross-check, put X=e^y. After removing e^(27y) 12^9 y^9, the normalized sum is Σ_m w_m (sinh(my)/(my))^9. Its constant and quadratic terms vanish because Σ w_m = Σ w_m m² = 0. The quartic coefficient is (43/40)Σ w_m m⁴ = 129. Since e^y−1 has order one and leading coefficient one, the first coefficient at X=1 is 129·12^9, as in the exact calculation. This is a single lower-bound witness."
    },
    {
      "range": "Pinned Lean 4.36.0, Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842; proof and axiom diagnostics.",
      "outcome": "The embedded Lean file with import Mathlib compiled with exit 0. Both the focused diagnostic and Audit.lean against the actual compiled module elaborated the unmodified target proposition and checked the named proof dependencies, exit 0."
    },
    {
      "range": "Pinned PEqualNP.Defs build, guard and checker audit.",
      "outcome": "lake build +PEqualNP.Defs exited 0. The unmodified outside-guard.mjs imports command exited 0 (Mathlib only) for the embedded Lean file. The Node check-lean wrapper was not run because its memory diagnostics read host process and cgroup state. No checker source or pins were modified. The unchanged compiled CheckLemma core check against the 59 companion statement exited 137 without a verdict (runtime fault)."
    }
  ],
  "deadEnds": [
    "Even three shifts of the same four-term base have 60 distinct cubic exponents. Counting only exponents cannot lower 59 to 21.",
    "Even adding a uniform coefficient sign-variation estimate cannot give 21 via Descartes alone: the explicit 40-variation example has zero positive roots. It refutes that bound on variation, not the target.",
    "The two-cube factorization stops at the third summand. Neither the support cardinality argument nor the literature located bounds cancellation across all three terms by 21.",
    "The after-p2 input was a placeholder. The setup pins, isolation approach and artifact digests were cross-checked with after-p3, after-p4 and after-p5."
  ],
  "handed": [
    {
      "batch": "e2-px-capsule",
      "key": "after-p2",
      "sha256": "0c35cdefd31fb6c3f3bc3ee3010fccce590d85ba92fb6cb501304b22526aa24f"
    },
    {
      "batch": "e2-px-capsule",
      "key": "after-p3",
      "sha256": "6063abcf25b0ece8209fd6a47d5d78a7df697fbdd937474081d3f19b54e10e53"
    },
    {
      "batch": "e2-px-capsule",
      "key": "after-p4",
      "sha256": "f817777448e5acd46bd64359cdaf866097e2fc2c42e54e65f731f6799bc80eeb"
    },
    {
      "batch": "e2-px-capsule",
      "key": "after-p5",
      "sha256": "61f551d37e52b20f7b29c1b66087675de769373463191e9a3ca478d775ea6289"
    }
  ],
  "forNext": "The verified triple-support bound and two-cube branch can be reused. The remaining all-three case needs a constraint on the coefficients: after rescaling x = 1, exclude nonzero F with Σ_e [X^e]F binom(e,k) = 0 for every k = 0,…,21 using the three blocks of cubic coefficient relations, or exhibit such an F. The explicit order-13 family is a benchmark for proposed bounds. The original record and its UTF-8 hash are preserved. The proof diagnostics report only propext, Classical.choice and Quot.sound. No independent human review or official intake approval was obtained."
}
